ados-rcm 1.1.384 → 1.1.385
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/{AEditorLazy-BWX_YxRf.js → AEditorLazy-DftOXlPU.js} +1 -1
- package/dist/{AEditorLazy--DcMKFAH.cjs → AEditorLazy-DsCbms9k.cjs} +1 -1
- package/dist/AModule/AComponents/AEditor/AEditor.d.ts +0 -2
- package/dist/AModule/AComponents/AIcon/AIcon.d.ts +2 -1
- package/dist/index-D_xWjvU_.cjs +353 -0
- package/dist/{index-DvM04Zhe.js → index-pH4nOCz2.js} +7342 -7311
- package/dist/index.cjs.js +2 -2
- package/dist/index.es.js +2 -2
- package/package.json +1 -1
- package/dist/index-CyUiCd7U.cjs +0 -353
package/dist/index-CyUiCd7U.cjs
DELETED
@@ -1,353 +0,0 @@
|
|
1
|
-
"use strict";var JA=Object.defineProperty;var QA=(r,e,t)=>e in r?JA(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var nt=(r,e,t)=>QA(r,typeof e!="symbol"?e+"":e,t);const R=require("react"),Bs=require("react-dom");var yi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ol(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function e4(r){if(r.__esModule)return r;var e=r.default;if(typeof e=="function"){var t=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(n){var i=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return r[n]}})}),t}var _d={exports:{}},wf={};/**
|
2
|
-
* @license React
|
3
|
-
* react-jsx-runtime.production.min.js
|
4
|
-
*
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
6
|
-
*
|
7
|
-
* This source code is licensed under the MIT license found in the
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
9
|
-
*/var Fv;function t4(){if(Fv)return wf;Fv=1;var r=R,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(h,g,m){var M,T={},C=null,_=null;m!==void 0&&(C=""+m),g.key!==void 0&&(C=""+g.key),g.ref!==void 0&&(_=g.ref);for(M in g)n.call(g,M)&&!l.hasOwnProperty(M)&&(T[M]=g[M]);if(h&&h.defaultProps)for(M in g=h.defaultProps,g)T[M]===void 0&&(T[M]=g[M]);return{$$typeof:e,type:h,key:C,ref:_,props:T,_owner:i.current}}return wf.Fragment=t,wf.jsx=u,wf.jsxs=u,wf}var Af={};/**
|
10
|
-
* @license React
|
11
|
-
* react-jsx-runtime.development.js
|
12
|
-
*
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
14
|
-
*
|
15
|
-
* This source code is licensed under the MIT license found in the
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
17
|
-
*/var Bv;function r4(){return Bv||(Bv=1,process.env.NODE_ENV!=="production"&&function(){var r=R,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"),h=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),S=Symbol.iterator,D="@@iterator";function A(K){if(K===null||typeof K!="object")return null;var Ne=S&&K[S]||K[D];return typeof Ne=="function"?Ne:null}var b=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function k(K){{for(var Ne=arguments.length,lt=new Array(Ne>1?Ne-1:0),Bt=1;Bt<Ne;Bt++)lt[Bt-1]=arguments[Bt];O("error",K,lt)}}function O(K,Ne,lt){{var Bt=b.ReactDebugCurrentFrame,or=Bt.getStackAddendum();or!==""&&(Ne+="%s",lt=lt.concat([or]));var er=lt.map(function(jt){return String(jt)});er.unshift("Warning: "+Ne),Function.prototype.apply.call(console[K],console,er)}}var H=!1,q=!1,G=!1,Y=!1,he=!1,J;J=Symbol.for("react.module.reference");function fe(K){return!!(typeof K=="string"||typeof K=="function"||K===n||K===l||he||K===i||K===m||K===M||Y||K===_||H||q||G||typeof K=="object"&&K!==null&&(K.$$typeof===C||K.$$typeof===T||K.$$typeof===u||K.$$typeof===h||K.$$typeof===g||K.$$typeof===J||K.getModuleId!==void 0))}function P(K,Ne,lt){var Bt=K.displayName;if(Bt)return Bt;var or=Ne.displayName||Ne.name||"";return or!==""?lt+"("+or+")":lt}function re(K){return K.displayName||"Context"}function Q(K){if(K==null)return null;if(typeof K.tag=="number"&&k("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof K=="function")return K.displayName||K.name||null;if(typeof K=="string")return K;switch(K){case n:return"Fragment";case t:return"Portal";case l:return"Profiler";case i:return"StrictMode";case m:return"Suspense";case M:return"SuspenseList"}if(typeof K=="object")switch(K.$$typeof){case h:var Ne=K;return re(Ne)+".Consumer";case u:var lt=K;return re(lt._context)+".Provider";case g:return P(K,K.render,"ForwardRef");case T:var Bt=K.displayName||null;return Bt!==null?Bt:Q(K.type)||"Memo";case C:{var or=K,er=or._payload,jt=or._init;try{return Q(jt(er))}catch{return null}}}return null}var ne=Object.assign,se=0,ue,ve,le,me,pe,_e,De;function Fe(){}Fe.__reactDisabledLog=!0;function Xe(){{if(se===0){ue=console.log,ve=console.info,le=console.warn,me=console.error,pe=console.group,_e=console.groupCollapsed,De=console.groupEnd;var K={configurable:!0,enumerable:!0,value:Fe,writable:!0};Object.defineProperties(console,{info:K,log:K,warn:K,error:K,group:K,groupCollapsed:K,groupEnd:K})}se++}}function we(){{if(se--,se===0){var K={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ne({},K,{value:ue}),info:ne({},K,{value:ve}),warn:ne({},K,{value:le}),error:ne({},K,{value:me}),group:ne({},K,{value:pe}),groupCollapsed:ne({},K,{value:_e}),groupEnd:ne({},K,{value:De})})}se<0&&k("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var it=b.ReactCurrentDispatcher,ht;function Je(K,Ne,lt){{if(ht===void 0)try{throw Error()}catch(or){var Bt=or.stack.trim().match(/\n( *(at )?)/);ht=Bt&&Bt[1]||""}return`
|
18
|
-
`+ht+K}}var Ze=!1,Le;{var ke=typeof WeakMap=="function"?WeakMap:Map;Le=new ke}function Te(K,Ne){if(!K||Ze)return"";{var lt=Le.get(K);if(lt!==void 0)return lt}var Bt;Ze=!0;var or=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var er;er=it.current,it.current=null,Xe();try{if(Ne){var jt=function(){throw Error()};if(Object.defineProperty(jt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(jt,[])}catch(Sn){Bt=Sn}Reflect.construct(K,[],jt)}else{try{jt.call()}catch(Sn){Bt=Sn}K.call(jt.prototype)}}else{try{throw Error()}catch(Sn){Bt=Sn}K()}}catch(Sn){if(Sn&&Bt&&typeof Sn.stack=="string"){for(var tr=Sn.stack.split(`
|
19
|
-
`),Mr=Bt.stack.split(`
|
20
|
-
`),fr=tr.length-1,pr=Mr.length-1;fr>=1&&pr>=0&&tr[fr]!==Mr[pr];)pr--;for(;fr>=1&&pr>=0;fr--,pr--)if(tr[fr]!==Mr[pr]){if(fr!==1||pr!==1)do if(fr--,pr--,pr<0||tr[fr]!==Mr[pr]){var $r=`
|
21
|
-
`+tr[fr].replace(" at new "," at ");return K.displayName&&$r.includes("<anonymous>")&&($r=$r.replace("<anonymous>",K.displayName)),typeof K=="function"&&Le.set(K,$r),$r}while(fr>=1&&pr>=0);break}}}finally{Ze=!1,it.current=er,we(),Error.prepareStackTrace=or}var vr=K?K.displayName||K.name:"",Gn=vr?Je(vr):"";return typeof K=="function"&&Le.set(K,Gn),Gn}function Be(K,Ne,lt){return Te(K,!1)}function Re(K){var Ne=K.prototype;return!!(Ne&&Ne.isReactComponent)}function Qe(K,Ne,lt){if(K==null)return"";if(typeof K=="function")return Te(K,Re(K));if(typeof K=="string")return Je(K);switch(K){case m:return Je("Suspense");case M:return Je("SuspenseList")}if(typeof K=="object")switch(K.$$typeof){case g:return Be(K.render);case T:return Qe(K.type,Ne,lt);case C:{var Bt=K,or=Bt._payload,er=Bt._init;try{return Qe(er(or),Ne,lt)}catch{}}}return""}var ct=Object.prototype.hasOwnProperty,kt={},At=b.ReactDebugCurrentFrame;function bt(K){if(K){var Ne=K._owner,lt=Qe(K.type,K._source,Ne?Ne.type:null);At.setExtraStackFrame(lt)}else At.setExtraStackFrame(null)}function Dt(K,Ne,lt,Bt,or){{var er=Function.call.bind(ct);for(var jt in K)if(er(K,jt)){var tr=void 0;try{if(typeof K[jt]!="function"){var Mr=Error((Bt||"React class")+": "+lt+" type `"+jt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof K[jt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Mr.name="Invariant Violation",Mr}tr=K[jt](Ne,jt,Bt,lt,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(fr){tr=fr}tr&&!(tr instanceof Error)&&(bt(or),k("%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).",Bt||"React class",lt,jt,typeof tr),bt(null)),tr instanceof Error&&!(tr.message in kt)&&(kt[tr.message]=!0,bt(or),k("Failed %s type: %s",lt,tr.message),bt(null))}}}var Rt=Array.isArray;function ut(K){return Rt(K)}function ot(K){{var Ne=typeof Symbol=="function"&&Symbol.toStringTag,lt=Ne&&K[Symbol.toStringTag]||K.constructor.name||"Object";return lt}}function wt(K){try{return Ie(K),!1}catch{return!0}}function Ie(K){return""+K}function pt(K){if(wt(K))return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ot(K)),Ie(K)}var _t=b.ReactCurrentOwner,Ot={key:!0,ref:!0,__self:!0,__source:!0},$t,Ue;function Tt(K){if(ct.call(K,"ref")){var Ne=Object.getOwnPropertyDescriptor(K,"ref").get;if(Ne&&Ne.isReactWarning)return!1}return K.ref!==void 0}function zt(K){if(ct.call(K,"key")){var Ne=Object.getOwnPropertyDescriptor(K,"key").get;if(Ne&&Ne.isReactWarning)return!1}return K.key!==void 0}function br(K,Ne){typeof K.ref=="string"&&_t.current}function Or(K,Ne){{var lt=function(){$t||($t=!0,k("%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)",Ne))};lt.isReactWarning=!0,Object.defineProperty(K,"key",{get:lt,configurable:!0})}}function It(K,Ne){{var lt=function(){Ue||(Ue=!0,k("%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)",Ne))};lt.isReactWarning=!0,Object.defineProperty(K,"ref",{get:lt,configurable:!0})}}var ie=function(K,Ne,lt,Bt,or,er,jt){var tr={$$typeof:e,type:K,key:Ne,ref:lt,props:jt,_owner:er};return tr._store={},Object.defineProperty(tr._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(tr,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Bt}),Object.defineProperty(tr,"_source",{configurable:!1,enumerable:!1,writable:!1,value:or}),Object.freeze&&(Object.freeze(tr.props),Object.freeze(tr)),tr};function X(K,Ne,lt,Bt,or){{var er,jt={},tr=null,Mr=null;lt!==void 0&&(pt(lt),tr=""+lt),zt(Ne)&&(pt(Ne.key),tr=""+Ne.key),Tt(Ne)&&(Mr=Ne.ref,br(Ne,or));for(er in Ne)ct.call(Ne,er)&&!Ot.hasOwnProperty(er)&&(jt[er]=Ne[er]);if(K&&K.defaultProps){var fr=K.defaultProps;for(er in fr)jt[er]===void 0&&(jt[er]=fr[er])}if(tr||Mr){var pr=typeof K=="function"?K.displayName||K.name||"Unknown":K;tr&&Or(jt,pr),Mr&&It(jt,pr)}return ie(K,tr,Mr,or,Bt,_t.current,jt)}}var Ee=b.ReactCurrentOwner,je=b.ReactDebugCurrentFrame;function St(K){if(K){var Ne=K._owner,lt=Qe(K.type,K._source,Ne?Ne.type:null);je.setExtraStackFrame(lt)}else je.setExtraStackFrame(null)}var ft;ft=!1;function mt(K){return typeof K=="object"&&K!==null&&K.$$typeof===e}function Ut(){{if(Ee.current){var K=Q(Ee.current.type);if(K)return`
|
22
|
-
|
23
|
-
Check the render method of \``+K+"`."}return""}}function Lt(K){return""}var Qt={};function xt(K){{var Ne=Ut();if(!Ne){var lt=typeof K=="string"?K:K.displayName||K.name;lt&&(Ne=`
|
24
|
-
|
25
|
-
Check the top-level render call using <`+lt+">.")}return Ne}}function Et(K,Ne){{if(!K._store||K._store.validated||K.key!=null)return;K._store.validated=!0;var lt=xt(Ne);if(Qt[lt])return;Qt[lt]=!0;var Bt="";K&&K._owner&&K._owner!==Ee.current&&(Bt=" It was passed a child from "+Q(K._owner.type)+"."),St(K),k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',lt,Bt),St(null)}}function gt(K,Ne){{if(typeof K!="object")return;if(ut(K))for(var lt=0;lt<K.length;lt++){var Bt=K[lt];mt(Bt)&&Et(Bt,Ne)}else if(mt(K))K._store&&(K._store.validated=!0);else if(K){var or=A(K);if(typeof or=="function"&&or!==K.entries)for(var er=or.call(K),jt;!(jt=er.next()).done;)mt(jt.value)&&Et(jt.value,Ne)}}}function Ft(K){{var Ne=K.type;if(Ne==null||typeof Ne=="string")return;var lt;if(typeof Ne=="function")lt=Ne.propTypes;else if(typeof Ne=="object"&&(Ne.$$typeof===g||Ne.$$typeof===T))lt=Ne.propTypes;else return;if(lt){var Bt=Q(Ne);Dt(lt,K.props,"prop",Bt,K)}else if(Ne.PropTypes!==void 0&&!ft){ft=!0;var or=Q(Ne);k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",or||"Unknown")}typeof Ne.getDefaultProps=="function"&&!Ne.getDefaultProps.isReactClassApproved&&k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ur(K){{for(var Ne=Object.keys(K.props),lt=0;lt<Ne.length;lt++){var Bt=Ne[lt];if(Bt!=="children"&&Bt!=="key"){St(K),k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Bt),St(null);break}}K.ref!==null&&(St(K),k("Invalid attribute `ref` supplied to `React.Fragment`."),St(null))}}function qe(K,Ne,lt,Bt,or,er){{var jt=fe(K);if(!jt){var tr="";(K===void 0||typeof K=="object"&&K!==null&&Object.keys(K).length===0)&&(tr+=" 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 Mr=Lt();Mr?tr+=Mr:tr+=Ut();var fr;K===null?fr="null":ut(K)?fr="array":K!==void 0&&K.$$typeof===e?(fr="<"+(Q(K.type)||"Unknown")+" />",tr=" Did you accidentally export a JSX literal instead of a component?"):fr=typeof K,k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",fr,tr)}var pr=X(K,Ne,lt,or,er);if(pr==null)return pr;if(jt){var $r=Ne.children;if($r!==void 0)if(Bt)if(ut($r)){for(var vr=0;vr<$r.length;vr++)gt($r[vr],K);Object.freeze&&Object.freeze($r)}else k("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 gt($r,K)}return K===n?ur(pr):Ft(pr),pr}}function vt(K,Ne,lt){return qe(K,Ne,lt,!0)}function at(K,Ne,lt){return qe(K,Ne,lt,!1)}var We=at,yt=vt;Af.Fragment=n,Af.jsx=We,Af.jsxs=yt}()),Af}var qv;function n4(){return qv||(qv=1,process.env.NODE_ENV==="production"?_d.exports=t4():_d.exports=r4()),_d.exports}var v=n4(),Mf={exports:{}};/**
|
26
|
-
* @license
|
27
|
-
* Lodash <https://lodash.com/>
|
28
|
-
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
29
|
-
* Released under MIT license <https://lodash.com/license>
|
30
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
31
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
32
|
-
*/var i4=Mf.exports,Hv;function o4(){return Hv||(Hv=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",h="Invalid `variable` option passed into `_.template`",g="__lodash_hash_undefined__",m=500,M="__lodash_placeholder__",T=1,C=2,_=4,S=1,D=2,A=1,b=2,k=4,O=8,H=16,q=32,G=64,Y=128,he=256,J=512,fe=30,P="...",re=800,Q=16,ne=1,se=2,ue=3,ve=1/0,le=9007199254740991,me=17976931348623157e292,pe=NaN,_e=4294967295,De=_e-1,Fe=_e>>>1,Xe=[["ary",Y],["bind",A],["bindKey",b],["curry",O],["curryRight",H],["flip",J],["partial",q],["partialRight",G],["rearg",he]],we="[object Arguments]",it="[object Array]",ht="[object AsyncFunction]",Je="[object Boolean]",Ze="[object Date]",Le="[object DOMException]",ke="[object Error]",Te="[object Function]",Be="[object GeneratorFunction]",Re="[object Map]",Qe="[object Number]",ct="[object Null]",kt="[object Object]",At="[object Promise]",bt="[object Proxy]",Dt="[object RegExp]",Rt="[object Set]",ut="[object String]",ot="[object Symbol]",wt="[object Undefined]",Ie="[object WeakMap]",pt="[object WeakSet]",_t="[object ArrayBuffer]",Ot="[object DataView]",$t="[object Float32Array]",Ue="[object Float64Array]",Tt="[object Int8Array]",zt="[object Int16Array]",br="[object Int32Array]",Or="[object Uint8Array]",It="[object Uint8ClampedArray]",ie="[object Uint16Array]",X="[object Uint32Array]",Ee=/\b__p \+= '';/g,je=/\b(__p \+=) '' \+/g,St=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ft=/&(?:amp|lt|gt|quot|#39);/g,mt=/[&<>"']/g,Ut=RegExp(ft.source),Lt=RegExp(mt.source),Qt=/<%-([\s\S]+?)%>/g,xt=/<%([\s\S]+?)%>/g,Et=/<%=([\s\S]+?)%>/g,gt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ft=/^\w*$/,ur=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qe=/[\\^$.*+?()[\]{}|]/g,vt=RegExp(qe.source),at=/^\s+/,We=/\s/,yt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,K=/\{\n\/\* \[wrapped with (.+)\] \*/,Ne=/,? & /,lt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Bt=/[()=,{}\[\]\/\s]/,or=/\\(\\)?/g,er=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,jt=/\w*$/,tr=/^[-+]0x[0-9a-f]+$/i,Mr=/^0b[01]+$/i,fr=/^\[object .+?Constructor\]$/,pr=/^0o[0-7]+$/i,$r=/^(?:0|[1-9]\d*)$/,vr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Gn=/($^)/,Sn=/['\n\r\u2028\u2029\\]/g,Dn="\\ud800-\\udfff",Kr="\\u0300-\\u036f",Zn="\\ufe20-\\ufe2f",Tn="\\u20d0-\\u20ff",Yn=Kr+Zn+Tn,Kn="\\u2700-\\u27bf",nn="a-z\\xdf-\\xf6\\xf8-\\xff",On="\\xac\\xb1\\xd7\\xf7",Cn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",di="\\u2000-\\u206f",_i=" \\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",xi="A-Z\\xc0-\\xd6\\xd8-\\xde",En="\\ufe0e\\ufe0f",wn=On+Cn+di+_i,cn="['’]",Xn="["+Dn+"]",on="["+wn+"]",dn="["+Yn+"]",x="\\d+",j="["+Kn+"]",W="["+nn+"]",ee="[^"+Dn+wn+x+Kn+nn+xi+"]",Ce="\\ud83c[\\udffb-\\udfff]",be="(?:"+dn+"|"+Ce+")",Oe="[^"+Dn+"]",et="(?:\\ud83c[\\udde6-\\uddff]){2}",Mt="[\\ud800-\\udbff][\\udc00-\\udfff]",Ht="["+xi+"]",qt="\\u200d",xr="(?:"+W+"|"+ee+")",Zr="(?:"+Ht+"|"+ee+")",vn="(?:"+cn+"(?:d|ll|m|re|s|t|ve))?",yn="(?:"+cn+"(?:D|LL|M|RE|S|T|VE))?",ai=be+"?",jn="["+En+"]?",Si="(?:"+qt+"(?:"+[Oe,et,Mt].join("|")+")"+jn+ai+")*",Xr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",hi="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Fn=jn+ai+Si,Jn="(?:"+[j,et,Mt].join("|")+")"+Fn,yo="(?:"+[Oe+dn+"?",dn,et,Mt,Xn].join("|")+")",eo=RegExp(cn,"g"),to=RegExp(dn,"g"),kn=RegExp(Ce+"(?="+Ce+")|"+yo+Fn,"g"),bo=RegExp([Ht+"?"+W+"+"+vn+"(?="+[on,Ht,"$"].join("|")+")",Zr+"+"+yn+"(?="+[on,Ht+xr,"$"].join("|")+")",Ht+"?"+xr+"+"+vn,Ht+"+"+yn,hi,Xr,x,Jn].join("|"),"g"),Qn=RegExp("["+qt+Dn+Yn+En+"]"),ei=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Hi=["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"],Dr=-1,Cr={};Cr[$t]=Cr[Ue]=Cr[Tt]=Cr[zt]=Cr[br]=Cr[Or]=Cr[It]=Cr[ie]=Cr[X]=!0,Cr[we]=Cr[it]=Cr[_t]=Cr[Je]=Cr[Ot]=Cr[Ze]=Cr[ke]=Cr[Te]=Cr[Re]=Cr[Qe]=Cr[kt]=Cr[Dt]=Cr[Rt]=Cr[ut]=Cr[Ie]=!1;var Ir={};Ir[we]=Ir[it]=Ir[_t]=Ir[Ot]=Ir[Je]=Ir[Ze]=Ir[$t]=Ir[Ue]=Ir[Tt]=Ir[zt]=Ir[br]=Ir[Re]=Ir[Qe]=Ir[kt]=Ir[Dt]=Ir[Rt]=Ir[ut]=Ir[ot]=Ir[Or]=Ir[It]=Ir[ie]=Ir[X]=!0,Ir[ke]=Ir[Te]=Ir[Ie]=!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"},V={"&":"&","<":"<",">":">",'"':""","'":"'"},ce={"&":"&","<":"<",">":">",""":'"',"'":"'"},Pe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Kt=parseFloat,Vt=parseInt,gr=typeof yi=="object"&&yi&&yi.Object===Object&&yi,Sr=typeof self=="object"&&self&&self.Object===Object&&self,dr=gr||Sr||Function("return this")(),wr=e&&!e.nodeType&&e,Jr=wr&&!0&&r&&!r.nodeType&&r,Rn=Jr&&Jr.exports===wr,Vr=Rn&&gr.process,Fr=function(){try{var ge=Jr&&Jr.require&&Jr.require("util").types;return ge||Vr&&Vr.binding&&Vr.binding("util")}catch{}}(),Qr=Fr&&Fr.isArrayBuffer,li=Fr&&Fr.isDate,pi=Fr&&Fr.isMap,Bn=Fr&&Fr.isRegExp,_o=Fr&&Fr.isSet,zi=Fr&&Fr.isTypedArray;function sn(ge,ze,Me){switch(Me.length){case 0:return ge.call(ze);case 1:return ge.call(ze,Me[0]);case 2:return ge.call(ze,Me[0],Me[1]);case 3:return ge.call(ze,Me[0],Me[1],Me[2])}return ge.apply(ze,Me)}function hs(ge,ze,Me,Pt){for(var ir=-1,Pr=ge==null?0:ge.length;++ir<Pr;){var bn=ge[ir];ze(Pt,bn,Me(bn),ge)}return Pt}function qn(ge,ze){for(var Me=-1,Pt=ge==null?0:ge.length;++Me<Pt&&ze(ge[Me],Me,ge)!==!1;);return ge}function cl(ge,ze){for(var Me=ge==null?0:ge.length;Me--&&ze(ge[Me],Me,ge)!==!1;);return ge}function wa(ge,ze){for(var Me=-1,Pt=ge==null?0:ge.length;++Me<Pt;)if(!ze(ge[Me],Me,ge))return!1;return!0}function $i(ge,ze){for(var Me=-1,Pt=ge==null?0:ge.length,ir=0,Pr=[];++Me<Pt;){var bn=ge[Me];ze(bn,Me,ge)&&(Pr[ir++]=bn)}return Pr}function xo(ge,ze){var Me=ge==null?0:ge.length;return!!Me&&So(ge,ze,0)>-1}function Hn(ge,ze,Me){for(var Pt=-1,ir=ge==null?0:ge.length;++Pt<ir;)if(Me(ze,ge[Pt]))return!0;return!1}function Yr(ge,ze){for(var Me=-1,Pt=ge==null?0:ge.length,ir=Array(Pt);++Me<Pt;)ir[Me]=ze(ge[Me],Me,ge);return ir}function Ci(ge,ze){for(var Me=-1,Pt=ze.length,ir=ge.length;++Me<Pt;)ge[ir+Me]=ze[Me];return ge}function Aa(ge,ze,Me,Pt){var ir=-1,Pr=ge==null?0:ge.length;for(Pt&&Pr&&(Me=ge[++ir]);++ir<Pr;)Me=ze(Me,ge[ir],ir,ge);return Me}function ul(ge,ze,Me,Pt){var ir=ge==null?0:ge.length;for(Pt&&ir&&(Me=ge[--ir]);ir--;)Me=ze(Me,ge[ir],ir,ge);return Me}function zo(ge,ze){for(var Me=-1,Pt=ge==null?0:ge.length;++Me<Pt;)if(ze(ge[Me],Me,ge))return!0;return!1}var fl=w("length");function dl(ge){return ge.split("")}function Vs(ge){return ge.match(lt)||[]}function ps(ge,ze,Me){var Pt;return Me(ge,function(ir,Pr,bn){if(ze(ir,Pr,bn))return Pt=Pr,!1}),Pt}function gs(ge,ze,Me,Pt){for(var ir=ge.length,Pr=Me+(Pt?1:-1);Pt?Pr--:++Pr<ir;)if(ze(ge[Pr],Pr,ge))return Pr;return-1}function So(ge,ze,Me){return ze===ze?nf(ge,ze,Me):gs(ge,Gs,Me)}function hl(ge,ze,Me,Pt){for(var ir=Me-1,Pr=ge.length;++ir<Pr;)if(Pt(ge[ir],ze))return ir;return-1}function Gs(ge){return ge!==ge}function Ta(ge,ze){var Me=ge==null?0:ge.length;return Me?Ae(ge,ze)/Me:pe}function w(ge){return function(ze){return ze==null?t:ze[ge]}}function N(ge){return function(ze){return ge==null?t:ge[ze]}}function z(ge,ze,Me,Pt,ir){return ir(ge,function(Pr,bn,Ur){Me=Pt?(Pt=!1,Pr):ze(Me,Pr,bn,Ur)}),Me}function te(ge,ze){var Me=ge.length;for(ge.sort(ze);Me--;)ge[Me]=ge[Me].value;return ge}function Ae(ge,ze){for(var Me,Pt=-1,ir=ge.length;++Pt<ir;){var Pr=ze(ge[Pt]);Pr!==t&&(Me=Me===t?Pr:Me+Pr)}return Me}function Se(ge,ze){for(var Me=-1,Pt=Array(ge);++Me<ge;)Pt[Me]=ze(Me);return Pt}function Ve(ge,ze){return Yr(ze,function(Me){return[Me,ge[Me]]})}function dt(ge){return ge&&ge.slice(0,iu(ge)+1).replace(at,"")}function Wt(ge){return function(ze){return ge(ze)}}function hr(ge,ze){return Yr(ze,function(Me){return ge[Me]})}function sr(ge,ze){return ge.has(ze)}function Gr(ge,ze){for(var Me=-1,Pt=ge.length;++Me<Pt&&So(ze,ge[Me],0)>-1;);return Me}function ti(ge,ze){for(var Me=ge.length;Me--&&So(ze,ge[Me],0)>-1;);return Me}function wi(ge,ze){for(var Me=ge.length,Pt=0;Me--;)ge[Me]===ze&&++Pt;return Pt}var Ai=N(I),Zs=N(V);function pl(ge){return"\\"+Pe[ge]}function ms(ge,ze){return ge==null?t:ge[ze]}function Ys(ge){return Qn.test(ge)}function tf(ge){return ei.test(ge)}function nc(ge){for(var ze,Me=[];!(ze=ge.next()).done;)Me.push(ze.value);return Me}function ic(ge){var ze=-1,Me=Array(ge.size);return ge.forEach(function(Pt,ir){Me[++ze]=[ir,Pt]}),Me}function nu(ge,ze){return function(Me){return ge(ze(Me))}}function Co(ge,ze){for(var Me=-1,Pt=ge.length,ir=0,Pr=[];++Me<Pt;){var bn=ge[Me];(bn===ze||bn===M)&&(ge[Me]=M,Pr[ir++]=Me)}return Pr}function Ea(ge){var ze=-1,Me=Array(ge.size);return ge.forEach(function(Pt){Me[++ze]=Pt}),Me}function rf(ge){var ze=-1,Me=Array(ge.size);return ge.forEach(function(Pt){Me[++ze]=[Pt,Pt]}),Me}function nf(ge,ze,Me){for(var Pt=Me-1,ir=ge.length;++Pt<ir;)if(ge[Pt]===ze)return Pt;return-1}function of(ge,ze,Me){for(var Pt=Me+1;Pt--;)if(ge[Pt]===ze)return Pt;return Pt}function Ks(ge){return Ys(ge)?gl(ge):fl(ge)}function un(ge){return Ys(ge)?Ti(ge):dl(ge)}function iu(ge){for(var ze=ge.length;ze--&&We.test(ge.charAt(ze)););return ze}var ou=N(ce);function gl(ge){for(var ze=kn.lastIndex=0;kn.test(ge);)++ze;return ze}function Ti(ge){return ge.match(kn)||[]}function su(ge){return ge.match(bo)||[]}var ml=function ge(ze){ze=ze==null?dr:wo.defaults(dr.Object(),ze,wo.pick(dr,Hi));var Me=ze.Array,Pt=ze.Date,ir=ze.Error,Pr=ze.Function,bn=ze.Math,Ur=ze.Object,Xs=ze.RegExp,au=ze.String,Ni=ze.TypeError,vl=Me.prototype,sf=Pr.prototype,$o=Ur.prototype,en=ze["__core-js_shared__"],Uo=sf.toString,zr=$o.hasOwnProperty,oc=0,an=function(){var o=/[^.]+$/.exec(en&&en.keys&&en.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),Ao=$o.toString,sc=Uo.call(Ur),ac=dr._,lc=Xs("^"+Uo.call(zr).replace(qe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Js=Rn?ze.Buffer:t,To=ze.Symbol,ka=ze.Uint8Array,Ra=Js?Js.allocUnsafe:t,vs=nu(Ur.getPrototypeOf,Ur),Qs=Ur.create,yl=$o.propertyIsEnumerable,Eo=vl.splice,bl=To?To.isConcatSpreadable:t,Ui=To?To.iterator:t,ko=To?To.toStringTag:t,Wo=function(){try{var o=jc(Ur,"defineProperty");return o({},"",{}),o}catch{}}(),af=ze.clearTimeout!==dr.clearTimeout&&ze.clearTimeout,Ia=Pt&&Pt.now!==dr.Date.now&&Pt.now,lu=ze.setTimeout!==dr.setTimeout&&ze.setTimeout,ea=bn.ceil,ys=bn.floor,ta=Ur.getOwnPropertySymbols,_l=Js?Js.isBuffer:t,ra=ze.isFinite,La=vl.join,cu=nu(Ur.keys,Ur),ln=bn.max,In=bn.min,Vo=Pt.now,cc=ze.parseInt,Go=bn.random,xl=vl.reverse,ro=jc(ze,"DataView"),Zo=jc(ze,"Map"),na=jc(ze,"Promise"),no=jc(ze,"Set"),Ro=jc(ze,"WeakMap"),ia=jc(Ur,"create"),Ma=Ro&&new Ro,bs={},Yo=Fc(ro),uc=Fc(Zo),lf=Fc(na),uu=Fc(no),oa=Fc(Ro),Ko=To?To.prototype:t,_s=Ko?Ko.valueOf:t,Da=Ko?Ko.toString:t;function $(o){if(Nn(o)&&!_r(o)&&!(o instanceof yr)){if(o instanceof ri)return o;if(zr.call(o,"__wrapped__"))return nv(o)}return new ri(o)}var Io=function(){function o(){}return function(a){if(!Ln(a))return{};if(Qs)return Qs(a);o.prototype=a;var p=new o;return o.prototype=t,p}}();function Lo(){}function ri(o,a){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=t}$.templateSettings={escape:Qt,evaluate:xt,interpolate:Et,variable:"",imports:{_:$}},$.prototype=Lo.prototype,$.prototype.constructor=$,ri.prototype=Io(Lo.prototype),ri.prototype.constructor=ri;function yr(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=_e,this.__views__=[]}function Sl(){var o=new yr(this.__wrapped__);return o.__actions__=ii(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=ii(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=ii(this.__views__),o}function Oa(){if(this.__filtered__){var o=new yr(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function Cl(){var o=this.__wrapped__.value(),a=this.__dir__,p=_r(o),E=a<0,B=p?o.length:0,Z=AS(0,B,this.__views__),ae=Z.start,de=Z.end,ye=de-ae,Ye=E?de:ae-1,Ke=this.__iteratees__,rt=Ke.length,Nt=0,Xt=In(ye,this.__takeCount__);if(!p||!E&&B==ye&&Xt==ye)return ni(o,this.__actions__);var lr=[];e:for(;ye--&&Nt<Xt;){Ye+=a;for(var Er=-1,cr=o[Ye];++Er<rt;){var jr=Ke[Er],Hr=jr.iteratee,jo=jr.type,Xi=Hr(cr);if(jo==se)cr=Xi;else if(!Xi){if(jo==ne)continue e;break e}}lr[Nt++]=cr}return lr}yr.prototype=Io(Lo.prototype),yr.prototype.constructor=yr;function io(o){var a=-1,p=o==null?0:o.length;for(this.clear();++a<p;){var E=o[a];this.set(E[0],E[1])}}function fc(){this.__data__=ia?ia(null):{},this.size=0}function fu(o){var a=this.has(o)&&delete this.__data__[o];return this.size-=a?1:0,a}function du(o){var a=this.__data__;if(ia){var p=a[o];return p===g?t:p}return zr.call(a,o)?a[o]:t}function hu(o){var a=this.__data__;return ia?a[o]!==t:zr.call(a,o)}function cf(o,a){var p=this.__data__;return this.size+=this.has(o)?0:1,p[o]=ia&&a===t?g:a,this}io.prototype.clear=fc,io.prototype.delete=fu,io.prototype.get=du,io.prototype.has=hu,io.prototype.set=cf;function oo(o){var a=-1,p=o==null?0:o.length;for(this.clear();++a<p;){var E=o[a];this.set(E[0],E[1])}}function uf(){this.__data__=[],this.size=0}function ff(o){var a=this.__data__,p=Wi(a,o);if(p<0)return!1;var E=a.length-1;return p==E?a.pop():Eo.call(a,p,1),--this.size,!0}function dc(o){var a=this.__data__,p=Wi(a,o);return p<0?t:a[p][1]}function Pa(o){return Wi(this.__data__,o)>-1}function df(o,a){var p=this.__data__,E=Wi(p,o);return E<0?(++this.size,p.push([o,a])):p[E][1]=a,this}oo.prototype.clear=uf,oo.prototype.delete=ff,oo.prototype.get=dc,oo.prototype.has=Pa,oo.prototype.set=df;function Mo(o){var a=-1,p=o==null?0:o.length;for(this.clear();++a<p;){var E=o[a];this.set(E[0],E[1])}}function hc(){this.size=0,this.__data__={hash:new io,map:new(Zo||oo),string:new io}}function wl(o){var a=ud(this,o).delete(o);return this.size-=a?1:0,a}function hf(o){return ud(this,o).get(o)}function pf(o){return ud(this,o).has(o)}function gf(o,a){var p=ud(this,o),E=p.size;return p.set(o,a),this.size+=p.size==E?0:1,this}Mo.prototype.clear=hc,Mo.prototype.delete=wl,Mo.prototype.get=hf,Mo.prototype.has=pf,Mo.prototype.set=gf;function ci(o){var a=-1,p=o==null?0:o.length;for(this.__data__=new Mo;++a<p;)this.add(o[a])}function pc(o){return this.__data__.set(o,g),this}function Al(o){return this.__data__.has(o)}ci.prototype.add=ci.prototype.push=pc,ci.prototype.has=Al;function Tr(o){var a=this.__data__=new oo(o);this.size=a.size}function Ei(){this.__data__=new oo,this.size=0}function sa(o){var a=this.__data__,p=a.delete(o);return this.size=a.size,p}function xs(o){return this.__data__.get(o)}function Nr(o){return this.__data__.has(o)}function Xo(o,a){var p=this.__data__;if(p instanceof oo){var E=p.__data__;if(!Zo||E.length<i-1)return E.push([o,a]),this.size=++p.size,this;p=this.__data__=new Mo(E)}return p.set(o,a),this.size=p.size,this}Tr.prototype.clear=Ei,Tr.prototype.delete=sa,Tr.prototype.get=xs,Tr.prototype.has=Nr,Tr.prototype.set=Xo;function Na(o,a){var p=_r(o),E=!p&&Bc(o),B=!p&&!E&&$l(o),Z=!p&&!E&&!B&&Eu(o),ae=p||E||B||Z,de=ae?Se(o.length,au):[],ye=de.length;for(var Ye in o)(a||zr.call(o,Ye))&&!(ae&&(Ye=="length"||B&&(Ye=="offset"||Ye=="parent")||Z&&(Ye=="buffer"||Ye=="byteLength"||Ye=="byteOffset")||Za(Ye,ye)))&&de.push(Ye);return de}function gi(o){var a=o.length;return a?o[ks(0,a-1)]:t}function ki(o,a){return fd(ii(o),Cs(a,0,o.length))}function so(o){return fd(ii(o))}function gc(o,a,p){(p!==t&&!Is(o[a],p)||p===t&&!(a in o))&&Ri(o,a,p)}function ui(o,a,p){var E=o[a];(!(zr.call(o,a)&&Is(E,p))||p===t&&!(a in o))&&Ri(o,a,p)}function Wi(o,a){for(var p=o.length;p--;)if(Is(o[p][0],a))return p;return-1}function Ss(o,a,p,E){return Jo(o,function(B,Z,ae){a(E,B,p(B),ae)}),E}function pu(o,a){return o&&Yi(a,mi(a),o)}function mc(o,a){return o&&Yi(a,po(a),o)}function Ri(o,a,p){a=="__proto__"&&Wo?Wo(o,a,{configurable:!0,enumerable:!0,value:p,writable:!0}):o[a]=p}function vc(o,a){for(var p=-1,E=a.length,B=Me(E),Z=o==null;++p<E;)B[p]=Z?t:Fh(o,a[p]);return B}function Cs(o,a,p){return o===o&&(p!==t&&(o=o<=p?o:p),a!==t&&(o=o>=a?o:a)),o}function fi(o,a,p,E,B,Z){var ae,de=a&T,ye=a&C,Ye=a&_;if(p&&(ae=B?p(o,E,B,Z):p(o)),ae!==t)return ae;if(!Ln(o))return o;var Ke=_r(o);if(Ke){if(ae=ES(o),!de)return ii(o,ae)}else{var rt=ji(o),Nt=rt==Te||rt==Be;if($l(o))return pa(o,de);if(rt==kt||rt==we||Nt&&!B){if(ae=ye||Nt?{}:Zm(o),!de)return ye?Au(o,mc(ae,o)):bf(o,pu(ae,o))}else{if(!Ir[rt])return B?o:{};ae=kS(o,rt,de)}}Z||(Z=new Tr);var Xt=Z.get(o);if(Xt)return Xt;Z.set(o,ae),Cv(o)?o.forEach(function(cr){ae.add(fi(cr,a,p,cr,o,Z))}):xv(o)&&o.forEach(function(cr,jr){ae.set(jr,fi(cr,a,p,jr,o,Z))});var lr=Ye?ye?wh:Ch:ye?po:mi,Er=Ke?t:lr(o);return qn(Er||o,function(cr,jr){Er&&(jr=cr,cr=o[jr]),ui(ae,jr,fi(cr,a,p,jr,o,Z))}),ae}function yc(o){var a=mi(o);return function(p){return bc(p,o,a)}}function bc(o,a,p){var E=p.length;if(o==null)return!E;for(o=Ur(o);E--;){var B=p[E],Z=a[B],ae=o[B];if(ae===t&&!(B in o)||!Z(ae))return!1}return!0}function _c(o,a,p){if(typeof o!="function")throw new Ni(u);return Sf(function(){o.apply(t,p)},a)}function ws(o,a,p,E){var B=-1,Z=xo,ae=!0,de=o.length,ye=[],Ye=a.length;if(!de)return ye;p&&(a=Yr(a,Wt(p))),E?(Z=Hn,ae=!1):a.length>=i&&(Z=sr,ae=!1,a=new ci(a));e:for(;++B<de;){var Ke=o[B],rt=p==null?Ke:p(Ke);if(Ke=E||Ke!==0?Ke:0,ae&&rt===rt){for(var Nt=Ye;Nt--;)if(a[Nt]===rt)continue e;ye.push(Ke)}else Z(a,rt,E)||ye.push(Ke)}return ye}var Jo=s(Ii),xc=s(El,!0);function gu(o,a){var p=!0;return Jo(o,function(E,B,Z){return p=!!a(E,B,Z),p}),p}function Tl(o,a,p){for(var E=-1,B=o.length;++E<B;){var Z=o[E],ae=a(Z);if(ae!=null&&(de===t?ae===ae&&!No(ae):p(ae,de)))var de=ae,ye=Z}return ye}function mf(o,a,p,E){var B=o.length;for(p=Ar(p),p<0&&(p=-p>B?0:B+p),E=E===t||E>B?B:Ar(E),E<0&&(E+=B),E=p>E?0:Av(E);p<E;)o[p++]=a;return o}function mu(o,a){var p=[];return Jo(o,function(E,B,Z){a(E,B,Z)&&p.push(E)}),p}function zn(o,a,p,E,B){var Z=-1,ae=o.length;for(p||(p=IS),B||(B=[]);++Z<ae;){var de=o[Z];a>0&&p(de)?a>1?zn(de,a-1,p,E,B):Ci(B,de):E||(B[B.length]=de)}return B}var Sc=c(),vu=c(!0);function Ii(o,a){return o&&Sc(o,a,mi)}function El(o,a){return o&&vu(o,a,mi)}function aa(o,a){return $i(a,function(p){return Ya(o[p])})}function Qo(o,a){a=Po(a,o);for(var p=0,E=a.length;o!=null&&p<E;)o=o[ga(a[p++])];return p&&p==E?o:t}function ja(o,a,p){var E=a(o);return _r(o)?E:Ci(E,p(o))}function Pn(o){return o==null?o===t?wt:ct:ko&&ko in Ur(o)?wS(o):jS(o)}function As(o,a){return o>a}function kl(o,a){return o!=null&&zr.call(o,a)}function la(o,a){return o!=null&&a in Ur(o)}function Rl(o,a,p){return o>=In(a,p)&&o<ln(a,p)}function ca(o,a,p){for(var E=p?Hn:xo,B=o[0].length,Z=o.length,ae=Z,de=Me(Z),ye=1/0,Ye=[];ae--;){var Ke=o[ae];ae&&a&&(Ke=Yr(Ke,Wt(a))),ye=In(Ke.length,ye),de[ae]=!p&&(a||B>=120&&Ke.length>=120)?new ci(ae&&Ke):t}Ke=o[0];var rt=-1,Nt=de[0];e:for(;++rt<B&&Ye.length<ye;){var Xt=Ke[rt],lr=a?a(Xt):Xt;if(Xt=p||Xt!==0?Xt:0,!(Nt?sr(Nt,lr):E(Ye,lr,p))){for(ae=Z;--ae;){var Er=de[ae];if(!(Er?sr(Er,lr):E(o[ae],lr,p)))continue e}Nt&&Nt.push(lr),Ye.push(Xt)}}return Ye}function Il(o,a,p,E){return Ii(o,function(B,Z,ae){a(E,p(B),Z,ae)}),E}function ao(o,a,p){a=Po(a,o),o=Jm(o,a);var E=o==null?o:o[ga(os(a))];return E==null?t:sn(E,o,p)}function Ll(o){return Nn(o)&&Pn(o)==we}function Ts(o){return Nn(o)&&Pn(o)==_t}function yu(o){return Nn(o)&&Pn(o)==Ze}function Fa(o,a,p,E,B){return o===a?!0:o==null||a==null||!Nn(o)&&!Nn(a)?o!==o&&a!==a:ua(o,a,p,E,Fa,B)}function ua(o,a,p,E,B,Z){var ae=_r(o),de=_r(a),ye=ae?it:ji(o),Ye=de?it:ji(a);ye=ye==we?kt:ye,Ye=Ye==we?kt:Ye;var Ke=ye==kt,rt=Ye==kt,Nt=ye==Ye;if(Nt&&$l(o)){if(!$l(a))return!1;ae=!0,Ke=!1}if(Nt&&!Ke)return Z||(Z=new Tr),ae||Eu(o)?Wm(o,a,p,E,B,Z):SS(o,a,ye,p,E,B,Z);if(!(p&S)){var Xt=Ke&&zr.call(o,"__wrapped__"),lr=rt&&zr.call(a,"__wrapped__");if(Xt||lr){var Er=Xt?o.value():o,cr=lr?a.value():a;return Z||(Z=new Tr),B(Er,cr,p,E,Z)}}return Nt?(Z||(Z=new Tr),CS(o,a,p,E,B,Z)):!1}function fa(o){return Nn(o)&&ji(o)==Re}function Cc(o,a,p,E){var B=p.length,Z=B,ae=!E;if(o==null)return!Z;for(o=Ur(o);B--;){var de=p[B];if(ae&&de[2]?de[1]!==o[de[0]]:!(de[0]in o))return!1}for(;++B<Z;){de=p[B];var ye=de[0],Ye=o[ye],Ke=de[1];if(ae&&de[2]){if(Ye===t&&!(ye in o))return!1}else{var rt=new Tr;if(E)var Nt=E(Ye,Ke,ye,o,a,rt);if(!(Nt===t?Fa(Ke,Ye,S|D,E,rt):Nt))return!1}}return!0}function bu(o){if(!Ln(o)||MS(o))return!1;var a=Ya(o)?lc:fr;return a.test(Fc(o))}function Es(o){return Nn(o)&&Pn(o)==Dt}function Ml(o){return Nn(o)&&ji(o)==Rt}function Do(o){return Nn(o)&&vd(o.length)&&!!Cr[Pn(o)]}function Dl(o){return typeof o=="function"?o:o==null?go:typeof o=="object"?_r(o)?qa(o[0],o[1]):lo(o):Nv(o)}function Oo(o){if(!xf(o))return cu(o);var a=[];for(var p in Ur(o))zr.call(o,p)&&p!="constructor"&&a.push(p);return a}function Ba(o){if(!Ln(o))return NS(o);var a=xf(o),p=[];for(var E in o)E=="constructor"&&(a||!zr.call(o,E))||p.push(E);return p}function Vi(o,a){return o<a}function Gi(o,a){var p=-1,E=ho(o)?Me(o.length):[];return Jo(o,function(B,Z,ae){E[++p]=a(B,Z,ae)}),E}function lo(o){var a=Th(o);return a.length==1&&a[0][2]?Km(a[0][0],a[0][1]):function(p){return p===o||Cc(p,o,a)}}function qa(o,a){return kh(o)&&Ym(a)?Km(ga(o),a):function(p){var E=Fh(p,o);return E===t&&E===a?Bh(p,o):Fa(a,E,S|D)}}function es(o,a,p,E,B){o!==a&&Sc(a,function(Z,ae){if(B||(B=new Tr),Ln(Z))Zi(o,a,ae,p,es,E,B);else{var de=E?E(Ih(o,ae),Z,ae+"",o,a,B):t;de===t&&(de=Z),gc(o,ae,de)}},po)}function Zi(o,a,p,E,B,Z,ae){var de=Ih(o,p),ye=Ih(a,p),Ye=ae.get(ye);if(Ye){gc(o,p,Ye);return}var Ke=Z?Z(de,ye,p+"",o,a,ae):t,rt=Ke===t;if(rt){var Nt=_r(ye),Xt=!Nt&&$l(ye),lr=!Nt&&!Xt&&Eu(ye);Ke=ye,Nt||Xt||lr?_r(de)?Ke=de:Un(de)?Ke=ii(de):Xt?(rt=!1,Ke=pa(ye,!0)):lr?(rt=!1,Ke=Pc(ye,!0)):Ke=[]:Cf(ye)||Bc(ye)?(Ke=de,Bc(de)?Ke=Tv(de):(!Ln(de)||Ya(de))&&(Ke=Zm(ye))):rt=!1}rt&&(ae.set(ye,Ke),B(Ke,ye,E,Z,ae),ae.delete(ye)),gc(o,p,Ke)}function da(o,a){var p=o.length;if(p)return a+=a<0?p:0,Za(a,p)?o[a]:t}function Ol(o,a,p){a.length?a=Yr(a,function(Z){return _r(Z)?function(ae){return Qo(ae,Z.length===1?Z[0]:Z)}:Z}):a=[go];var E=-1;a=Yr(a,Wt(ar()));var B=Gi(o,function(Z,ae,de){var ye=Yr(a,function(Ye){return Ye(Z)});return{criteria:ye,index:++E,value:Z}});return te(B,function(Z,ae){return Cu(Z,ae,p)})}function Ha(o,a){return ha(o,a,function(p,E){return Bh(o,E)})}function ha(o,a,p){for(var E=-1,B=a.length,Z={};++E<B;){var ae=a[E],de=Qo(o,ae);p(de,ae)&&Rs(Z,Po(ae,o),de)}return Z}function _u(o){return function(a){return Qo(a,o)}}function wc(o,a,p,E){var B=E?hl:So,Z=-1,ae=a.length,de=o;for(o===a&&(a=ii(a)),p&&(de=Yr(o,Wt(p)));++Z<ae;)for(var ye=0,Ye=a[Z],Ke=p?p(Ye):Ye;(ye=B(de,Ke,ye,E))>-1;)de!==o&&Eo.call(de,ye,1),Eo.call(o,ye,1);return o}function Ac(o,a){for(var p=o?a.length:0,E=p-1;p--;){var B=a[p];if(p==E||B!==Z){var Z=B;Za(B)?Eo.call(o,B,1):Ic(o,B)}}return o}function ks(o,a){return o+ys(Go()*(a-o+1))}function Tc(o,a,p,E){for(var B=-1,Z=ln(ea((a-o)/(p||1)),0),ae=Me(Z);Z--;)ae[E?Z:++B]=o,o+=p;return ae}function Pl(o,a){var p="";if(!o||a<1||a>le)return p;do a%2&&(p+=o),a=ys(a/2),a&&(o+=o);while(a);return p}function mr(o,a){return Lh(Xm(o,a,go),o+"")}function za(o){return gi(ku(o))}function Ec(o,a){var p=ku(o);return fd(p,Cs(a,0,p.length))}function Rs(o,a,p,E){if(!Ln(o))return o;a=Po(a,o);for(var B=-1,Z=a.length,ae=Z-1,de=o;de!=null&&++B<Z;){var ye=ga(a[B]),Ye=p;if(ye==="__proto__"||ye==="constructor"||ye==="prototype")return o;if(B!=ae){var Ke=de[ye];Ye=E?E(Ke,ye,de):t,Ye===t&&(Ye=Ln(Ke)?Ke:Za(a[B+1])?[]:{})}ui(de,ye,Ye),de=de[ye]}return o}var kc=Ma?function(o,a){return Ma.set(o,a),o}:go,xu=Wo?function(o,a){return Wo(o,"toString",{configurable:!0,enumerable:!1,value:Hh(a),writable:!0})}:go;function Rc(o){return fd(ku(o))}function Li(o,a,p){var E=-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=Me(B);++E<B;)Z[E]=o[E+a];return Z}function vf(o,a){var p;return Jo(o,function(E,B,Z){return p=a(E,B,Z),!p}),!!p}function Nl(o,a,p){var E=0,B=o==null?E:o.length;if(typeof a=="number"&&a===a&&B<=Fe){for(;E<B;){var Z=E+B>>>1,ae=o[Z];ae!==null&&!No(ae)&&(p?ae<=a:ae<a)?E=Z+1:B=Z}return B}return jl(o,a,go,p)}function jl(o,a,p,E){var B=0,Z=o==null?0:o.length;if(Z===0)return 0;a=p(a);for(var ae=a!==a,de=a===null,ye=No(a),Ye=a===t;B<Z;){var Ke=ys((B+Z)/2),rt=p(o[Ke]),Nt=rt!==t,Xt=rt===null,lr=rt===rt,Er=No(rt);if(ae)var cr=E||lr;else Ye?cr=lr&&(E||Nt):de?cr=lr&&Nt&&(E||!Xt):ye?cr=lr&&Nt&&!Xt&&(E||!Er):Xt||Er?cr=!1:cr=E?rt<=a:rt<a;cr?B=Ke+1:Z=Ke}return In(Z,De)}function Su(o,a){for(var p=-1,E=o.length,B=0,Z=[];++p<E;){var ae=o[p],de=a?a(ae):ae;if(!p||!Is(de,ye)){var ye=de;Z[B++]=ae===0?0:ae}}return Z}function Fl(o){return typeof o=="number"?o:No(o)?pe:+o}function Mi(o){if(typeof o=="string")return o;if(_r(o))return Yr(o,Mi)+"";if(No(o))return Da?Da.call(o):"";var a=o+"";return a=="0"&&1/o==-1/0?"-0":a}function An(o,a,p){var E=-1,B=xo,Z=o.length,ae=!0,de=[],ye=de;if(p)ae=!1,B=Hn;else if(Z>=i){var Ye=a?null:_f(o);if(Ye)return Ea(Ye);ae=!1,B=sr,ye=new ci}else ye=a?[]:de;e:for(;++E<Z;){var Ke=o[E],rt=a?a(Ke):Ke;if(Ke=p||Ke!==0?Ke:0,ae&&rt===rt){for(var Nt=ye.length;Nt--;)if(ye[Nt]===rt)continue e;a&&ye.push(rt),de.push(Ke)}else B(ye,rt,p)||(ye!==de&&ye.push(rt),de.push(Ke))}return de}function Ic(o,a){return a=Po(a,o),o=Jm(o,a),o==null||delete o[ga(os(a))]}function $a(o,a,p,E){return Rs(o,a,p(Qo(o,a)),E)}function Bl(o,a,p,E){for(var B=o.length,Z=E?B:-1;(E?Z--:++Z<B)&&a(o[Z],Z,o););return p?Li(o,E?0:Z,E?Z+1:B):Li(o,E?Z+1:0,E?B:Z)}function ni(o,a){var p=o;return p instanceof yr&&(p=p.value()),Aa(a,function(E,B){return B.func.apply(B.thisArg,Ci([E],B.args))},p)}function Lc(o,a,p){var E=o.length;if(E<2)return E?An(o[0]):[];for(var B=-1,Z=Me(E);++B<E;)for(var ae=o[B],de=-1;++de<E;)de!=B&&(Z[B]=ws(Z[B]||ae,o[de],a,p));return An(zn(Z,1),a,p)}function Mc(o,a,p){for(var E=-1,B=o.length,Z=a.length,ae={};++E<B;){var de=E<Z?a[E]:t;p(ae,o[E],de)}return ae}function ql(o){return Un(o)?o:[]}function ts(o){return typeof o=="function"?o:go}function Po(o,a){return _r(o)?o:kh(o,a)?[o]:rv(tn(o))}var yf=mr;function co(o,a,p){var E=o.length;return p=p===t?E:p,!a&&p>=E?o:Li(o,a,p)}var rs=af||function(o){return dr.clearTimeout(o)};function pa(o,a){if(a)return o.slice();var p=o.length,E=Ra?Ra(p):new o.constructor(p);return o.copy(E),E}function Dc(o){var a=new o.constructor(o.byteLength);return new ka(a).set(new ka(o)),a}function Oc(o,a){var p=a?Dc(o.buffer):o.buffer;return new o.constructor(p,o.byteOffset,o.byteLength)}function Ua(o){var a=new o.constructor(o.source,jt.exec(o));return a.lastIndex=o.lastIndex,a}function Hl(o){return _s?Ur(_s.call(o)):{}}function Pc(o,a){var p=a?Dc(o.buffer):o.buffer;return new o.constructor(p,o.byteOffset,o.length)}function Wa(o,a){if(o!==a){var p=o!==t,E=o===null,B=o===o,Z=No(o),ae=a!==t,de=a===null,ye=a===a,Ye=No(a);if(!de&&!Ye&&!Z&&o>a||Z&&ae&&ye&&!de&&!Ye||E&&ae&&ye||!p&&ye||!B)return 1;if(!E&&!Z&&!Ye&&o<a||Ye&&p&&B&&!E&&!Z||de&&p&&B||!ae&&B||!ye)return-1}return 0}function Cu(o,a,p){for(var E=-1,B=o.criteria,Z=a.criteria,ae=B.length,de=p.length;++E<ae;){var ye=Wa(B[E],Z[E]);if(ye){if(E>=de)return ye;var Ye=p[E];return ye*(Ye=="desc"?-1:1)}}return o.index-a.index}function wu(o,a,p,E){for(var B=-1,Z=o.length,ae=p.length,de=-1,ye=a.length,Ye=ln(Z-ae,0),Ke=Me(ye+Ye),rt=!E;++de<ye;)Ke[de]=a[de];for(;++B<ae;)(rt||B<Z)&&(Ke[p[B]]=o[B]);for(;Ye--;)Ke[de++]=o[B++];return Ke}function Nc(o,a,p,E){for(var B=-1,Z=o.length,ae=-1,de=p.length,ye=-1,Ye=a.length,Ke=ln(Z-de,0),rt=Me(Ke+Ye),Nt=!E;++B<Ke;)rt[B]=o[B];for(var Xt=B;++ye<Ye;)rt[Xt+ye]=a[ye];for(;++ae<de;)(Nt||B<Z)&&(rt[Xt+p[ae]]=o[B++]);return rt}function ii(o,a){var p=-1,E=o.length;for(a||(a=Me(E));++p<E;)a[p]=o[p];return a}function Yi(o,a,p,E){var B=!p;p||(p={});for(var Z=-1,ae=a.length;++Z<ae;){var de=a[Z],ye=E?E(p[de],o[de],de,p,o):t;ye===t&&(ye=o[de]),B?Ri(p,de,ye):ui(p,de,ye)}return p}function bf(o,a){return Yi(o,Eh(o),a)}function Au(o,a){return Yi(o,Vm(o),a)}function zl(o,a){return function(p,E){var B=_r(p)?hs:Ss,Z=a?a():{};return B(p,o,ar(E,2),Z)}}function f(o){return mr(function(a,p){var E=-1,B=p.length,Z=B>1?p[B-1]:t,ae=B>2?p[2]:t;for(Z=o.length>3&&typeof Z=="function"?(B--,Z):t,ae&&Ki(p[0],p[1],ae)&&(Z=B<3?t:Z,B=1),a=Ur(a);++E<B;){var de=p[E];de&&o(a,de,E,Z)}return a})}function s(o,a){return function(p,E){if(p==null)return p;if(!ho(p))return o(p,E);for(var B=p.length,Z=a?B:-1,ae=Ur(p);(a?Z--:++Z<B)&&E(ae[Z],Z,ae)!==!1;);return p}}function c(o){return function(a,p,E){for(var B=-1,Z=Ur(a),ae=E(a),de=ae.length;de--;){var ye=ae[o?de:++B];if(p(Z[ye],ye,Z)===!1)break}return a}}function d(o,a,p){var E=a&A,B=F(o);function Z(){var ae=this&&this!==dr&&this instanceof Z?B:o;return ae.apply(E?p:this,arguments)}return Z}function y(o){return function(a){a=tn(a);var p=Ys(a)?un(a):t,E=p?p[0]:a.charAt(0),B=p?co(p,1).join(""):a.slice(1);return E[o]()+B}}function L(o){return function(a){return Aa(Ov(Dv(a).replace(eo,"")),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=Io(o.prototype),E=o.apply(p,a);return Ln(E)?E:p}}function U(o,a,p){var E=F(o);function B(){for(var Z=arguments.length,ae=Me(Z),de=Z,ye=Tu(B);de--;)ae[de]=arguments[de];var Ye=Z<3&&ae[0]!==ye&&ae[Z-1]!==ye?[]:Co(ae,ye);if(Z-=Ye.length,Z<p)return fo(o,a,Ge,B.placeholder,t,ae,Ye,t,t,p-Z);var Ke=this&&this!==dr&&this instanceof B?E:o;return sn(Ke,this,ae)}return B}function oe(o){return function(a,p,E){var B=Ur(a);if(!ho(a)){var Z=ar(p,3);a=mi(a),p=function(de){return Z(B[de],de,B)}}var ae=o(a,p,E);return ae>-1?B[Z?a[ae]:ae]:t}}function xe(o){return Ga(function(a){var p=a.length,E=p,B=ri.prototype.thru;for(o&&a.reverse();E--;){var Z=a[E];if(typeof Z!="function")throw new Ni(u);if(B&&!ae&&cd(Z)=="wrapper")var ae=new ri([],!0)}for(E=ae?E:p;++E<p;){Z=a[E];var de=cd(Z),ye=de=="wrapper"?Ah(Z):t;ye&&Rh(ye[0])&&ye[1]==(Y|O|q|he)&&!ye[4].length&&ye[9]==1?ae=ae[cd(ye[0])].apply(ae,ye[3]):ae=Z.length==1&&Rh(Z)?ae[de]():ae.thru(Z)}return function(){var Ye=arguments,Ke=Ye[0];if(ae&&Ye.length==1&&_r(Ke))return ae.plant(Ke).value();for(var rt=0,Nt=p?a[rt].apply(this,Ye):Ke;++rt<p;)Nt=a[rt].call(this,Nt);return Nt}})}function Ge(o,a,p,E,B,Z,ae,de,ye,Ye){var Ke=a&Y,rt=a&A,Nt=a&b,Xt=a&(O|H),lr=a&J,Er=Nt?t:F(o);function cr(){for(var jr=arguments.length,Hr=Me(jr),jo=jr;jo--;)Hr[jo]=arguments[jo];if(Xt)var Xi=Tu(cr),Fo=wi(Hr,Xi);if(E&&(Hr=wu(Hr,E,B,Xt)),Z&&(Hr=Nc(Hr,Z,ae,Xt)),jr-=Fo,Xt&&jr<Ye){var Wn=Co(Hr,Xi);return fo(o,a,Ge,cr.placeholder,p,Hr,Wn,de,ye,Ye-jr)}var Ls=rt?p:this,Xa=Nt?Ls[o]:o;return jr=Hr.length,de?Hr=FS(Hr,de):lr&&jr>1&&Hr.reverse(),Ke&&ye<jr&&(Hr.length=ye),this&&this!==dr&&this instanceof cr&&(Xa=Er||F(Xa)),Xa.apply(Ls,Hr)}return cr}function tt(o,a){return function(p,E){return Il(p,o,a(E),{})}}function Ct(o,a){return function(p,E){var B;if(p===t&&E===t)return a;if(p!==t&&(B=p),E!==t){if(B===t)return E;typeof p=="string"||typeof E=="string"?(p=Mi(p),E=Mi(E)):(p=Fl(p),E=Fl(E)),B=o(p,E)}return B}}function nr(o){return Ga(function(a){return a=Yr(a,Wt(ar())),mr(function(p){var E=this;return o(a,function(B){return sn(B,E,p)})})})}function Lr(o,a){a=a===t?" ":Mi(a);var p=a.length;if(p<2)return p?Pl(a,o):a;var E=Pl(a,ea(o/Ks(a)));return Ys(a)?co(un(E),0,o).join(""):E.slice(0,o)}function $n(o,a,p,E){var B=a&A,Z=F(o);function ae(){for(var de=-1,ye=arguments.length,Ye=-1,Ke=E.length,rt=Me(Ke+ye),Nt=this&&this!==dr&&this instanceof ae?Z:o;++Ye<Ke;)rt[Ye]=E[Ye];for(;ye--;)rt[Ye++]=arguments[++de];return sn(Nt,B?p:this,rt)}return ae}function ns(o){return function(a,p,E){return E&&typeof E!="number"&&Ki(a,p,E)&&(p=E=t),a=Ka(a),p===t?(p=a,a=0):p=Ka(p),E=E===t?a<p?1:-1:Ka(E),Tc(a,p,E,o)}}function uo(o){return function(a,p){return typeof a=="string"&&typeof p=="string"||(a=ss(a),p=ss(p)),o(a,p)}}function fo(o,a,p,E,B,Z,ae,de,ye,Ye){var Ke=a&O,rt=Ke?ae:t,Nt=Ke?t:ae,Xt=Ke?Z:t,lr=Ke?t:Z;a|=Ke?q:G,a&=~(Ke?G:q),a&k||(a&=-4);var Er=[o,a,B,Xt,rt,lr,Nt,de,ye,Ye],cr=p.apply(t,Er);return Rh(o)&&Qm(cr,Er),cr.placeholder=E,ev(cr,o,a)}function is(o){var a=bn[o];return function(p,E){if(p=ss(p),E=E==null?0:In(Ar(E),292),E&&ra(p)){var B=(tn(p)+"e").split("e"),Z=a(B[0]+"e"+(+B[1]+E));return B=(tn(Z)+"e").split("e"),+(B[0]+"e"+(+B[1]-E))}return a(p)}}var _f=no&&1/Ea(new no([,-0]))[1]==ve?function(o){return new no(o)}:Uh;function ld(o){return function(a){var p=ji(a);return p==Re?ic(a):p==Rt?rf(a):Ve(a,o(a))}}function Va(o,a,p,E,B,Z,ae,de){var ye=a&b;if(!ye&&typeof o!="function")throw new Ni(u);var Ye=E?E.length:0;if(Ye||(a&=-97,E=B=t),ae=ae===t?ae:ln(Ar(ae),0),de=de===t?de:Ar(de),Ye-=B?B.length:0,a&G){var Ke=E,rt=B;E=B=t}var Nt=ye?t:Ah(o),Xt=[o,a,p,E,B,Ke,rt,Z,ae,de];if(Nt&&PS(Xt,Nt),o=Xt[0],a=Xt[1],p=Xt[2],E=Xt[3],B=Xt[4],de=Xt[9]=Xt[9]===t?ye?0:o.length:ln(Xt[9]-Ye,0),!de&&a&(O|H)&&(a&=-25),!a||a==A)var lr=d(o,a,p);else a==O||a==H?lr=U(o,a,de):(a==q||a==(A|q))&&!B.length?lr=$n(o,a,p,E):lr=Ge.apply(t,Xt);var Er=Nt?kc:Qm;return ev(Er(lr,Xt),o,a)}function $m(o,a,p,E){return o===t||Is(o,$o[p])&&!zr.call(E,p)?a:o}function Um(o,a,p,E,B,Z){return Ln(o)&&Ln(a)&&(Z.set(a,o),es(o,a,t,Um,Z),Z.delete(a)),o}function xS(o){return Cf(o)?t:o}function Wm(o,a,p,E,B,Z){var ae=p&S,de=o.length,ye=a.length;if(de!=ye&&!(ae&&ye>de))return!1;var Ye=Z.get(o),Ke=Z.get(a);if(Ye&&Ke)return Ye==a&&Ke==o;var rt=-1,Nt=!0,Xt=p&D?new ci:t;for(Z.set(o,a),Z.set(a,o);++rt<de;){var lr=o[rt],Er=a[rt];if(E)var cr=ae?E(Er,lr,rt,a,o,Z):E(lr,Er,rt,o,a,Z);if(cr!==t){if(cr)continue;Nt=!1;break}if(Xt){if(!zo(a,function(jr,Hr){if(!sr(Xt,Hr)&&(lr===jr||B(lr,jr,p,E,Z)))return Xt.push(Hr)})){Nt=!1;break}}else if(!(lr===Er||B(lr,Er,p,E,Z))){Nt=!1;break}}return Z.delete(o),Z.delete(a),Nt}function SS(o,a,p,E,B,Z,ae){switch(p){case Ot:if(o.byteLength!=a.byteLength||o.byteOffset!=a.byteOffset)return!1;o=o.buffer,a=a.buffer;case _t:return!(o.byteLength!=a.byteLength||!Z(new ka(o),new ka(a)));case Je:case Ze:case Qe:return Is(+o,+a);case ke:return o.name==a.name&&o.message==a.message;case Dt:case ut:return o==a+"";case Re:var de=ic;case Rt:var ye=E&S;if(de||(de=Ea),o.size!=a.size&&!ye)return!1;var Ye=ae.get(o);if(Ye)return Ye==a;E|=D,ae.set(o,a);var Ke=Wm(de(o),de(a),E,B,Z,ae);return ae.delete(o),Ke;case ot:if(_s)return _s.call(o)==_s.call(a)}return!1}function CS(o,a,p,E,B,Z){var ae=p&S,de=Ch(o),ye=de.length,Ye=Ch(a),Ke=Ye.length;if(ye!=Ke&&!ae)return!1;for(var rt=ye;rt--;){var Nt=de[rt];if(!(ae?Nt in a:zr.call(a,Nt)))return!1}var Xt=Z.get(o),lr=Z.get(a);if(Xt&&lr)return Xt==a&&lr==o;var Er=!0;Z.set(o,a),Z.set(a,o);for(var cr=ae;++rt<ye;){Nt=de[rt];var jr=o[Nt],Hr=a[Nt];if(E)var jo=ae?E(Hr,jr,Nt,a,o,Z):E(jr,Hr,Nt,o,a,Z);if(!(jo===t?jr===Hr||B(jr,Hr,p,E,Z):jo)){Er=!1;break}cr||(cr=Nt=="constructor")}if(Er&&!cr){var Xi=o.constructor,Fo=a.constructor;Xi!=Fo&&"constructor"in o&&"constructor"in a&&!(typeof Xi=="function"&&Xi instanceof Xi&&typeof Fo=="function"&&Fo instanceof Fo)&&(Er=!1)}return Z.delete(o),Z.delete(a),Er}function Ga(o){return Lh(Xm(o,t,sv),o+"")}function Ch(o){return ja(o,mi,Eh)}function wh(o){return ja(o,po,Vm)}var Ah=Ma?function(o){return Ma.get(o)}:Uh;function cd(o){for(var a=o.name+"",p=bs[a],E=zr.call(bs,a)?p.length:0;E--;){var B=p[E],Z=B.func;if(Z==null||Z==o)return B.name}return a}function Tu(o){var a=zr.call($,"placeholder")?$:o;return a.placeholder}function ar(){var o=$.iteratee||zh;return o=o===zh?Dl:o,arguments.length?o(arguments[0],arguments[1]):o}function ud(o,a){var p=o.__data__;return LS(a)?p[typeof a=="string"?"string":"hash"]:p.map}function Th(o){for(var a=mi(o),p=a.length;p--;){var E=a[p],B=o[E];a[p]=[E,B,Ym(B)]}return a}function jc(o,a){var p=ms(o,a);return bu(p)?p:t}function wS(o){var a=zr.call(o,ko),p=o[ko];try{o[ko]=t;var E=!0}catch{}var B=Ao.call(o);return E&&(a?o[ko]=p:delete o[ko]),B}var Eh=ta?function(o){return o==null?[]:(o=Ur(o),$i(ta(o),function(a){return yl.call(o,a)}))}:Wh,Vm=ta?function(o){for(var a=[];o;)Ci(a,Eh(o)),o=vs(o);return a}:Wh,ji=Pn;(ro&&ji(new ro(new ArrayBuffer(1)))!=Ot||Zo&&ji(new Zo)!=Re||na&&ji(na.resolve())!=At||no&&ji(new no)!=Rt||Ro&&ji(new Ro)!=Ie)&&(ji=function(o){var a=Pn(o),p=a==kt?o.constructor:t,E=p?Fc(p):"";if(E)switch(E){case Yo:return Ot;case uc:return Re;case lf:return At;case uu:return Rt;case oa:return Ie}return a});function AS(o,a,p){for(var E=-1,B=p.length;++E<B;){var Z=p[E],ae=Z.size;switch(Z.type){case"drop":o+=ae;break;case"dropRight":a-=ae;break;case"take":a=In(a,o+ae);break;case"takeRight":o=ln(o,a-ae);break}}return{start:o,end:a}}function TS(o){var a=o.match(K);return a?a[1].split(Ne):[]}function Gm(o,a,p){a=Po(a,o);for(var E=-1,B=a.length,Z=!1;++E<B;){var ae=ga(a[E]);if(!(Z=o!=null&&p(o,ae)))break;o=o[ae]}return Z||++E!=B?Z:(B=o==null?0:o.length,!!B&&vd(B)&&Za(ae,B)&&(_r(o)||Bc(o)))}function ES(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 Zm(o){return typeof o.constructor=="function"&&!xf(o)?Io(vs(o)):{}}function kS(o,a,p){var E=o.constructor;switch(a){case _t:return Dc(o);case Je:case Ze:return new E(+o);case Ot:return Oc(o,p);case $t:case Ue:case Tt:case zt:case br:case Or:case It:case ie:case X:return Pc(o,p);case Re:return new E;case Qe:case ut:return new E(o);case Dt:return Ua(o);case Rt:return new E;case ot:return Hl(o)}}function RS(o,a){var p=a.length;if(!p)return o;var E=p-1;return a[E]=(p>1?"& ":"")+a[E],a=a.join(p>2?", ":" "),o.replace(yt,`{
|
33
|
-
/* [wrapped with `+a+`] */
|
34
|
-
`)}function IS(o){return _r(o)||Bc(o)||!!(bl&&o&&o[bl])}function Za(o,a){var p=typeof o;return a=a??le,!!a&&(p=="number"||p!="symbol"&&$r.test(o))&&o>-1&&o%1==0&&o<a}function Ki(o,a,p){if(!Ln(p))return!1;var E=typeof a;return(E=="number"?ho(p)&&Za(a,p.length):E=="string"&&a in p)?Is(p[a],o):!1}function kh(o,a){if(_r(o))return!1;var p=typeof o;return p=="number"||p=="symbol"||p=="boolean"||o==null||No(o)?!0:Ft.test(o)||!gt.test(o)||a!=null&&o in Ur(a)}function LS(o){var a=typeof o;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?o!=="__proto__":o===null}function Rh(o){var a=cd(o),p=$[a];if(typeof p!="function"||!(a in yr.prototype))return!1;if(o===p)return!0;var E=Ah(p);return!!E&&o===E[0]}function MS(o){return!!an&&an in o}var DS=en?Ya:Vh;function xf(o){var a=o&&o.constructor,p=typeof a=="function"&&a.prototype||$o;return o===p}function Ym(o){return o===o&&!Ln(o)}function Km(o,a){return function(p){return p==null?!1:p[o]===a&&(a!==t||o in Ur(p))}}function OS(o){var a=gd(o,function(E){return p.size===m&&p.clear(),E}),p=a.cache;return a}function PS(o,a){var p=o[1],E=a[1],B=p|E,Z=B<(A|b|Y),ae=E==Y&&p==O||E==Y&&p==he&&o[7].length<=a[8]||E==(Y|he)&&a[7].length<=a[8]&&p==O;if(!(Z||ae))return o;E&A&&(o[2]=a[2],B|=p&A?0:k);var de=a[3];if(de){var ye=o[3];o[3]=ye?wu(ye,de,a[4]):de,o[4]=ye?Co(o[3],M):a[4]}return de=a[5],de&&(ye=o[5],o[5]=ye?Nc(ye,de,a[6]):de,o[6]=ye?Co(o[5],M):a[6]),de=a[7],de&&(o[7]=de),E&Y&&(o[8]=o[8]==null?a[8]:In(o[8],a[8])),o[9]==null&&(o[9]=a[9]),o[0]=a[0],o[1]=B,o}function NS(o){var a=[];if(o!=null)for(var p in Ur(o))a.push(p);return a}function jS(o){return Ao.call(o)}function Xm(o,a,p){return a=ln(a===t?o.length-1:a,0),function(){for(var E=arguments,B=-1,Z=ln(E.length-a,0),ae=Me(Z);++B<Z;)ae[B]=E[a+B];B=-1;for(var de=Me(a+1);++B<a;)de[B]=E[B];return de[a]=p(ae),sn(o,this,de)}}function Jm(o,a){return a.length<2?o:Qo(o,Li(a,0,-1))}function FS(o,a){for(var p=o.length,E=In(a.length,p),B=ii(o);E--;){var Z=a[E];o[E]=Za(Z,p)?B[Z]:t}return o}function Ih(o,a){if(!(a==="constructor"&&typeof o[a]=="function")&&a!="__proto__")return o[a]}var Qm=tv(kc),Sf=lu||function(o,a){return dr.setTimeout(o,a)},Lh=tv(xu);function ev(o,a,p){var E=a+"";return Lh(o,RS(E,BS(TS(E),p)))}function tv(o){var a=0,p=0;return function(){var E=Vo(),B=Q-(E-p);if(p=E,B>0){if(++a>=re)return arguments[0]}else a=0;return o.apply(t,arguments)}}function fd(o,a){var p=-1,E=o.length,B=E-1;for(a=a===t?E:a;++p<a;){var Z=ks(p,B),ae=o[Z];o[Z]=o[p],o[p]=ae}return o.length=a,o}var rv=OS(function(o){var a=[];return o.charCodeAt(0)===46&&a.push(""),o.replace(ur,function(p,E,B,Z){a.push(B?Z.replace(or,"$1"):E||p)}),a});function ga(o){if(typeof o=="string"||No(o))return o;var a=o+"";return a=="0"&&1/o==-1/0?"-0":a}function Fc(o){if(o!=null){try{return Uo.call(o)}catch{}try{return o+""}catch{}}return""}function BS(o,a){return qn(Xe,function(p){var E="_."+p[0];a&p[1]&&!xo(o,E)&&o.push(E)}),o.sort()}function nv(o){if(o instanceof yr)return o.clone();var a=new ri(o.__wrapped__,o.__chain__);return a.__actions__=ii(o.__actions__),a.__index__=o.__index__,a.__values__=o.__values__,a}function qS(o,a,p){(p?Ki(o,a,p):a===t)?a=1:a=ln(Ar(a),0);var E=o==null?0:o.length;if(!E||a<1)return[];for(var B=0,Z=0,ae=Me(ea(E/a));B<E;)ae[Z++]=Li(o,B,B+=a);return ae}function HS(o){for(var a=-1,p=o==null?0:o.length,E=0,B=[];++a<p;){var Z=o[a];Z&&(B[E++]=Z)}return B}function zS(){var o=arguments.length;if(!o)return[];for(var a=Me(o-1),p=arguments[0],E=o;E--;)a[E-1]=arguments[E];return Ci(_r(p)?ii(p):[p],zn(a,1))}var $S=mr(function(o,a){return Un(o)?ws(o,zn(a,1,Un,!0)):[]}),US=mr(function(o,a){var p=os(a);return Un(p)&&(p=t),Un(o)?ws(o,zn(a,1,Un,!0),ar(p,2)):[]}),WS=mr(function(o,a){var p=os(a);return Un(p)&&(p=t),Un(o)?ws(o,zn(a,1,Un,!0),t,p):[]});function VS(o,a,p){var E=o==null?0:o.length;return E?(a=p||a===t?1:Ar(a),Li(o,a<0?0:a,E)):[]}function GS(o,a,p){var E=o==null?0:o.length;return E?(a=p||a===t?1:Ar(a),a=E-a,Li(o,0,a<0?0:a)):[]}function ZS(o,a){return o&&o.length?Bl(o,ar(a,3),!0,!0):[]}function YS(o,a){return o&&o.length?Bl(o,ar(a,3),!0):[]}function KS(o,a,p,E){var B=o==null?0:o.length;return B?(p&&typeof p!="number"&&Ki(o,a,p)&&(p=0,E=B),mf(o,a,p,E)):[]}function iv(o,a,p){var E=o==null?0:o.length;if(!E)return-1;var B=p==null?0:Ar(p);return B<0&&(B=ln(E+B,0)),gs(o,ar(a,3),B)}function ov(o,a,p){var E=o==null?0:o.length;if(!E)return-1;var B=E-1;return p!==t&&(B=Ar(p),B=p<0?ln(E+B,0):In(B,E-1)),gs(o,ar(a,3),B,!0)}function sv(o){var a=o==null?0:o.length;return a?zn(o,1):[]}function XS(o){var a=o==null?0:o.length;return a?zn(o,ve):[]}function JS(o,a){var p=o==null?0:o.length;return p?(a=a===t?1:Ar(a),zn(o,a)):[]}function QS(o){for(var a=-1,p=o==null?0:o.length,E={};++a<p;){var B=o[a];E[B[0]]=B[1]}return E}function av(o){return o&&o.length?o[0]:t}function eC(o,a,p){var E=o==null?0:o.length;if(!E)return-1;var B=p==null?0:Ar(p);return B<0&&(B=ln(E+B,0)),So(o,a,B)}function tC(o){var a=o==null?0:o.length;return a?Li(o,0,-1):[]}var rC=mr(function(o){var a=Yr(o,ql);return a.length&&a[0]===o[0]?ca(a):[]}),nC=mr(function(o){var a=os(o),p=Yr(o,ql);return a===os(p)?a=t:p.pop(),p.length&&p[0]===o[0]?ca(p,ar(a,2)):[]}),iC=mr(function(o){var a=os(o),p=Yr(o,ql);return a=typeof a=="function"?a:t,a&&p.pop(),p.length&&p[0]===o[0]?ca(p,t,a):[]});function oC(o,a){return o==null?"":La.call(o,a)}function os(o){var a=o==null?0:o.length;return a?o[a-1]:t}function sC(o,a,p){var E=o==null?0:o.length;if(!E)return-1;var B=E;return p!==t&&(B=Ar(p),B=B<0?ln(E+B,0):In(B,E-1)),a===a?of(o,a,B):gs(o,Gs,B,!0)}function aC(o,a){return o&&o.length?da(o,Ar(a)):t}var lC=mr(lv);function lv(o,a){return o&&o.length&&a&&a.length?wc(o,a):o}function cC(o,a,p){return o&&o.length&&a&&a.length?wc(o,a,ar(p,2)):o}function uC(o,a,p){return o&&o.length&&a&&a.length?wc(o,a,t,p):o}var fC=Ga(function(o,a){var p=o==null?0:o.length,E=vc(o,a);return Ac(o,Yr(a,function(B){return Za(B,p)?+B:B}).sort(Wa)),E});function dC(o,a){var p=[];if(!(o&&o.length))return p;var E=-1,B=[],Z=o.length;for(a=ar(a,3);++E<Z;){var ae=o[E];a(ae,E,o)&&(p.push(ae),B.push(E))}return Ac(o,B),p}function Mh(o){return o==null?o:xl.call(o)}function hC(o,a,p){var E=o==null?0:o.length;return E?(p&&typeof p!="number"&&Ki(o,a,p)?(a=0,p=E):(a=a==null?0:Ar(a),p=p===t?E:Ar(p)),Li(o,a,p)):[]}function pC(o,a){return Nl(o,a)}function gC(o,a,p){return jl(o,a,ar(p,2))}function mC(o,a){var p=o==null?0:o.length;if(p){var E=Nl(o,a);if(E<p&&Is(o[E],a))return E}return-1}function vC(o,a){return Nl(o,a,!0)}function yC(o,a,p){return jl(o,a,ar(p,2),!0)}function bC(o,a){var p=o==null?0:o.length;if(p){var E=Nl(o,a,!0)-1;if(Is(o[E],a))return E}return-1}function _C(o){return o&&o.length?Su(o):[]}function xC(o,a){return o&&o.length?Su(o,ar(a,2)):[]}function SC(o){var a=o==null?0:o.length;return a?Li(o,1,a):[]}function CC(o,a,p){return o&&o.length?(a=p||a===t?1:Ar(a),Li(o,0,a<0?0:a)):[]}function wC(o,a,p){var E=o==null?0:o.length;return E?(a=p||a===t?1:Ar(a),a=E-a,Li(o,a<0?0:a,E)):[]}function AC(o,a){return o&&o.length?Bl(o,ar(a,3),!1,!0):[]}function TC(o,a){return o&&o.length?Bl(o,ar(a,3)):[]}var EC=mr(function(o){return An(zn(o,1,Un,!0))}),kC=mr(function(o){var a=os(o);return Un(a)&&(a=t),An(zn(o,1,Un,!0),ar(a,2))}),RC=mr(function(o){var a=os(o);return a=typeof a=="function"?a:t,An(zn(o,1,Un,!0),t,a)});function IC(o){return o&&o.length?An(o):[]}function LC(o,a){return o&&o.length?An(o,ar(a,2)):[]}function MC(o,a){return a=typeof a=="function"?a:t,o&&o.length?An(o,t,a):[]}function Dh(o){if(!(o&&o.length))return[];var a=0;return o=$i(o,function(p){if(Un(p))return a=ln(p.length,a),!0}),Se(a,function(p){return Yr(o,w(p))})}function cv(o,a){if(!(o&&o.length))return[];var p=Dh(o);return a==null?p:Yr(p,function(E){return sn(a,t,E)})}var DC=mr(function(o,a){return Un(o)?ws(o,a):[]}),OC=mr(function(o){return Lc($i(o,Un))}),PC=mr(function(o){var a=os(o);return Un(a)&&(a=t),Lc($i(o,Un),ar(a,2))}),NC=mr(function(o){var a=os(o);return a=typeof a=="function"?a:t,Lc($i(o,Un),t,a)}),jC=mr(Dh);function FC(o,a){return Mc(o||[],a||[],ui)}function BC(o,a){return Mc(o||[],a||[],Rs)}var qC=mr(function(o){var a=o.length,p=a>1?o[a-1]:t;return p=typeof p=="function"?(o.pop(),p):t,cv(o,p)});function uv(o){var a=$(o);return a.__chain__=!0,a}function HC(o,a){return a(o),o}function dd(o,a){return a(o)}var zC=Ga(function(o){var a=o.length,p=a?o[0]:0,E=this.__wrapped__,B=function(Z){return vc(Z,o)};return a>1||this.__actions__.length||!(E instanceof yr)||!Za(p)?this.thru(B):(E=E.slice(p,+p+(a?1:0)),E.__actions__.push({func:dd,args:[B],thisArg:t}),new ri(E,this.__chain__).thru(function(Z){return a&&!Z.length&&Z.push(t),Z}))});function $C(){return uv(this)}function UC(){return new ri(this.value(),this.__chain__)}function WC(){this.__values__===t&&(this.__values__=wv(this.value()));var o=this.__index__>=this.__values__.length,a=o?t:this.__values__[this.__index__++];return{done:o,value:a}}function VC(){return this}function GC(o){for(var a,p=this;p instanceof Lo;){var E=nv(p);E.__index__=0,E.__values__=t,a?B.__wrapped__=E:a=E;var B=E;p=p.__wrapped__}return B.__wrapped__=o,a}function ZC(){var o=this.__wrapped__;if(o instanceof yr){var a=o;return this.__actions__.length&&(a=new yr(this)),a=a.reverse(),a.__actions__.push({func:dd,args:[Mh],thisArg:t}),new ri(a,this.__chain__)}return this.thru(Mh)}function YC(){return ni(this.__wrapped__,this.__actions__)}var KC=zl(function(o,a,p){zr.call(o,p)?++o[p]:Ri(o,p,1)});function XC(o,a,p){var E=_r(o)?wa:gu;return p&&Ki(o,a,p)&&(a=t),E(o,ar(a,3))}function JC(o,a){var p=_r(o)?$i:mu;return p(o,ar(a,3))}var QC=oe(iv),ew=oe(ov);function tw(o,a){return zn(hd(o,a),1)}function rw(o,a){return zn(hd(o,a),ve)}function nw(o,a,p){return p=p===t?1:Ar(p),zn(hd(o,a),p)}function fv(o,a){var p=_r(o)?qn:Jo;return p(o,ar(a,3))}function dv(o,a){var p=_r(o)?cl:xc;return p(o,ar(a,3))}var iw=zl(function(o,a,p){zr.call(o,p)?o[p].push(a):Ri(o,p,[a])});function ow(o,a,p,E){o=ho(o)?o:ku(o),p=p&&!E?Ar(p):0;var B=o.length;return p<0&&(p=ln(B+p,0)),yd(o)?p<=B&&o.indexOf(a,p)>-1:!!B&&So(o,a,p)>-1}var sw=mr(function(o,a,p){var E=-1,B=typeof a=="function",Z=ho(o)?Me(o.length):[];return Jo(o,function(ae){Z[++E]=B?sn(a,ae,p):ao(ae,a,p)}),Z}),aw=zl(function(o,a,p){Ri(o,p,a)});function hd(o,a){var p=_r(o)?Yr:Gi;return p(o,ar(a,3))}function lw(o,a,p,E){return o==null?[]:(_r(a)||(a=a==null?[]:[a]),p=E?t:p,_r(p)||(p=p==null?[]:[p]),Ol(o,a,p))}var cw=zl(function(o,a,p){o[p?0:1].push(a)},function(){return[[],[]]});function uw(o,a,p){var E=_r(o)?Aa:z,B=arguments.length<3;return E(o,ar(a,4),p,B,Jo)}function fw(o,a,p){var E=_r(o)?ul:z,B=arguments.length<3;return E(o,ar(a,4),p,B,xc)}function dw(o,a){var p=_r(o)?$i:mu;return p(o,md(ar(a,3)))}function hw(o){var a=_r(o)?gi:za;return a(o)}function pw(o,a,p){(p?Ki(o,a,p):a===t)?a=1:a=Ar(a);var E=_r(o)?ki:Ec;return E(o,a)}function gw(o){var a=_r(o)?so:Rc;return a(o)}function mw(o){if(o==null)return 0;if(ho(o))return yd(o)?Ks(o):o.length;var a=ji(o);return a==Re||a==Rt?o.size:Oo(o).length}function vw(o,a,p){var E=_r(o)?zo:vf;return p&&Ki(o,a,p)&&(a=t),E(o,ar(a,3))}var yw=mr(function(o,a){if(o==null)return[];var p=a.length;return p>1&&Ki(o,a[0],a[1])?a=[]:p>2&&Ki(a[0],a[1],a[2])&&(a=[a[0]]),Ol(o,zn(a,1),[])}),pd=Ia||function(){return dr.Date.now()};function bw(o,a){if(typeof a!="function")throw new Ni(u);return o=Ar(o),function(){if(--o<1)return a.apply(this,arguments)}}function hv(o,a,p){return a=p?t:a,a=o&&a==null?o.length:a,Va(o,Y,t,t,t,t,a)}function pv(o,a){var p;if(typeof a!="function")throw new Ni(u);return o=Ar(o),function(){return--o>0&&(p=a.apply(this,arguments)),o<=1&&(a=t),p}}var Oh=mr(function(o,a,p){var E=A;if(p.length){var B=Co(p,Tu(Oh));E|=q}return Va(o,E,a,p,B)}),gv=mr(function(o,a,p){var E=A|b;if(p.length){var B=Co(p,Tu(gv));E|=q}return Va(a,E,o,p,B)});function mv(o,a,p){a=p?t:a;var E=Va(o,O,t,t,t,t,t,a);return E.placeholder=mv.placeholder,E}function vv(o,a,p){a=p?t:a;var E=Va(o,H,t,t,t,t,t,a);return E.placeholder=vv.placeholder,E}function yv(o,a,p){var E,B,Z,ae,de,ye,Ye=0,Ke=!1,rt=!1,Nt=!0;if(typeof o!="function")throw new Ni(u);a=ss(a)||0,Ln(p)&&(Ke=!!p.leading,rt="maxWait"in p,Z=rt?ln(ss(p.maxWait)||0,a):Z,Nt="trailing"in p?!!p.trailing:Nt);function Xt(Wn){var Ls=E,Xa=B;return E=B=t,Ye=Wn,ae=o.apply(Xa,Ls),ae}function lr(Wn){return Ye=Wn,de=Sf(jr,a),Ke?Xt(Wn):ae}function Er(Wn){var Ls=Wn-ye,Xa=Wn-Ye,jv=a-Ls;return rt?In(jv,Z-Xa):jv}function cr(Wn){var Ls=Wn-ye,Xa=Wn-Ye;return ye===t||Ls>=a||Ls<0||rt&&Xa>=Z}function jr(){var Wn=pd();if(cr(Wn))return Hr(Wn);de=Sf(jr,Er(Wn))}function Hr(Wn){return de=t,Nt&&E?Xt(Wn):(E=B=t,ae)}function jo(){de!==t&&rs(de),Ye=0,E=ye=B=de=t}function Xi(){return de===t?ae:Hr(pd())}function Fo(){var Wn=pd(),Ls=cr(Wn);if(E=arguments,B=this,ye=Wn,Ls){if(de===t)return lr(ye);if(rt)return rs(de),de=Sf(jr,a),Xt(ye)}return de===t&&(de=Sf(jr,a)),ae}return Fo.cancel=jo,Fo.flush=Xi,Fo}var _w=mr(function(o,a){return _c(o,1,a)}),xw=mr(function(o,a,p){return _c(o,ss(a)||0,p)});function Sw(o){return Va(o,J)}function gd(o,a){if(typeof o!="function"||a!=null&&typeof a!="function")throw new Ni(u);var p=function(){var E=arguments,B=a?a.apply(this,E):E[0],Z=p.cache;if(Z.has(B))return Z.get(B);var ae=o.apply(this,E);return p.cache=Z.set(B,ae)||Z,ae};return p.cache=new(gd.Cache||Mo),p}gd.Cache=Mo;function md(o){if(typeof o!="function")throw new Ni(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 Cw(o){return pv(2,o)}var ww=yf(function(o,a){a=a.length==1&&_r(a[0])?Yr(a[0],Wt(ar())):Yr(zn(a,1),Wt(ar()));var p=a.length;return mr(function(E){for(var B=-1,Z=In(E.length,p);++B<Z;)E[B]=a[B].call(this,E[B]);return sn(o,this,E)})}),Ph=mr(function(o,a){var p=Co(a,Tu(Ph));return Va(o,q,t,a,p)}),bv=mr(function(o,a){var p=Co(a,Tu(bv));return Va(o,G,t,a,p)}),Aw=Ga(function(o,a){return Va(o,he,t,t,t,a)});function Tw(o,a){if(typeof o!="function")throw new Ni(u);return a=a===t?a:Ar(a),mr(o,a)}function Ew(o,a){if(typeof o!="function")throw new Ni(u);return a=a==null?0:ln(Ar(a),0),mr(function(p){var E=p[a],B=co(p,0,a);return E&&Ci(B,E),sn(o,this,B)})}function kw(o,a,p){var E=!0,B=!0;if(typeof o!="function")throw new Ni(u);return Ln(p)&&(E="leading"in p?!!p.leading:E,B="trailing"in p?!!p.trailing:B),yv(o,a,{leading:E,maxWait:a,trailing:B})}function Rw(o){return hv(o,1)}function Iw(o,a){return Ph(ts(a),o)}function Lw(){if(!arguments.length)return[];var o=arguments[0];return _r(o)?o:[o]}function Mw(o){return fi(o,_)}function Dw(o,a){return a=typeof a=="function"?a:t,fi(o,_,a)}function Ow(o){return fi(o,T|_)}function Pw(o,a){return a=typeof a=="function"?a:t,fi(o,T|_,a)}function Nw(o,a){return a==null||bc(o,a,mi(a))}function Is(o,a){return o===a||o!==o&&a!==a}var jw=uo(As),Fw=uo(function(o,a){return o>=a}),Bc=Ll(function(){return arguments}())?Ll:function(o){return Nn(o)&&zr.call(o,"callee")&&!yl.call(o,"callee")},_r=Me.isArray,Bw=Qr?Wt(Qr):Ts;function ho(o){return o!=null&&vd(o.length)&&!Ya(o)}function Un(o){return Nn(o)&&ho(o)}function qw(o){return o===!0||o===!1||Nn(o)&&Pn(o)==Je}var $l=_l||Vh,Hw=li?Wt(li):yu;function zw(o){return Nn(o)&&o.nodeType===1&&!Cf(o)}function $w(o){if(o==null)return!0;if(ho(o)&&(_r(o)||typeof o=="string"||typeof o.splice=="function"||$l(o)||Eu(o)||Bc(o)))return!o.length;var a=ji(o);if(a==Re||a==Rt)return!o.size;if(xf(o))return!Oo(o).length;for(var p in o)if(zr.call(o,p))return!1;return!0}function Uw(o,a){return Fa(o,a)}function Ww(o,a,p){p=typeof p=="function"?p:t;var E=p?p(o,a):t;return E===t?Fa(o,a,t,p):!!E}function Nh(o){if(!Nn(o))return!1;var a=Pn(o);return a==ke||a==Le||typeof o.message=="string"&&typeof o.name=="string"&&!Cf(o)}function Vw(o){return typeof o=="number"&&ra(o)}function Ya(o){if(!Ln(o))return!1;var a=Pn(o);return a==Te||a==Be||a==ht||a==bt}function _v(o){return typeof o=="number"&&o==Ar(o)}function vd(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=le}function Ln(o){var a=typeof o;return o!=null&&(a=="object"||a=="function")}function Nn(o){return o!=null&&typeof o=="object"}var xv=pi?Wt(pi):fa;function Gw(o,a){return o===a||Cc(o,a,Th(a))}function Zw(o,a,p){return p=typeof p=="function"?p:t,Cc(o,a,Th(a),p)}function Yw(o){return Sv(o)&&o!=+o}function Kw(o){if(DS(o))throw new ir(l);return bu(o)}function Xw(o){return o===null}function Jw(o){return o==null}function Sv(o){return typeof o=="number"||Nn(o)&&Pn(o)==Qe}function Cf(o){if(!Nn(o)||Pn(o)!=kt)return!1;var a=vs(o);if(a===null)return!0;var p=zr.call(a,"constructor")&&a.constructor;return typeof p=="function"&&p instanceof p&&Uo.call(p)==sc}var jh=Bn?Wt(Bn):Es;function Qw(o){return _v(o)&&o>=-9007199254740991&&o<=le}var Cv=_o?Wt(_o):Ml;function yd(o){return typeof o=="string"||!_r(o)&&Nn(o)&&Pn(o)==ut}function No(o){return typeof o=="symbol"||Nn(o)&&Pn(o)==ot}var Eu=zi?Wt(zi):Do;function e3(o){return o===t}function t3(o){return Nn(o)&&ji(o)==Ie}function r3(o){return Nn(o)&&Pn(o)==pt}var n3=uo(Vi),i3=uo(function(o,a){return o<=a});function wv(o){if(!o)return[];if(ho(o))return yd(o)?un(o):ii(o);if(Ui&&o[Ui])return nc(o[Ui]());var a=ji(o),p=a==Re?ic:a==Rt?Ea:ku;return p(o)}function Ka(o){if(!o)return o===0?o:0;if(o=ss(o),o===ve||o===-1/0){var a=o<0?-1:1;return a*me}return o===o?o:0}function Ar(o){var a=Ka(o),p=a%1;return a===a?p?a-p:a:0}function Av(o){return o?Cs(Ar(o),0,_e):0}function ss(o){if(typeof o=="number")return o;if(No(o))return pe;if(Ln(o)){var a=typeof o.valueOf=="function"?o.valueOf():o;o=Ln(a)?a+"":a}if(typeof o!="string")return o===0?o:+o;o=dt(o);var p=Mr.test(o);return p||pr.test(o)?Vt(o.slice(2),p?2:8):tr.test(o)?pe:+o}function Tv(o){return Yi(o,po(o))}function o3(o){return o?Cs(Ar(o),-9007199254740991,le):o===0?o:0}function tn(o){return o==null?"":Mi(o)}var s3=f(function(o,a){if(xf(a)||ho(a)){Yi(a,mi(a),o);return}for(var p in a)zr.call(a,p)&&ui(o,p,a[p])}),Ev=f(function(o,a){Yi(a,po(a),o)}),bd=f(function(o,a,p,E){Yi(a,po(a),o,E)}),a3=f(function(o,a,p,E){Yi(a,mi(a),o,E)}),l3=Ga(vc);function c3(o,a){var p=Io(o);return a==null?p:pu(p,a)}var u3=mr(function(o,a){o=Ur(o);var p=-1,E=a.length,B=E>2?a[2]:t;for(B&&Ki(a[0],a[1],B)&&(E=1);++p<E;)for(var Z=a[p],ae=po(Z),de=-1,ye=ae.length;++de<ye;){var Ye=ae[de],Ke=o[Ye];(Ke===t||Is(Ke,$o[Ye])&&!zr.call(o,Ye))&&(o[Ye]=Z[Ye])}return o}),f3=mr(function(o){return o.push(t,Um),sn(kv,t,o)});function d3(o,a){return ps(o,ar(a,3),Ii)}function h3(o,a){return ps(o,ar(a,3),El)}function p3(o,a){return o==null?o:Sc(o,ar(a,3),po)}function g3(o,a){return o==null?o:vu(o,ar(a,3),po)}function m3(o,a){return o&&Ii(o,ar(a,3))}function v3(o,a){return o&&El(o,ar(a,3))}function y3(o){return o==null?[]:aa(o,mi(o))}function b3(o){return o==null?[]:aa(o,po(o))}function Fh(o,a,p){var E=o==null?t:Qo(o,a);return E===t?p:E}function _3(o,a){return o!=null&&Gm(o,a,kl)}function Bh(o,a){return o!=null&&Gm(o,a,la)}var x3=tt(function(o,a,p){a!=null&&typeof a.toString!="function"&&(a=Ao.call(a)),o[a]=p},Hh(go)),S3=tt(function(o,a,p){a!=null&&typeof a.toString!="function"&&(a=Ao.call(a)),zr.call(o,a)?o[a].push(p):o[a]=[p]},ar),C3=mr(ao);function mi(o){return ho(o)?Na(o):Oo(o)}function po(o){return ho(o)?Na(o,!0):Ba(o)}function w3(o,a){var p={};return a=ar(a,3),Ii(o,function(E,B,Z){Ri(p,a(E,B,Z),E)}),p}function A3(o,a){var p={};return a=ar(a,3),Ii(o,function(E,B,Z){Ri(p,B,a(E,B,Z))}),p}var T3=f(function(o,a,p){es(o,a,p)}),kv=f(function(o,a,p,E){es(o,a,p,E)}),E3=Ga(function(o,a){var p={};if(o==null)return p;var E=!1;a=Yr(a,function(Z){return Z=Po(Z,o),E||(E=Z.length>1),Z}),Yi(o,wh(o),p),E&&(p=fi(p,T|C|_,xS));for(var B=a.length;B--;)Ic(p,a[B]);return p});function k3(o,a){return Rv(o,md(ar(a)))}var R3=Ga(function(o,a){return o==null?{}:Ha(o,a)});function Rv(o,a){if(o==null)return{};var p=Yr(wh(o),function(E){return[E]});return a=ar(a),ha(o,p,function(E,B){return a(E,B[0])})}function I3(o,a,p){a=Po(a,o);var E=-1,B=a.length;for(B||(B=1,o=t);++E<B;){var Z=o==null?t:o[ga(a[E])];Z===t&&(E=B,Z=p),o=Ya(Z)?Z.call(o):Z}return o}function L3(o,a,p){return o==null?o:Rs(o,a,p)}function M3(o,a,p,E){return E=typeof E=="function"?E:t,o==null?o:Rs(o,a,p,E)}var Iv=ld(mi),Lv=ld(po);function D3(o,a,p){var E=_r(o),B=E||$l(o)||Eu(o);if(a=ar(a,4),p==null){var Z=o&&o.constructor;B?p=E?new Z:[]:Ln(o)?p=Ya(Z)?Io(vs(o)):{}:p={}}return(B?qn:Ii)(o,function(ae,de,ye){return a(p,ae,de,ye)}),p}function O3(o,a){return o==null?!0:Ic(o,a)}function P3(o,a,p){return o==null?o:$a(o,a,ts(p))}function N3(o,a,p,E){return E=typeof E=="function"?E:t,o==null?o:$a(o,a,ts(p),E)}function ku(o){return o==null?[]:hr(o,mi(o))}function j3(o){return o==null?[]:hr(o,po(o))}function F3(o,a,p){return p===t&&(p=a,a=t),p!==t&&(p=ss(p),p=p===p?p:0),a!==t&&(a=ss(a),a=a===a?a:0),Cs(ss(o),a,p)}function B3(o,a,p){return a=Ka(a),p===t?(p=a,a=0):p=Ka(p),o=ss(o),Rl(o,a,p)}function q3(o,a,p){if(p&&typeof p!="boolean"&&Ki(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=Ka(o),a===t?(a=o,o=0):a=Ka(a)),o>a){var E=o;o=a,a=E}if(p||o%1||a%1){var B=Go();return In(o+B*(a-o+Kt("1e-"+((B+"").length-1))),a)}return ks(o,a)}var H3=L(function(o,a,p){return a=a.toLowerCase(),o+(p?Mv(a):a)});function Mv(o){return qh(tn(o).toLowerCase())}function Dv(o){return o=tn(o),o&&o.replace(vr,Ai).replace(to,"")}function z3(o,a,p){o=tn(o),a=Mi(a);var E=o.length;p=p===t?E:Cs(Ar(p),0,E);var B=p;return p-=a.length,p>=0&&o.slice(p,B)==a}function $3(o){return o=tn(o),o&&Lt.test(o)?o.replace(mt,Zs):o}function U3(o){return o=tn(o),o&&vt.test(o)?o.replace(qe,"\\$&"):o}var W3=L(function(o,a,p){return o+(p?"-":"")+a.toLowerCase()}),V3=L(function(o,a,p){return o+(p?" ":"")+a.toLowerCase()}),G3=y("toLowerCase");function Z3(o,a,p){o=tn(o),a=Ar(a);var E=a?Ks(o):0;if(!a||E>=a)return o;var B=(a-E)/2;return Lr(ys(B),p)+o+Lr(ea(B),p)}function Y3(o,a,p){o=tn(o),a=Ar(a);var E=a?Ks(o):0;return a&&E<a?o+Lr(a-E,p):o}function K3(o,a,p){o=tn(o),a=Ar(a);var E=a?Ks(o):0;return a&&E<a?Lr(a-E,p)+o:o}function X3(o,a,p){return p||a==null?a=0:a&&(a=+a),cc(tn(o).replace(at,""),a||0)}function J3(o,a,p){return(p?Ki(o,a,p):a===t)?a=1:a=Ar(a),Pl(tn(o),a)}function Q3(){var o=arguments,a=tn(o[0]);return o.length<3?a:a.replace(o[1],o[2])}var eA=L(function(o,a,p){return o+(p?"_":"")+a.toLowerCase()});function tA(o,a,p){return p&&typeof p!="number"&&Ki(o,a,p)&&(a=p=t),p=p===t?_e:p>>>0,p?(o=tn(o),o&&(typeof a=="string"||a!=null&&!jh(a))&&(a=Mi(a),!a&&Ys(o))?co(un(o),0,p):o.split(a,p)):[]}var rA=L(function(o,a,p){return o+(p?" ":"")+qh(a)});function nA(o,a,p){return o=tn(o),p=p==null?0:Cs(Ar(p),0,o.length),a=Mi(a),o.slice(p,p+a.length)==a}function iA(o,a,p){var E=$.templateSettings;p&&Ki(o,a,p)&&(a=t),o=tn(o),a=bd({},a,E,$m);var B=bd({},a.imports,E.imports,$m),Z=mi(B),ae=hr(B,Z),de,ye,Ye=0,Ke=a.interpolate||Gn,rt="__p += '",Nt=Xs((a.escape||Gn).source+"|"+Ke.source+"|"+(Ke===Et?er:Gn).source+"|"+(a.evaluate||Gn).source+"|$","g"),Xt="//# sourceURL="+(zr.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Dr+"]")+`
|
35
|
-
`;o.replace(Nt,function(cr,jr,Hr,jo,Xi,Fo){return Hr||(Hr=jo),rt+=o.slice(Ye,Fo).replace(Sn,pl),jr&&(de=!0,rt+=`' +
|
36
|
-
__e(`+jr+`) +
|
37
|
-
'`),Xi&&(ye=!0,rt+=`';
|
38
|
-
`+Xi+`;
|
39
|
-
__p += '`),Hr&&(rt+=`' +
|
40
|
-
((__t = (`+Hr+`)) == null ? '' : __t) +
|
41
|
-
'`),Ye=Fo+cr.length,cr}),rt+=`';
|
42
|
-
`;var lr=zr.call(a,"variable")&&a.variable;if(!lr)rt=`with (obj) {
|
43
|
-
`+rt+`
|
44
|
-
}
|
45
|
-
`;else if(Bt.test(lr))throw new ir(h);rt=(ye?rt.replace(Ee,""):rt).replace(je,"$1").replace(St,"$1;"),rt="function("+(lr||"obj")+`) {
|
46
|
-
`+(lr?"":`obj || (obj = {});
|
47
|
-
`)+"var __t, __p = ''"+(de?", __e = _.escape":"")+(ye?`, __j = Array.prototype.join;
|
48
|
-
function print() { __p += __j.call(arguments, '') }
|
49
|
-
`:`;
|
50
|
-
`)+rt+`return __p
|
51
|
-
}`;var Er=Pv(function(){return Pr(Z,Xt+"return "+rt).apply(t,ae)});if(Er.source=rt,Nh(Er))throw Er;return Er}function oA(o){return tn(o).toLowerCase()}function sA(o){return tn(o).toUpperCase()}function aA(o,a,p){if(o=tn(o),o&&(p||a===t))return dt(o);if(!o||!(a=Mi(a)))return o;var E=un(o),B=un(a),Z=Gr(E,B),ae=ti(E,B)+1;return co(E,Z,ae).join("")}function lA(o,a,p){if(o=tn(o),o&&(p||a===t))return o.slice(0,iu(o)+1);if(!o||!(a=Mi(a)))return o;var E=un(o),B=ti(E,un(a))+1;return co(E,0,B).join("")}function cA(o,a,p){if(o=tn(o),o&&(p||a===t))return o.replace(at,"");if(!o||!(a=Mi(a)))return o;var E=un(o),B=Gr(E,un(a));return co(E,B).join("")}function uA(o,a){var p=fe,E=P;if(Ln(a)){var B="separator"in a?a.separator:B;p="length"in a?Ar(a.length):p,E="omission"in a?Mi(a.omission):E}o=tn(o);var Z=o.length;if(Ys(o)){var ae=un(o);Z=ae.length}if(p>=Z)return o;var de=p-Ks(E);if(de<1)return E;var ye=ae?co(ae,0,de).join(""):o.slice(0,de);if(B===t)return ye+E;if(ae&&(de+=ye.length-de),jh(B)){if(o.slice(de).search(B)){var Ye,Ke=ye;for(B.global||(B=Xs(B.source,tn(jt.exec(B))+"g")),B.lastIndex=0;Ye=B.exec(Ke);)var rt=Ye.index;ye=ye.slice(0,rt===t?de:rt)}}else if(o.indexOf(Mi(B),de)!=de){var Nt=ye.lastIndexOf(B);Nt>-1&&(ye=ye.slice(0,Nt))}return ye+E}function fA(o){return o=tn(o),o&&Ut.test(o)?o.replace(ft,ou):o}var dA=L(function(o,a,p){return o+(p?" ":"")+a.toUpperCase()}),qh=y("toUpperCase");function Ov(o,a,p){return o=tn(o),a=p?t:a,a===t?tf(o)?su(o):Vs(o):o.match(a)||[]}var Pv=mr(function(o,a){try{return sn(o,t,a)}catch(p){return Nh(p)?p:new ir(p)}}),hA=Ga(function(o,a){return qn(a,function(p){p=ga(p),Ri(o,p,Oh(o[p],o))}),o});function pA(o){var a=o==null?0:o.length,p=ar();return o=a?Yr(o,function(E){if(typeof E[1]!="function")throw new Ni(u);return[p(E[0]),E[1]]}):[],mr(function(E){for(var B=-1;++B<a;){var Z=o[B];if(sn(Z[0],this,E))return sn(Z[1],this,E)}})}function gA(o){return yc(fi(o,T))}function Hh(o){return function(){return o}}function mA(o,a){return o==null||o!==o?a:o}var vA=xe(),yA=xe(!0);function go(o){return o}function zh(o){return Dl(typeof o=="function"?o:fi(o,T))}function bA(o){return lo(fi(o,T))}function _A(o,a){return qa(o,fi(a,T))}var xA=mr(function(o,a){return function(p){return ao(p,o,a)}}),SA=mr(function(o,a){return function(p){return ao(o,p,a)}});function $h(o,a,p){var E=mi(a),B=aa(a,E);p==null&&!(Ln(a)&&(B.length||!E.length))&&(p=a,a=o,o=this,B=aa(a,mi(a)));var Z=!(Ln(p)&&"chain"in p)||!!p.chain,ae=Ya(o);return qn(B,function(de){var ye=a[de];o[de]=ye,ae&&(o.prototype[de]=function(){var Ye=this.__chain__;if(Z||Ye){var Ke=o(this.__wrapped__),rt=Ke.__actions__=ii(this.__actions__);return rt.push({func:ye,args:arguments,thisArg:o}),Ke.__chain__=Ye,Ke}return ye.apply(o,Ci([this.value()],arguments))})}),o}function CA(){return dr._===this&&(dr._=ac),this}function Uh(){}function wA(o){return o=Ar(o),mr(function(a){return da(a,o)})}var AA=nr(Yr),TA=nr(wa),EA=nr(zo);function Nv(o){return kh(o)?w(ga(o)):_u(o)}function kA(o){return function(a){return o==null?t:Qo(o,a)}}var RA=ns(),IA=ns(!0);function Wh(){return[]}function Vh(){return!1}function LA(){return{}}function MA(){return""}function DA(){return!0}function OA(o,a){if(o=Ar(o),o<1||o>le)return[];var p=_e,E=In(o,_e);a=ar(a),o-=_e;for(var B=Se(E,a);++p<o;)a(p);return B}function PA(o){return _r(o)?Yr(o,ga):No(o)?[o]:ii(rv(tn(o)))}function NA(o){var a=++oc;return tn(o)+a}var jA=Ct(function(o,a){return o+a},0),FA=is("ceil"),BA=Ct(function(o,a){return o/a},1),qA=is("floor");function HA(o){return o&&o.length?Tl(o,go,As):t}function zA(o,a){return o&&o.length?Tl(o,ar(a,2),As):t}function $A(o){return Ta(o,go)}function UA(o,a){return Ta(o,ar(a,2))}function WA(o){return o&&o.length?Tl(o,go,Vi):t}function VA(o,a){return o&&o.length?Tl(o,ar(a,2),Vi):t}var GA=Ct(function(o,a){return o*a},1),ZA=is("round"),YA=Ct(function(o,a){return o-a},0);function KA(o){return o&&o.length?Ae(o,go):0}function XA(o,a){return o&&o.length?Ae(o,ar(a,2)):0}return $.after=bw,$.ary=hv,$.assign=s3,$.assignIn=Ev,$.assignInWith=bd,$.assignWith=a3,$.at=l3,$.before=pv,$.bind=Oh,$.bindAll=hA,$.bindKey=gv,$.castArray=Lw,$.chain=uv,$.chunk=qS,$.compact=HS,$.concat=zS,$.cond=pA,$.conforms=gA,$.constant=Hh,$.countBy=KC,$.create=c3,$.curry=mv,$.curryRight=vv,$.debounce=yv,$.defaults=u3,$.defaultsDeep=f3,$.defer=_w,$.delay=xw,$.difference=$S,$.differenceBy=US,$.differenceWith=WS,$.drop=VS,$.dropRight=GS,$.dropRightWhile=ZS,$.dropWhile=YS,$.fill=KS,$.filter=JC,$.flatMap=tw,$.flatMapDeep=rw,$.flatMapDepth=nw,$.flatten=sv,$.flattenDeep=XS,$.flattenDepth=JS,$.flip=Sw,$.flow=vA,$.flowRight=yA,$.fromPairs=QS,$.functions=y3,$.functionsIn=b3,$.groupBy=iw,$.initial=tC,$.intersection=rC,$.intersectionBy=nC,$.intersectionWith=iC,$.invert=x3,$.invertBy=S3,$.invokeMap=sw,$.iteratee=zh,$.keyBy=aw,$.keys=mi,$.keysIn=po,$.map=hd,$.mapKeys=w3,$.mapValues=A3,$.matches=bA,$.matchesProperty=_A,$.memoize=gd,$.merge=T3,$.mergeWith=kv,$.method=xA,$.methodOf=SA,$.mixin=$h,$.negate=md,$.nthArg=wA,$.omit=E3,$.omitBy=k3,$.once=Cw,$.orderBy=lw,$.over=AA,$.overArgs=ww,$.overEvery=TA,$.overSome=EA,$.partial=Ph,$.partialRight=bv,$.partition=cw,$.pick=R3,$.pickBy=Rv,$.property=Nv,$.propertyOf=kA,$.pull=lC,$.pullAll=lv,$.pullAllBy=cC,$.pullAllWith=uC,$.pullAt=fC,$.range=RA,$.rangeRight=IA,$.rearg=Aw,$.reject=dw,$.remove=dC,$.rest=Tw,$.reverse=Mh,$.sampleSize=pw,$.set=L3,$.setWith=M3,$.shuffle=gw,$.slice=hC,$.sortBy=yw,$.sortedUniq=_C,$.sortedUniqBy=xC,$.split=tA,$.spread=Ew,$.tail=SC,$.take=CC,$.takeRight=wC,$.takeRightWhile=AC,$.takeWhile=TC,$.tap=HC,$.throttle=kw,$.thru=dd,$.toArray=wv,$.toPairs=Iv,$.toPairsIn=Lv,$.toPath=PA,$.toPlainObject=Tv,$.transform=D3,$.unary=Rw,$.union=EC,$.unionBy=kC,$.unionWith=RC,$.uniq=IC,$.uniqBy=LC,$.uniqWith=MC,$.unset=O3,$.unzip=Dh,$.unzipWith=cv,$.update=P3,$.updateWith=N3,$.values=ku,$.valuesIn=j3,$.without=DC,$.words=Ov,$.wrap=Iw,$.xor=OC,$.xorBy=PC,$.xorWith=NC,$.zip=jC,$.zipObject=FC,$.zipObjectDeep=BC,$.zipWith=qC,$.entries=Iv,$.entriesIn=Lv,$.extend=Ev,$.extendWith=bd,$h($,$),$.add=jA,$.attempt=Pv,$.camelCase=H3,$.capitalize=Mv,$.ceil=FA,$.clamp=F3,$.clone=Mw,$.cloneDeep=Ow,$.cloneDeepWith=Pw,$.cloneWith=Dw,$.conformsTo=Nw,$.deburr=Dv,$.defaultTo=mA,$.divide=BA,$.endsWith=z3,$.eq=Is,$.escape=$3,$.escapeRegExp=U3,$.every=XC,$.find=QC,$.findIndex=iv,$.findKey=d3,$.findLast=ew,$.findLastIndex=ov,$.findLastKey=h3,$.floor=qA,$.forEach=fv,$.forEachRight=dv,$.forIn=p3,$.forInRight=g3,$.forOwn=m3,$.forOwnRight=v3,$.get=Fh,$.gt=jw,$.gte=Fw,$.has=_3,$.hasIn=Bh,$.head=av,$.identity=go,$.includes=ow,$.indexOf=eC,$.inRange=B3,$.invoke=C3,$.isArguments=Bc,$.isArray=_r,$.isArrayBuffer=Bw,$.isArrayLike=ho,$.isArrayLikeObject=Un,$.isBoolean=qw,$.isBuffer=$l,$.isDate=Hw,$.isElement=zw,$.isEmpty=$w,$.isEqual=Uw,$.isEqualWith=Ww,$.isError=Nh,$.isFinite=Vw,$.isFunction=Ya,$.isInteger=_v,$.isLength=vd,$.isMap=xv,$.isMatch=Gw,$.isMatchWith=Zw,$.isNaN=Yw,$.isNative=Kw,$.isNil=Jw,$.isNull=Xw,$.isNumber=Sv,$.isObject=Ln,$.isObjectLike=Nn,$.isPlainObject=Cf,$.isRegExp=jh,$.isSafeInteger=Qw,$.isSet=Cv,$.isString=yd,$.isSymbol=No,$.isTypedArray=Eu,$.isUndefined=e3,$.isWeakMap=t3,$.isWeakSet=r3,$.join=oC,$.kebabCase=W3,$.last=os,$.lastIndexOf=sC,$.lowerCase=V3,$.lowerFirst=G3,$.lt=n3,$.lte=i3,$.max=HA,$.maxBy=zA,$.mean=$A,$.meanBy=UA,$.min=WA,$.minBy=VA,$.stubArray=Wh,$.stubFalse=Vh,$.stubObject=LA,$.stubString=MA,$.stubTrue=DA,$.multiply=GA,$.nth=aC,$.noConflict=CA,$.noop=Uh,$.now=pd,$.pad=Z3,$.padEnd=Y3,$.padStart=K3,$.parseInt=X3,$.random=q3,$.reduce=uw,$.reduceRight=fw,$.repeat=J3,$.replace=Q3,$.result=I3,$.round=ZA,$.runInContext=ge,$.sample=hw,$.size=mw,$.snakeCase=eA,$.some=vw,$.sortedIndex=pC,$.sortedIndexBy=gC,$.sortedIndexOf=mC,$.sortedLastIndex=vC,$.sortedLastIndexBy=yC,$.sortedLastIndexOf=bC,$.startCase=rA,$.startsWith=nA,$.subtract=YA,$.sum=KA,$.sumBy=XA,$.template=iA,$.times=OA,$.toFinite=Ka,$.toInteger=Ar,$.toLength=Av,$.toLower=oA,$.toNumber=ss,$.toSafeInteger=o3,$.toString=tn,$.toUpper=sA,$.trim=aA,$.trimEnd=lA,$.trimStart=cA,$.truncate=uA,$.unescape=fA,$.uniqueId=NA,$.upperCase=dA,$.upperFirst=qh,$.each=fv,$.eachRight=dv,$.first=av,$h($,function(){var o={};return Ii($,function(a,p){zr.call($.prototype,p)||(o[p]=a)}),o}(),{chain:!1}),$.VERSION=n,qn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){$[o].placeholder=$}),qn(["drop","take"],function(o,a){yr.prototype[o]=function(p){p=p===t?1:ln(Ar(p),0);var E=this.__filtered__&&!a?new yr(this):this.clone();return E.__filtered__?E.__takeCount__=In(p,E.__takeCount__):E.__views__.push({size:In(p,_e),type:o+(E.__dir__<0?"Right":"")}),E},yr.prototype[o+"Right"]=function(p){return this.reverse()[o](p).reverse()}}),qn(["filter","map","takeWhile"],function(o,a){var p=a+1,E=p==ne||p==ue;yr.prototype[o]=function(B){var Z=this.clone();return Z.__iteratees__.push({iteratee:ar(B,3),type:p}),Z.__filtered__=Z.__filtered__||E,Z}}),qn(["head","last"],function(o,a){var p="take"+(a?"Right":"");yr.prototype[o]=function(){return this[p](1).value()[0]}}),qn(["initial","tail"],function(o,a){var p="drop"+(a?"":"Right");yr.prototype[o]=function(){return this.__filtered__?new yr(this):this[p](1)}}),yr.prototype.compact=function(){return this.filter(go)},yr.prototype.find=function(o){return this.filter(o).head()},yr.prototype.findLast=function(o){return this.reverse().find(o)},yr.prototype.invokeMap=mr(function(o,a){return typeof o=="function"?new yr(this):this.map(function(p){return ao(p,o,a)})}),yr.prototype.reject=function(o){return this.filter(md(ar(o)))},yr.prototype.slice=function(o,a){o=Ar(o);var p=this;return p.__filtered__&&(o>0||a<0)?new yr(p):(o<0?p=p.takeRight(-o):o&&(p=p.drop(o)),a!==t&&(a=Ar(a),p=a<0?p.dropRight(-a):p.take(a-o)),p)},yr.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},yr.prototype.toArray=function(){return this.take(_e)},Ii(yr.prototype,function(o,a){var p=/^(?:filter|find|map|reject)|While$/.test(a),E=/^(?:head|last)$/.test(a),B=$[E?"take"+(a=="last"?"Right":""):a],Z=E||/^find/.test(a);B&&($.prototype[a]=function(){var ae=this.__wrapped__,de=E?[1]:arguments,ye=ae instanceof yr,Ye=de[0],Ke=ye||_r(ae),rt=function(jr){var Hr=B.apply($,Ci([jr],de));return E&&Nt?Hr[0]:Hr};Ke&&p&&typeof Ye=="function"&&Ye.length!=1&&(ye=Ke=!1);var Nt=this.__chain__,Xt=!!this.__actions__.length,lr=Z&&!Nt,Er=ye&&!Xt;if(!Z&&Ke){ae=Er?ae:new yr(this);var cr=o.apply(ae,de);return cr.__actions__.push({func:dd,args:[rt],thisArg:t}),new ri(cr,Nt)}return lr&&Er?o.apply(this,de):(cr=this.thru(rt),lr?E?cr.value()[0]:cr.value():cr)})}),qn(["pop","push","shift","sort","splice","unshift"],function(o){var a=vl[o],p=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",E=/^(?:pop|shift)$/.test(o);$.prototype[o]=function(){var B=arguments;if(E&&!this.__chain__){var Z=this.value();return a.apply(_r(Z)?Z:[],B)}return this[p](function(ae){return a.apply(_r(ae)?ae:[],B)})}}),Ii(yr.prototype,function(o,a){var p=$[a];if(p){var E=p.name+"";zr.call(bs,E)||(bs[E]=[]),bs[E].push({name:a,func:p})}}),bs[Ge(t,b).name]=[{name:"wrapper",func:t}],yr.prototype.clone=Sl,yr.prototype.reverse=Oa,yr.prototype.value=Cl,$.prototype.at=zC,$.prototype.chain=$C,$.prototype.commit=UC,$.prototype.next=WC,$.prototype.plant=GC,$.prototype.reverse=ZC,$.prototype.toJSON=$.prototype.valueOf=$.prototype.value=YC,$.prototype.first=$.prototype.head,Ui&&($.prototype[Ui]=VC),$},wo=ml();Jr?((Jr.exports=wo)._=wo,wr._=wo):dr._=wo}).call(i4)}(Mf,Mf.exports)),Mf.exports}var B_=o4();const tl=ol(B_),s4=r=>{try{return JSON.parse(r)}catch{return}},a4=(r,e)=>JSON.stringify(r,null,e),l4=r=>Object.keys(r),c4=r=>Object.values(r),u4=r=>Object.entries(r),f4=(r,e)=>{Object.entries(r).forEach(([t,n])=>e(t,n))},d4=(r,e)=>Object.keys(r).includes(e),h4=(r,e)=>Object.entries(r).map((t,n)=>e(t,n)),p4=(r,e)=>Object.entries(r).some(([t,n])=>e(t,n)),g4=(r,e)=>Object.entries(r).find(([t,n])=>e(t,n)),q_=r=>R.isValidElement(r)||typeof r=="string"||typeof r=="number"||typeof r=="boolean"||r===null||r===void 0||Array.isArray(r)&&r.every(q_),m4=(r,e)=>tl.isEqual(r,e),rr={equal:m4,parse:s4,stringify:a4,keys:l4,values:c4,entries:u4,forEach:f4,hasKey:d4,map:h4,some:p4,find:g4,isReactNode:q_},H_="_NoSelect_1wchx_1",z_="_IsFixedShape_1wchx_6",$_="_IsCursorPointer_1wchx_11",U_="_IsInteractive_1wchx_15",qc={NoSelect:H_,IsFixedShape:z_,IsCursorPointer:$_,IsInteractive:U_},v4="_Display1_11vgm_1",y4="_Display2_11vgm_6",b4="_Title1_11vgm_11",_4="_Title2_11vgm_16",x4="_Title3_11vgm_21",S4="_Headline1_11vgm_26",C4="_Headline2_11vgm_31",w4="_Body1Normal_11vgm_36",A4="_Body1Reading_11vgm_41",T4="_Label1_11vgm_46",E4="_Label2_11vgm_51",k4="_Caption1_11vgm_56",R4="_Caption2_11vgm_61",I4="_Regular_11vgm_66",L4="_Medium_11vgm_70",M4="_SemiBold_11vgm_74",D4="_Bold_11vgm_78",Di={Display1:v4,Display2:y4,Title1:b4,Title2:_4,Title3:x4,Headline1:S4,Headline2:C4,Body1Normal:w4,Body1Reading:A4,Label1:T4,Label2:E4,Caption1:k4,Caption2:R4,Regular:I4,Medium:L4,SemiBold:M4,Bold:D4};function zv(...r){return r.filter(Boolean).join(" ")}const W_={NoSelect:qc.NoSelect,IsClickable:zv(qc.NoSelect,qc.IsCursorPointer,qc.IsFixedShape),IsInteractive:zv(qc.NoSelect,qc.IsCursorPointer,qc.IsInteractive)},V_={Display1:Di.Display1,Display2:Di.Display2,Title1:Di.Title1,Title2:Di.Title2,Title3:Di.Title3,Headline1:Di.Headline1,Headline2:Di.Headline2,Body1Normal:Di.Body1Normal,Body1Reading:Di.Body1Reading,Label1:Di.Label1,Label2:Di.Label2,Caption1:Di.Caption1,Caption2:Di.Caption2,Regular:Di.Regular,Medium:Di.Medium,SemiBold:Di.SemiBold,Bold:Di.Bold};let sm={};const Uf={...W_,...V_,...sm};let am=rr.keys(Uf);function O4(){Object.assign(Uf,sm),am=rr.keys(Uf)}function P4(...r){let e=[];for(let t=0;t<r.length;t++){let n=r[t];am.includes(n)&&(n=Uf[n]),typeof n=="string"&&n!==""&&e.push(n)}return e.join(" ")}function N4(r,...e){const t=[],n=rr.keys(r);for(let i=0;i<e.length;i++){let l=e[i];am.includes(l)?l=Uf[l]:n.includes(l)&&(l=r[l]),typeof l=="string"&&l!==""&&t.push(l)}return t.join(" ")}const He={clsx:P4,sclsx:N4,classes:W_,typographies:V_,additionalClasses:sm,updateKeys:O4},Oi={"2xs":12,xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48,"3xl":64},st=(r,e=Oi.md)=>{const t=Oi[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},Ru=(r,e=Oi.md)=>{const t=Oi[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},oi=r=>({fill:"none",stroke:r,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),qr=r=>{const{icon:e,style:t,svgRef:n,...i}=r,l=R.useMemo(()=>rh[e],[e]);return v.jsx(l,{...i,style:{...t,flexShrink:0}})},j4=r=>{const e=rr.keys(r);return n=>{const{icon:i,svgRef:l,...u}=n,h=R.useMemo(()=>e.includes(i)?r[i]:rh[i],[i]);return v.jsx(h,{...u})}},rh=Object.freeze({ArrowDown:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...st(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",{...st(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",{...st(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=Oi.xs;return v.jsxs("svg",{...st(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=Oi.xs;return v.jsxs("svg",{...st(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=Oi.xs;return v.jsx("svg",{...st(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",{...st(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",{...st(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",{...st(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",{...st(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",{...st(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",{...st(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",{...st(e),...oi(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",{...st(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",{...st(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",{...st(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=Oi["3xl"];return v.jsxs("svg",{...st(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",{...st(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",{...st(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",{...st(e),...oi(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",{...st(e,28),...oi(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",{...st(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=Oi["2xs"];return v.jsxs("svg",{...st(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",{...st(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",{...st(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",{...st(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",{...st(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=Oi.xs;return v.jsx("svg",{...st(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=Oi.xs;return v.jsx("svg",{...st(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=Oi.xs;return v.jsxs("svg",{...st(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=Oi.xs;return v.jsxs("svg",{...st(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=Oi.xs;return v.jsxs("svg",{...st(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=Oi.xs;return v.jsxs("svg",{...st(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",{...st(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",{...st(e),...oi(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",{...st(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",{...st(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"})})},UnPlug:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r,u=Oi.xs;return v.jsxs("svg",{...st(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=Oi.xs;return v.jsxs("svg",{...st(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",{...st(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",{...st(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",{...st(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",{...st(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",{...st(e),...oi(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",{...st(e),...oi(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",{...st(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",{...st(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",{...st(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",{...st(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",{...st(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",{...st(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",{...st(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",{...st(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",{...st(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",{...st(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",{...st(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",{...st(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",{...st(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",{...st(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",{...st(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",{...st(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",{...st(e),...oi(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",{...st(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",{...st(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",{...st(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",{...st(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",{...st(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",{...st(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"})})},Gear:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:i,...l}=r;return v.jsx("svg",{...st(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",{...st(e),...oi(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",{...st(e),...oi(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",{...st(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",{...st(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",{...st(e),...oi(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",{...st(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",{...st(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",{...st(e,96),...oi(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",{...st(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",{...st(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",{...st(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",{...st(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",{...st(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",{...st(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",{...st(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",{...st(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",{...st(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",{...st(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",{...st(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",{...st(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",{...st(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",{...st(e),...oi(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",{...st(e),...oi(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",{...st(e),...oi(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",{...st(e),...oi(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",{...st(e),...oi(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",{...st(e),...oi(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",{...st(e),...oi(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",{...Ru(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",{...Ru(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",{...Ru(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",{...Ru(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",{...Ru(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",{...Ru(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",{...st(e),...oi(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",{...st(e),...oi(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",{...st(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",{...st(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})})})}}),lm=rr.keys(rh);function Df(r,e,t){return e!==void 0&&r<e?e:t!==void 0&&r>t?t:r}var vi=(r=>(r.N="North",r.S="South",r.E="East",r.W="West",r))(vi||{}),Xu=(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))(Xu||{});function cm(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=Z_(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 G_(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 h={bottom:void 0,left:void 0,right:void 0,top:void 0};switch(t){case"North":h=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":h={bottom:window.innerHeight-l.top,left:l.left};break;case"NorthEast":h={bottom:window.innerHeight-l.top,right:window.innerWidth-l.left-l.width};break;case"South":h=u?{top:l.bottom,left:l.left+l.width/2-u.width/2}:{top:l.bottom,left:l.left};break;case"SouthWest":h={top:l.bottom,left:l.left};break;case"SouthEast":h={top:l.bottom,right:window.innerWidth-l.left-l.width};break;case"East":h=u?{top:l.top+l.height/2-u.height/2,left:l.right}:{top:l.top,left:l.right};break;case"EastNorth":h={bottom:window.innerHeight-l.top-l.height,left:l.right};break;case"EastSouth":h={top:l.top,left:l.right};break;case"West":h=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":h={bottom:window.innerHeight-l.top-l.height,right:window.innerWidth-l.left};break;case"WestSouth":h={top:l.top,right:window.innerWidth-l.left};break;default:h={top:l.top,left:l.left}}return n&&(n.x&&h.left&&(h.left+=n.x),n.y&&h.top&&(h.top+=n.y)),h=Z_(h,u),i.style.top=h.top+"px",i.style.left=h.left+"px",i.style.bottom=h.bottom+"px",i.style.right=h.right+"px",h}function Z_(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 Uc(){const r={preventDefault:!1};return{event:r,e:{preventDefault:()=>r.preventDefault=!0}}}const F4="_Tooltip_3l8se_1",B4="_Arrow_3l8se_17",$v={Tooltip:F4,Arrow:B4},Y_=r=>{const{tooltip:e,targetRef:t,delay:n=0,distance:i=10,direction:l=vi.S}=r,[u,h]=R.useState(!1),g=R.useRef(null),m=R.useRef(null),M=R.useRef(),T=R.useCallback(()=>{h(!0),M.current&&(clearTimeout(M.current),M.current=void 0);const D=setTimeout(()=>Uv(t,g,m,i,l),n);M.current=D},[t,n,i,l]),C=R.useCallback(()=>h(!1),[]);R.useEffect(()=>{const D=t.current;if(D)return D.addEventListener("mouseenter",T),D.addEventListener("mouseleave",C),()=>{D.removeEventListener("mouseenter",T),D.removeEventListener("mouseleave",C)}},[t,C,T]);const _=R.useCallback(()=>{Uv(t,g,m,i,l)},[t,i,l]);R.useEffect(()=>{if(!t.current||!g.current||!u)return;const D=t.current.parentElement;let A=D;for(;A;)A.addEventListener("scroll",_),A=A.parentElement;return()=>{let b=D;for(;b;)b.removeEventListener("scroll",_),b=b.parentElement}},[t,_,u]),R.useEffect(()=>{_()},[e,_]);const S=R.useMemo(()=>{switch(typeof e){case"boolean":return!0;case"string":return e==="";case"number":return!1;default:return!e}},[e]);return!u||S?null:Bs.createPortal(v.jsxs("div",{className:He.clsx($v.Tooltip,"NoSelect"),ref:g,children:[e,v.jsx("div",{ref:m,className:$v.Arrow})]}),document.body)},xd="5px solid var(--ATooltip_background-color)";function Uv(r,e,t,n,i=vi.S){if(!r.current||!e.current||!t.current)return;const l=q4(r.current,e.current,n,i);if(!l)return;const{left:u,top:h,arrowDir:g,arrow:m}=l;e.current.style.left=`${u}px`,e.current.style.top=`${h}px`,e.current.style.visibility="visible",e.current.style.opacity="1",t.current.style.border="5px solid transparent",g===vi.N?(t.current.style.top="-9px",t.current.style.left=`calc(50% - 5px + ${m.left??0}px)`,t.current.style.borderBottom=xd):g===vi.S?(t.current.style.top="100%",t.current.style.left=`calc(50% - 5px + ${m.left??0}px)`,t.current.style.borderTop=xd):g===vi.W?(t.current.style.top=`calc(50% - 5px + ${m.top??0}px)`,t.current.style.left="-9px",t.current.style.borderRight=xd):g===vi.E&&(t.current.style.top=`calc(50% - 5px + ${m.top??0}px)`,t.current.style.left="100%",t.current.style.borderLeft=xd)}const Ul=5;function q4(r,e,t,n){const i=r.getBoundingClientRect(),l=e.getBoundingClientRect();function u(){if(window.innerHeight-i.bottom>l.height+t){const M=i.bottom+t,T=i.left+(i.width-l.width)/2,C=Df(T,Ul,window.innerWidth-Ul-l.width),_=vi.N;return{left:C,top:M,arrowDir:_,arrow:{left:T-C}}}}function h(){if(i.top>l.height+t){const M=i.top-l.height-t,T=i.left+(i.width-l.width)/2,C=Df(T,Ul,window.innerWidth-Ul-l.width),_=vi.S;return{left:C,top:M,arrowDir:_,arrow:{left:T-C}}}}function g(){if(window.innerWidth-i.right>l.width+t){const M=i.right+t,T=i.top+(i.height-l.height)/2,C=Df(T,Ul,window.innerHeight-Ul-l.height),_=vi.W;return{left:M,top:C,arrowDir:_,arrow:{top:T-C}}}}function m(){if(i.left>l.width+t){const M=i.left-l.width-t,T=i.top+(i.height-l.height)/2,C=Df(T,Ul,window.innerHeight-Ul-l.height),_=vi.E;return{left:M,top:C,arrowDir:_,arrow:{top:T-C}}}}if(n===vi.E)return g()||m()||u()||h();if(n===vi.S)return u()||h()||g()||m();if(n===vi.W)return m()||g()||u()||h();if(n===vi.N)return h()||u()||g()||m()}const H4="_ABase_xbi52_1",z4="_UseDimming_xbi52_6",$4="_Dimmer_xbi52_6",U4="_Spinner_xbi52_9",W4="_Dimmed_xbi52_12",V4="_IsDimmed_xbi52_33",G4="_IsLoading_xbi52_38",Z4="_IsDisabled_xbi52_43",Tf={ABase:H4,UseDimming:z4,Dimmer:$4,Spinner:U4,Dimmed:W4,IsDimmed:V4,IsLoading:G4,IsDisabled:Z4},Wr=r=>{const{children:e,abaseRef:t,isDisabled:n,isLoading:i,isDimmed:l,tooltip:u,tooltipDistance:h=10,tooltipDelay:g=0,tooltipDirection:m=vi.S,...M}=r,T=R.useRef(null),C=R.useMemo(()=>t??T,[t]),_=R.useMemo(()=>typeof n=="string"&&n!==""?n:u!==void 0?u:"",[n,u]),S=R.useMemo(()=>n||i||l,[n,i,l]),D=R.useMemo(()=>n!==void 0||i!==void 0||l!==void 0,[n,i,l]);return v.jsxs("div",{...M,className:He.clsx(M.className,Tf.ABase,D&&Tf.UseDimming,S&&Tf.Dimmed),ref:C,children:[e,D&&v.jsx("div",{className:He.sclsx(Tf,"Dimmer",n&&"IsDisabled",i&&"IsLoading",l&&"IsDimmed")}),i&&v.jsx("div",{className:He.sclsx(Tf,"Spinner",n&&"IsDisabled",i&&"IsLoading"),children:v.jsx(qr,{icon:"Spinner"})}),v.jsx(Y_,{tooltip:_,delay:g,distance:h,direction:m,targetRef:C})]})},Y4="_AButton_vulhu_1",K4="_Primary_vulhu_14",X4="_Secondary_vulhu_19",J4="_Alter_vulhu_24",Q4="_AIconButton_vulhu_30",e5="_AThemeButton_vulhu_71",Wf={AButton:Y4,Primary:K4,Secondary:X4,Alter:J4,AIconButton:Q4,AThemeButton:e5},t5=["Primary","Secondary","Alter","Raw"],Bi=r=>{const{type:e="Primary",onClick:t,noInteractive:n,...i}=r,l=R.useMemo(()=>i.isDisabled||i.isLoading,[i.isDisabled,i.isLoading]),u=R.useCallback(h=>{l||t==null||t(h)},[l,t]);return v.jsx(Wr,{...i,className:He.clsx(i.className,Wf.AButton,e!=="Raw"&&Wf[e],"IsClickable",!l&&!n&&"IsInteractive"),onClick:u})},r5=["Primary","Secondary","Raw"],vo=r=>{const{icon:e,iconSize:t,type:n="Primary",onClick:i,isDisabled:l,isLoading:u,tooltip:h,className:g,...m}=r,M=R.useMemo(()=>l||u,[l,u]),T=R.useCallback(_=>{M||i==null||i(_)},[M,i]),C=R.useMemo(()=>lm.includes(e)?v.jsx(qr,{icon:e,size:t}):e,[e,t]);return v.jsx(Wr,{className:He.clsx(Wf.AIconButton,!l&&!u&&"IsClickable",n!=="Raw"&&Wf[n],g),onClick:T,isDisabled:l,isLoading:u,tooltip:h,...m,children:C})};function pn(r,e){r!==void 0&&r.length===1&&(e=r[0]);const t=R.useState(e);return R.useMemo(()=>r===void 0||r.length===1?t:r,[t,r])}const n5={Ok:"Ok",Cancel:"Cancel"},i5={"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..."},o5={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"},s5={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"},a5={"drop file to select":"Drop file to select","or Drag & Drop":"or Drag & Drop","Select File":"Select File"},l5={"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"},c5={"Select(Placeholder)":"Select"},u5={"Select(Placeholder)":"Select"},f5={"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"},d5={Asterisk:"Required field"},hn={ADialog:n5,ATree:i5,ADatePicker:o5,ADateRangePicker:s5,AFileBox:a5,ATable:l5,ASelect:c5,AMultiSelect:u5,AEditor:f5,AWrap:d5};function h5(r,e){rr.keys(e).forEach(t=>{r[t]=e[t]})}const p5=(r,e)=>{h5(hn[r],e)},g5="_AWrap_16uyn_1",m5="_Label_16uyn_8",v5="_Asterisk_16uyn_19",y5="_HelperTextConatiner_16uyn_23",b5="_HelperText_16uyn_23",Iu={AWrap:g5,Label:m5,Asterisk:v5,HelperTextConatiner:y5,HelperText:b5,Error:"_Error_16uyn_38"},_5=["Default","Error"],Wc=r=>{const{wrapProps:e,errorMessage:t,helperText:n,wrapType:i="Default",label:l,labelProps:u,children:h}=r,g=R.useRef(null),[m,M]=R.useState({height:0}),T=R.useRef(null),[C,_]=R.useMemo(()=>{let D=n,A=i;if(Array.isArray(t)){const b=t.filter(Boolean);b.length>0&&([D,A]=[b,"Error"])}else t&&([D,A]=[t,"Error"]);return Array.isArray(D)&&(A!=="Error"&&(D=D.filter(Boolean)),D=D.map((b,k)=>v.jsxs(R.Fragment,{children:[b,v.jsx("br",{})]},k))),[D,A]},[n,t,i]);R.useEffect(()=>{if(!C||!g.current)M({height:0});else{const D=g.current.getBoundingClientRect();M({height:D.height,marginTop:D.height===0?0:6})}},[C]);const S=R.useMemo(()=>{switch(typeof(u==null?void 0:u.prefix)){case"string":return v.jsx(qr,{width:"1rem",height:"1rem",icon:u.prefix});case"boolean":return v.jsx(qr,{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:He.clsx(e==null?void 0:e.className,Iu.AWrap),ref:T,children:[l&&v.jsxs("div",{className:He.clsx(Iu.Label,"NoSelect",u==null?void 0:u.className),style:u==null?void 0:u.style,children:[S,l,(u==null?void 0:u.asterisk)&&v.jsx(Wr,{tooltip:hn.AWrap.Asterisk,className:Iu.Asterisk,children:"*"})]}),h,C!==void 0&&v.jsx("div",{className:He.clsx(Iu.HelperTextConatiner,"NoSelect"),style:m,children:v.jsx("div",{className:He.clsx(Iu.HelperText,Iu[_]),ref:g,children:C})})]})},x5="_ASwitch_1uv2e_1",S5="_Track_1uv2e_6",C5="_Truthy_1uv2e_13",w5="_Thumb_1uv2e_17",Ef={ASwitch:x5,Track:S5,Truthy:C5,Thumb:w5},K_=r=>{const{wrapProps:e,helperText:t,label:n,useCheck:i,...l}=r,[u,h]=pn(i,!1),g=R.useCallback(m=>{var M;l.isDisabled||l.isLoading||(h==null||h(!u),(M=l.onClick)==null||M.call(l,m))},[l,u,h]);return v.jsx(Wc,{helperText:t,label:n,wrapProps:{...e},children:v.jsx(Wr,{...l,className:Ef.ASwitch,onClick:g,children:v.jsx("div",{className:He.clsx(Ef.Track,u&&Ef.Truthy),children:v.jsx("div",{className:He.clsx(Ef.Thumb,u&&Ef.Truthy)})})})})},A5={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"}}},bi=B_.cloneDeep(A5);rr.keys(bi.semantic).forEach(r=>{const e=bi.semantic[r];rr.keys(e).forEach(t=>{e[t]=`var(--${e[t]})`})});const nh=rr.keys(bi.palette),X_=rr.keys(bi.palette[nh[0]]);function T5(){return si.paletteMode}function E5(r,e=si.paletteMode){return bi.palette[e][r]}function k5(r){return oh(r)}const Vd=[];function J_(r){si.paletteMode=r,X_.forEach(e=>document.documentElement.style.setProperty(`--${e}`,bi.palette[r][e])),Vd.forEach(e=>e(r))}function Q_(r,e="all"){rr.keys(r).forEach(n=>{const i=r[n];i!==void 0&&(document.documentElement.style.setProperty(`--${n}`,i),e==="all"?nh.forEach(l=>{bi.palette[l][n]=i}):bi.palette[e][n]=i)})}const Uu=rr.keys(bi.semantic),e2=rr.keys(bi.semantic[Uu[0]]);function R5(){return si.semanticMode}function I5(r,e=si.semanticMode){return bi.semantic[e][r]}function L5(r){return oh(r)}const Gd=[];function um(r){si.semanticMode=r,document.documentElement.setAttribute("data-theme",r),e2.forEach(e=>document.documentElement.style.setProperty(`--${e}`,bi.semantic[r][e])),Gd.forEach(e=>e(r)),si.save==="localStorage"?localStorage.setItem("semanticMode",r):si.save==="sessionStorage"&&sessionStorage.setItem("semanticMode",r)}function t2(r,e=si.semanticMode){rr.keys(r).forEach(n=>{const i=r[n];i!==void 0&&(document.documentElement.style.setProperty(`--${n}`,i),e==="all"?Uu.forEach(l=>{bi.semantic[l][n]=i}):bi.semantic[e][n]=i)})}const r2=["Body-background-color","Body-color","Body-transition","Font","Scrollbar-handle","Scrollbar-handle-hover","Scrollbar-handle-active","Scrollbar-track","Scrollbar-border-radius","Scrollbar-width","Transition"],n2=["ABase_Dimming_background-color"],i2=["ATooltip_background-color","ATooltip_color"],o2=["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"],s2=["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"],a2=["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"],l2=["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"],c2=["ACheckBox_color"],u2=["ADialog_Paper_background-color","ADialog_background-color","ADialog_border","ADialog_Action_background-color"],f2=["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_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"],d2=["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_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"],h2=["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"],p2=["ASwitch_Track_Falsy_border","ASwitch_Track_Truthy_border","ASwitch_Thumb_border"],g2=["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"],m2=["AFileBox_border","AFileBox_background-color","AFileBox_SelectedFile_color","AFileBox_Dropping_color"],v2=["AListView_border-thin","AListView_border-thick"],y2=["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"],b2=["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"],_2=["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"],x2=["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"],S2=["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"],C2=["ADivideFrame_DividerInner_background-color"],w2=["AFloatMenu_background-color","AFloatMenu_hover_background-color","AFloatMenu_color","AFloatMenu_border"],A2=["ALoadingBorder_background-color","ALoadingBorder_ProgressBar_background-color","ALoadingBorder_Cover_background-color"],T2=["AWrap_Error_color"],E2=["ARadioSelect_RadioButton_border","ARadioSelect_RadioButton_InnerCircle_isChecked_background-color"],k2=["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"],M5=[...r2,...n2,...i2,...o2,...s2,...a2,...l2,...c2,...u2,...f2,...d2,...h2,...p2,...g2,...m2,...v2,...y2,...b2,..._2,...x2,...S2,...C2,...w2,...A2,...T2,...E2,...k2],ih={"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(--line-neutral)",ASelect_Secondary_hover_border:"1px solid var(--line-normal)",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-20)","ASelect_Secondary_Option_Selected_background-color":"var(--elevation-0)",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(--line-neutral)",AMultiSelect_Secondary_hover_border:"1px solid var(--line-normal)",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 D5(r){return ih[r]}function O5(r){return oh(r)}function R2(r){rr.keys(r).forEach(t=>{const n=r[t];n!==void 0&&(document.documentElement.style.setProperty(`--${t}`,n),ih[t]=n)})}function P5(r){rr.keys(r).forEach(t=>{const n=r[t];if(n===void 0)return;const i=bi.semantic[si.semanticMode][n];i!==void 0&&(document.documentElement.style.setProperty(t,i),ih[t]=i)})}const si={paletteMode:nh[0],semanticMode:Uu[0],save:"",followDeviceSetting:!1};function N5({semanticMode:r,save:e,followDeviceSetting:t}){if(t!==void 0&&(si.followDeviceSetting=t,t)){const n=window.matchMedia("(prefers-color-scheme: dark)"),i=u=>{si.semanticMode=u.matches?"dark":"light"};i(n);const l=u=>i(u);n.addEventListener("change",l)}if(e!==void 0){if(si.save=e,e==="localStorage"){const n=localStorage.getItem("semanticMode");Uu.includes(n)&&(si.semanticMode=n)}else if(e==="sessionStorage"){const n=sessionStorage.getItem("semanticMode");Uu.includes(n)&&(si.semanticMode=n)}}r!==void 0&&(si.semanticMode=r),J_(si.paletteMode),um(si.semanticMode),Q_(bi.palette[si.paletteMode]),t2(bi.semantic[si.semanticMode]),R2(ih)}function j5(r){r.type==="semanticModeChange"?Gd.push(r.listener):r.type==="paletteModeChange"?Vd.push(r.listener):console.error("AThemes.addEventListener : parameter is not valid")}function F5(r){if(r.type==="semanticModeChange"){const e=Gd.indexOf(r.listener);e!==-1&&Gd.splice(e,1)}else if(r.type==="paletteModeChange"){const e=Vd.indexOf(r.listener);e!==-1&&Vd.splice(e,1)}else console.error("AThemes.removeEventListener : parameter is not valid")}function oh(r){const e=window.getComputedStyle(document.documentElement);let t=e.getPropertyValue(r);return t===""&&(t=e.getPropertyValue(`--${r}`)),t}function B5(r){Object.assign(He.additionalClasses,r),He.updateKeys(),He.additionalClasses=He.additionalClasses}const Of={getCurrentPaletteMode:T5,getPaletteValue:E5,getPaletteDeepValue:k5,changePaletteMode:J_,editPalette:Q_,getCurrentSemanticMode:R5,getSemanticValue:I5,getSemanticDeepValue:L5,changeSemanticMode:um,editSemantic:t2,getComponentStyleValue:D5,getComponentStyleDeepValue:O5,editComponentStyle:R2,editComponentStyleWithSemantic:P5,init:N5,addEventListener:j5,removeEventListener:F5,getDeepValue:oh,addClasses:B5},q5=r=>{const{onChange:e,onClick:t,type:n="Icon",...i}=r,[l,u]=R.useState(Of.getCurrentSemanticMode()==="dark"?"Moon":"Sun"),h=R.useCallback(g=>{const m=Of.getCurrentSemanticMode();let M="light";m==="light"?M="dark":m==="dark"&&(M="light"),Of.changeSemanticMode(M),u(H5[M]),e==null||e(M),t==null||t(g)},[e,t]);if(n==="Icon")return v.jsx(vo,{...i,className:He.clsx(Wf.AThemeButton,i.className,"IsInteractive"),type:"Raw",icon:l,onClick:h});if(n==="Switch")return v.jsx(K_,{...i,useCheck:[Of.getCurrentSemanticMode()==="dark",h]})},H5={light:"Sun",dark:"Moon"},z5="_ACheckBoxWrap_1ozuz_1",$5="_ACheckBox_1ozuz_1",Wv={ACheckBoxWrap:z5,ACheckBox:$5},Wu=r=>{const{useCheck:e,isIndeterminate:t,isDisabled:n,isLoading:i,onClick:l,...u}=r,[h,g]=pn(e,!1),m=R.useCallback(M=>{n||i||(g==null||g(!h),l==null||l(M))},[n,i,l,h,g]);return v.jsx(Wr,{...u,className:He.clsx(u.className,Wv.ACheckBoxWrap),isDisabled:n,isLoading:i,onClick:m,children:v.jsx(qr,{className:Wv.ACheckBox,icon:t?"Check.Indeterminate":h?"Check.Checked":"Check.UnChecked"})})};function U5(r){return typeof r=="function"}function W5(r,e){return U5(r)?r(e):r}const Rr={getContent:W5},V5="_ARowFrame_1586b_1",G5="_AColFrame_1586b_7",Z5="_AOverflowFrame_1586b_13",Y5="_ADivideFrame_1586b_22",K5="_Row_1586b_28",X5="_Col_1586b_31",J5="_ChildFrame_1586b_35",Q5="_IsReturning_1586b_48",eT="_Divider_1586b_52",tT="_IsMoving_1586b_60",rT="_DividerInner_1586b_66",nT="_IsClicked_1586b_91",qo={ARowFrame:V5,AColFrame:G5,AOverflowFrame:Z5,ADivideFrame:Y5,Row:K5,Col:X5,ChildFrame:J5,IsReturning:Q5,Divider:eT,IsMoving:tT,DividerInner:rT,IsClicked:nT},Vn=r=>v.jsx(Wr,{...r,className:He.clsx(qo.ARowFrame,r.className),children:r.children}),I2=r=>v.jsx("div",{...r,className:He.clsx(qo.AColFrame,r.className),children:r.children}),Jl=r=>{const{tooltip:e,children:t,abaseRef:n,isDisabled:i,className:l,noOverflowTooltip:u,...h}=r,g=R.useRef(null),m=R.useMemo(()=>n??g,[n]),[M,T]=R.useState(!1),C=R.useCallback(()=>T(!0),[]),_=R.useCallback(()=>T(!1),[]);R.useEffect(()=>{const D=m.current;if(D)return D.addEventListener("mouseenter",C),D.addEventListener("mouseleave",_),()=>{D.removeEventListener("mouseenter",C),D.removeEventListener("mouseleave",_)}},[m,C,_]);const S=R.useMemo(()=>i?"":u||!M||!m.current?e:m.current.scrollWidth>m.current.clientWidth?t:e,[m,i,t,e,u,M]);return v.jsx(Wr,{...h,isDisabled:i,children:t,abaseRef:m,tooltip:S,className:He.clsx(qo.AOverflowFrame,l)})},L2=r=>{const{value:e,map:t}=r;return t[e]===void 0?t.fallback:v.jsx(R.Suspense,{children:t[e]})},Gh={},iT=r=>{const{pk:e,direction:t="Row",lefts:n,minLength:i=40,children:l,childStyle:u,childClassName:h,dividerStyle:g,dividerClassName:m,dividerPadding:M,dividerInnerClassName:T,dividerInnerStyle:C,..._}=r,S=R.useMemo(()=>{let ne;return typeof l=="object"&&Array.isArray(l)?ne=l:ne=[l],ne=ne.filter(se=>se!=null&&se!==!1),ne},[l]),[D,A]=R.useState(e===void 0?n:Gh[e]??n),b=R.useMemo(()=>typeof i=="number"?Array(S.length).fill(i+(M??0)):i.map(ne=>ne+(M??0)),[i,S.length,M]),[k,O]=R.useState(),H=R.useMemo(()=>k!==void 0?k:D,[k,D]),q=R.useRef(null),G=R.useRef({x:0,y:0}),[Y,he]=R.useState(),J=R.useCallback((ne,se)=>{if(q.current===null)return;const ue=q.current;G.current={x:ne.clientX,y:ne.clientY},O(D),he(se);let ve=[...D];const le=pe=>{const _e=ue.getBoundingClientRect(),De=t==="Row"?_e.left:_e.top,Fe=t==="Row"?_e.width:_e.height;ve=aT(D,t,se,pe,De,Fe,b),O(ve)},me=()=>{he(void 0),O(void 0),A(ve),e!==void 0&&(Gh[e]=ve),window.removeEventListener("mousemove",le),window.removeEventListener("mouseup",me)};window.addEventListener("mousemove",le),window.addEventListener("mouseup",me)},[D,e,t,b]),[fe,P]=R.useState(!1),re=R.useCallback(()=>{A(n),e!==void 0&&(Gh[e]=n),P(!0)},[n,e]),Q=R.useMemo(()=>S.map((ne,se)=>{const ue=H[se],ve=ue-(se===0?0:H[se-1]),le=se===0,me=se===S.length-1,pe={...u,...oT(t,ve,me)};return M!==void 0&&(t==="Row"?(le||(pe.paddingLeft=M),me||(pe.paddingRight=M)):(le||(pe.paddingTop=M),me||(pe.paddingBottom=M))),v.jsxs(R.Fragment,{children:[v.jsx("div",{className:He.clsx(qo.ChildFrame,h,fe&&qo.IsReturning,qo[t]),onTransitionEnd:()=>P(!1),style:pe,children:ne}),!me&&v.jsx("div",{className:He.clsx(qo.Divider,qo[t],"NoSelect",Y!==void 0&&qo.IsMoving,Y===se&&qo.IsClicked,m),style:{...g,...sT(t,ue)},onMouseDown:_e=>J(_e,se),onDoubleClick:re,children:v.jsx("div",{className:He.clsx(qo.DividerInner,T),style:C})})]},se)}),[S,H,u,t,M,h,fe,Y,m,g,re,T,C,J]);return v.jsx("div",{..._,className:He.clsx(qo.ADivideFrame,r.className,qo[t]),ref:q,children:Q})};function oT(r,e,t){return t?{}:r==="Col"?{height:e,minHeight:e,maxHeight:e}:{maxWidth:e,width:e,minWidth:e}}function sT(r,e){return r==="Col"?{top:e}:{left:e}}function aT(r,e,t,n,i,l,u){const h=[...r];let g=n.clientX-i-r[t];e==="Col"&&(g=n.clientY-i-r[t]);const m=T=>u.slice(0,T+1).reduce((C,_)=>C+_,0),M=T=>u.slice(T+1).reduce((C,_)=>C+_,0);if(g<0){let T=h[t]+g;if(T<=m(t))for(let C=0;C<=t;C++)h[C]=m(C);else if(h[t]=T,t>0)for(let C=t-1;C>=0&&T-h[C]<u[C];C--)h[C]=T-u[t],T=h[C]}else if(g>0){let T=h[t]+g;if(T>=l-M(t))for(let C=t;C<r.length;C++)h[C]=l-M(C);else if(h[t]=T,t<r.length-1)for(let C=t+1;C<r.length&&h[C]-T<u[C];C++)h[C]=T+u[C],T=h[C]}return h}const Kc=()=>v.jsx("div",{style:{display:"flex",flexGrow:1}}),lT="_ASpace_1okqf_1",cT={ASpace:lT},mn=r=>{const{h:e,w:t,...n}=r;return v.jsx("div",{...n,className:He.clsx(cT.ASpace,n.className),style:{height:e,minHeight:e,maxHeight:e,width:t,minWidth:t,maxWidth:t,...n.style}})},uT="_AChipsContainer_1ag9v_1",fT="_AChip_1ag9v_1",dT="_Clickable_1ag9v_21",hT="_AChipDelete_1ag9v_26",pT="_IsHover_1ag9v_40",gT="_AChipDeleteIcon_1ag9v_45",Bu={AChipsContainer:uT,AChip:fT,Clickable:dT,AChipDelete:hT,IsHover:pT,AChipDeleteIcon:gT},mT=r=>{const{useLabels:e,alignItems:t="flex-start",ChipStyle:n,ChipClassName:i,ChipOnDelete:l,ChipOnClick:u,ChipIcon:h,className:g,style:m,ButtonRenderer:M=D2,gap:T=8,...C}=r,[_,S]=pn(e,[]),D=R.useCallback(b=>{!S||!l||(l({label:b}),S(_.filter(k=>k!==b)))},[S,l,_]),A=R.useCallback(b=>{const k={label:b};return{label:b,useLabel:[b,()=>{}],style:Rr.getContent(n,k),className:Rr.getContent(i,k),icon:Rr.getContent(h,k),onDelete:()=>D(b),onClick:u?()=>u({label:b}):void 0}},[i,h,u,n,D]);return v.jsx(Wr,{...C,style:{...m,alignItems:t,gap:T},className:He.clsx(Bu.AChipsContainer,g),children:_.map((b,k)=>v.jsx(M2,{...A(b),ButtonRenderer:M},k))})},M2=r=>{const{label:e,useLabel:t,icon:n,className:i,onDelete:l,onClick:u,ButtonRenderer:h=D2,width:g="fit-content",style:m,...M}=r;return e===void 0?v.jsx(v.Fragment,{}):v.jsxs(Wr,{...M,style:{...m,width:g},onClick:u,className:He.clsx("NoSelect",Bu.AChip,u&&Bu.Clickable,u&&"IsClickable",i),children:[v.jsx(Jl,{children:e}),h({...r})]})},D2=r=>{const{label:e,icon:t,onDelete:n,useLabel:i}=r,[,l]=pn(i,e),[u,h]=R.useState(!1),g=R.useCallback(T=>{n&&(T.stopPropagation(),l==null||l(void 0),n(r))},[n,r,l]),m=()=>{h(!0)},M=()=>{h(!1)};return v.jsx(v.Fragment,{children:n&&v.jsxs(v.Fragment,{children:[v.jsx(Kc,{}),v.jsx(mn,{w:24}),v.jsx(Wr,{className:He.clsx(Bu.AChipDelete,"IsClickable",u&&Bu.IsHover)}),v.jsx(vo,{type:"Raw",onClick:g,onMouseEnter:m,onMouseLeave:M,icon:t||v.jsx(qr,{icon:"Close",stroke:"currentColor",width:14,height:14}),className:Bu.AChipDeleteIcon})]})})},vT=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},yT=/[a-zA-Z0-9]/,bT=/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9]{2,}$/,_T=/^[a-zA-Z0-9._-]+$/,xT=/^[0-9a-fA-F-]+$/i,ST=/[가-힣ㄱ-ㅎㅏ-ㅣ]/,CT=/^\S*$/,wT=/^([^ㄱ-ㅎㅏ-ㅣ])*$/i,AT=/[!@#$%^&*+=;:?/<>\\[\](){}~\-_.(),]/,TT=/^(?=.*[A-Za-z])(?=.*\d)(?=.*[\W_])[A-Za-z\d\W_]{8,}$/,ET=/^[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}$/,kT={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)},O2={secondToTime:vT,validate:kT},RT=r=>{const{maxTicks:e=300,interval:t=1e3,onFinish:n,noStartOnRender:i,actionRef:l,wrapProps:u,helperText:h,label:g,...m}=r,[M,T]=R.useState(0),[C,_]=R.useState(!i);R.useEffect(()=>{if(!C||m.isDisabled||m.isLoading)return;const O=setInterval(()=>T(H=>H+1),t);return()=>clearInterval(O)},[t,C,m.isDisabled,m.isLoading]);const S=R.useCallback(()=>{n==null||n(),_(!1)},[n]);R.useEffect(()=>{M>=e&&!m.isDisabled&&!m.isLoading&&S()},[M,e,S,m.isDisabled,m.isLoading]);const D=R.useCallback(()=>{m.isDisabled||_(!0)},[m.isDisabled]),A=R.useCallback(()=>{m.isDisabled||_(!1)},[m.isDisabled]),b=R.useCallback(()=>{m.isDisabled||(_(!1),T(0))},[m.isDisabled]);R.useEffect(()=>{l&&(l.current={start:D,stop:A,reset:b,setTicks:T})},[l,D,A,b]);const k=e-M;return v.jsx(Wc,{wrapProps:u,helperText:h,label:g,children:v.jsx(Wr,{...m,children:O2.secondToTime(k>0?k:0)})})};function Hs(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 IT(r){try{if(!r)return;const e=new Date(r);return isNaN(e.getTime())?void 0:e}catch{return}}function LT(r){return new Date(r.getFullYear(),r.getMonth(),r.getDate(),0,0,0,0)}function MT(r){return new Date(r.getFullYear(),r.getMonth(),r.getDate(),23,59,59,999)}function Vv(r,e){return Hs(r)===Hs(e)}function qu(r,e){return Hs(r)>Hs(e)}function Zd(r,e){return Hs(r)>=Hs(e)}function Yd(r,e){return Hs(r)<Hs(e)}function Kd(r,e){return Hs(r)<=Hs(e)}function Gv(r,e,t){return qu(r,t)?qu(e,t)&&Yd(e,r):qu(e,r)&&Yd(e,t)}function Zv(r,e,t){return qu(r,t)?Zd(e,t)&&Kd(e,r):Zd(e,r)&&Kd(e,t)}const Yt={toString:Hs,toDate:IT,makeSDate:LT,makeEDate:MT,"===":Vv,">":qu,">=":Zd,"<":Yd,"<=":Kd,"s<d<e|e<d<s":Gv,"s<=d<=e|e<=d<=s":Zv,eq:Vv,g:qu,ge:Zd,l:Yd,le:Kd,b:Gv,be:Zv},DT="_InputContainer_gsbiq_7",OT="_AInput_gsbiq_21",PT="_LeftAddon_gsbiq_40",NT="_RightAddon_gsbiq_46",jT="_ErrorHelperText_gsbiq_52",FT="_Primary_gsbiq_56",BT="_UnAvailable_gsbiq_61",qT="_Secondary_gsbiq_72",HT="_ReadOnly_gsbiq_87",Qi={InputContainer:DT,AInput:OT,LeftAddon:PT,RightAddon:NT,ErrorHelperText:jT,Primary:FT,UnAvailable:BT,Secondary:qT,ReadOnly:HT,Error:"_Error_gsbiq_52"},zT=["Primary","Secondary","ReadOnly","Error"],Ql=r=>{const{onEnterPress:e,errorMessage:t,type:n="Primary",inputRef:i,useValue:l,isReadonly:u,placeholder:h,minLength:g,maxLength:m,tabIndex:M,autoFocus:T,isPassword:C,autoComplete:_="off",inputProps:S,LeftAddon:D,RightAddon:A,wrapProps:b,helperText:k,label:O,wrapType:H,labelProps:q,...G}=r,Y=R.useMemo(()=>$T(t)?"Error":n,[t,n]),he=R.useMemo(()=>Y==="ReadOnly"?!0:u,[Y,u]),J=R.useMemo(()=>G.isDisabled||G.isLoading,[G.isDisabled,G.isLoading]),[fe,P]=pn(l,""),re=R.useCallback(ne=>{var se;J||((se=S==null?void 0:S.onKeyDown)==null||se.call(S,ne),["Escape","Enter","ArrowUp","ArrowDown"].includes(ne.key)||ne.stopPropagation(),ne.key==="Enter"&&e&&e(ne.currentTarget.value))},[J,S,e]),Q=R.useCallback(ne=>{var se;J||g&&ne.target.value.length<g||(P==null||P(ne.target.value),(se=S==null?void 0:S.onChange)==null||se.call(S,ne))},[J,g,P,S]);return C?v.jsx(Wc,{wrapProps:b,label:O,helperText:k,errorMessage:t,wrapType:H,labelProps:q,children:v.jsx("form",{onSubmit:ne=>ne.preventDefault(),children:v.jsxs(Wr,{...G,className:He.clsx(Qi.InputContainer,Qi[Y],J&&Qi.UnAvailable,G.className),children:[D&&v.jsx("div",{className:Qi.LeftAddon,children:D}),v.jsx("input",{...S,className:He.clsx(Qi.AInput,Y==="Error"&&Qi.InputError,S==null?void 0:S.className),value:fe,type:"password",readOnly:he,onChange:Q,onKeyDown:re,placeholder:h,maxLength:m,tabIndex:G.isDisabled||G.isLoading?-1:M,autoFocus:T,autoComplete:_,ref:i}),A&&v.jsx("div",{className:He.clsx(Qi.RightAddon,"NoSelect"),children:A})]})})}):v.jsx(Wc,{wrapProps:b,label:O,helperText:k,errorMessage:t,wrapType:H,labelProps:q,children:v.jsxs(Wr,{...G,className:He.clsx(Qi.InputContainer,Qi[Y],J&&Qi.UnAvailable,G.className),children:[D&&v.jsx("div",{className:Qi.LeftAddon,children:D}),v.jsx("input",{...S,className:He.clsx(Qi.AInput,Y==="Error"&&Qi.InputError,S==null?void 0:S.className),value:fe,readOnly:he,onChange:Q,onKeyDown:re,placeholder:h,maxLength:m,tabIndex:G.isDisabled||G.isLoading?-1:M,autoFocus:T,autoComplete:_,ref:i}),A&&v.jsx("div",{className:Qi.RightAddon,children:A})]})})};function $T(r){return Array.isArray(r)?r.filter(Boolean).length>0:!!r}const UT="_ASelect_spf0a_1",WT="_Arrow_spf0a_14",VT="_Primary_spf0a_23",GT="_UnAvailable_spf0a_34",ZT="_IsOpen_spf0a_34",YT="_Secondary_spf0a_41",KT="_Placeholder_spf0a_56",XT="_ValuesContainer_spf0a_60",JT="_Values_spf0a_60",QT="_Options_spf0a_79",eE="_Option_spf0a_79",tE="_Selected_spf0a_121",rE="_CheckBox_spf0a_128",Bo={ASelect:UT,Arrow:WT,Primary:VT,UnAvailable:GT,IsOpen:ZT,Secondary:YT,Placeholder:KT,ValuesContainer:XT,Values:JT,Options:QT,Option:eE,Selected:tE,CheckBox:rE},nE=["Primary","Secondary"],Vc=r=>{const{options:e,useSelect:t,type:n="Primary",placeholder:i=hn.ASelect["Select(Placeholder)"],onClose:l,OptionRenderer:u=oE,SelectedRenderer:h=sE,minShowRows:g=2,maxShowRows:m=6,arrowProps:M,...T}=r,C=R.useRef(null),_=R.useMemo(()=>T.abaseRef??C,[T.abaseRef]),S=R.useRef(null),[D,A]=pn(t,e[0]),[b,k]=R.useState(!1),[O,H]=R.useState(!1),q=R.useCallback(()=>H(!1),[]),G=R.useCallback(()=>{T.isDisabled||T.isLoading||e.length<1||(H(!0),setTimeout(()=>k(!0),0),setTimeout(()=>Zh(S,_,e,g,m),0))},[_,T.isDisabled,T.isLoading,e,g,m]),Y=R.useCallback(()=>{k(!1),H(!0),l==null||l()},[l]),he=R.useCallback(ne=>{var se;b?Y():G(),setTimeout(()=>Zh(S,_,e,g,m),0),(se=T.onClick)==null||se.call(T,ne)},[_,T,e,b,Y,G,g,m]),J=R.useCallback(()=>{Zh(S,_,e,g,m)},[_,e,g,m]);R.useEffect(()=>{if(!b||!_.current)return;const ne=_.current;let se=ne.parentElement;for(;se;)se.addEventListener("scroll",J),se=se.parentElement;return()=>{let ue=ne.parentElement;for(;ue;)ue.removeEventListener("scroll",J),ue=ue.parentElement}},[_,b,J]),R.useEffect(()=>{if(b)return window.addEventListener("resize",J),()=>window.removeEventListener("resize",J)},[b,J]);const fe=R.useCallback(ne=>{ne[0].intersectionRatio===0&&Y()},[Y]);R.useEffect(()=>{if(!b)return;const ne=new IntersectionObserver(fe,{threshold:0});return _.current&&ne.observe(_.current),()=>ne.disconnect()},[_,b,fe]);const P=R.useCallback(ne=>{const se=ne.target,ue=_.current,ve=S.current;!ue||!se||!ve||!ue.contains(se)&&!ve.contains(se)&&Y()},[_,Y]),re=R.useMemo(()=>T.isDisabled||T.isLoading||e.length<1,[T.isDisabled,T.isLoading,e]);R.useEffect(()=>{if(b)return setTimeout(()=>document.addEventListener("mousedown",P),0),()=>document.removeEventListener("mousedown",P)},[b,P]);const Q=R.useCallback((ne,se)=>{ne.stopPropagation(),ne.preventDefault(),A==null||A(se),Y()},[A,Y]);return v.jsxs(v.Fragment,{children:[v.jsxs(Wr,{...T,isDisabled:T.isDisabled||e.length<1,className:He.clsx(T.className,Bo.ASelect,"NoSelect",b&&Bo.IsOpen,re&&Bo.UnAvailable,Bo[n]),abaseRef:_,onClick:he,children:[v.jsx("div",{className:Bo.ValuesContainer,children:v.jsx("div",{className:He.clsx(Bo.Values,(D==null||D==="")&&Bo.Placeholder),children:v.jsx(h,{selectedOption:D,OptionRenderer:u,placeholder:i})})}),v.jsx("div",{...M,className:He.clsx(Bo.Arrow,M==null?void 0:M.className),children:v.jsx(qr,{style:{transform:b?"rotate(180deg)":"",transition:"var(--Transition)"},icon:"TriangleDown"})})]}),e.length>0&&(b||O)&&Bs.createPortal(v.jsx("div",{className:He.clsx(Bo.Options,Bo[n]),onTransitionEnd:q,style:{opacity:+b,visibility:b?"visible":"hidden",pointerEvents:b?void 0:"none",borderRadius:_.current?window.getComputedStyle(_.current).borderRadius:void 0},ref:S,children:e.map((ne,se)=>{const ue=D===ne,ve=_.current?window.getComputedStyle(_.current):void 0;return ne===null?null:v.jsx("div",{className:He.clsx(Bo.Option,ue&&Bo.Selected,"NoSelect",Bo[n]),style:{height:ve==null?void 0:ve.height},onClick:le=>Q(le,ne),children:v.jsx(u,{option:ne})},se)})}),document.body)]})};function Zh(r,e,t,n,i){if(!e.current||!r.current||!t||t.length<1)return;const l=e.current.getBoundingClientRect(),u=iE(l,t.length,n,i),h=window.getComputedStyle(e.current);r.current.style.top=`calc(${u.top??0}px - ${h.borderTopWidth})`,r.current.style.bottom=u.bottom?u.bottom+"px":"",r.current.style.left=u.left+"px",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 iE(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 oE=r=>{const{option:e}=r;return rr.isReactNode(e)?e:null},sE=r=>{const{selectedOption:e,OptionRenderer:t,placeholder:n}=r;return e==null||e===""?n:v.jsx(t,{option:e})},aE="_Anchor_502n9_1",lE="_Primary_502n9_18",cE="_Secondary_502n9_21",uE="_Placeholder_502n9_25",fE="_Icon_502n9_30",dE="_ADatePicker_502n9_37",hE="_StringInputWrap_502n9_48",pE="_StringInputContainer_502n9_53",gE="_StringInput_502n9_48",mE="_IsIdx_502n9_68",vE="_CalendarContainer_502n9_72",yE="_Header_502n9_78",bE="_Prev_502n9_82",_E="_Next_502n9_83",xE="_MonthYear_502n9_116",SE="_Select_502n9_121",CE="_Calendar_502n9_72",wE="_Cell_502n9_132",AE="_IsNotCurrentMonth_502n9_144",TE="_IsSelected_502n9_148",EE="_IsDisabled_502n9_152",kE="_IsHovered_502n9_155",RE="_Week_502n9_159",IE="_WeekDay_502n9_164",rn={Anchor:aE,Primary:lE,Secondary:cE,Placeholder:uE,Icon:fE,ADatePicker:dE,StringInputWrap:hE,StringInputContainer:pE,StringInput:gE,String:"_String_502n9_48",IsIdx:mE,CalendarContainer:vE,Header:yE,Prev:bE,Next:_E,MonthYear:xE,Select:SE,Calendar:CE,Cell:wE,IsNotCurrentMonth:AE,IsSelected:TE,IsDisabled:EE,IsHovered:kE,Week:RE,WeekDay:IE},LE="_Anchor_iz4hf_1",ME="_Primary_iz4hf_18",DE="_Secondary_iz4hf_22",OE="_Placeholder_iz4hf_26",PE="_Icon_iz4hf_31",NE="_ADateRangePicker_iz4hf_38",jE="_StringInputWrap_iz4hf_49",FE="_StringInputContainer_iz4hf_53",BE="_StringInput_iz4hf_49",qE="_IsIdx_iz4hf_69",HE="_CalendarContainer_iz4hf_73",zE="_Header_iz4hf_79",$E="_Prev_iz4hf_83",UE="_Next_iz4hf_84",WE="_MonthYear_iz4hf_117",VE="_Select_iz4hf_122",GE="_Calendar_iz4hf_73",ZE="_Cell_iz4hf_133",YE="_IsNotCurrentMonth_iz4hf_145",KE="_IsSelected_iz4hf_149",XE="_IsDisabled_iz4hf_153",JE="_IsHovered_iz4hf_156",QE="_Week_iz4hf_160",e6="_WeekDay_iz4hf_165",t6="_ChoiceButton_iz4hf_169",Br={Anchor:LE,Primary:ME,Secondary:DE,Placeholder:OE,Icon:PE,ADateRangePicker:NE,StringInputWrap:jE,StringInputContainer:FE,StringInput:BE,String:"_String_iz4hf_49",IsIdx:qE,CalendarContainer:HE,Header:zE,Prev:$E,Next:UE,MonthYear:WE,Select:VE,Calendar:GE,Cell:ZE,IsNotCurrentMonth:YE,IsSelected:KE,IsDisabled:XE,IsHovered:JE,Week:QE,WeekDay:e6,ChoiceButton:t6},fm=r=>{const{type:e="Primary",className:t,useDateRange:n,actionRef:i,position:l=Xu.SE,minDate:u,maxDate:h,isDisabled:g,isLoading:m,yearsOptionSize:M,noDefaultChoices:T,LeftAddon:C,RightAddon:_,placeholder:S,noClearButton:D,resources:A,onClick:b,...k}=r,O=R.useMemo(()=>({...hn.ADateRangePicker,...A}),[A]),H=R.useMemo(()=>S??O["Select DateRange"],[S,O]),[q,G]=R.useMemo(()=>{let X,Ee;if(u&&(X=Yt.makeSDate(u)),h&&(Ee=Yt.makeEDate(h)),X&&Ee&&Yt["<"](Ee,X)){console.warn("ADateRangePicker: maxDate should be greater than minDate. maxDate and minDate are swapped.");const je=X;X=Ee,Ee=je}return[X,Ee]},[u,h]),[Y,he]=R.useState("sD"),[J,fe]=pn(n,void 0),P=R.useCallback(X=>{fe&&(X===void 0?(fe(void 0),Te(""),Qe("")):(fe({sDate:Yt.makeSDate(X.sDate),eDate:Yt.makeEDate(X.eDate)}),Te(Yt.toString(X.sDate)),Qe(Yt.toString(X.eDate))))},[fe]);R.useEffect(()=>{J&&(Te(Yt.toString(J.sDate)),Qe(Yt.toString(J.eDate)))},[J]);const re=R.useCallback(X=>{if(!fe)return;let Ee=J?J.sDate:Yt.makeSDate(X);X=Yt.makeEDate(X),fe({sDate:Ee,eDate:X}),Te(Yt.toString(Ee)),Qe(Yt.toString(X))},[fe,J]),[Q,ne]=R.useState(),[se,ue]=R.useState(),ve=R.useCallback(X=>{Y==="sD"&&P({sDate:X,eDate:X}),ne(X),ue(X)},[Y,P,ne]),le=R.useCallback(X=>{Y==="sD"?Q&&(Yt.eq(Q,X)?he("eD"):Yt[">"](X,Q)?(re(X),ne(void 0)):(P({sDate:X,eDate:Q}),ne(void 0))):(J?Yt["<"](X,J.sDate)?P({sDate:X,eDate:J.eDate}):re(X):P({sDate:X,eDate:X}),ne(void 0),he("sD"))},[re,Q,he,Y,P,J,ne]),me=R.useCallback(X=>{Q&&ue(X)},[Q]),pe=R.useCallback(()=>{ue(void 0),ne(void 0),he("sD")},[he,ne]),[_e,De]=R.useState(Yv(J,q,G)),Fe=R.useMemo(()=>dm(_e.year,q,G,M),[_e.year,q,G,M]),Xe=R.useMemo(()=>Vf(_e.year,q,G),[q,G,_e.year]),we=R.useCallback(X=>{if(!Fe.includes(X))return;const Ee={month:_e.month,year:X},je=Vf(Ee.year,q,G);je.length<1||(je.includes(Ee.month)||(Ee.month<je[0]?Ee.month=je[0]:Ee.month>je[je.length-1]&&(Ee.month=je[je.length-1])),De(Ee))},[q,G,Fe,_e.month]),it=R.useCallback(X=>{Xe.includes(X)&&De({month:X,year:_e.year})},[Xe,_e.year]),ht=R.useMemo(()=>G?new Date(_e.year,_e.month+1,1)>G:!1,[_e,G]),Je=R.useCallback(()=>{if(ht||Xe.length<1)return;const X=_e.month+1;X>11?De({month:Xe[0],year:_e.year+1}):De({month:X,year:_e.year})},[ht,Xe,_e]),Ze=R.useMemo(()=>q?new Date(_e.year,_e.month,0)<q:!1,[_e,q]),Le=R.useCallback(()=>{if(Ze||Xe.length<1)return;const X=_e.month-1;X<Xe[0]?De({month:Xe[Xe.length-1],year:_e.year-1}):De({month:X,year:_e.year})},[Ze,Xe,_e]),[ke,Te]=R.useState(J!=null&&J.sDate?Yt.toString(J.sDate):""),Be=R.useCallback(X=>{if(X.length>10||(Te(X),X.length<10)||!fe)return;let Ee=Yt.toDate(X);if(!Ee)return;q&&Ee<q&&(Ee=q),G&&Ee>G&&(Ee=G);let je=J?J.eDate:Ee;J&&Yt[">"](Ee,je)&&([Ee,je]=Kv(Ee,je)),P({sDate:Ee,eDate:je}),De({month:Ee.getMonth(),year:Ee.getFullYear()})},[fe,P,J,q,G]),[Re,Qe]=R.useState(J!=null&&J.eDate?Yt.toString(J.eDate):""),ct=R.useCallback(X=>{if(X.length>10||(Qe(X),X.length<10)||!fe)return;let Ee=Yt.toDate(X);if(!Ee)return;q&&Ee<q&&(Ee=q),G&&Ee>G&&(Ee=G);let je=J?J.sDate:Ee;J&&Yt[">"](je,Ee)&&([je,Ee]=Kv(je,Ee)),P({sDate:je,eDate:Ee}),De({month:Ee.getMonth(),year:Ee.getFullYear()})},[fe,P,J,q,G]),kt=R.useCallback(()=>{J&&(Te(Yt.toString(J.sDate)),Qe(Yt.toString(J.eDate)))},[J]),At=R.useMemo(()=>{const{month:X,year:Ee}=_e,je=new Date(Ee,X,1),St=new Date(Ee,X+1,0),ft=[];for(let Ut=0;Ut<je.getDay();Ut++){const Qt=new Date(Ee,X,0).getDate()-je.getDay()+Ut+1,xt=new Date(Ee,X-1,Qt),Et=q&&q>xt||G&&G<xt,gt=J?Yt.be(J.sDate,xt,J.eDate):!1,Ft=se&&J&&Yt.be(J.sDate,xt,se);ft.push({day:Qt,isSelected:gt,isHovered:Ft,date:xt,isDisabled:Et,isCurrentMonth:!1})}for(let Ut=1;Ut<=St.getDate();Ut++){const Lt=new Date(Ee,X,Ut),Qt=q&&q>Lt||G&&G<Lt,xt=J?Yt.be(J.sDate,Lt,J.eDate):!1,Et=se&&J&&Yt.be(J.sDate,Lt,se);ft.push({day:Ut,isSelected:xt,isHovered:Et,date:Lt,isDisabled:Qt,isCurrentMonth:!0})}for(let Ut=0;Ut<7-St.getDay()-1;Ut++){const Lt=new Date(Ee,X+1,Ut+1),Qt=q&&q>Lt||G&&G<Lt,xt=J?Yt.be(J.sDate,Lt,J.eDate):!1,Et=se&&J&&Yt.be(J.sDate,Lt,se);ft.push({day:Ut+1,isSelected:xt,isHovered:Et,date:Lt,isDisabled:Qt,isCurrentMonth:!1})}const mt=[];for(let Ut=0;Ut<ft.length/7;Ut++)mt.push(v.jsx("div",{className:Br.Week,children:ft.slice(Ut*7,Ut*7+7).map((Lt,Qt)=>v.jsx(Bi,{type:"Raw",className:He.clsx(Br.Day,Br.Cell,Lt.isDisabled?Br.IsDisabled:Lt.isCurrentMonth?Lt.isSelected?Br.IsSelected:Lt.isHovered&&Br.IsHovered:Br.IsNotCurrentMonth),isDisabled:Lt.isDisabled,onMouseDown:()=>Lt.isCurrentMonth&&ve(Lt.date),onMouseUp:()=>Lt.isCurrentMonth&&le(Lt.date),onMouseEnter:()=>Lt.isCurrentMonth&&me(Lt.date),children:Lt.day},Qt))},Ut));return mt},[_e,se,J,q,G,ve,le,me]),bt=R.useRef(null),Dt=R.useCallback(()=>{bt&&cm(bt,Ie,l)},[bt,l]),[Rt,ut]=R.useState(!1),[ot,wt]=R.useState(!1),Ie=R.useRef(null),pt=R.useCallback(()=>{g||m||(ut(!0),setTimeout(()=>wt(!0),0),setTimeout(()=>Dt(),0),De(Yv(J,q,G)))},[g,m,J,Dt,q,G]),_t=R.useCallback(()=>{g||m||(ut(!0),wt(!1))},[g,m]),Ot=R.useMemo(()=>ot?_t:pt,[ot,pt,_t]),$t=R.useCallback(()=>ut(!1),[]),Ue=R.useCallback(X=>{const Ee=document.getElementById("root"),je=X.target,St=Ie.current,ft=bt.current;!Ee||!St||!je||!ft||!St.contains(je)&&Ee.contains(je)&&!ft.contains(je)&&_t()},[_t]);R.useEffect(()=>{if(ot)return setTimeout(()=>document.addEventListener("mousedown",Ue),0),()=>document.removeEventListener("mousedown",Ue)},[ot,Ue]);const Tt=R.useCallback(()=>{Dt()},[Dt]);R.useEffect(()=>{if(!ot||!(bt!=null&&bt.current))return;const X=bt.current;let Ee=X.parentElement;for(;Ee;)Ee.addEventListener("scroll",Tt),Ee=Ee.parentElement;return()=>{let je=X.parentElement;for(;je;)je.removeEventListener("scroll",Tt),je=je.parentElement}},[bt,ot,Tt]),R.useEffect(()=>{if(ot)return window.addEventListener("resize",Tt),()=>window.removeEventListener("resize",Tt)},[ot,Tt]);const zt=R.useCallback(X=>{X[0].intersectionRatio===0&&_t()},[_t]);R.useEffect(()=>{if(!ot)return;const X=new IntersectionObserver(zt,{threshold:0});return Ie.current&&X.observe(Ie.current),()=>X.disconnect()},[Ie,ot,zt]),R.useEffect(()=>{i&&(i.current={open:pt,close:_t,toggle:Ot})},[i,pt,_t,Ot]),R.useEffect(()=>{if(!J)return;let X={sDate:J.sDate,eDate:J.eDate};q&&(Yt["<"](J.sDate,q)&&(X.sDate=q),Yt["<"](J.eDate,q)&&(X.eDate=q)),G&&(Yt[">"](J.sDate,G)&&(X.sDate=G),Yt[">"](J.eDate,G)&&(X.eDate=G)),(X.sDate!==J.sDate||X.eDate!==J.eDate)&&P(X)},[q,G,J,P]);const br=R.useCallback(X=>{b==null||b(X),Ot()},[b,Ot]),Or=R.useCallback(X=>{P(void 0),_t(),X.stopPropagation()},[P,_t]),It=R.useCallback(()=>J?v.jsx(vo,{style:{scale:"0.8"},type:"Raw",icon:"Close",onClick:Or}):null,[J,Or]),ie=R.useMemo(()=>J?`${Yt.toString(J.sDate)} ~ ${Yt.toString(J.eDate)}`:v.jsx("span",{className:Br.Placeholder,children:H}),[J,H]);return v.jsxs(v.Fragment,{children:[v.jsxs(Wr,{...k,isLoading:m,isDisabled:g,className:He.clsx(Br.Anchor,"IsClickable",Br[e],t),onClick:br,abaseRef:bt,children:[C,e==="Primary"&&v.jsxs(v.Fragment,{children:[v.jsx(qr,{icon:"CalendarDay",className:He.clsx(Br.Icon,Br[e])}),v.jsx(mn,{w:4})]}),ie,v.jsx(Kc,{}),!D&&v.jsx(It,{}),e==="Secondary"&&v.jsx(qr,{icon:"CalendarDay",className:He.clsx(Br.Icon,Br[e])}),_&&_]}),(ot||Rt)&&Bs.createPortal(v.jsxs("div",{className:Br.ADateRangePicker,onTransitionEnd:$t,onMouseLeave:pe,style:{opacity:+ot,visibility:ot?"visible":"hidden"},ref:Ie,children:[v.jsxs("div",{className:Br.StringInputContainer,children:[v.jsxs(Vn,{children:[v.jsx(Ql,{maxLength:11,wrapProps:{className:Br.StringInputWrap},inputProps:{className:Br.StringInput},className:He.clsx(Br.String,Y==="sD"&&se&&Br.IsIdx),useValue:[ke,Be],placeholder:"YYYY-MM-DD",onBlur:kt}),v.jsx(mn,{w:8}),v.jsx(Ql,{maxLength:11,wrapProps:{className:Br.StringInputWrap},inputProps:{className:Br.StringInput},className:He.clsx(Br.String,Y==="eD"&&se&&Br.IsIdx),useValue:[Re,ct],placeholder:"YYYY-MM-DD",onBlur:kt})]}),!T&&v.jsxs(Vn,{style:{marginTop:4},children:[v.jsx(Sd,{children:O["1일"],onClick:()=>P({sDate:new Date,eDate:new Date})}),v.jsx(Sd,{children:O["1주일"],onClick:()=>P({sDate:new Date(new Date().setDate(new Date().getDate()-7)),eDate:new Date})}),v.jsx(Sd,{children:O["1개월"],onClick:()=>P({sDate:new Date(new Date().setMonth(new Date().getMonth()-1)),eDate:new Date})}),v.jsx(Sd,{children:O["3개월"],onClick:()=>P({sDate:new Date(new Date().setMonth(new Date().getMonth()-3)),eDate:new Date})})]})]}),v.jsxs("div",{className:Br.CalendarContainer,children:[v.jsxs(Vn,{className:Br.Header,children:[v.jsx(Bi,{type:"Raw",className:Br.Prev,onClick:Le,isDisabled:Ze}),v.jsxs("div",{className:Br.MonthYear,children:[v.jsx(Vc,{type:"Secondary",useSelect:[_e.month,it],className:Br.Select,options:Xe,OptionRenderer:X=>O.months(X.option),SelectedRenderer:X=>O.months(X.selectedOption)}),v.jsx(mn,{w:8}),v.jsx(Vc,{type:"Secondary",useSelect:[_e.year,we],className:Br.Select,options:Fe})]}),v.jsx(Bi,{type:"Raw",className:Br.Next,onClick:Je,isDisabled:ht})]}),v.jsx(mn,{h:10}),v.jsxs("div",{className:Br.Calendar,children:[v.jsx("div",{className:Br.Week,children:[0,1,2,3,4,5,6].map(X=>v.jsx("div",{className:He.clsx(Br.WeekDay,Br.Cell),children:O.weekDays(X)},X))}),At]})]})]}),document.body)]})};function Vf(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 dm(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 h=l;h<=u;h++)i.push(h);return i}function Yv(r,e,t){return r??(r={sDate:new Date,eDate:new Date}),e&&Yt["<"](r.sDate,e)?{month:e.getMonth(),year:e.getFullYear()}:t&&Yt[">"](r.eDate,t)?{month:t.getMonth(),year:t.getFullYear()}:{month:r.sDate.getMonth(),year:r.sDate.getFullYear()}}function Kv(r,e){return[e,r]}const Sd=r=>v.jsx(Bi,{className:He.clsx(Br.ChoiceButton,"Headline2"),type:"Secondary",...r}),r6=["Primary","Secondary","Raw"],hm=r=>{const{type:e="Primary",className:t,useDate:n,actionRef:i,position:l=Xu.SE,minDate:u,maxDate:h,isDisabled:g,isLoading:m,placeholder:M,LeftAddon:T,RightAddon:C,resources:_,noClearButton:S,onClick:D,...A}=r,b=R.useMemo(()=>({...hn.ADatePicker,..._}),[_]),k=R.useMemo(()=>M??b["Select Date"],[M,b]),[O,H]=R.useMemo(()=>{let Ie,pt;return u&&(Ie=Yt.makeSDate(u)),h&&(pt=Yt.makeEDate(h)),Ie&&pt&&Yt["<"](pt,Ie)?(console.warn("ADatePicker: maxDate should be greater than minDate. maxDate and minDate are swapped."),[Yt.makeSDate(pt),Yt.makeEDate(Ie)]):[Ie,pt]},[u,h]),[q,G]=pn(n,null),[Y,he]=R.useState(q?Yt.toString(q):""),[J,fe]=R.useState(()=>{const Ie=q??new Date;return O&&Ie<O?O.getMonth():H&&Ie>H?H.getMonth():(Ie??new Date).getMonth()}),[P,re]=R.useState(()=>{const Ie=q??new Date;return O&&Ie<O?O.getFullYear():H&&Ie>H?H.getFullYear():(Ie??new Date).getFullYear()}),Q=R.useCallback(Ie=>{re(Ie);const pt=Vf(Ie,O,H);pt.includes(J)||(J<pt[0]?fe(pt[0]):J>pt[pt.length-1]&&fe(pt[pt.length-1]))},[O,H,J]),ne=R.useCallback(Ie=>{if(Ie.length>10||(he(Ie),Ie.length<10)||!G)return;let pt=Yt.toDate(Ie);pt&&(O&&pt<O&&(pt=O),H&&pt>H&&(pt=H),G(pt),re(pt.getFullYear()),fe(pt.getMonth()))},[G,O,H]),se=R.useCallback(Ie=>{const pt=P+Ie;pt<0||re(pt)},[P]),ue=R.useCallback(Ie=>{const pt=J+Ie;pt<0?(fe(11),se(-1)):pt>11?(fe(0),se(1)):fe(pt)},[J,se]),ve=R.useCallback(Ie=>{G&&(Ie===void 0?(G(void 0),he("")):(G(Ie),he(Yt.toString(Ie))))},[G]),le=R.useMemo(()=>{const Ie=new Date(P,J,0);return O&&Ie<O},[P,J,O]),me=R.useMemo(()=>{const Ie=new Date(P,J+1,1);return H&&Ie>H},[P,J,H]),pe=R.useCallback(()=>{le||ue(-1)},[ue,le]),_e=R.useCallback(()=>{me||ue(1)},[ue,me]),[De,Fe]=R.useState(null),Xe=R.useCallback(()=>{G&&Fe(null)},[G]),we=R.useCallback(Ie=>{G&&Fe(Ie)},[G]),it=R.useMemo(()=>{const Ie=new Date(P,J,1),pt=new Date(P,J+1,0),_t=[];for(let $t=0;$t<Ie.getDay();$t++){const Tt=new Date(P,J,0).getDate()-Ie.getDay()+$t+1,zt=new Date(P,J-1,Tt),br=O&&O>zt||H&&H<zt,Or=q&&Yt.eq(zt,q),It=De&&Yt.eq(zt,De);_t.push({day:Tt,isSelected:Or,date:zt,isDisabled:br,isHovered:It,isCurrentMonth:!1})}for(let $t=1;$t<=pt.getDate();$t++){const Ue=new Date(P,J,$t),Tt=O&&O>Ue||H&&H<Ue,zt=q&&Yt.eq(Ue,q),br=De&&Yt.eq(Ue,De);_t.push({day:$t,isSelected:zt,date:Ue,isDisabled:Tt,isHovered:br,isCurrentMonth:!0})}for(let $t=0;$t<7-pt.getDay()-1;$t++){const Ue=new Date(P,J+1,$t+1),Tt=O&&O>Ue||H&&H<Ue,zt=q&&Yt.eq(Ue,q),br=De&&Yt.eq(Ue,De);_t.push({day:$t+1,isSelected:zt,date:Ue,isDisabled:Tt,isHovered:br,isCurrentMonth:!1})}const Ot=[];for(let $t=0;$t<_t.length/7;$t++)Ot.push(v.jsx("div",{className:rn.Week,children:_t.slice($t*7,$t*7+7).map((Ue,Tt)=>v.jsx(Bi,{type:"Raw",className:He.clsx(rn.Day,rn.Cell,Ue.isDisabled?rn.IsDisabled:Ue.isCurrentMonth?Ue.isSelected?rn.IsSelected:Ue.isHovered&&rn.IsHovered:rn.IsNotCurrentMonth),isDisabled:Ue.isDisabled,onClick:()=>Ue.isCurrentMonth&&ve(Ue.date),onMouseLeave:()=>Ue.isCurrentMonth&&Xe(),onMouseEnter:()=>Ue.isCurrentMonth&&we(Ue.date),children:Ue.day},Tt))},$t));return Ot},[J,ve,q,P,O,H,De,Xe,we]),ht=R.useRef(null),Je=R.useCallback(()=>{ht&&cm(ht,Be,l)},[ht,l]),[Ze,Le]=R.useState(!1),[ke,Te]=R.useState(!1),Be=R.useRef(null),Re=R.useCallback(()=>{g||m||(Le(!0),setTimeout(()=>Te(!0),0),setTimeout(()=>Je(),0),he(q?Yt.toString(q):""),fe(()=>{const Ie=q??new Date;return O&&Ie<O?O.getMonth():H&&Ie>H?H.getMonth():Ie.getMonth()}),re(()=>{const Ie=q??new Date;return O&&Ie<O?O.getFullYear():H&&Ie>H?H.getFullYear():Ie.getFullYear()}))},[g,m,q,Je,O,H]),Qe=R.useCallback(()=>{g||m||(Le(!0),Te(!1))},[g,m]),ct=R.useMemo(()=>ke?Qe:Re,[ke,Re,Qe]),kt=R.useCallback(()=>Le(!1),[]),At=R.useCallback(Ie=>{const pt=document.getElementById("root"),_t=Ie.target,Ot=Be.current,$t=ht.current;!pt||!Ot||!_t||!$t||!Ot.contains(_t)&&pt.contains(_t)&&!$t.contains(_t)&&Qe()},[Qe]);R.useEffect(()=>{if(ke)return setTimeout(()=>document.addEventListener("mousedown",At),0),()=>document.removeEventListener("mousedown",At)},[ke,At]);const bt=R.useCallback(()=>{Je()},[Je]);R.useEffect(()=>{if(!ke||!(ht!=null&&ht.current))return;const Ie=ht.current;let pt=Ie.parentElement;for(;pt;)pt.addEventListener("scroll",bt),pt=pt.parentElement;return()=>{let _t=Ie.parentElement;for(;_t;)_t.removeEventListener("scroll",bt),_t=_t.parentElement}},[ht,ke,bt]),R.useEffect(()=>{if(ke)return window.addEventListener("resize",bt),()=>window.removeEventListener("resize",bt)},[ke,bt]);const Dt=R.useCallback(Ie=>{Ie[0].intersectionRatio===0&&Qe()},[Qe]);R.useEffect(()=>{if(!ke)return;const Ie=new IntersectionObserver(Dt,{threshold:0});return Be.current&&Ie.observe(Be.current),()=>Ie.disconnect()},[Be,ke,Dt]),R.useEffect(()=>{i&&(i.current={open:Re,close:Qe,toggle:ct})},[i,Re,Qe,ct]);const Rt=R.useCallback(Ie=>{D==null||D(Ie),ct()},[D,ct]),ut=R.useCallback(Ie=>{ve(void 0),Qe(),Ie.stopPropagation()},[ve,Qe]),ot=R.useCallback(()=>q?v.jsx(vo,{style:{scale:"0.8"},type:"Raw",icon:"Close",onClick:ut}):null,[q,ut]),wt=R.useMemo(()=>q?Yt.toString(q):v.jsx("span",{className:rn.Placeholder,children:k}),[q,k]);return v.jsxs(v.Fragment,{children:[v.jsxs(Wr,{...A,isLoading:m,isDisabled:g,className:He.clsx(rn.Anchor,"IsClickable",rn[e],t),onClick:Rt,abaseRef:ht,children:[T,e==="Primary"&&v.jsxs(v.Fragment,{children:[v.jsx(qr,{icon:"CalendarDay",className:He.clsx(rn.Icon,rn[e])}),v.jsx(mn,{w:4})]}),wt,v.jsx(Kc,{}),!S&&v.jsx(ot,{}),e==="Secondary"&&v.jsx(qr,{icon:"CalendarDay",className:He.clsx(rn.Icon,rn[e])}),C&&C]}),(ke||Ze)&&Bs.createPortal(v.jsxs("div",{className:rn.ADatePicker,onTransitionEnd:kt,style:{opacity:+ke,visibility:ke?"visible":"hidden"},ref:Be,children:[v.jsx("div",{className:rn.StringInputContainer,children:v.jsx(Ql,{maxLength:q?30:11,wrapProps:{className:rn.StringInputWrap},inputProps:{className:rn.StringInput},className:rn.String,useValue:[Y,ne],placeholder:"YYYY-MM-DD"})}),v.jsxs("div",{className:rn.CalendarContainer,children:[v.jsxs(Vn,{className:rn.Header,children:[v.jsx(Bi,{type:"Raw",className:rn.Prev,onClick:pe,isDisabled:le}),v.jsxs("div",{className:rn.MonthYear,children:[v.jsx(Vc,{type:"Secondary",useSelect:[J,fe],className:rn.Select,options:Vf(P,O,H),OptionRenderer:Ie=>b.months(Ie.option),SelectedRenderer:Ie=>b.months(Ie.selectedOption)}),v.jsx(mn,{w:8}),v.jsx(Vc,{type:"Secondary",useSelect:[P,Q],className:rn.Select,options:dm(P,O,H)})]}),v.jsx(Bi,{type:"Raw",className:rn.Next,onClick:_e,isDisabled:me})]}),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(Ie=>v.jsx("div",{className:He.clsx(rn.WeekDay,rn.Cell),children:b.weekDays(Ie)},Ie))}),it]})]})]}),document.body)]})},n6="_Paper_e69j5_1",i6="_Card_e69j5_15",o6="_Body_e69j5_26",s6="_Title_e69j5_35",a6="_Content_e69j5_42",l6="_Action_e69j5_45",c6="_Button_e69j5_58",ya={Paper:n6,Card:i6,Body:o6,Title:s6,Content:a6,Action:l6,Button:c6},u6=["okCancel","cancelOk","ok","cancel","none"],f6=r=>{const{dlgCore:e,type:t="okCancel",title:n,children:i,style:l,titleStyle:u,bodyStyle:h,contentStyle:g,okButtonStyle:m,cancelButtonStyle:M,actionStyle:T,onOk:C,onCancel:_,onClose:S,onEnterPress:D,onEscPress:A,onSpacePress:b,onPaperClick:k,noDim:O=!1,isLoading:H,isOkDisabled:q,isOkLoading:G,isCancelDisabled:Y,isCancelLoading:he,buttonNoInteractive:J,okButtonClassName:fe,cancelButtonClassName:P,resources:re}=r,Q=R.useMemo(()=>({...hn.ADialog,...re}),[re]),[ne,se]=R.useState(0);R.useEffect(()=>se(1),[]);const ue=R.useCallback(()=>{se(0)},[]),ve=R.useCallback(()=>{if(!ne){const[,ke]=e.state.useIsOpen;ke==null||ke(!1),S==null||S()}},[ne,S,e]),le=R.useCallback(async()=>{if(!ne||t==="cancel"||t==="none"||H||q||G)return;const{event:ke,e:Te}=Uc();await(C==null?void 0:C(Te)),!ke.preventDefault&&ue()},[ne,t,ue,C,q,H,G]),me=R.useCallback(async()=>{if(!ne||t==="ok"||t==="none"||H||Y||he)return;const{event:ke,e:Te}=Uc();await(_==null?void 0:_(Te)),!ke.preventDefault&&ue()},[ne,t,ue,_,Y,H,he]);R.useEffect(()=>{e&&e.state.setAction({close:ue,ok:le,cancel:me})},[e,ue,le,me]);const pe=R.useCallback(async()=>{const{event:ke,e:Te}=Uc();await(D==null?void 0:D(Te)),!ke.preventDefault&&le()},[D,le]),_e=R.useCallback(async()=>{const{event:ke,e:Te}=Uc();await(b==null?void 0:b(Te)),!ke.preventDefault&&le()},[b,le]),De=R.useCallback(async()=>{const{event:ke,e:Te}=Uc();await(A==null?void 0:A(Te)),!ke.preventDefault&&me()},[A,me]),Fe=R.useRef(null),Xe=R.useCallback(ke=>{const Te=document.body.getElementsByClassName(ya.Paper);Te.length===0||Te[Te.length-1]!==Fe.current||(ke.key==="Enter"&&ne?pe():ke.key===" "&&ne?_e():ke.key==="Escape"&&ne&&De())},[ne,pe,_e,De]);R.useEffect(()=>{if(ne)return window.addEventListener("keydown",Xe),()=>window.removeEventListener("keydown",Xe)},[ne,Xe]);const we=R.useRef(!1),it=R.useRef(!1),ht=R.useCallback(()=>{we.current=!0},[]),Je=R.useCallback(()=>{we.current=!1,it.current=!1},[]),Ze=R.useCallback(()=>{it.current=!0},[]),Le=R.useCallback(async()=>{const ke=!it.current||we.current;if(we.current=!1,it.current=!1,ke)return;const{event:Te,e:Be}=Uc();await(k==null?void 0:k(Be)),!Te.preventDefault&&me()},[k,me]);return Bs.createPortal(v.jsx("div",{className:ya.Paper,style:{backgroundColor:O?"transparent":void 0,pointerEvents:ne?void 0:"none",opacity:ne},onMouseUp:Le,onMouseDown:Ze,onTransitionEnd:ve,ref:Fe,children:v.jsxs(Wr,{className:ya.Card,onMouseDown:ht,onMouseUp:Je,style:l,isLoading:H,children:[v.jsxs("div",{className:ya.Body,style:h,children:[n&&v.jsx(d6,{title:n,titleStyle:u}),i&&v.jsx("div",{className:ya.Content,style:g,children:i})]}),t!=="none"&&v.jsx(h6,{type:t,ok:le,cancel:me,resources:Q,isOkDisabled:q,isOkLoading:G,isCancelDisabled:Y,isCancelLoading:he,okButtonStyle:m,cancelButtonStyle:M,actionStyle:T,buttonNoInteractive:J,okButtonClassName:fe,cancelButtonClassName:P})]})}),document.body)},d6=r=>{const{title:e,titleStyle:t}=r;return v.jsx("div",{className:He.clsx(ya.Title,"NoSelect","Title3"),style:t,children:e})},h6=r=>{const{type:e,ok:t,cancel:n,resources:i,isOkDisabled:l,isOkLoading:u,isCancelDisabled:h,isCancelLoading:g,okButtonStyle:m,cancelButtonStyle:M,actionStyle:T,buttonNoInteractive:C,okButtonClassName:_,cancelButtonClassName:S}=r,D=R.useMemo(()=>({onClick:t,isDisabled:l,isLoading:u,children:i.Ok,style:m,noInteractive:C,className:He.clsx(ya.Button,_)}),[t,l,u,i.Ok,m,C,_]),A=R.useMemo(()=>({type:"Secondary",onClick:n,isDisabled:h,isLoading:g,children:i.Cancel,style:M,noInteractive:C,className:He.clsx(ya.Button,S)}),[n,h,g,i.Cancel,M,C,S]);if(e==="okCancel"||e==="ok")return v.jsxs("div",{className:ya.Action,style:{...T},children:[v.jsx(Bi,{...D}),e==="okCancel"&&v.jsxs(v.Fragment,{children:[v.jsx(mn,{w:8}),v.jsx(Bi,{...A})]})]},e);if(e==="cancelOk"||e==="cancel")return v.jsxs("div",{className:ya.Action,children:[v.jsx(Bi,{...A}),e==="cancelOk"&&v.jsxs(v.Fragment,{children:[v.jsx(mn,{w:8}),v.jsx(Bi,{...D})]})]},e)},p6=r=>{const e=R.useMemo(()=>Math.random().toFixed(32),[]),t=R.useMemo(()=>{const _={};return r.forEach(S=>{_[S]=S+e}),_},[r,e]),n=R.useMemo(()=>[],[]),i=R.useMemo(()=>(n.length=0,n.push(...r),n),[n,r]),[l,u]=R.useState([]),h=R.useRef((()=>{const _={};return i.forEach(S=>{_[S]={open:()=>u(D=>[...D,S]),close:()=>{},ok:()=>{},cancel:()=>{}}}),_})()),g=R.useMemo(()=>{const _={};return i.forEach(S=>{_[S]=D=>{u(A=>!D&&A.includes(S)?A.filter(b=>b!==S):D&&!A.includes(S)?[...A,S]:A)}}),_},[i]),m=R.useMemo(()=>{const _={};return i.forEach(S=>{const A=[l.includes(S),g[S]],b=k=>{h.current[S]={...h.current[S],...k}};_[S]={useIsOpen:A,setAction:b}}),_},[l,g,i]),M=R.useMemo(()=>{const _={};return i.forEach(S=>{const D=()=>h.current[S].open(),A=()=>h.current[S].close(),b=()=>h.current[S].ok(),k=()=>h.current[S].cancel();_[S]={open:D,close:A,ok:b,cancel:k}}),_},[i]),T=R.useMemo(()=>({}),[]),C=R.useMemo(()=>(i.forEach(_=>{T[_]={state:m[_],action:M[_]}}),T),[T,i,m,M]);return R.useEffect(()=>(Object.keys(C).forEach(S=>{const D=C[S],A=t[S],b=js.find(k=>{k.id});b?b.core=D:js.push({id:A,core:D})}),()=>{const S=Object.keys(C),D=js.filter(A=>S.includes(A.id));js.length=0,js.push(...D)}),[C,t]),C},g6=()=>{const r=R.useMemo(()=>Math.random().toFixed(32),[]),[e,t]=R.useState(!1),n=R.useRef({open:()=>t(!0),close:()=>{},ok:()=>{},cancel:()=>{}}),i=R.useMemo(()=>({useIsOpen:[e,t],setAction:g=>{n.current={...n.current,...g}}}),[e]),l=R.useMemo(()=>({open:()=>n.current.open(),close:()=>n.current.close(),ok:()=>n.current.ok(),cancel:()=>n.current.cancel()}),[]),u=R.useMemo(()=>({}),[]),h=R.useMemo(()=>(u.state=i,u.action=l,u),[u,i,l]);return R.useEffect(()=>{const g=js.find(m=>m.id===r);return g?g.core=h:js.push({id:r,core:h}),()=>{const m=js.filter(M=>M.id!==r);js.length=0,js.push(...m)}},[r,h]),h},m6=r=>{const{dlgCore:e,children:t}=r,[n,i]=R.useMemo(()=>e.state.useIsOpen,[e.state.useIsOpen]);return R.useEffect(()=>()=>i==null?void 0:i(!1),[i]),v.jsx(R.Suspense,{children:n&&t})},v6=r=>e=>{const{dlgCore:t}=e;return v.jsx(m6,{dlgCore:t,children:R.cloneElement(v.jsx(r,{...e}),{dlgCore:t})})},js=[],y6={closeAllDlgs:()=>{js.forEach(r=>{r.core.action.close()})}},b6="_AFileBox_1hlo1_1",_6="_SelectedFile_1hlo1_16",x6="_Dropping_1hlo1_26",Hd={AFileBox:b6,SelectedFile:_6,Dropping:x6},S6=r=>{const{useFile:e,FileRenderer:t=C6,resources:n,accept:i="",onInvalidFileFormat:l,fileSelectButtonClassName:u,isDisabled:h,isLoading:g,className:m,...M}=r,T=R.useMemo(()=>({...hn.AFileBox,...n}),[n]),C=R.useRef(null),_=R.useRef(null),[S,D]=pn(e,null),[A,b]=R.useState(!1),k=R.useMemo(()=>i.split(",").map(P=>P.trim()).filter(P=>P.length>0&&P.startsWith(".")),[i]),O=R.useCallback(P=>{if(k.length===0)return!1;const re=P.name.split(".").pop();return re?!k.includes(`.${re}`):!0},[k]),H=R.useCallback(P=>{if(D)if(O(P)){l==null||l();return}else D(P);else return},[D,O,l]),q=R.useCallback(P=>{P.target.files&&P.target.files.length>0&&H(P.target.files[0])},[H]),G=R.useCallback(P=>{P.preventDefault(),b(!1),!(h||g)&&P.dataTransfer.files&&P.dataTransfer.files.length>0&&H(P.dataTransfer.files[0])},[H,h,g]),Y=R.useCallback(P=>{P.preventDefault(),!(h||g)&&b(!0)},[h,g]),he=R.useCallback(P=>{P.target===C.current&&P.relatedTarget.contains(C.current.parentElement)&&(P.preventDefault(),b(!1))},[]),J=R.useCallback(P=>P.preventDefault(),[]),fe=R.useMemo(()=>A?v.jsxs(I2,{className:He.clsx(Hd.Dropping,"NoSelect","Headline2"),children:[v.jsx(qr,{icon:"FileDownload"})," ",T["drop file to select"]]}):S?v.jsx(t,{file:S,useFile:e}):v.jsxs(Vn,{className:He.clsx(Hd.SelectFile,"NoSelect"),children:[v.jsx(Bi,{className:u,onClick:()=>{var P;return(P=_.current)==null?void 0:P.click()},children:T["Select File"]}),v.jsx(mn,{w:4}),T["or Drag & Drop"]]}),[t,T,A,S,e,u]);return v.jsxs(Wr,{...M,isDisabled:h,isLoading:g,className:He.clsx(Hd.AFileBox,m),onDrop:G,onDragEnter:Y,onDragLeave:he,onDragOver:J,abaseRef:C,children:[v.jsx("input",{style:{display:"none"},ref:_,type:"file",onChange:q,value:"",accept:i}),fe]})},C6=r=>{const{file:e,useFile:t}=r,[,n]=pn(t,null);return v.jsxs(Vn,{className:Hd.SelectedFile,style:{backgroundColor:""},children:[v.jsx(qr,{icon:"File"}),v.jsx(Jl,{children:e.name}),v.jsx(vo,{type:"Raw",icon:"Close",style:{marginLeft:2,transform:"scale(0.8)"},onClick:()=>n==null?void 0:n(null)})]})},w6="_AFloatMenu_xco8u_1",A6="_Content_xco8u_10",Xv={AFloatMenu:w6,Content:A6},P2=r=>{const{defs:e,defaultDef:t,actionRef:n,offset:i,onClose:l,onClick:u,onPaperClick:h,position:g=Xu.ES,width:m=137}=r,M=R.useMemo(()=>({content:T6,...t}),[t]),T=R.useMemo(()=>{const P={};return rr.keys(e).forEach(re=>{const Q=e[re],ne={...M,...Q};ne.noDisplay||(P[re]=ne)}),P},[M,e]),[C,_]=R.useState(null),S=R.useCallback(P=>{G_(P,O,g,i),_(P)},[g,i]),[D,A]=R.useState(!1),[b,k]=R.useState(!1),O=R.useRef(null),H=R.useCallback(P=>{k(!0),setTimeout(()=>A(!0),0),setTimeout(()=>S(P),0)},[S]),q=R.useCallback(()=>{A(!1),k(!0),l==null||l()},[l]),G=R.useCallback(()=>k(!1),[]),Y=R.useCallback(async P=>{const re=document.getElementById("root"),Q=P.target,ne=O.current;!re||!ne||!Q||!ne.contains(Q)&&re.contains(Q)&&(await(h==null?void 0:h(P)),q())},[q,h]);R.useEffect(()=>{if(D)return setTimeout(()=>document.addEventListener("mousedown",Y),0),()=>document.removeEventListener("mousedown",Y)},[D,Y]);const he=R.useCallback(()=>{C&&S(C)},[S,C]);R.useEffect(()=>{if(!D||!C)return;let P=C.parentElement;for(;P;)P.addEventListener("scroll",he),P=P.parentElement;return()=>{let re=C.parentElement;for(;re;)re.removeEventListener("scroll",he),re=re.parentElement}},[C,D,he]),R.useEffect(()=>{if(D)return window.addEventListener("resize",he),()=>window.removeEventListener("resize",he)},[D,he]);const J=R.useCallback(P=>{P[0].intersectionRatio===0&&q()},[q]);R.useEffect(()=>{if(!D)return;const P=new IntersectionObserver(J,{threshold:0});return O.current&&P.observe(O.current),()=>P.disconnect()},[O,D,J]),R.useEffect(()=>{n&&(n.current={open:H,close:q})},[n,H,q]);const fe=R.useCallback(P=>{var re;if(D){if((re=T[P])!=null&&re.isDisabled)return}else return;u==null||u(P),q()},[D,u,q,T]);return!D&&!b?null:Bs.createPortal(v.jsx("div",{className:Xv.AFloatMenu,style:{opacity:+D,visibility:D&&Object.keys(T).length>0?"visible":"hidden",minWidth:m},onTransitionEnd:G,ref:O,children:rr.map(T,([P],re)=>{const Q={...M,...T[P]};let{content:ne,noDisplay:se,tooltipDirection:ue=vi.E,...ve}=Q;return se?null:(ne=Rr.getContent(Q.content,{defKey:P,def:Q}),R.createElement(Wr,{...ve,key:re,className:He.clsx(Xv.Content,"Label2","IsClickable",ve.className),onClick:le=>{var me;fe==null||fe(P),(me=ve.onClick)==null||me.call(ve,le)},tooltipDirection:ue},ne))})}),document.body)},T6=r=>r.defKey;function E6(r){try{const e=Number.parseInt(r);return isNaN(e)?void 0:e}catch{return}}const N2={parseInt:E6},k6=`${Number.MAX_SAFE_INTEGER}`.length-1,R6=r=>{const{unit:e,type:t="Secondary",min:n,max:i,useValue:l,onEnterPress:u,canAsterisk:h=!1,onFocus:g,...m}=r,M=R.useMemo(()=>i!==void 0&&n!==void 0?Math.max(`${i}`.length+1,`${n}`.length+1):k6,[n,i]),[T,C]=pn(l,""),_=R.useCallback(b=>{if(C)if(h&&b.startsWith("*"))C("*");else if(b==="")C("");else if(b==="-")C("-");else{b=b.replace(/[^0-9-]/g,"");try{const k=N2.parseInt(b);k!==void 0&&(n!==void 0&&k<n?C(`${n}`):i!==void 0&&k>i?C(`${i}`):C(`${k}`))}catch(k){console.error("ANumInput : ",k)}}},[C,h,n,i]),S=R.useRef(null),D=R.useCallback(b=>{var k;(k=S.current)==null||k.blur(),u==null||u(b)},[u]),A=R.useMemo(()=>n===void 0&&i===void 0?e??"number":`${n??""}~${i??""}`,[n,i,e]);return v.jsx(Ql,{...m,type:t,className:He.clsx(Qi.ANumInput,r.className),autoComplete:"off",onEnterPress:D,useValue:[T,_],maxLength:M,placeholder:A,RightAddon:r.unit&&v.jsx("span",{style:{marginRight:4},children:r.unit}),inputRef:S})},I6="_AListView_k7t2d_1",L6="_Row_k7t2d_10",M6="_Label_k7t2d_20",D6="_Content_k7t2d_30",Cd={AListView:I6,Row:L6,Label:M6,Content:D6},O6=r=>{const{defs:e,defaultDef:t,item:n,rowHeight:i,labelWidth:l,noBorder:u,style:h,...g}=r,m=u?"":"var(--AListView_border-thin)",M=u?"":"var(--AListView_border-thick)",T=R.useMemo(()=>({content:N6,label:P6,...t}),[t]),C=R.useMemo(()=>{const _={};return rr.keys(e).forEach(S=>{const D=e[S],A={...T,...D};_[S]=A}),_},[T,e]);return v.jsx(Wr,{...g,className:He.clsx(Cd.AListView,g.className),style:{...h,borderTop:m},children:rr.map(C,([_])=>{const S={...T,...C[_]},D=Rr.getContent(S.label,{defKey:_,item:n,def:S}),A=Rr.getContent(S.content,{defKey:_,item:n||{[_]:""},def:S}),b=Rr.getContent(S.bold||"label",{defKey:_,item:n,def:S});return v.jsxs("div",{className:Cd.Row,style:{height:i,borderBottom:m},children:[v.jsx("div",{className:He.clsx(Cd.Label,"NoSelect",b!=="content"&&"Bold"),style:{width:l,minWidth:l,maxWidth:l,borderLeft:M,paddingLeft:u?0:10},children:v.jsx(Jl,{children:D})}),v.jsx("div",{className:He.clsx(Cd.Content,b!=="label"&&"Bold"),style:{borderLeft:M,borderRight:M},children:v.jsx(Jl,{style:{width:"100%",padding:u?0:10},children:A})})]},_)})})},P6=r=>r.defKey,N6=r=>{const{defKey:e,item:t}=r;if(t)if(rr.hasKey(t,e)){const n=t[e];return rr.isReactNode(n)?n:null}else return null;else return null},j6="_ALoadingBorder_kwc1g_1",F6="_ProgressBar_kwc1g_9",B6="_IsLoading_kwc1g_15",q6="_load_kwc1g_1",H6="_Cover_kwc1g_19",kf={ALoadingBorder:j6,ProgressBar:F6,IsLoading:B6,load:q6,Cover:H6},pm=r=>{const{isLoading:e}=r,[t,n]=R.useState(!1),i=R.useRef(null);return R.useEffect(()=>{e?(n(!0),i.current&&clearTimeout(i.current)):i.current=setTimeout(()=>n(!1),300)},[e]),v.jsxs("div",{className:kf.ALoadingBorder,children:[v.jsx("div",{className:He.clsx(kf.ProgressBar,t&&kf.IsLoading)}),v.jsx("div",{className:He.clsx(kf.Cover,e&&kf.IsLoading),style:{transition:"all 300ms"}})]})},z6="_Container_i37fx_1",$6="_Option_i37fx_7",U6="_RadioButton_i37fx_14",W6="_InnerCircle_i37fx_23",V6="_isChecked_i37fx_28",Fu={Container:z6,Option:$6,RadioButton:U6,InnerCircle:W6,isChecked:V6},G6=r=>{const{options:e,useSelect:t,selectDisabled:n,radius:i=23,innerRadius:l=i*.6,OptionRenderer:u=j2}=r,[h,g]=pn(t,e[0]);return v.jsx("div",{className:Fu.Container,children:e.map((m,M)=>{const T=n==null?void 0:n(m),C=()=>T?null:g==null?void 0:g(m);return v.jsxs(Vn,{className:He.clsx(Fu.Option,"IsClickable"),isDisabled:T,onClick:C,children:[v.jsx(Z6,{isChecked:h===m,radius:i,innerRadius:l},M),v.jsx(u,{option:m})]},M)})})},j2=({option:r})=>r,Z6=({isChecked:r,radius:e,innerRadius:t})=>v.jsx(Wr,{className:He.clsx(Fu.RadioButton,r&&Fu.isChecked),style:{width:e,height:e},children:v.jsx(Wr,{className:He.clsx(Fu.InnerCircle,r&&Fu.isChecked),style:{width:t,height:t}})}),Y6="_AMultiSelect_ma2iq_1",K6="_Arrow_ma2iq_15",X6="_Primary_ma2iq_24",J6="_UnAvailable_ma2iq_35",Q6="_IsOpen_ma2iq_35",ek="_Secondary_ma2iq_42",tk="_Placeholder_ma2iq_57",rk="_ValuesContainer_ma2iq_62",nk="_Values_ma2iq_62",ik="_Options_ma2iq_81",ok="_Option_ma2iq_81",sk="_Selected_ma2iq_123",ak="_CheckBox_ma2iq_130",mo={AMultiSelect:Y6,Arrow:K6,Primary:X6,UnAvailable:J6,IsOpen:Q6,Secondary:ek,Placeholder:tk,ValuesContainer:rk,Values:nk,Options:ik,Option:ok,Selected:sk,CheckBox:ak},lk=r=>{const{options:e,useSelect:t,type:n="Primary",placeholder:i=hn.AMultiSelect["Select(Placeholder)"],onClose:l,SelectedRenderer:u=uk,OptionRenderer:h=fk,minShowRows:g=2,maxShowRows:m=6,arrowProps:M,...T}=r,C=R.useRef(null),_=R.useMemo(()=>T.abaseRef??C,[T.abaseRef]),S=R.useRef(null),[D,A]=pn(t,[]),[b,k]=R.useState(!1),[O,H]=R.useState(!1),q=R.useCallback(()=>H(!1),[]),G=R.useCallback(()=>{T.isDisabled||T.isLoading||e.length<1||(H(!0),setTimeout(()=>k(!0),0),setTimeout(()=>Yh(S,_,e,g,m),0))},[_,T.isDisabled,T.isLoading,e,g,m]),Y=R.useCallback(()=>{k(!1),H(!0),l==null||l()},[l]),he=R.useCallback(ne=>{var se;b?Y():G(),setTimeout(()=>Yh(S,_,e,g,m),0),(se=T.onClick)==null||se.call(T,ne)},[_,T,e,b,Y,G,g,m]),J=R.useCallback(()=>{Yh(S,_,e,g,m)},[_,e,g,m]);R.useEffect(()=>{if(!b||!_.current)return;const ne=_.current;let se=ne.parentElement;for(;se;)se.addEventListener("scroll",J),se=se.parentElement;return()=>{let ue=ne.parentElement;for(;ue;)ue.removeEventListener("scroll",J),ue=ue.parentElement}},[_,b,J]),R.useEffect(()=>{if(b)return window.addEventListener("resize",J),()=>window.removeEventListener("resize",J)},[b,J]);const fe=R.useCallback(ne=>{ne[0].intersectionRatio===0&&Y()},[Y]);R.useEffect(()=>{if(!b)return;const ne=new IntersectionObserver(fe,{threshold:0});return _.current&&ne.observe(_.current),()=>ne.disconnect()},[_,b,fe]);const P=R.useCallback(ne=>{const se=ne.target,ue=_.current,ve=S.current;!ue||!se||!ve||!ue.contains(se)&&!ve.contains(se)&&Y()},[_,Y]),re=R.useMemo(()=>T.isDisabled||T.isLoading||e.length<1,[T.isDisabled,T.isLoading,e]);R.useEffect(()=>{if(b)return setTimeout(()=>document.addEventListener("mousedown",P),0),()=>document.removeEventListener("mousedown",P)},[b,P]);const Q=R.useCallback((ne,se)=>{ne.stopPropagation(),ne.preventDefault();let ue=[...D];ue.includes(se)?ue=ue.filter(ve=>ve!==se):ue.push(se),A==null||A(ue)},[D,A]);return v.jsxs(v.Fragment,{children:[v.jsxs(Wr,{...T,isDisabled:T.isDisabled||e.length<1,className:He.clsx(T.className,mo.AMultiSelect,"NoSelect",b&&mo.IsOpen,re&&mo.UnAvailable,mo[n]),abaseRef:_,onClick:he,children:[v.jsx("div",{className:mo.ValuesContainer,children:v.jsx("div",{className:He.clsx(mo.Values,D.length<1&&mo.Placeholder),children:v.jsx(u,{OptionRenderer:h,selectedOptions:D,placeholder:i})})}),v.jsx("div",{...M,className:He.clsx(mo.Arrow,M==null?void 0:M.className),children:v.jsx(qr,{style:{transform:b?"rotate(180deg)":"",transition:"var(--Transition)"},icon:"TriangleDown"})})]}),e.length>0&&(b||O)&&Bs.createPortal(v.jsx("div",{className:He.clsx(mo.Options,mo[n]),onTransitionEnd:q,style:{opacity:+b,visibility:b?"visible":"hidden",pointerEvents:b?void 0:"none"},ref:S,children:e.map((ne,se)=>{var ve;const ue=D.includes(ne);return v.jsxs("div",{className:He.clsx(mo.Option,ue&&mo.Selected,"NoSelect",mo[n]),style:{height:(ve=_.current)==null?void 0:ve.getBoundingClientRect().height},onClick:le=>Q(le,ne),children:[v.jsx(Wu,{className:mo.CheckBox,useCheck:[+ue,void 0]}),v.jsx(h,{option:ne})]},se)})}),document.body)]})};function Yh(r,e,t,n,i){if(!e.current||!r.current||!t||t.length<1)return;const l=e.current.getBoundingClientRect(),u=ck(l,t.length,n,i),h=window.getComputedStyle(e.current);r.current.style.top=`calc(${u.top??0}px - ${h.borderTopWidth})`,r.current.style.bottom=u.bottom?u.bottom+"px":"",r.current.style.left=u.left+"px",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 ck(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 uk=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`},fk=r=>{const{option:e}=r;return rr.isReactNode(e)?e:null},dk="_Container_10ion_1",hk="_Steps_10ion_9",pk="_Step_10ion_9",gk="_OutCircle_10ion_26",mk="_IsOver_10ion_37",vk="_InCircle_10ion_41",yk="_Line_10ion_54",bk="_Left_10ion_66",_k="_Right_10ion_69",xk="_ContentContainer_10ion_73",Sk="_Content_10ion_73",Ji={Container:dk,Steps:hk,Step:pk,OutCircle:gk,IsOver:mk,InCircle:vk,Line:yk,Left:bk,Right:_k,ContentContainer:xk,Content:Sk},Ck=r=>{const{useSelect:e,steps:t,StepRenderer:n=Jv,ContentRenderer:i=Jv}=r;if(t.length===0)throw new Error("steps should have at least one element");const l=R.useRef(null),[u,h]=pn(e,t[0]),g=R.useCallback(M=>h==null?void 0:h(M),[h]),m=R.useMemo(()=>t.indexOf(u),[u,t]);return R.useEffect(()=>{m<0&&g(t[0])},[m,t,g]),v.jsxs("div",{className:Ji.Container,children:[v.jsx("div",{className:Ji.Steps,children:t.map((M,T)=>{const C=t.indexOf(M),_=m>=T,S=m>T;return v.jsxs("div",{className:Ji.Step,children:[T!==0&&v.jsx("div",{className:He.clsx(Ji.Line,Ji.Left,_&&Ji.IsOver)}),T!==t.length-1&&v.jsx("div",{className:He.clsx(Ji.Line,Ji.Right,S&&Ji.IsOver)}),v.jsx(Bi,{type:"Raw",className:He.clsx(Ji.OutCircle,_&&Ji.IsOver),onClick:()=>g(M),children:v.jsx("div",{className:He.clsx(Ji.InCircle,_&&Ji.IsOver)})}),v.jsx(n,{step:M,stepIdx:C})]},T)})}),v.jsx("div",{className:Ji.ContentContainer,ref:l,children:t.map((M,T)=>{const C=t.indexOf(M);return v.jsx("div",{className:Ji.Content,style:T===0?{marginLeft:`${m*-100}%`}:{},children:v.jsx(i,{step:M,stepIdx:C})},T)})})]})},Jv=r=>{const{step:e}=r;return typeof e=="object"?rr.stringify(e):e},wk="_ATab_1ikea_1",Ak="_Option_1ikea_9",Tk="_Underline_1ikea_22",Ek="_IsSelected_1ikea_22",kk="_IndicatorTrack_1ikea_33",Rk="_Indicator_1ikea_33",Ik="_Primary_1ikea_49",Lk="_Secondary_1ikea_56",Mk="_IsDisabled_1ikea_66",Dk="_Tertiary_1ikea_80",Ok="_Quaternary_1ikea_110",Wl={ATab:wk,Option:Ak,Underline:Tk,IsSelected:Ek,IndicatorTrack:kk,Indicator:Rk,Primary:Ik,Secondary:Lk,IsDisabled:Mk,Tertiary:Dk,Quaternary:Ok},Pk=["Primary","Secondary","Tertiary","Quaternary"],F2=r=>{const{options:e,useSelect:t,selectDisabled:n,type:i="Primary",tabProps:l,optionProps:u,optionWidth:h,OptionRenderer:g=Nk,RightAddon:m,color:M,underline:T}=r;if(e.length===0)throw new Error("options should have at least one element");const C=R.useMemo(()=>e.findIndex(le=>!(n!=null&&n(le))),[e,n]),_=i==="Tertiary"?2:0,S=i==="Secondary"?8:0,D=R.useMemo(()=>_+S,[_,S]),A=i==="Tertiary"?2:0,b=R.useMemo(()=>(S-_-A-A)/e.length,[e.length,_,S,A]),[k,O]=pn(t,e[C]),H=R.useRef([]),q=R.useCallback(le=>O==null?void 0:O(le),[O]),G=R.useMemo(()=>typeof h=="number"?h+"px":h,[h]),Y=R.useMemo(()=>e.indexOf(k),[e,k]),he=R.useMemo(()=>`calc(${100/e.length}% + ${b}px)`,[e.length,b]),J=R.useMemo(()=>G||`calc(${he} - ${D}px)`,[he,D,G]),[fe,P]=R.useState(0),[re,Q]=R.useState(0),[ne,se]=R.useState(J),ue=R.useMemo(()=>{let le;switch(G){case void 0:le=`calc(${he} * ${Y})`;break;case"fit-content":le=`calc(${fe}px)`;break;default:le=`calc((${G} + ${D}px) * ${Y})`;break}return`calc(${le} + ${A}px)`},[G,A,he,Y,fe,D]),ve=R.useMemo(()=>{switch(G){case void 0:return;case"fit-content":return`calc(${re}px)`;default:return`calc((${G} + ${D}px - ${b}px) * ${e.length})`}},[G,b,D,e,re]);return R.useEffect(()=>{var me,pe;if(e.includes(k)||O==null||O(e[C]),G!=="fit-content"){se(J);return}let le=0;H.current.forEach((_e,De)=>{De<Y&&_e.current&&(le+=_e.current.offsetWidth+D)}),P(le),se(`calc(${((pe=(me=H.current[Y])==null?void 0:me.current)==null?void 0:pe.offsetWidth)||0}px)`),Q(H.current.reduce((_e,De)=>{var Fe;return _e+((((Fe=De.current)==null?void 0:Fe.offsetWidth)||0)+D-b)},0))},[G,H,e,k,O,C,b,D,Y,J]),v.jsxs("div",{...l,className:He.clsx(Wl.ATab,"Headline2",Wl[i],l==null?void 0:l.className),children:[v.jsx("div",{className:Wl.Indicator,style:{minWidth:ne,left:ue,marginLeft:_}}),v.jsx("div",{className:Wl.IndicatorTrack,style:{width:ve}}),v.jsx(mn,{w:A}),e.map((le,me)=>{const pe=n==null?void 0:n(le);return H.current[me]||(H.current[me]=R.createRef()),v.jsx(Wr,{abaseRef:H.current[me],...u,style:{minWidth:J,maxWidth:J,marginLeft:_,marginRight:S,"--color":M,...u==null?void 0:u.style},className:He.clsx(Wl.Option,pe&&Wl.IsDiabled,le===k&&Wl.IsSelected,"IsClickable",T&&Wl.Underline,u==null?void 0:u.className),onClick:_e=>{!pe&&q(le),u&&u.onClick&&u.onClick(_e)},isDisabled:pe,children:v.jsx(g,{option:le})},me)}),v.jsx(mn,{w:A+_}),m&&v.jsxs(v.Fragment,{children:[v.jsx(Kc,{}),m]})]})},Nk=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=rr.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 B2(...r){const e=R.useRef(!1);R.useEffect(()=>{e.current||(e.current=!0,r.forEach(t=>t()))},[r])}const q2={String:(r,e,t,n)=>{const{value:i}=n;if(i===void 0)return!1;if(t==="")return rr.keys(e).some(M=>{const T=e[M],C=Rr.getContent(T.asText,{defKey:M,def:T,item:r});if(C!==void 0)return C.toString().toLowerCase().includes(i.toLowerCase());const _=Rr.getContent(T.content,{defKey:M,def:T,item:r});return["string","number"].includes(typeof _)&&_!==void 0&&_!==null?_.toString().toLowerCase().includes(i.toLowerCase()):!1});const l=rr.keys(e),u=t;if(!l.includes(u))return!1;const h=e[u],g=Rr.getContent(h.asText,{defKey:u,def:h,item:r});if(g!==void 0)return g.toString().toLowerCase().includes(i.toLowerCase());const m=Rr.getContent(h.content,{defKey:u,def:h,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=rr.keys(e),u=t;if(!l.includes(u))return!1;const h=e[u],g=Rr.getContent(h.asText,{defKey:u,def:h,item:r});if(g!==void 0)return i.toString().toLowerCase()===g.toString().toLowerCase();const m=Rr.getContent(h.content,{defKey:u,def:h,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=rr.keys(e),u=t;if(!l.includes(u))return!1;const h=e[u],g=Rr.getContent(h.asText,{defKey:u,def:h,item:r});if(g!==void 0){const M=Yt.toDate(g.toString());return M&&Yt.eq(M,i)}const m=Rr.getContent(h.content,{defKey:u,def:h,item:r});if(["string","number"].includes(typeof m)&&m!==void 0&&m!==null){const M=Yt.toDate(m.toString());return M&&Yt.eq(M,i)}return!1},DateRange:(r,e,t,n)=>{const{value:i}=n;if(i===void 0)return!1;const l=rr.keys(e),u=t;if(!l.includes(u))return!1;const h=e[u],g=Rr.getContent(h.asText,{defKey:u,def:h,item:r});if(g!==void 0){const M=Yt.toDate(g.toString());return M&&Yt.be(i.sDate,M,i.eDate)}const m=Rr.getContent(h.content,{defKey:u,def:h,item:r});if(["string","number"].includes(typeof m)&&m!==void 0&&m!==null){const M=Yt.toDate(m.toString());return M&&Yt.be(i.sDate,M,i.eDate)}return!1}},jk=(r,e,t)=>{let n=r;return rr.keys(t).forEach(l=>{const u=t[l];u.value===void 0||u.value===null||u.value===""||(n=n.filter(h=>{var g;return(g=u.predicate??q2[u.type])==null?void 0:g(h,e,l,u)}))}),n},Fk=(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,h)=>{const g=Rr.getContent(i.content,{defKey:n,def:i,item:u}),m=Rr.getContent(i.content,{defKey:n,def:i,item:h});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,h)=>t.isAsc?l(u,h):l(h,u))},Bk=(r,e,t)=>r.slice((e-1)*t,e*t),H2=(r,e)=>{const t=Math.max(Math.ceil(r/e),1);return Array.from({length:t},(n,i)=>i+1)},qk=(r,e,t,n)=>{const i=H2(e,t),l=Math.floor((r-1)/n),u=l*n+1,h=(l+1)*n,g=i.slice(u-1,h);return{pages:i,rangedPages:g}},Hk=(r,e,t)=>{const n=[],i=Object.keys(t),l=[];i.forEach(C=>{const _=t[C],S=Rr.getContent(_.hContent,{defKey:C,def:_});if(S!==void 0){if(typeof S=="string"){l.push(S);return}else if(typeof S=="number"){l.push(S.toString());return}}const D=Rr.getContent(_.name,{defKey:C,def:_});if(D!==void 0&&typeof D=="string"){l.push(D);return}l.push(C)});const u=l.map(C=>`"${C.replaceAll('"','""')}"`);n.push(u.join(",")),e.forEach(C=>{const _=[];i.forEach(D=>{const A=t[D],b=Rr.getContent(A.content,{defKey:D,def:A,item:C});if(b!==void 0){if(typeof b=="string"){_.push(b);return}else if(typeof b=="number"){_.push(b.toString());return}}const k=C[D];typeof k=="string"?_.push(k):typeof k=="number"?_.push(k.toString()):_.push("")});const S=_.map(D=>`"${D.replaceAll('"','""')}"`);n.push(S.join(","))});const h=`${r}.csv`,g="\uFEFF"+n.join(`
|
52
|
-
`),m=new Blob([g],{type:"text/csv;charset=UTF-8"}),M=URL.createObjectURL(m),T=document.createElement("a");T.href=M,T.download=h,T.click(),URL.revokeObjectURL(M)},zk=r=>{const e=rr.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},$k=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},Qa={applyFilteration:jk,applySortation:Fk,applyPagination:Bk,getPages:H2,getRangedPages:qk,downloadCsv:Hk,getSingleFilterValue:zk,getMultiFilterValues:$k},Uk="_ATable_12zow_1",Wk={ATable:Uk};function z2(r,e,t,n){R.useEffect(()=>{if(r)return r.addEventListener(e,t,n),()=>{r.removeEventListener(e,t,n)}},[r,e,t,n])}const Vk="_BodyHeader_43b3m_1",Gk="_TRow_43b3m_7",Zk="_OverflowSpace_43b3m_13",Yk="_BodyBody_43b3m_19",Kk="_IsSelected_43b3m_40",Xk="_IsSelectable_43b3m_44",Jk="_IsRowMarked_43b3m_52",Qk="_TH_43b3m_57",e8="_TD_43b3m_62",t8="_IsMarked_43b3m_62",r8="_Resizer_43b3m_81",n8="_IsMoving_43b3m_93",i8="_IsResizable_43b3m_96",o8="_ResizerCenter_43b3m_99",s8="_ResizerOut_43b3m_105",a8="_ResizerIn_43b3m_109",l8="_IsClicked_43b3m_144",c8="_NoItems_43b3m_151",u8="_Content_43b3m_157",_n={BodyHeader:Vk,TRow:Gk,OverflowSpace:Zk,BodyBody:Yk,IsSelected:Kk,IsSelectable:Xk,IsRowMarked:Jk,TH:Qk,TD:e8,IsMarked:t8,Resizer:r8,IsMoving:n8,IsResizable:i8,ResizerCenter:o8,ResizerOut:s8,ResizerIn:a8,IsClicked:l8,NoItems:c8,Content:u8},Zl=25,f8=r=>{const{defs:e,isEqual:t,rProps:n,useSelect:i,isTableDisabled:l,isSelectMulti:u,selectDisabled:h,appliedFilteration:g,useSortation:m,pagination:M,pagedItems:T,noMarking:C,isLoading:_,showRows:S,RowRenderer:D=p8,isRowRendered:A,resources:b}=r,[k,O]=R.useMemo(()=>i??[],[i]),H=R.useCallback(Re=>{l||!O||!k||h!=null&&h(Re)||(u?k.some(Qe=>t(Qe,Re))?O(k.filter(Qe=>!t(Qe,Re))):O([...k,Re]):O([Re]))},[k,h,O,t,l,u]);R.useEffect(()=>{u||!k||!O||k.length>1&&O([k[k.length-1]])},[k,O,u]),R.useEffect(()=>{if(!k||!O)return;k.filter(Qe=>h==null?void 0:h(Qe)).length>0&&O(k.filter(Qe=>!(h!=null&&h(Qe))))},[k,O,h]);const[q,G]=m,Y=R.useCallback((Re,Qe)=>{G&&((q==null?void 0:q.defKey)===Re?q.isAsc===!0?G({defKey:Re,isAsc:!1,sortF:Qe}):q.isAsc===!1?G(void 0):G({defKey:Re,isAsc:!0,sortF:Qe}):G({defKey:Re,isAsc:!0,sortF:Qe}))},[q,G]),[he,J]=R.useState({elem:null,row:null}),fe=R.useRef(null),P=R.useRef(null),re=R.useCallback(()=>J({elem:fe.current,row:P.current}),[]);R.useEffect(()=>re(),[T.length,re]),z2(window,"resize",re);const[Q,ne]=R.useState(40);R.useEffect(()=>{const{row:Re}=he;Re!=null&&ne(Re.clientHeight)},[he,Q]);const se=R.useMemo(()=>{const{elem:Re}=he;return Re?Math.floor(Re.clientHeight/Q):0},[he,Q]),ue=R.useMemo(()=>S||(T.length<=se?se:T.length),[se,S,T]),ve=R.useMemo(()=>{if(S!==void 0)return S*Q},[S,Q]),le=R.useMemo(()=>ve,[ve]),me=R.useMemo(()=>{const{elem:Re}=he;return Re?Re.getBoundingClientRect().height/Q<T.length:!1},[he,Q,T.length]),[pe,_e]=R.useState(),De=R.useMemo(()=>{const{elem:Re}=he;return!pe||!Re?"100%":Re.clientHeight+(A?0:50)},[pe,A,he]),Fe=R.useRef(null),[Xe,we]=R.useState({}),it=R.useRef({x:0,y:0}),ht=R.useRef({}),Je=R.useMemo(()=>rr.keys(Xe),[Xe]),Ze=R.useCallback((Re,Qe)=>{const ct=Fe.current;if(!ct)return;const kt=[];ct.childNodes.forEach(Rt=>{Rt.classList.contains(_n.TH)&&kt.push(Rt)});const At={};rr.keys(e).forEach((Rt,ut)=>{const ot=kt[ut];if(!ot)return;const wt=ot.getBoundingClientRect().width;At[Rt]=wt}),ht.current=At,_e(Qe),it.current={x:Re.clientX,y:Re.clientY};const bt=Rt=>{if(!Fe.current)return;const ot=Rt.clientX-it.current.x,wt=h8(e,Qe,ht.current,ot);we(wt)};document.addEventListener("mousemove",bt);const Dt=()=>{_e(void 0),document.removeEventListener("mousemove",bt),document.removeEventListener("mouseup",Dt)};document.addEventListener("mouseup",Dt)},[e]),Le=R.useCallback(()=>{_e(void 0),we({})},[]),ke=R.useMemo(()=>{if(Je.length===0){const ct={},kt=rr.keys(e);for(let At=0;At<kt.length;At++){const bt=kt[At],Dt=e[bt],Rt=Rr.getContent(Dt.colSpan,{defKey:bt,def:Dt}),ut=Dt.width??80,ot=Dt.minWidth??Zl,wt=Dt.maxWidth,Ie={width:ut,minWidth:ot,maxWidth:wt,flexGrow:Rt??1};if(ct[bt]=Ie,Rt!==void 0){for(let pt=1;pt<Math.min(Rt,kt.length-At);pt++){const _t=e[kt[At+pt]],Ot=_t.width??80,$t=_t.minWidth??Zl,Ue=_t.maxWidth;Ie.width+=Ot,Ie.minWidth+=$t,Ie.maxWidth!==void 0&&(Ue!==void 0?Ie.maxWidth+=Ue:Ie.maxWidth=void 0)}At+=Rt-1}}return ct}const Re={},Qe=rr.keys(e);for(let ct=0;ct<Qe.length;ct++){let kt=Qe[ct];const At=e[kt];let bt=Xe[kt];const Dt=Rr.getContent(At.colSpan,{defKey:kt,def:At}),Rt=At.minWidth??Zl,ut=At.maxWidth,ot={width:bt,minWidth:Rt,maxWidth:ut,flexGrow:Dt??1};if(Re[kt]=ot,Dt!==void 0){for(let wt=1;wt<Math.min(Dt,Qe.length-ct);wt++){const Ie=e[Qe[ct+wt]],pt=Xe[Qe[ct+wt]],_t=Ie.minWidth??Zl,Ot=Ie.maxWidth;ot.width+=pt,ot.minWidth+=_t,ot.maxWidth!==void 0&&(Ot!==void 0?ot.maxWidth+=Ot:ot.maxWidth=void 0)}ct+=Dt-1}}return Re},[e,Je,Xe]),Te=R.useRef(null),Be=R.useMemo(()=>Qa.getSingleFilterValue(g),[g]);return R.useEffect(()=>{fe.current&&fe.current.scrollTo({top:0})},[M.page]),R.useEffect(()=>{A&&P.current&&P.current.scrollIntoView({behavior:"smooth",block:"center"})},[k,T,A]),v.jsxs(v.Fragment,{children:[v.jsx(pm,{isLoading:_}),v.jsx("div",{className:He.clsx(_n.BodyHeader,pe!==void 0&&_n.IsClicked),onResizeCapture:re,ref:Te,style:{display:A?"none":"flex"},children:v.jsx("div",{className:_n.TRow,ref:Fe,children:rr.map(e,([Re],Qe)=>{const ct=e[Re],kt=Rr.getContent(ct.hContent,{defKey:Re,def:ct}),At=ct.name,bt=Qe===rr.keys(e).length-1,Dt=ct.width??80,Rt=ct.minWidth??Zl,ut=ct.maxWidth,ot={width:Dt,minWidth:Rt,maxWidth:ut,justifyContent:Rr.getContent(ct.hAlign,{defKey:Re,def:ct})??"flex-start",...Rr.getContent(ct.hStyle,{defKey:Re,def:ct})};Je.includes(Re)&&(ot.width=Xe[Re]);const wt=ct.isSortable,Ie=(q==null?void 0:q.defKey)===Re,pt=q==null?void 0:q.isAsc;return v.jsxs(R.Fragment,{children:[v.jsxs("div",{style:ot,onClick:()=>wt&&Y(Re,ct.sortF),className:He.clsx(_n.TH,"Label1",wt?"IsClickable":"NoSelect"),children:[v.jsx(Jl,{className:_n.Content,children:kt??At}),wt&&v.jsx(qr,{icon:Ie?pt?"SortUp":"SortDown":"SortBoth",style:{width:16,height:16}})]}),!bt&&v.jsxs("div",{className:He.sclsx(_n,"Resizer","IsResizable","NoSelect",pe!==void 0&&"IsMoving"),onMouseDown:_t=>Ze(_t,Re),onDoubleClick:Le,children:[v.jsx("div",{className:_n.ResizerOut}),v.jsx("div",{className:_n.ResizerIn}),v.jsx("div",{className:_n.ResizerCenter,style:{height:De}}),v.jsx("div",{className:_n.ResizerIn}),v.jsx("div",{className:_n.ResizerOut})]}),bt&&v.jsx(mn,{className:_n.OverflowSpace,w:"var(--Scrollbar-width)",h:50,style:{color:ot.color,backgroundColor:ot.backgroundColor,transition:ot.transition}})]},Re)})})}),v.jsxs("div",{className:He.clsx(_n.BodyBody,pe!==void 0&&_n.IsClicked),ref:fe,style:{overflowY:me?"scroll":"hidden",minHeight:ve,maxHeight:le},children:[T.map((Re,Qe)=>{const ct=Rr.getContent(n,{item:Re}),kt=O&&!l,At=k==null?void 0:k.some(ut=>t(ut,Re)),bt=k&&(h==null?void 0:h(Re)),Dt=typeof bt=="string"?bt:void 0,Rt={...Re};return A&&rr.keys(e).forEach(ut=>{const ot=e[ut],wt=Rr.getContent(ot.content,{defKey:ut,def:ot,item:Re});let Ie=!1;if(Be&&!C){const pt=Rr.getContent(ot.asText,{defKey:ut,def:ot,item:Re});pt!==void 0?Ie=pt.toString().toLowerCase().includes(Be.toLowerCase()):["string","number"].includes(typeof wt)&&wt!==void 0&&wt!==null&&(Ie=wt.toString().toLowerCase().includes(Be.toLowerCase()))}Rt[ut]=v.jsx("span",{className:He.clsx(Ie&&_n.IsRowMarked),children:Rt[ut]})}),v.jsx(Wr,{isDisabled:bt,tooltip:Dt,...ct,onClick:ut=>{var ot;H(Re),(ot=ct==null?void 0:ct.onClick)==null||ot.call(ct,ut)},className:He.clsx(ct==null?void 0:ct.className,kt&&_n.IsSelectable,At&&_n.IsSelected),abaseRef:At?P:void 0,children:v.jsx(D,{defs:e,item:Re,markedItem:Rt,noMarking:C,spanWidths:ke,singleFilterValue:Be,isBodyBodyOverflowed:me})},Qe)}),v.jsx(d8,{showRows:ue,itemsLength:T.length,isRowRendered:A,rowHeight:Q,resources:b})]})]})},d8=r=>{const{showRows:e,itemsLength:t,resources:n,isRowRendered:i,rowHeight:l}=r,u=R.useMemo(()=>t===0?e:e-t,[e,t]);return Array.from({length:u},(h,g)=>v.jsx("div",{className:He.clsx(_n.TRow,"NoSelect"),...i&&{style:{border:"none",minHeight:l,maxHeight:l}},children:t===0&&g===Math.floor(e/2)&&v.jsx(Vn,{className:_n.NoItems,children:n["No Items"]})},g))};function h8(r,e,t,n){const i={...t},l=rr.keys(r).findIndex(m=>m===e)+1,u=Object.entries(r);let h=l-1,g=l;if(n<0){for(;n<0&&!(h<0||g>=u.length);){const[m,M]=[u[h][0],u[h][1]],[T,C]=[u[g][0],u[g][1]],_=M.minWidth??Zl,S=C.maxWidth,D=i[m],A=i[T];let b=D-_;S!==void 0&&(b=Math.min(b,S-A));let k=-n;k=Math.min(k,b),D-k<=_&&h--,S!==void 0&&A+k>=S&&g++,i[m]=D-k,i[T]=A+k,n+=k}return i}else if(n>0){for(;n>0&&!(h<0||g>=u.length);){const[m,M]=[u[h][0],u[h][1]],[T,C]=[u[g][0],u[g][1]],_=C.minWidth??Zl,S=M.maxWidth,D=i[T],A=i[m];let b=D-_;S!==void 0&&(b=Math.min(b,S-A));let k=n;k=Math.min(k,b),D-k<=_&&g++,S!==void 0&&A+k>=S&&h--,i[T]=D-k,i[m]=A+k,n-=k}return i}return i}const p8=r=>{const{defs:e,item:t,noMarking:n,spanWidths:i,singleFilterValue:l,isBodyBodyOverflowed:u}=r;return v.jsx("div",{className:He.clsx(_n.TRow),children:rr.map(e,([h],g)=>{const m=i[h];if(m===void 0)return null;const M=g===rr.keys(e).length-1,T=e[h],C=Rr.getContent(T.content,{defKey:h,def:T,item:t}),_={width:m.width,minWidth:m.minWidth,maxWidth:m.maxWidth,flexGrow:m.flexGrow,justifyContent:Rr.getContent(T.align,{defKey:h,def:T,item:t})??"flex-start",...Rr.getContent(T.style,{defKey:h,def:T,item:t})};let S=!1;if(l&&!n){const D=Rr.getContent(T.asText,{defKey:h,def:T,item:t});D!==void 0?S=D.toString().toLowerCase().includes(l.toLowerCase()):["string","number"].includes(typeof C)&&C!==void 0&&C!==null&&(S=C.toString().toLowerCase().includes(l.toLowerCase()))}return v.jsxs(R.Fragment,{children:[v.jsx("div",{style:_,className:He.clsx(_n.TD,"Label1",S&&_n.IsMarked),children:v.jsx(Jl,{className:_n.Content,children:C})}),!u&&M&&v.jsx(mn,{className:_n.OverflowSpace,w:"var(--Scrollbar-width)",h:40,style:{color:_.color,backgroundColor:_.backgroundColor}})]},h)})})},g8="_ATableFooter_w090q_1",m8="_Button_w090q_10",v8="_IsSelected_w090q_26",y8="_IsDisabled_w090q_31",Ms={ATableFooter:g8,Button:m8,IsSelected:v8,IsDisabled:y8},b8=r=>{const{pages:e,rangedPages:t,pageF:n,pagination:i}=r,l=R.useMemo(()=>e[e.length-1],[e]);return v.jsxs(Vn,{className:Ms.ATableFooter,children:[v.jsx(qr,{icon:"FirstPage",className:He.clsx(Ms.Button,i.page===1&&Ms.IsDisabled),onClick:n.moveFirst}),v.jsx(qr,{icon:"NavigateBefore",className:He.clsx(Ms.Button,i.page===1&&Ms.IsDisabled),onClick:n.movePrev}),t.map(u=>v.jsx("div",{className:He.clsx(Ms.Button,"NoSelect",i.page===u&&Ms.IsSelected),onClick:()=>n.move(u),children:u},u)),v.jsx(qr,{icon:"NavigateNext",className:He.clsx(Ms.Button,i.page===l&&Ms.IsDisabled),onClick:n.moveNext}),v.jsx(qr,{icon:"LastPage",className:He.clsx(Ms.Button,i.page===l&&Ms.IsDisabled),onClick:n.moveLast})]})},_8="_Filter_1nzzz_1",x8="_MainFilter_1nzzz_11",S8="_IsOpen_1nzzz_22",C8="_SubFilters_1nzzz_26",w8="_Input_1nzzz_40",A8="_Main_1nzzz_11",T8="_Sub_1nzzz_26",E8="_Actions_1nzzz_58",k8="_Icon_1nzzz_63",R8="_LeftIcon_1nzzz_70",I8="_CircleAlertOutline_1nzzz_75",L8="_Rotate_1nzzz_85",M8="_rotate_1nzzz_1",kr={Filter:_8,MainFilter:x8,IsOpen:S8,SubFilters:C8,Input:w8,Main:A8,Sub:T8,Actions:E8,Icon:k8,LeftIcon:R8,CircleAlertOutline:I8,Rotate:L8,rotate:M8},D8=r=>{const{defs:e,useFilteration:t,hasToggleFilteration:n,filterF:i,isRowRendered:l,isFilterSort:u,resources:h}=r,[g,m]=R.useState([]),[M,T]=R.useMemo(()=>t,[t]),C=R.useCallback((le,me,pe)=>{if(!T)return;const _e={...M};le.value=me,T(_e),m(De=>De.map((Fe,Xe)=>Xe===(pe?pe+1:0)?"":Fe))},[M,T]),_=R.useMemo(()=>{let le=[];const me=rr.keys(M);for(const pe of me)le.push({key:pe,def:e[pe],filter:M[pe]});return le},[M,e]),S=R.useMemo(()=>_.length>0?_[0]:null,[_]),D=R.useMemo(()=>g.length>0?g[0]:"",[g]),A=R.useMemo(()=>_.length>1?_.slice(1):[],[_]),b=R.useMemo(()=>g.length>1?g.slice(1):[],[g]),k=R.useMemo(()=>A.length>0,[A]),[O,H]=R.useState(!1),[q,G]=R.useState(!1),Y=R.useRef(null),he=R.useCallback(()=>{H(!0),setTimeout(()=>G(!0),0)},[]),J=R.useCallback(()=>{G(!1),H(!0)},[]),fe=R.useMemo(()=>q?J:he,[q,he,J]),P=R.useCallback(()=>H(!1),[]),re=R.useCallback(le=>{const me=document.getElementById("root"),pe=le.target,_e=Y.current;!me||!_e||!pe||!_e.contains(pe)&&me.contains(pe)&&J()},[J]);R.useEffect(()=>{if(q)return setTimeout(()=>document.addEventListener("mousedown",re),0),()=>document.removeEventListener("mousedown",re)},[q,re]);const Q=R.useCallback(()=>{const le=_.map((me,pe)=>me.filter.type==="String"&&me.filter.validation?me.filter.validation(me.filter.value||""):me.filter.type==="Date"&&me.filter.validation||me.filter.type==="DateRange"&&me.filter.validation?me.filter.validation(me.filter.value):g[pe]);m(le),le.every(me=>!me)&&i.apply()},[g,i,_]),ne=R.useMemo(()=>({open:he,close:J,toggle:fe,validate:Q}),[he,J,fe,Q]),se=R.useCallback(()=>i.clear(),[i]),ue=R.useCallback(()=>Q(),[Q]),ve=R.useCallback(le=>{le.key==="Enter"?(Q(),le.stopPropagation()):le.key==="Escape"&&(G(!1),le.currentTarget.focus(),le.currentTarget.blur(),le.stopPropagation())},[Q]);return S?v.jsxs("div",{className:He.clsx(kr.Filter),ref:Y,onKeyDown:ve,onClick:le=>{le.preventDefault(),le.stopPropagation()},style:{minWidth:l?u?180:void 0:180,maxWidth:l?u?300:void 0:300},tabIndex:-1,children:[v.jsx(O8,{filterSet:S,hasToggleFilteration:n,onChange:C,filterF:i,hasSubFilters:k,popupF:ne,isOpen:q,resources:h,errorMessage:D}),v.jsx(P8,{subFilterSets:A,onChange:C,onClearClick:se,onSearchClick:ue,isOpen:q,isTransitioning:O,onTransitionEnd:P,resources:h,errorMessages:b})]}):null},O8=r=>{var M,T,C,_;const{filterSet:e,hasToggleFilteration:t,onChange:n,filterF:i,hasSubFilters:l,popupF:u,isOpen:h,resources:g,errorMessage:m}=r;if(e.filter.type==="String"){const S=[e.filter.value??"",k=>n(e.filter,k)],{placeholder:D=(M=e.def)==null?void 0:M.name,icon:A,iconTooltip:b=D}=e.filter;return v.jsxs("div",{className:He.clsx(kr.MainFilter,h&&kr.IsOpen),children:[v.jsx(va,{icon:A??"Type",tooltip:b,isOpen:h}),v.jsx(Ql,{className:He.clsx(kr.Input,kr.Main),useValue:S,placeholder:D??g["Search(Placeholder)"],wrapProps:{style:{width:"100%",boxSizing:"border-box"}},LeftAddon:t&&v.jsx(wd,{isOpen:h,filterF:i,popupF:u,resources:g}),RightAddon:v.jsx(Ad,{hasSubFilters:l,popupF:u,isOpen:h,resources:g,errorMessage:m}),autoFocus:e.filter.autoFocus,maxLength:e.filter.maxLength,type:m?"Error":"Primary"})]})}else if(e.filter.type==="Select"){const S=[e.filter.value??null,k=>n(e.filter,k)],{placeholder:D=(T=e.def)==null?void 0:T.name,icon:A,iconTooltip:b=D}=e.filter;return v.jsxs("div",{className:He.clsx(kr.MainFilter,h&&kr.IsOpen),children:[v.jsx(va,{icon:A??"Menu",tooltip:b,isOpen:h}),v.jsx(Vc,{className:He.clsx(kr.Input,kr.Main),options:e.filter.options,useSelect:S,placeholder:D,OptionRenderer:e.filter.OptionRenderer,SelectedRenderer:({OptionRenderer:k,selectedOption:O})=>O===null?e.filter.placeholder&&g.Select:v.jsxs(v.Fragment,{children:[t&&v.jsx(wd,{isOpen:h,filterF:i,popupF:u,resources:g}),v.jsx(k,{option:O}),v.jsx(Ad,{hasSubFilters:l,popupF:u,isOpen:h,resources:g})]})})]})}else if(e.filter.type==="Date"){const S=[e.filter.value,k=>n(e.filter,k)],{placeholder:D=(C=e.def)==null?void 0:C.name,icon:A,iconTooltip:b=D}=e.filter;return v.jsxs("div",{className:He.clsx(kr.MainFilter,h&&kr.IsOpen),children:[v.jsx(va,{icon:A??"CalendarDay",tooltip:b,isOpen:h}),v.jsx(hm,{type:"Raw",className:He.clsx(kr.DatePicker,kr.Input,kr.Main),useDate:S,minDate:e.filter.minDate,maxDate:e.filter.maxDate,placeholder:D,LeftAddon:v.jsxs(v.Fragment,{children:[t&&v.jsx(wd,{isOpen:h,filterF:i,popupF:u,resources:g}),!t&&v.jsx(mn,{w:h?0:6}),v.jsx(va,{icon:A??"CalendarDay",tooltip:b,isOpen:!h}),v.jsx(mn,{w:h?8:0})]}),RightAddon:v.jsx(Ad,{hasSubFilters:l,popupF:u,isOpen:h,resources:g})})]})}else if(e.filter.type==="DateRange"){const S=[e.filter.value,O=>n(e.filter,O)],{placeholder:D=(_=e.def)==null?void 0:_.name,icon:A,iconTooltip:b=D,noDefaultChoices:k}=e.filter;return v.jsxs("div",{className:He.clsx(kr.MainFilter,h&&kr.IsOpen),children:[v.jsx(va,{icon:A??"CalendarDay",tooltip:b,isOpen:h}),v.jsx(fm,{type:"Raw",className:He.clsx(kr.DatePicker,kr.Input,kr.Main),useDateRange:S,minDate:e.filter.minDate,maxDate:e.filter.maxDate,placeholder:D,noDefaultChoices:k,LeftAddon:v.jsxs(v.Fragment,{children:[t&&v.jsx(wd,{isOpen:h,filterF:i,popupF:u,resources:g}),!t&&v.jsx(mn,{w:h?0:6}),v.jsx(va,{icon:A??"CalendarDay",tooltip:b,isOpen:!h}),v.jsx(mn,{w:h?8:0})]}),RightAddon:v.jsx(Ad,{hasSubFilters:l,popupF:u,isOpen:h,resources:g})})]})}return null},wd=r=>{const{filterF:e,popupF:t,resources:n,isOpen:i}=r;return v.jsx(vo,{type:"Raw",className:kr.Icon,icon:"Convert",tooltip:n["Toggle Filter"],onMouseDown:l=>l.currentTarget.classList.remove(kr.Rotate),style:{width:i?0:24,marginLeft:i?0:8},onClick:l=>{l.currentTarget.classList.add(kr.Rotate),e.toggle(),t.close(),l.stopPropagation()}})},Ad=r=>{const{hasSubFilters:e,popupF:t,isOpen:n,resources:i,errorMessage:l}=r,u=R.useCallback(m=>{m.stopPropagation(),t.open()},[t]),h=R.useCallback(m=>{m.stopPropagation(),t.close()},[t]),g=R.useCallback(m=>{m.stopPropagation(),t.validate()},[t]);return v.jsxs(R.Fragment,{children:[l&&v.jsx(vo,{type:"Raw",className:kr.CircleAlertOutline,icon:"CircleAlertOutline",tooltip:l}),e&&v.jsx(vo,{type:"Raw",className:kr.Icon,icon:"ListAdd",onClick:u,style:{opacity:+!n,visibility:+!n?"visible":"hidden",marginRight:-24,pointerEvents:n?"none":void 0}}),e&&v.jsx(vo,{type:"Raw",className:kr.Icon,icon:"ListRemove",onClick:h,style:{opacity:+n,visibility:+n?"visible":"hidden",marginRight:n?-24:0,pointerEvents:n?void 0:"none"}}),v.jsx(vo,{type:"Raw",className:kr.Icon,icon:"Search",tooltip:i["Search(Button)"],onClick:g,style:{opacity:+!n,visibility:+!n?"visible":"hidden",pointerEvents:n?"none":void 0,marginRight:4}})]})},P8=r=>{const{subFilterSets:e,onChange:t,onClearClick:n,onSearchClick:i,isOpen:l,isTransitioning:u,onTransitionEnd:h,resources:g,errorMessages:m}=r;return!l&&!u?null:v.jsxs("div",{className:kr.SubFilters,onTransitionEnd:h,style:{opacity:+l,visibility:+l?"visible":"hidden"},children:[e.map((M,T)=>{var C,_,S,D;if(M.filter.type==="String"){const A=[M.filter.value??"",q=>t(M.filter,q,T)],b=m[T],{placeholder:k=(C=M.def)==null?void 0:C.name,icon:O,iconTooltip:H=k}=M.filter;return v.jsxs(Vn,{style:{marginBottom:6},children:[v.jsx(va,{tooltip:H,icon:O??"Type"}),v.jsx(Ql,{className:He.clsx(kr.Input,kr.Sub),wrapProps:{style:{width:"100%"}},useValue:A,placeholder:k??g["Search(Placeholder)"],type:b?"Error":"Secondary",RightAddon:b&&v.jsx(vo,{type:"Raw",className:kr.CircleAlertOutline,icon:"CircleAlertOutline",tooltip:b}),autoFocus:M.filter.autoFocus,maxLength:M.filter.maxLength}),v.jsx(mn,{h:8})]},T)}else if(M.filter.type==="Select"){const A=[M.filter.value??null,H=>t(M.filter,H)],{placeholder:b=(_=M.def)==null?void 0:_.name,icon:k,iconTooltip:O=b}=M.filter;return v.jsxs(Vn,{style:{marginBottom:6},children:[v.jsx(va,{tooltip:O,icon:k??"Menu"}),v.jsx(Vc,{className:He.clsx(kr.Input,kr.Sub),options:M.filter.options,placeholder:b,OptionRenderer:M.filter.OptionRenderer,useSelect:A,arrowProps:{style:{marginRight:4}},type:"Secondary"}),v.jsx(mn,{h:8})]},T)}else if(M.filter.type==="Date"){const A=[M.filter.value,H=>t(M.filter,H)],{placeholder:b=(S=M.def)==null?void 0:S.name,icon:k,iconTooltip:O=b}=M.filter;return v.jsxs(Vn,{style:{marginBottom:6},children:[v.jsx(va,{tooltip:O,icon:k??"CalendarDay"}),v.jsx(hm,{type:"Raw",LeftAddon:v.jsx(mn,{w:12}),placeholder:b,className:He.clsx(kr.DatePicker,kr.Input,kr.Sub),useDate:A,minDate:M.filter.minDate,maxDate:M.filter.maxDate}),v.jsx(mn,{h:8})]},T)}else if(M.filter.type==="DateRange"){const A=[M.filter.value,H=>t(M.filter,H)],{placeholder:b=(D=M.def)==null?void 0:D.name,icon:k,iconTooltip:O=b}=M.filter;return v.jsxs(Vn,{style:{marginBottom:6},children:[v.jsx(va,{tooltip:O,icon:k??"CalendarDay"}),v.jsx(fm,{type:"Raw",LeftAddon:v.jsx(mn,{w:12}),className:He.clsx(kr.DatePicker,kr.Input,kr.Sub),useDateRange:A,placeholder:b,minDate:M.filter.minDate,maxDate:M.filter.maxDate})]},T)}else return null}),v.jsxs(Vn,{className:kr.Actions,children:[v.jsx(Bi,{type:"Secondary",onClick:n,children:g["Clear(Button)"]}),v.jsx(Bi,{onClick:i,children:g["Search(Button)"]})]})]})},va=r=>{const{icon:e,tooltip:t,isOpen:n=!0}=r;return v.jsx(vo,{type:"Raw",className:kr.LeftIcon,tooltip:t,icon:e,style:{width:n?24:0,marginRight:n?4:0,opacity:+n}})},N8="_ATableHeader_1hzfz_1",j8="_LeftHeaderContent_1hzfz_11",F8="_RightHeaderContent_1hzfz_19",B8="_TopRightAddon_1hzfz_27",q8="_HItem_1hzfz_32",Hc={ATableHeader:N8,LeftHeaderContent:j8,RightHeaderContent:F8,TopRightAddon:B8,HItem:q8},H8=r=>{const{defs:e,title:t,totalCount:n,useCheck:i,useFilteration:l,hasToggleFilteration:u,filterF:h,noFilter:g,noCount:m,isFiltered:M,TopLeftAddon:T,TopRightAddon:C,useSortation:_,resources:S=hn.ATable}=r,[D]=R.useMemo(()=>i||[],[i]),A=R.useMemo(()=>M?S["Searched n items"](n):S["Total n items"](n),[S,M,n]),[b]=l,[k,O]=_,[H,q]=R.useState(!1),G=R.useMemo(()=>{const se=rr.values(b).filter(le=>le.type==="DateRange"),ue=rr.keys(b).filter(le=>se.includes(b[le])),ve=rr.keys(e).filter(le=>e[le].isSortable);return ue.length>0?(ue.length>1&&q(!0),ve.map(me=>ue.includes(me)?[me+"_Asc",me+"_Desc"]:me).flat()):ve},[e,b]),Y=R.useMemo(()=>r.isRowRendered&&G.length>0,[G.length,r.isRowRendered]),he=R.useCallback((se,ue)=>{O&&(k==null?void 0:k.defKey)===se&&(k.isAsc===!0?O({defKey:se,isAsc:!1,sortF:ue}):O({defKey:se,isAsc:!0,sortF:ue}))},[k,O]),J=R.useRef(),[fe,P]=R.useState(),[re,Q]=R.useState(k?k.defKey:G[0]),ne=R.useMemo(()=>{if(!fe)return{};const se=e[fe];return{SortUp:{onClick:()=>{O==null||O({defKey:fe,isAsc:!0,sortF:se.sortF}),Q(fe)},content:()=>S["Sort up"]},SortDown:{onClick:()=>{O==null||O({defKey:fe,isAsc:!1,sortF:se.sortF}),Q(fe)},content:()=>S["Sort down"]}}},[O,fe,e,S]);return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:He.clsx(Hc.ATableHeader),children:[v.jsxs("div",{className:He.clsx(Hc.LeftHeaderContent,"NoSelect"),children:[v.jsxs(Vn,{style:{marginBottom:Y?8:0},children:[T&&v.jsx("div",{className:He.clsx(Hc.HItem),children:T}),t&&v.jsx("div",{className:He.clsx(Hc.HItem),style:{whiteSpace:"nowrap"},children:t}),!m&&v.jsxs("div",{className:He.clsx(Hc.HItem),style:{maxHeight:14,...Y&&{minHeight:14,color:"var(--label-neutral)"}},children:[A,D&&D.length>0&&v.jsxs(v.Fragment,{children:[" / ",S["Checked n items"](D.length)]})]})]}),Y&&v.jsx(F2,{type:"Tertiary",options:G,useSelect:[re,()=>{}],optionWidth:"fit-content",tabProps:{style:{marginRight:8}},optionProps:{style:{cursor:"default"},onClick:se=>{var le;const ue=se.currentTarget.textContent;if(ue===S[ue])return;se.currentTarget.querySelector("svg")===null&&((le=J.current)==null||le.open(se.currentTarget))}},OptionRenderer:se=>{const ue=/_Asc|_Desc/.test(se.option),ve=(k==null?void 0:k.defKey)===se.option,le=re===se.option,me=k==null?void 0:k.isAsc,pe=()=>{if(ue){P(void 0),Q(se.option);const[Fe,Xe]=se.option.split("_"),we=Xe==="Asc";O==null||O({defKey:Fe,isAsc:we,sortF:e[Fe].sortF})}else le?he(se.option,e[se.option].sortF):P(se.option)},De=ue?(Fe=>{const[Xe,we]=Fe.split("_");return(H?Xe+" ":"")+S[we]})(se.option):S["Sort by x"](se.option);return v.jsxs(Vn,{style:{height:"100%"},className:He.clsx(!(ue&&le)&&"IsClickable"),onClick:pe,children:[De,le&&!ue&&v.jsx(qr,{style:{marginRight:-5,marginLeft:4},icon:ve?me?"RowSortUp":"RowSortDown":"RowSortBoth"})]},se.option)}})]}),v.jsx(Kc,{}),v.jsxs("div",{className:He.clsx(Hc.RightHeaderContent,"NoSelect"),children:[!g&&v.jsx(D8,{defs:e,useFilteration:l,hasToggleFilteration:u,filterF:h,isRowRendered:r.isRowRendered,isFilterSort:G.length>0,resources:S}),C&&v.jsx(Vn,{className:He.clsx(Hc.TopRightAddon),children:C})]})]}),v.jsx(P2,{defs:ne,actionRef:J,onClose:()=>P(void 0),width:100,position:Xu.S})]})},z8=r=>{const{defs:e,pk:t,defaultDef:n,rProps:i,useSelect:l,isSelectMulti:u,selectDisabled:h,useCheck:g,checkDisabled:m,isLoading:M,isDisabled:T,title:C,entireItems:_,onStateChange:S,pagedItems:D,totalCount:A,useFilteration:b,useToggleFilteration:k,usePagination:O,useSortation:H,showRows:q,noHeader:G,noFooter:Y,noFilter:he,noCount:J,noMarking:fe,noStateChangeOnMount:P,TopLeftAddon:re,TopRightAddon:Q,actionRef:ne,RowRenderer:se,resources:ue}=r,ve=R.useMemo(()=>({...hn.ATable,...ue}),[ue]),le=R.useCallback((We,yt)=>t!==void 0?Array.isArray(t)?t.every(K=>tl.isEqual(We[K],yt[K])):tl.isEqual(We[t],yt[t]):tl.isEqual(We,yt),[t]),me=R.useMemo(()=>({content:$8,...n}),[n]),pe=R.useMemo(()=>{const We={};return rr.keys(e).forEach(yt=>{const K=e[yt],Ne={...me,...K};We[yt]=Ne}),We},[me,e]),[_e,De]=pn(tl.cloneDeep(b),{"":{type:"String",placeholder:ve["Search(Placeholder)"],value:""}}),[Fe,Xe]=pn(tl.cloneDeep(k),void 0),[we,it]=R.useState(!1),[ht,Je]=R.useMemo(()=>we&&Fe?[Fe,Xe]:[_e,De],[_e,we,De,Xe,Fe]),[Ze,Le]=R.useState(ht),ke=R.useMemo(()=>_?Qa.applyFilteration(_,pe,Ze):[],[_,pe,Ze]),Te=R.useMemo(()=>{for(const We in Ze){const yt=Ze[We];if(yt.value!==void 0&&yt.value!==null&&yt.value!=="")return!0}return!1},[Ze]),[Be,Re]=pn(H,void 0),Qe=R.useMemo(()=>Qa.applySortation(ke,pe,Be),[ke,pe,Be]),ct=R.useMemo(()=>{if(D!==void 0)return Qa.applySortation(D,pe,Be)},[D,pe,Be]),[kt,At]=pn(O,{page:1,pageSize:50,pageRange:10}),bt=R.useMemo(()=>({pageSize:50,page:1,pageRange:10,...kt}),[kt]),{pagedItems:Dt,totalCount:Rt,pagination:ut}=R.useMemo(()=>{const We={...bt};if(ct!==void 0){let yt=A??ct.length;const K=Qa.getPages(yt,We.pageSize);return We.page>K.length?We.page=K.length:We.page<1&&(We.page=1),{pagedItems:ct,totalCount:yt,pagination:We}}else if(_!==void 0){const yt=A??Qe.length,K=Qa.getPages(yt,We.pageSize);return We.page>K.length?We.page=K.length:We.page<1&&(We.page=1),{pagedItems:Qa.applyPagination(Qe,We.page,We.pageSize),totalCount:yt,pagination:We}}else return{pagedItems:[],totalCount:A??0,pagination:bt}},[_,ct,A,bt,Qe]),{pages:ot,rangedPages:wt}=R.useMemo(()=>Qa.getRangedPages(ut.page,Rt,ut.pageSize,ut.pageRange),[Rt,ut.pageSize,ut.page,ut.pageRange]),[Ie,pt]=R.useMemo(()=>g??[],[g]),_t=R.useMemo(()=>Dt.filter(We=>Ie==null?void 0:Ie.some(yt=>le(yt,We))),[Dt,Ie,le]),Ot=R.useMemo(()=>Dt.filter(We=>!(m!=null&&m(We))),[Dt,m]),$t=R.useMemo(()=>Ot.length>0&&Ot.every(We=>_t.some(yt=>le(yt,We))),[_t,Ot,le]),Ue=R.useMemo(()=>$t?!1:Ot.some(We=>_t.some(yt=>le(yt,We))),[_t,Ot,$t,le]),Tt=R.useCallback(()=>{!Ie||!pt||T||pt($t||Ue?Ie.filter(We=>!Ot.some(yt=>le(yt,We))):[...Ie,...Ot])},[Ie,pt,$t,Ue,Ot,T,le]),zt=R.useCallback(We=>{!Ie||!pt||T||(Ie.some(yt=>le(yt,We))?pt(Ie.filter(yt=>!le(yt,We))):pt([...Ie,We]))},[Ie,pt,T,le]);R.useEffect(()=>{if(!pt||!Ie||!m)return;Ie.filter(yt=>m(yt)).length>0&&pt(Ie.filter(yt=>!m(yt)))},[m,Ie,pt]);const br=R.useMemo(()=>({hContent:Ie&&v.jsx(Wu,{useCheck:[$t,Tt],isIndeterminate:Ue}),content:We=>{const{item:yt}=We,K=m==null?void 0:m(yt),Ne=typeof K=="string"?K:void 0,lt=Ie==null?void 0:Ie.some(Bt=>le(Bt,yt));return v.jsx(Wu,{style:{zIndex:1},isDisabled:K,tooltip:Ne,onClick:Bt=>Bt.stopPropagation(),useCheck:[lt,()=>zt(yt)]})},minWidth:32,maxWidth:32}),[Ie,$t,Ue,le,Tt,m,zt]),Or=R.useMemo(()=>g?{checkDef:br,...pe}:pe,[pe,br,g]),[It,ie]=R.useState(!1),X=R.useMemo(()=>M??It,[M,It]),Ee=R.useCallback(async We=>{S&&(ie(!0),await S(We),ie(!1)),At==null||At(We.pagination),Re==null||Re(We.sortation),Le(We.filteration)},[S,At,Re]);R.useEffect(()=>{if(!ne)return;const We=K=>{const Ne={entireItems:_,filteration:ht,pagination:ut,sortation:Be},lt=K?K(Ne):Ne;Ee(lt)},yt=K=>{const Ne={...ut,page:1},lt=K?K(ht):ht;Ee({entireItems:_,filteration:lt,pagination:Ne,sortation:Be}),Je==null||Je(lt)};ne.current={fireOnStateChange:We,applyFilteration:yt}},[ne,Ee,_,Je,ht,ut,Be]);const je=R.useCallback(We=>{We.page===ut.page&&We.pageSize===ut.pageSize||(We.page<1?We.page=1:We.page>ot[ot.length-1]&&(We.page=ot[ot.length-1]),Ee({entireItems:_,filteration:Ze,pagination:We,sortation:Be}))},[ut,ot,Ee,_,Ze,Be]),St=R.useCallback(We=>{Je&&Je(We)},[Je]),ft=R.useCallback(We=>{Ee({entireItems:_,filteration:Ze,pagination:ut,sortation:We})},[Ee,_,Ze,ut]),mt=R.useCallback(We=>{je({...ut,page:We})},[je,ut]),Ut=R.useCallback(()=>{mt(ut.page-1)},[mt,ut.page]),Lt=R.useCallback(()=>{mt(ut.page+1)},[mt,ut.page]),Qt=R.useCallback(()=>{mt(1)},[mt]),xt=R.useCallback(()=>{mt(ot[ot.length-1])},[mt,ot]),Et=R.useMemo(()=>({move:mt,movePrev:Ut,moveNext:Lt,moveFirst:Qt,moveLast:xt}),[mt,Ut,Lt,Qt,xt]),gt=R.useCallback(()=>{const We={...ut,page:1};Ee({entireItems:_,filteration:ht,pagination:We,sortation:Be})},[ht,ut,Ee,_,Be]),Ft=R.useCallback(()=>{it(!we)},[we]),ur=R.useCallback(()=>{we&&Fe?Xe==null||Xe(Qv(Fe)):Je==null||Je(Qv(_e))},[we,Fe,Xe,_e,Je]),qe=R.useMemo(()=>({apply:gt,toggle:Ft,clear:ur}),[gt,Ft,ur]);B2(()=>{P||Ee({entireItems:_,filteration:ht,pagination:ut,sortation:Be})});const vt=R.useMemo(()=>rr.map(pe,([yt])=>pe[yt].minWidth??Zl).reduce((yt,K)=>yt+K,0),[pe]),at=R.useMemo(()=>se!==void 0,[se]);return v.jsxs(Wr,{className:Wk.ATable,isDisabled:T,style:{minWidth:vt},children:[!G&&v.jsx(H8,{defs:pe,title:C,totalCount:Rt,useCheck:g&&Ie?[Ie,pt]:void 0,useFilteration:[ht,St],useSortation:[Be,ft],isRowRendered:at,hasToggleFilteration:Fe!==void 0,filterF:qe,noFilter:he,noCount:J,isFiltered:Te,TopLeftAddon:re,TopRightAddon:Q,resources:ve}),v.jsx(f8,{defs:Or,isEqual:le,rProps:i,useSelect:l,isSelectMulti:u,selectDisabled:h,isTableDisabled:T,appliedFilteration:Ze,useSortation:[Be,ft],pagination:ut,pagedItems:Dt,showRows:q,isLoading:X,noMarking:fe,resources:ve,RowRenderer:se,isRowRendered:at}),!Y&&v.jsx(b8,{pages:ot,rangedPages:wt,pageF:Et,pagination:ut})]})},$8=r=>{const{defKey:e,item:t}=r;if(rr.hasKey(t,e)){const n=t[e];return rr.isReactNode(n)?n:null}else return null};function Qv(r){const e={...r};for(const t in e)e[t].value=void 0;return e}const U8="_AText_1asz6_1",W8={AText:U8},$2=r=>{const{text:e,styled:t,style:n}=r,i=R.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,h)=>v.jsxs(R.Fragment,{children:[Td(u),h<l.length-1?v.jsx("b",{children:Td(t)}):""]},h)):l.map((u,h)=>v.jsxs(R.Fragment,{children:[Td(u),h<l.length-1&&v.jsx("span",{style:n,children:Td(t)})]},h))}}else return e;else return e;else return""},[e,n,t]);return v.jsx("div",{className:He.clsx("Body1Reading",W8.AText,"NoSelect"),children:i})};function Td(r){const e=r.split(`
|
53
|
-
`);return e.map((t,n)=>v.jsxs(R.Fragment,{children:[t,n!==e.length-1&&v.jsx("br",{})]},n))}const V8="_Base_sw5fu_7",G8="_ATextArea_sw5fu_11",Z8="_Primary_sw5fu_34",Y8="_UnAvailable_sw5fu_39",K8="_Secondary_sw5fu_47",X8="_ReadOnly_sw5fu_59",Ed={Base:V8,ATextArea:G8,Primary:Z8,UnAvailable:Y8,Secondary:K8,ReadOnly:X8,Error:"_Error_sw5fu_66"},J8=["Primary","Secondary","ReadOnly","Error"],Q8=r=>{const{onEnterPress:e,errorMessage:t,type:n="Primary",textAreaRef:i,useValue:l,rows:u,isReadonly:h,placeholder:g,maxLength:m,tabIndex:M,autoFocus:T,textAreaProps:C,wrapProps:_,helperText:S,label:D,wrapType:A,labelProps:b,...k}=r,O=R.useMemo(()=>eR(t)?"Error":n,[t,n]),H=R.useMemo(()=>O==="ReadOnly"?!0:h,[O,h]),q=R.useMemo(()=>k.isDisabled||k.isLoading,[k.isDisabled,k.isLoading]),[G,Y]=pn(l,""),he=R.useCallback(P=>{Y&&Y(P)},[Y]),J=R.useCallback(P=>{var re;q||(he(P.target.value),(re=C==null?void 0:C.onChange)==null||re.call(C,P))},[q,he,C]),fe=R.useCallback(P=>{var re;if(!q){if((re=C==null?void 0:C.onKeyDown)==null||re.call(C,P),P.key==="Tab"){const Q=P.currentTarget.selectionStart,ne=P.currentTarget.selectionEnd;P.currentTarget.value=P.currentTarget.value.substring(0,Q)+" "+P.currentTarget.value.substring(ne),P.currentTarget.selectionStart=P.currentTarget.selectionEnd=Q+1,P.preventDefault()}else P.key==="Enter"&&(e==null||e(P.currentTarget.value),P.stopPropagation());P.key!=="Escape"&&P.stopPropagation()}},[q,e,C]);return v.jsx(Wc,{wrapProps:_,label:D,helperText:S,errorMessage:t,labelProps:b,wrapType:A??O==="Error"?"Error":"Default",children:v.jsx(Wr,{...k,className:He.clsx(Ed.Base,k.className),children:v.jsx("textarea",{...C,className:He.clsx(Ed.ATextArea,Ed[O],q&&Ed.UnAvailable,C==null?void 0:C.className),value:G,rows:u,readOnly:H,onChange:J,onKeyDown:fe,placeholder:g,maxLength:m,tabIndex:k.isDisabled||k.isLoading?-1:M,autoFocus:T,ref:i})})})};function eR(r){return Array.isArray(r)?r.filter(Boolean).length>0:!!r}var U2=typeof global=="object"&&global&&global.Object===Object&&global,tR=typeof self=="object"&&self&&self.Object===Object&&self,Ca=U2||tR||Function("return this")(),ec=Ca.Symbol,W2=Object.prototype,rR=W2.hasOwnProperty,nR=W2.toString,Rf=ec?ec.toStringTag:void 0;function iR(r){var e=rR.call(r,Rf),t=r[Rf];try{r[Rf]=void 0;var n=!0}catch{}var i=nR.call(r);return n&&(e?r[Rf]=t:delete r[Rf]),i}var oR=Object.prototype,sR=oR.toString;function aR(r){return sR.call(r)}var lR="[object Null]",cR="[object Undefined]",e0=ec?ec.toStringTag:void 0;function Ju(r){return r==null?r===void 0?cR:lR:e0&&e0 in Object(r)?iR(r):aR(r)}function rl(r){return r!=null&&typeof r=="object"}var Gc=Array.isArray;function tc(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}function V2(r){return r}var uR="[object AsyncFunction]",fR="[object Function]",dR="[object GeneratorFunction]",hR="[object Proxy]";function gm(r){if(!tc(r))return!1;var e=Ju(r);return e==fR||e==dR||e==uR||e==hR}var Kh=Ca["__core-js_shared__"],t0=function(){var r=/[^.]+$/.exec(Kh&&Kh.keys&&Kh.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function pR(r){return!!t0&&t0 in r}var gR=Function.prototype,mR=gR.toString;function Xc(r){if(r!=null){try{return mR.call(r)}catch{}try{return r+""}catch{}}return""}var vR=/[\\^$.*+?()[\]{}|]/g,yR=/^\[object .+?Constructor\]$/,bR=Function.prototype,_R=Object.prototype,xR=bR.toString,SR=_R.hasOwnProperty,CR=RegExp("^"+xR.call(SR).replace(vR,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function wR(r){if(!tc(r)||pR(r))return!1;var e=gm(r)?CR:yR;return e.test(Xc(r))}function AR(r,e){return r==null?void 0:r[e]}function Jc(r,e){var t=AR(r,e);return wR(t)?t:void 0}var N1=Jc(Ca,"WeakMap"),r0=Object.create,TR=function(){function r(){}return function(e){if(!tc(e))return{};if(r0)return r0(e);r.prototype=e;var t=new r;return r.prototype=void 0,t}}();function ER(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 G2(r,e){var t=-1,n=r.length;for(e||(e=Array(n));++t<n;)e[t]=r[t];return e}var kR=800,RR=16,IR=Date.now;function LR(r){var e=0,t=0;return function(){var n=IR(),i=RR-(n-t);if(t=n,i>0){if(++e>=kR)return arguments[0]}else e=0;return r.apply(void 0,arguments)}}function MR(r){return function(){return r}}var Xd=function(){try{var r=Jc(Object,"defineProperty");return r({},"",{}),r}catch{}}(),DR=Xd?function(r,e){return Xd(r,"toString",{configurable:!0,enumerable:!1,value:MR(e),writable:!0})}:V2,OR=LR(DR);function PR(r,e){for(var t=-1,n=r==null?0:r.length;++t<n&&e(r[t],t,r)!==!1;);return r}var NR=9007199254740991,jR=/^(?:0|[1-9]\d*)$/;function Z2(r,e){var t=typeof r;return e=e??NR,!!e&&(t=="number"||t!="symbol"&&jR.test(r))&&r>-1&&r%1==0&&r<e}function mm(r,e,t){e=="__proto__"&&Xd?Xd(r,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):r[e]=t}function ed(r,e){return r===e||r!==r&&e!==e}var FR=Object.prototype,BR=FR.hasOwnProperty;function Y2(r,e,t){var n=r[e];(!(BR.call(r,e)&&ed(n,t))||t===void 0&&!(e in r))&&mm(r,e,t)}function td(r,e,t,n){var i=!t;t||(t={});for(var l=-1,u=e.length;++l<u;){var h=e[l],g=void 0;g===void 0&&(g=r[h]),i?mm(t,h,g):Y2(t,h,g)}return t}var n0=Math.max;function qR(r,e,t){return e=n0(e===void 0?r.length-1:e,0),function(){for(var n=arguments,i=-1,l=n0(n.length-e,0),u=Array(l);++i<l;)u[i]=n[e+i];i=-1;for(var h=Array(e+1);++i<e;)h[i]=n[i];return h[e]=t(u),ER(r,this,h)}}function HR(r,e){return OR(qR(r,e,V2),r+"")}var zR=9007199254740991;function K2(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=zR}function sh(r){return r!=null&&K2(r.length)&&!gm(r)}function $R(r,e,t){if(!tc(t))return!1;var n=typeof e;return(n=="number"?sh(t)&&Z2(e,t.length):n=="string"&&e in t)?ed(t[e],r):!1}function UR(r){return HR(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&&$R(t[0],t[1],u)&&(l=i<3?void 0:l,i=1),e=Object(e);++n<i;){var h=t[n];h&&r(e,h,n,l)}return e})}var WR=Object.prototype;function vm(r){var e=r&&r.constructor,t=typeof e=="function"&&e.prototype||WR;return r===t}function VR(r,e){for(var t=-1,n=Array(r);++t<r;)n[t]=e(t);return n}var GR="[object Arguments]";function i0(r){return rl(r)&&Ju(r)==GR}var X2=Object.prototype,ZR=X2.hasOwnProperty,YR=X2.propertyIsEnumerable,j1=i0(function(){return arguments}())?i0:function(r){return rl(r)&&ZR.call(r,"callee")&&!YR.call(r,"callee")};function KR(){return!1}var J2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,o0=J2&&typeof module=="object"&&module&&!module.nodeType&&module,XR=o0&&o0.exports===J2,s0=XR?Ca.Buffer:void 0,JR=s0?s0.isBuffer:void 0,Gf=JR||KR,QR="[object Arguments]",e9="[object Array]",t9="[object Boolean]",r9="[object Date]",n9="[object Error]",i9="[object Function]",o9="[object Map]",s9="[object Number]",a9="[object Object]",l9="[object RegExp]",c9="[object Set]",u9="[object String]",f9="[object WeakMap]",d9="[object ArrayBuffer]",h9="[object DataView]",p9="[object Float32Array]",g9="[object Float64Array]",m9="[object Int8Array]",v9="[object Int16Array]",y9="[object Int32Array]",b9="[object Uint8Array]",_9="[object Uint8ClampedArray]",x9="[object Uint16Array]",S9="[object Uint32Array]",xn={};xn[p9]=xn[g9]=xn[m9]=xn[v9]=xn[y9]=xn[b9]=xn[_9]=xn[x9]=xn[S9]=!0;xn[QR]=xn[e9]=xn[d9]=xn[t9]=xn[h9]=xn[r9]=xn[n9]=xn[i9]=xn[o9]=xn[s9]=xn[a9]=xn[l9]=xn[c9]=xn[u9]=xn[f9]=!1;function C9(r){return rl(r)&&K2(r.length)&&!!xn[Ju(r)]}function ym(r){return function(e){return r(e)}}var Q2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,qf=Q2&&typeof module=="object"&&module&&!module.nodeType&&module,w9=qf&&qf.exports===Q2,Xh=w9&&U2.process,Vu=function(){try{var r=qf&&qf.require&&qf.require("util").types;return r||Xh&&Xh.binding&&Xh.binding("util")}catch{}}(),a0=Vu&&Vu.isTypedArray,bm=a0?ym(a0):C9,A9=Object.prototype,T9=A9.hasOwnProperty;function ex(r,e){var t=Gc(r),n=!t&&j1(r),i=!t&&!n&&Gf(r),l=!t&&!n&&!i&&bm(r),u=t||n||i||l,h=u?VR(r.length,String):[],g=h.length;for(var m in r)(e||T9.call(r,m))&&!(u&&(m=="length"||i&&(m=="offset"||m=="parent")||l&&(m=="buffer"||m=="byteLength"||m=="byteOffset")||Z2(m,g)))&&h.push(m);return h}function tx(r,e){return function(t){return r(e(t))}}var E9=tx(Object.keys,Object),k9=Object.prototype,R9=k9.hasOwnProperty;function I9(r){if(!vm(r))return E9(r);var e=[];for(var t in Object(r))R9.call(r,t)&&t!="constructor"&&e.push(t);return e}function _m(r){return sh(r)?ex(r):I9(r)}function L9(r){var e=[];if(r!=null)for(var t in Object(r))e.push(t);return e}var M9=Object.prototype,D9=M9.hasOwnProperty;function O9(r){if(!tc(r))return L9(r);var e=vm(r),t=[];for(var n in r)n=="constructor"&&(e||!D9.call(r,n))||t.push(n);return t}function rd(r){return sh(r)?ex(r,!0):O9(r)}var Zf=Jc(Object,"create");function P9(){this.__data__=Zf?Zf(null):{},this.size=0}function N9(r){var e=this.has(r)&&delete this.__data__[r];return this.size-=e?1:0,e}var j9="__lodash_hash_undefined__",F9=Object.prototype,B9=F9.hasOwnProperty;function q9(r){var e=this.__data__;if(Zf){var t=e[r];return t===j9?void 0:t}return B9.call(e,r)?e[r]:void 0}var H9=Object.prototype,z9=H9.hasOwnProperty;function $9(r){var e=this.__data__;return Zf?e[r]!==void 0:z9.call(e,r)}var U9="__lodash_hash_undefined__";function W9(r,e){var t=this.__data__;return this.size+=this.has(r)?0:1,t[r]=Zf&&e===void 0?U9:e,this}function Zc(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])}}Zc.prototype.clear=P9;Zc.prototype.delete=N9;Zc.prototype.get=q9;Zc.prototype.has=$9;Zc.prototype.set=W9;function V9(){this.__data__=[],this.size=0}function ah(r,e){for(var t=r.length;t--;)if(ed(r[t][0],e))return t;return-1}var G9=Array.prototype,Z9=G9.splice;function Y9(r){var e=this.__data__,t=ah(e,r);if(t<0)return!1;var n=e.length-1;return t==n?e.pop():Z9.call(e,t,1),--this.size,!0}function K9(r){var e=this.__data__,t=ah(e,r);return t<0?void 0:e[t][1]}function X9(r){return ah(this.__data__,r)>-1}function J9(r,e){var t=this.__data__,n=ah(t,r);return n<0?(++this.size,t.push([r,e])):t[n][1]=e,this}function sl(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])}}sl.prototype.clear=V9;sl.prototype.delete=Y9;sl.prototype.get=K9;sl.prototype.has=X9;sl.prototype.set=J9;var Yf=Jc(Ca,"Map");function Q9(){this.size=0,this.__data__={hash:new Zc,map:new(Yf||sl),string:new Zc}}function e7(r){var e=typeof r;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?r!=="__proto__":r===null}function lh(r,e){var t=r.__data__;return e7(e)?t[typeof e=="string"?"string":"hash"]:t.map}function t7(r){var e=lh(this,r).delete(r);return this.size-=e?1:0,e}function r7(r){return lh(this,r).get(r)}function n7(r){return lh(this,r).has(r)}function i7(r,e){var t=lh(this,r),n=t.size;return t.set(r,e),this.size+=t.size==n?0:1,this}function Qc(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])}}Qc.prototype.clear=Q9;Qc.prototype.delete=t7;Qc.prototype.get=r7;Qc.prototype.has=n7;Qc.prototype.set=i7;function rx(r,e){for(var t=-1,n=e.length,i=r.length;++t<n;)r[i+t]=e[t];return r}var xm=tx(Object.getPrototypeOf,Object),o7="[object Object]",s7=Function.prototype,a7=Object.prototype,nx=s7.toString,l7=a7.hasOwnProperty,c7=nx.call(Object);function u7(r){if(!rl(r)||Ju(r)!=o7)return!1;var e=xm(r);if(e===null)return!0;var t=l7.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&nx.call(t)==c7}function f7(){this.__data__=new sl,this.size=0}function d7(r){var e=this.__data__,t=e.delete(r);return this.size=e.size,t}function h7(r){return this.__data__.get(r)}function p7(r){return this.__data__.has(r)}var g7=200;function m7(r,e){var t=this.__data__;if(t instanceof sl){var n=t.__data__;if(!Yf||n.length<g7-1)return n.push([r,e]),this.size=++t.size,this;t=this.__data__=new Qc(n)}return t.set(r,e),this.size=t.size,this}function ba(r){var e=this.__data__=new sl(r);this.size=e.size}ba.prototype.clear=f7;ba.prototype.delete=d7;ba.prototype.get=h7;ba.prototype.has=p7;ba.prototype.set=m7;function v7(r,e){return r&&td(e,_m(e),r)}function y7(r,e){return r&&td(e,rd(e),r)}var ix=typeof exports=="object"&&exports&&!exports.nodeType&&exports,l0=ix&&typeof module=="object"&&module&&!module.nodeType&&module,b7=l0&&l0.exports===ix,c0=b7?Ca.Buffer:void 0,u0=c0?c0.allocUnsafe:void 0;function ox(r,e){if(e)return r.slice();var t=r.length,n=u0?u0(t):new r.constructor(t);return r.copy(n),n}function _7(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 sx(){return[]}var x7=Object.prototype,S7=x7.propertyIsEnumerable,f0=Object.getOwnPropertySymbols,Sm=f0?function(r){return r==null?[]:(r=Object(r),_7(f0(r),function(e){return S7.call(r,e)}))}:sx;function C7(r,e){return td(r,Sm(r),e)}var w7=Object.getOwnPropertySymbols,ax=w7?function(r){for(var e=[];r;)rx(e,Sm(r)),r=xm(r);return e}:sx;function A7(r,e){return td(r,ax(r),e)}function lx(r,e,t){var n=e(r);return Gc(r)?n:rx(n,t(r))}function F1(r){return lx(r,_m,Sm)}function T7(r){return lx(r,rd,ax)}var B1=Jc(Ca,"DataView"),q1=Jc(Ca,"Promise"),H1=Jc(Ca,"Set"),d0="[object Map]",E7="[object Object]",h0="[object Promise]",p0="[object Set]",g0="[object WeakMap]",m0="[object DataView]",k7=Xc(B1),R7=Xc(Yf),I7=Xc(q1),L7=Xc(H1),M7=Xc(N1),Ns=Ju;(B1&&Ns(new B1(new ArrayBuffer(1)))!=m0||Yf&&Ns(new Yf)!=d0||q1&&Ns(q1.resolve())!=h0||H1&&Ns(new H1)!=p0||N1&&Ns(new N1)!=g0)&&(Ns=function(r){var e=Ju(r),t=e==E7?r.constructor:void 0,n=t?Xc(t):"";if(n)switch(n){case k7:return m0;case R7:return d0;case I7:return h0;case L7:return p0;case M7:return g0}return e});var D7=Object.prototype,O7=D7.hasOwnProperty;function P7(r){var e=r.length,t=new r.constructor(e);return e&&typeof r[0]=="string"&&O7.call(r,"index")&&(t.index=r.index,t.input=r.input),t}var Jd=Ca.Uint8Array;function Cm(r){var e=new r.constructor(r.byteLength);return new Jd(e).set(new Jd(r)),e}function N7(r,e){var t=e?Cm(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.byteLength)}var j7=/\w*$/;function F7(r){var e=new r.constructor(r.source,j7.exec(r));return e.lastIndex=r.lastIndex,e}var v0=ec?ec.prototype:void 0,y0=v0?v0.valueOf:void 0;function B7(r){return y0?Object(y0.call(r)):{}}function cx(r,e){var t=e?Cm(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}var q7="[object Boolean]",H7="[object Date]",z7="[object Map]",$7="[object Number]",U7="[object RegExp]",W7="[object Set]",V7="[object String]",G7="[object Symbol]",Z7="[object ArrayBuffer]",Y7="[object DataView]",K7="[object Float32Array]",X7="[object Float64Array]",J7="[object Int8Array]",Q7="[object Int16Array]",eI="[object Int32Array]",tI="[object Uint8Array]",rI="[object Uint8ClampedArray]",nI="[object Uint16Array]",iI="[object Uint32Array]";function oI(r,e,t){var n=r.constructor;switch(e){case Z7:return Cm(r);case q7:case H7:return new n(+r);case Y7:return N7(r,t);case K7:case X7:case J7:case Q7:case eI:case tI:case rI:case nI:case iI:return cx(r,t);case z7:return new n;case $7:case V7:return new n(r);case U7:return F7(r);case W7:return new n;case G7:return B7(r)}}function ux(r){return typeof r.constructor=="function"&&!vm(r)?TR(xm(r)):{}}var sI="[object Map]";function aI(r){return rl(r)&&Ns(r)==sI}var b0=Vu&&Vu.isMap,lI=b0?ym(b0):aI,cI="[object Set]";function uI(r){return rl(r)&&Ns(r)==cI}var _0=Vu&&Vu.isSet,fI=_0?ym(_0):uI,dI=1,hI=2,pI=4,fx="[object Arguments]",gI="[object Array]",mI="[object Boolean]",vI="[object Date]",yI="[object Error]",dx="[object Function]",bI="[object GeneratorFunction]",_I="[object Map]",xI="[object Number]",hx="[object Object]",SI="[object RegExp]",CI="[object Set]",wI="[object String]",AI="[object Symbol]",TI="[object WeakMap]",EI="[object ArrayBuffer]",kI="[object DataView]",RI="[object Float32Array]",II="[object Float64Array]",LI="[object Int8Array]",MI="[object Int16Array]",DI="[object Int32Array]",OI="[object Uint8Array]",PI="[object Uint8ClampedArray]",NI="[object Uint16Array]",jI="[object Uint32Array]",gn={};gn[fx]=gn[gI]=gn[EI]=gn[kI]=gn[mI]=gn[vI]=gn[RI]=gn[II]=gn[LI]=gn[MI]=gn[DI]=gn[_I]=gn[xI]=gn[hx]=gn[SI]=gn[CI]=gn[wI]=gn[AI]=gn[OI]=gn[PI]=gn[NI]=gn[jI]=!0;gn[yI]=gn[dx]=gn[TI]=!1;function zd(r,e,t,n,i,l){var u,h=e&dI,g=e&hI,m=e&pI;if(u!==void 0)return u;if(!tc(r))return r;var M=Gc(r);if(M){if(u=P7(r),!h)return G2(r,u)}else{var T=Ns(r),C=T==dx||T==bI;if(Gf(r))return ox(r,h);if(T==hx||T==fx||C&&!i){if(u=g||C?{}:ux(r),!h)return g?A7(r,y7(u,r)):C7(r,v7(u,r))}else{if(!gn[T])return i?r:{};u=oI(r,T,h)}}l||(l=new ba);var _=l.get(r);if(_)return _;l.set(r,u),fI(r)?r.forEach(function(A){u.add(zd(A,e,t,A,r,l))}):lI(r)&&r.forEach(function(A,b){u.set(b,zd(A,e,t,b,r,l))});var S=m?g?T7:F1:g?rd:_m,D=M?void 0:S(r);return PR(D||r,function(A,b){D&&(b=A,A=r[b]),Y2(u,b,zd(A,e,t,b,r,l))}),u}var FI=1,BI=4;function Hu(r){return zd(r,FI|BI)}var qI="__lodash_hash_undefined__";function HI(r){return this.__data__.set(r,qI),this}function zI(r){return this.__data__.has(r)}function Qd(r){var e=-1,t=r==null?0:r.length;for(this.__data__=new Qc;++e<t;)this.add(r[e])}Qd.prototype.add=Qd.prototype.push=HI;Qd.prototype.has=zI;function $I(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 UI(r,e){return r.has(e)}var WI=1,VI=2;function px(r,e,t,n,i,l){var u=t&WI,h=r.length,g=e.length;if(h!=g&&!(u&&g>h))return!1;var m=l.get(r),M=l.get(e);if(m&&M)return m==e&&M==r;var T=-1,C=!0,_=t&VI?new Qd:void 0;for(l.set(r,e),l.set(e,r);++T<h;){var S=r[T],D=e[T];if(n)var A=u?n(D,S,T,e,r,l):n(S,D,T,r,e,l);if(A!==void 0){if(A)continue;C=!1;break}if(_){if(!$I(e,function(b,k){if(!UI(_,k)&&(S===b||i(S,b,t,n,l)))return _.push(k)})){C=!1;break}}else if(!(S===D||i(S,D,t,n,l))){C=!1;break}}return l.delete(r),l.delete(e),C}function GI(r){var e=-1,t=Array(r.size);return r.forEach(function(n,i){t[++e]=[i,n]}),t}function ZI(r){var e=-1,t=Array(r.size);return r.forEach(function(n){t[++e]=n}),t}var YI=1,KI=2,XI="[object Boolean]",JI="[object Date]",QI="[object Error]",eL="[object Map]",tL="[object Number]",rL="[object RegExp]",nL="[object Set]",iL="[object String]",oL="[object Symbol]",sL="[object ArrayBuffer]",aL="[object DataView]",x0=ec?ec.prototype:void 0,Jh=x0?x0.valueOf:void 0;function lL(r,e,t,n,i,l,u){switch(t){case aL:if(r.byteLength!=e.byteLength||r.byteOffset!=e.byteOffset)return!1;r=r.buffer,e=e.buffer;case sL:return!(r.byteLength!=e.byteLength||!l(new Jd(r),new Jd(e)));case XI:case JI:case tL:return ed(+r,+e);case QI:return r.name==e.name&&r.message==e.message;case rL:case iL:return r==e+"";case eL:var h=GI;case nL:var g=n&YI;if(h||(h=ZI),r.size!=e.size&&!g)return!1;var m=u.get(r);if(m)return m==e;n|=KI,u.set(r,e);var M=px(h(r),h(e),n,i,l,u);return u.delete(r),M;case oL:if(Jh)return Jh.call(r)==Jh.call(e)}return!1}var cL=1,uL=Object.prototype,fL=uL.hasOwnProperty;function dL(r,e,t,n,i,l){var u=t&cL,h=F1(r),g=h.length,m=F1(e),M=m.length;if(g!=M&&!u)return!1;for(var T=g;T--;){var C=h[T];if(!(u?C in e:fL.call(e,C)))return!1}var _=l.get(r),S=l.get(e);if(_&&S)return _==e&&S==r;var D=!0;l.set(r,e),l.set(e,r);for(var A=u;++T<g;){C=h[T];var b=r[C],k=e[C];if(n)var O=u?n(k,b,C,e,r,l):n(b,k,C,r,e,l);if(!(O===void 0?b===k||i(b,k,t,n,l):O)){D=!1;break}A||(A=C=="constructor")}if(D&&!A){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 hL=1,S0="[object Arguments]",C0="[object Array]",kd="[object Object]",pL=Object.prototype,w0=pL.hasOwnProperty;function gL(r,e,t,n,i,l){var u=Gc(r),h=Gc(e),g=u?C0:Ns(r),m=h?C0:Ns(e);g=g==S0?kd:g,m=m==S0?kd:m;var M=g==kd,T=m==kd,C=g==m;if(C&&Gf(r)){if(!Gf(e))return!1;u=!0,M=!1}if(C&&!M)return l||(l=new ba),u||bm(r)?px(r,e,t,n,i,l):lL(r,e,g,t,n,i,l);if(!(t&hL)){var _=M&&w0.call(r,"__wrapped__"),S=T&&w0.call(e,"__wrapped__");if(_||S){var D=_?r.value():r,A=S?e.value():e;return l||(l=new ba),i(D,A,t,n,l)}}return C?(l||(l=new ba),dL(r,e,t,n,i,l)):!1}function gx(r,e,t,n,i){return r===e?!0:r==null||e==null||!rl(r)&&!rl(e)?r!==r&&e!==e:gL(r,e,t,n,gx,i)}function mL(r){return function(e,t,n){for(var i=-1,l=Object(e),u=n(e),h=u.length;h--;){var g=u[++i];if(t(l[g],g,l)===!1)break}return e}}var vL=mL();function z1(r,e,t){(t!==void 0&&!ed(r[e],t)||t===void 0&&!(e in r))&&mm(r,e,t)}function yL(r){return rl(r)&&sh(r)}function $1(r,e){if(!(e==="constructor"&&typeof r[e]=="function")&&e!="__proto__")return r[e]}function bL(r){return td(r,rd(r))}function _L(r,e,t,n,i,l,u){var h=$1(r,t),g=$1(e,t),m=u.get(g);if(m){z1(r,t,m);return}var M=l?l(h,g,t+"",r,e,u):void 0,T=M===void 0;if(T){var C=Gc(g),_=!C&&Gf(g),S=!C&&!_&&bm(g);M=g,C||_||S?Gc(h)?M=h:yL(h)?M=G2(h):_?(T=!1,M=ox(g,!0)):S?(T=!1,M=cx(g,!0)):M=[]:u7(g)||j1(g)?(M=h,j1(h)?M=bL(h):(!tc(h)||gm(h))&&(M=ux(g))):T=!1}T&&(u.set(g,M),i(M,g,n,l,u),u.delete(g)),z1(r,t,M)}function mx(r,e,t,n,i){r!==e&&vL(e,function(l,u){if(i||(i=new ba),tc(l))_L(r,e,u,t,mx,n,i);else{var h=n?n($1(r,u),l,u+"",r,e,i):void 0;h===void 0&&(h=l),z1(r,u,h)}},rd)}function wm(r,e){return gx(r,e)}var Xl=UR(function(r,e,t){mx(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 xa{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 zu extends Error{constructor(e){e="[Parchment] "+e,super(e),this.message=e,this.name=this.constructor.name}}const vx=class U1{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 zu(`Unable to create ${t} blot`);const l=i,u=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:l.create(n),h=new l(e,u,n);return U1.blots.set(h.domNode,h),h}find(e,t=!1){return U1.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 zu("Invalid definition");if(n&&t.blotName==="abstract")throw new zu("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})}};vx.blots=new WeakMap;let Gu=vx;function A0(r,e){return(r.getAttribute("class")||"").split(/\s+/).filter(t=>t.indexOf(`${e}-`)===0)}class xL extends xa{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){A0(e,this.keyName).forEach(t=>{e.classList.remove(t)}),e.classList.length===0&&e.removeAttribute("class")}value(e){const t=(A0(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""}}const $s=xL;function Qh(r){const e=r.split("-"),t=e.slice(1).map(n=>n[0].toUpperCase()+n.slice(1)).join("");return e[0]+t}class SL extends xa{static keys(e){return(e.getAttribute("style")||"").split(";").map(t=>t.split(":")[0].trim())}add(e,t){return this.canAdd(e,t)?(e.style[Qh(this.keyName)]=t,!0):!1}remove(e){e.style[Qh(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const t=e.style[Qh(this.keyName)];return this.canAdd(e,t)?t:""}}const rc=SL;class CL{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=Gu.find(this.domNode);if(e==null)return;const t=xa.keys(this.domNode),n=$s.keys(this.domNode),i=rc.keys(this.domNode);t.concat(n).concat(i).forEach(l=>{const u=e.scroll.query(l,Jt.ATTRIBUTE);u instanceof xa&&(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 ch=CL,yx=class{constructor(e,t){this.scroll=e,this.domNode=t,Gu.blots.set(t,this),this.prev=null,this.next=null}static create(e){if(this.tagName==null)throw new zu("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),Gu.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 zu(`Cannot wrap ${e}`);return n.appendChild(this),n}};yx.blotName="abstract";let bx=yx;const _x=class extends bx{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}}};_x.scope=Jt.INLINE_BLOT;let wL=_x;const Fi=wL;class AL{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 h=this.iterator(i);let g=h();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=h()}}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 T0(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 xx=class Gl extends bx{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,Gl.uiClass&&this.uiNode.classList.add(Gl.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new AL,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{const t=T0(e,this.scroll);this.insertBefore(t,this.children.head||void 0)}catch(t){if(t instanceof zu)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 Gl?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,h,g)=>{(e.blotName==null&&e(u)||e.blotName!=null&&u instanceof e)&&i.push(u),u instanceof Gl&&(i=i.concat(u.descendants(e,h,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 Gl?t.unwrap():t.remove())})}formatAt(e,t,n,i){this.children.forEachAt(e,t,(l,u,h)=>{l.formatAt(u,h,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 Gl?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 Gl&&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 h=i.split(l,t);h!=null&&n.appendChild(h)}),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 h=T0(l,this.scroll);(h.next!==u||h.next==null)&&(h.parent!=null&&h.parent.removeChild(this),this.insertBefore(h,u||void 0))}),this.enforceAllowedChildren()}};xx.uiClass="";let TL=xx;const qs=TL;function EL(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 Mu=class Du extends qs{static create(e){return super.create(e)}static formats(e,t){const n=t.query(Du.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 ch(this.domNode)}format(e,t){if(e===this.statics.blotName&&!t)this.children.forEach(n=>{n instanceof Du||(n=n.wrap(Du.blotName,!0)),this.attributes.copy(n)}),this.unwrap();else{const n=this.scroll.query(e,Jt.INLINE);if(n==null)return;n instanceof xa?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 Du&&n.prev===this&&EL(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 Du&&this.attributes.move(n),n}};Mu.allowedChildren=[Mu,Fi],Mu.blotName="inline",Mu.scope=Jt.INLINE_BLOT,Mu.tagName="SPAN";let kL=Mu;const Am=kL,Ou=class W1 extends qs{static create(e){return super.create(e)}static formats(e,t){const n=t.query(W1.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 ch(this.domNode)}format(e,t){const n=this.scroll.query(e,Jt.BLOCK);n!=null&&(n instanceof xa?this.attributes.attribute(n,t):e===this.statics.blotName&&!t?this.replaceWith(W1.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()}};Ou.blotName="block",Ou.scope=Jt.BLOCK_BLOT,Ou.tagName="P",Ou.allowedChildren=[Am,Ou,Fi];let RL=Ou;const Kf=RL,V1=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())}};V1.blotName="container",V1.scope=Jt.BLOCK_BLOT;let IL=V1;const uh=IL;class LL extends Fi{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 Ho=LL,ML={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},DL=100,Pu=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,ML),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 h=e;for(let g=0;h.length>0;g+=1){if(g>=DL)throw new Error("[Parchment] Maximum optimize iterations reached");for(h.forEach(m=>{const M=this.find(m.target,!0);M!=null&&(M.domNode===m.target&&(m.type==="childList"?(l(this.find(m.previousSibling,!1)),Array.from(m.addedNodes).forEach(T=>{const C=this.find(T,!1);l(C,!1),C instanceof qs&&C.children.forEach(_=>{l(_,!1)})})):m.type==="attributes"&&l(M.prev)),l(M))}),this.children.forEach(u),h=Array.from(this.observer.takeRecords()),i=h.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)}};Pu.blotName="scroll",Pu.defaultChild=Kf,Pu.allowedChildren=[Kf,uh],Pu.scope=Jt.BLOCK_BLOT,Pu.tagName="DIV";let OL=Pu;const Tm=OL,G1=class Sx extends Fi{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 Sx&&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}};G1.blotName="text",G1.scope=Jt.INLINE_BLOT;let PL=G1;const eh=PL,NL=Object.freeze(Object.defineProperty({__proto__:null,Attributor:xa,AttributorStore:ch,BlockBlot:Kf,ClassAttributor:$s,ContainerBlot:uh,EmbedBlot:Ho,InlineBlot:Am,LeafBlot:Fi,ParentBlot:qs,Registry:Gu,Scope:Jt,ScrollBlot:Tm,StyleAttributor:rc,TextBlot:eh},Symbol.toStringTag,{value:"Module"}));var Rd={exports:{}},ep,E0;function jL(){if(E0)return ep;E0=1;var r=-1,e=1,t=0;function n(P,re,Q,ne,se){if(P===re)return P?[[t,P]]:[];if(Q!=null){var ue=J(P,re,Q);if(ue)return ue}var ve=h(P,re),le=P.substring(0,ve);P=P.substring(ve),re=re.substring(ve),ve=m(P,re);var me=P.substring(P.length-ve);P=P.substring(0,P.length-ve),re=re.substring(0,re.length-ve);var pe=i(P,re);return le&&pe.unshift([t,le]),me&&pe.push([t,me]),k(pe,se),ne&&T(pe),pe}function i(P,re){var Q;if(!P)return[[e,re]];if(!re)return[[r,P]];var ne=P.length>re.length?P:re,se=P.length>re.length?re:P,ue=ne.indexOf(se);if(ue!==-1)return Q=[[e,ne.substring(0,ue)],[t,se],[e,ne.substring(ue+se.length)]],P.length>re.length&&(Q[0][0]=Q[2][0]=r),Q;if(se.length===1)return[[r,P],[e,re]];var ve=M(P,re);if(ve){var le=ve[0],me=ve[1],pe=ve[2],_e=ve[3],De=ve[4],Fe=n(le,pe),Xe=n(me,_e);return Fe.concat([[t,De]],Xe)}return l(P,re)}function l(P,re){for(var Q=P.length,ne=re.length,se=Math.ceil((Q+ne)/2),ue=se,ve=2*se,le=new Array(ve),me=new Array(ve),pe=0;pe<ve;pe++)le[pe]=-1,me[pe]=-1;le[ue+1]=0,me[ue+1]=0;for(var _e=Q-ne,De=_e%2!==0,Fe=0,Xe=0,we=0,it=0,ht=0;ht<se;ht++){for(var Je=-ht+Fe;Je<=ht-Xe;Je+=2){var Ze=ue+Je,Le;Je===-ht||Je!==ht&&le[Ze-1]<le[Ze+1]?Le=le[Ze+1]:Le=le[Ze-1]+1;for(var ke=Le-Je;Le<Q&&ke<ne&&P.charAt(Le)===re.charAt(ke);)Le++,ke++;if(le[Ze]=Le,Le>Q)Xe+=2;else if(ke>ne)Fe+=2;else if(De){var Te=ue+_e-Je;if(Te>=0&&Te<ve&&me[Te]!==-1){var Be=Q-me[Te];if(Le>=Be)return u(P,re,Le,ke)}}}for(var Re=-ht+we;Re<=ht-it;Re+=2){var Te=ue+Re,Be;Re===-ht||Re!==ht&&me[Te-1]<me[Te+1]?Be=me[Te+1]:Be=me[Te-1]+1;for(var Qe=Be-Re;Be<Q&&Qe<ne&&P.charAt(Q-Be-1)===re.charAt(ne-Qe-1);)Be++,Qe++;if(me[Te]=Be,Be>Q)it+=2;else if(Qe>ne)we+=2;else if(!De){var Ze=ue+_e-Re;if(Ze>=0&&Ze<ve&&le[Ze]!==-1){var Le=le[Ze],ke=ue+Le-Ze;if(Be=Q-Be,Le>=Be)return u(P,re,Le,ke)}}}}return[[r,P],[e,re]]}function u(P,re,Q,ne){var se=P.substring(0,Q),ue=re.substring(0,ne),ve=P.substring(Q),le=re.substring(ne),me=n(se,ue),pe=n(ve,le);return me.concat(pe)}function h(P,re){if(!P||!re||P.charAt(0)!==re.charAt(0))return 0;for(var Q=0,ne=Math.min(P.length,re.length),se=ne,ue=0;Q<se;)P.substring(ue,se)==re.substring(ue,se)?(Q=se,ue=Q):ne=se,se=Math.floor((ne-Q)/2+Q);return O(P.charCodeAt(se-1))&&se--,se}function g(P,re){var Q=P.length,ne=re.length;if(Q==0||ne==0)return 0;Q>ne?P=P.substring(Q-ne):Q<ne&&(re=re.substring(0,Q));var se=Math.min(Q,ne);if(P==re)return se;for(var ue=0,ve=1;;){var le=P.substring(se-ve),me=re.indexOf(le);if(me==-1)return ue;ve+=me,(me==0||P.substring(se-ve)==re.substring(0,ve))&&(ue=ve,ve++)}}function m(P,re){if(!P||!re||P.slice(-1)!==re.slice(-1))return 0;for(var Q=0,ne=Math.min(P.length,re.length),se=ne,ue=0;Q<se;)P.substring(P.length-se,P.length-ue)==re.substring(re.length-se,re.length-ue)?(Q=se,ue=Q):ne=se,se=Math.floor((ne-Q)/2+Q);return H(P.charCodeAt(P.length-se))&&se--,se}function M(P,re){var Q=P.length>re.length?P:re,ne=P.length>re.length?re:P;if(Q.length<4||ne.length*2<Q.length)return null;function se(Xe,we,it){for(var ht=Xe.substring(it,it+Math.floor(Xe.length/4)),Je=-1,Ze="",Le,ke,Te,Be;(Je=we.indexOf(ht,Je+1))!==-1;){var Re=h(Xe.substring(it),we.substring(Je)),Qe=m(Xe.substring(0,it),we.substring(0,Je));Ze.length<Qe+Re&&(Ze=we.substring(Je-Qe,Je)+we.substring(Je,Je+Re),Le=Xe.substring(0,it-Qe),ke=Xe.substring(it+Re),Te=we.substring(0,Je-Qe),Be=we.substring(Je+Re))}return Ze.length*2>=Xe.length?[Le,ke,Te,Be,Ze]:null}var ue=se(Q,ne,Math.ceil(Q.length/4)),ve=se(Q,ne,Math.ceil(Q.length/2)),le;if(!ue&&!ve)return null;ve?ue?le=ue[4].length>ve[4].length?ue:ve:le=ve:le=ue;var me,pe,_e,De;P.length>re.length?(me=le[0],pe=le[1],_e=le[2],De=le[3]):(_e=le[0],De=le[1],me=le[2],pe=le[3]);var Fe=le[4];return[me,pe,_e,De,Fe]}function T(P){for(var re=!1,Q=[],ne=0,se=null,ue=0,ve=0,le=0,me=0,pe=0;ue<P.length;)P[ue][0]==t?(Q[ne++]=ue,ve=me,le=pe,me=0,pe=0,se=P[ue][1]):(P[ue][0]==e?me+=P[ue][1].length:pe+=P[ue][1].length,se&&se.length<=Math.max(ve,le)&&se.length<=Math.max(me,pe)&&(P.splice(Q[ne-1],0,[r,se]),P[Q[ne-1]+1][0]=e,ne--,ne--,ue=ne>0?Q[ne-1]:-1,ve=0,le=0,me=0,pe=0,se=null,re=!0)),ue++;for(re&&k(P),b(P),ue=1;ue<P.length;){if(P[ue-1][0]==r&&P[ue][0]==e){var _e=P[ue-1][1],De=P[ue][1],Fe=g(_e,De),Xe=g(De,_e);Fe>=Xe?(Fe>=_e.length/2||Fe>=De.length/2)&&(P.splice(ue,0,[t,De.substring(0,Fe)]),P[ue-1][1]=_e.substring(0,_e.length-Fe),P[ue+1][1]=De.substring(Fe),ue++):(Xe>=_e.length/2||Xe>=De.length/2)&&(P.splice(ue,0,[t,_e.substring(0,Xe)]),P[ue-1][0]=e,P[ue-1][1]=De.substring(0,De.length-Xe),P[ue+1][0]=r,P[ue+1][1]=_e.substring(Xe),ue++),ue++}ue++}}var C=/[^a-zA-Z0-9]/,_=/\s/,S=/[\r\n]/,D=/\n\r?\n$/,A=/^\r?\n\r?\n/;function b(P){function re(Xe,we){if(!Xe||!we)return 6;var it=Xe.charAt(Xe.length-1),ht=we.charAt(0),Je=it.match(C),Ze=ht.match(C),Le=Je&&it.match(_),ke=Ze&&ht.match(_),Te=Le&&it.match(S),Be=ke&&ht.match(S),Re=Te&&Xe.match(D),Qe=Be&&we.match(A);return Re||Qe?5:Te||Be?4:Je&&!Le&&ke?3:Le||ke?2:Je||Ze?1:0}for(var Q=1;Q<P.length-1;){if(P[Q-1][0]==t&&P[Q+1][0]==t){var ne=P[Q-1][1],se=P[Q][1],ue=P[Q+1][1],ve=m(ne,se);if(ve){var le=se.substring(se.length-ve);ne=ne.substring(0,ne.length-ve),se=le+se.substring(0,se.length-ve),ue=le+ue}for(var me=ne,pe=se,_e=ue,De=re(ne,se)+re(se,ue);se.charAt(0)===ue.charAt(0);){ne+=se.charAt(0),se=se.substring(1)+ue.charAt(0),ue=ue.substring(1);var Fe=re(ne,se)+re(se,ue);Fe>=De&&(De=Fe,me=ne,pe=se,_e=ue)}P[Q-1][1]!=me&&(me?P[Q-1][1]=me:(P.splice(Q-1,1),Q--),P[Q][1]=pe,_e?P[Q+1][1]=_e:(P.splice(Q+1,1),Q--))}Q++}}function k(P,re){P.push([t,""]);for(var Q=0,ne=0,se=0,ue="",ve="",le;Q<P.length;){if(Q<P.length-1&&!P[Q][1]){P.splice(Q,1);continue}switch(P[Q][0]){case e:se++,ve+=P[Q][1],Q++;break;case r:ne++,ue+=P[Q][1],Q++;break;case t:var me=Q-se-ne-1;if(re){if(me>=0&&G(P[me][1])){var pe=P[me][1].slice(-1);if(P[me][1]=P[me][1].slice(0,-1),ue=pe+ue,ve=pe+ve,!P[me][1]){P.splice(me,1),Q--;var _e=me-1;P[_e]&&P[_e][0]===e&&(se++,ve=P[_e][1]+ve,_e--),P[_e]&&P[_e][0]===r&&(ne++,ue=P[_e][1]+ue,_e--),me=_e}}if(q(P[Q][1])){var pe=P[Q][1].charAt(0);P[Q][1]=P[Q][1].slice(1),ue+=pe,ve+=pe}}if(Q<P.length-1&&!P[Q][1]){P.splice(Q,1);break}if(ue.length>0||ve.length>0){ue.length>0&&ve.length>0&&(le=h(ve,ue),le!==0&&(me>=0?P[me][1]+=ve.substring(0,le):(P.splice(0,0,[t,ve.substring(0,le)]),Q++),ve=ve.substring(le),ue=ue.substring(le)),le=m(ve,ue),le!==0&&(P[Q][1]=ve.substring(ve.length-le)+P[Q][1],ve=ve.substring(0,ve.length-le),ue=ue.substring(0,ue.length-le)));var De=se+ne;ue.length===0&&ve.length===0?(P.splice(Q-De,De),Q=Q-De):ue.length===0?(P.splice(Q-De,De,[e,ve]),Q=Q-De+1):ve.length===0?(P.splice(Q-De,De,[r,ue]),Q=Q-De+1):(P.splice(Q-De,De,[r,ue],[e,ve]),Q=Q-De+2)}Q!==0&&P[Q-1][0]===t?(P[Q-1][1]+=P[Q][1],P.splice(Q,1)):Q++,se=0,ne=0,ue="",ve="";break}}P[P.length-1][1]===""&&P.pop();var Fe=!1;for(Q=1;Q<P.length-1;)P[Q-1][0]===t&&P[Q+1][0]===t&&(P[Q][1].substring(P[Q][1].length-P[Q-1][1].length)===P[Q-1][1]?(P[Q][1]=P[Q-1][1]+P[Q][1].substring(0,P[Q][1].length-P[Q-1][1].length),P[Q+1][1]=P[Q-1][1]+P[Q+1][1],P.splice(Q-1,1),Fe=!0):P[Q][1].substring(0,P[Q+1][1].length)==P[Q+1][1]&&(P[Q-1][1]+=P[Q+1][1],P[Q][1]=P[Q][1].substring(P[Q+1][1].length)+P[Q+1][1],P.splice(Q+1,1),Fe=!0)),Q++;Fe&&k(P,re)}function O(P){return P>=55296&&P<=56319}function H(P){return P>=56320&&P<=57343}function q(P){return H(P.charCodeAt(0))}function G(P){return O(P.charCodeAt(P.length-1))}function Y(P){for(var re=[],Q=0;Q<P.length;Q++)P[Q][1].length>0&&re.push(P[Q]);return re}function he(P,re,Q,ne){return G(P)||q(ne)?null:Y([[t,P],[r,re],[e,Q],[t,ne]])}function J(P,re,Q){var ne=typeof Q=="number"?{index:Q,length:0}:Q.oldRange,se=typeof Q=="number"?null:Q.newRange,ue=P.length,ve=re.length;if(ne.length===0&&(se===null||se.length===0)){var le=ne.index,me=P.slice(0,le),pe=P.slice(le),_e=se?se.index:null;e:{var De=le+ve-ue;if(_e!==null&&_e!==De||De<0||De>ve)break e;var Fe=re.slice(0,De),Xe=re.slice(De);if(Xe!==pe)break e;var we=Math.min(le,De),it=me.slice(0,we),ht=Fe.slice(0,we);if(it!==ht)break e;var Je=me.slice(we),Ze=Fe.slice(we);return he(it,Je,Ze,pe)}e:{if(_e!==null&&_e!==le)break e;var Le=le,Fe=re.slice(0,Le),Xe=re.slice(Le);if(Fe!==me)break e;var ke=Math.min(ue-Le,ve-Le),Te=pe.slice(pe.length-ke),Be=Xe.slice(Xe.length-ke);if(Te!==Be)break e;var Je=pe.slice(0,pe.length-ke),Ze=Xe.slice(0,Xe.length-ke);return he(me,Je,Ze,Te)}}if(ne.length>0&&se&&se.length===0)e:{var it=P.slice(0,ne.index),Te=P.slice(ne.index+ne.length),we=it.length,ke=Te.length;if(ve<we+ke)break e;var ht=re.slice(0,we),Be=re.slice(ve-ke);if(it!==ht||Te!==Be)break e;var Je=P.slice(we,ue-ke),Ze=re.slice(we,ve-ke);return he(it,Je,Ze,Te)}return null}function fe(P,re,Q,ne){return n(P,re,Q,ne,!0)}return fe.INSERT=e,fe.DELETE=r,fe.EQUAL=t,ep=fe,ep}var Pf={exports:{}};Pf.exports;var k0;function Cx(){return k0||(k0=1,function(r,e){var t=200,n="__lodash_hash_undefined__",i=9007199254740991,l="[object Arguments]",u="[object Array]",h="[object Boolean]",g="[object Date]",m="[object Error]",M="[object Function]",T="[object GeneratorFunction]",C="[object Map]",_="[object Number]",S="[object Object]",D="[object Promise]",A="[object RegExp]",b="[object Set]",k="[object String]",O="[object Symbol]",H="[object WeakMap]",q="[object ArrayBuffer]",G="[object DataView]",Y="[object Float32Array]",he="[object Float64Array]",J="[object Int8Array]",fe="[object Int16Array]",P="[object Int32Array]",re="[object Uint8Array]",Q="[object Uint8ClampedArray]",ne="[object Uint16Array]",se="[object Uint32Array]",ue=/[\\^$.*+?()[\]{}|]/g,ve=/\w*$/,le=/^\[object .+?Constructor\]$/,me=/^(?:0|[1-9]\d*)$/,pe={};pe[l]=pe[u]=pe[q]=pe[G]=pe[h]=pe[g]=pe[Y]=pe[he]=pe[J]=pe[fe]=pe[P]=pe[C]=pe[_]=pe[S]=pe[A]=pe[b]=pe[k]=pe[O]=pe[re]=pe[Q]=pe[ne]=pe[se]=!0,pe[m]=pe[M]=pe[H]=!1;var _e=typeof yi=="object"&&yi&&yi.Object===Object&&yi,De=typeof self=="object"&&self&&self.Object===Object&&self,Fe=_e||De||Function("return this")(),Xe=e&&!e.nodeType&&e,we=Xe&&!0&&r&&!r.nodeType&&r,it=we&&we.exports===Xe;function ht(I,V){return I.set(V[0],V[1]),I}function Je(I,V){return I.add(V),I}function Ze(I,V){for(var ce=-1,Pe=I?I.length:0;++ce<Pe&&V(I[ce],ce,I)!==!1;);return I}function Le(I,V){for(var ce=-1,Pe=V.length,Kt=I.length;++ce<Pe;)I[Kt+ce]=V[ce];return I}function ke(I,V,ce,Pe){for(var Kt=-1,Vt=I?I.length:0;++Kt<Vt;)ce=V(ce,I[Kt],Kt,I);return ce}function Te(I,V){for(var ce=-1,Pe=Array(I);++ce<I;)Pe[ce]=V(ce);return Pe}function Be(I,V){return I==null?void 0:I[V]}function Re(I){var V=!1;if(I!=null&&typeof I.toString!="function")try{V=!!(I+"")}catch{}return V}function Qe(I){var V=-1,ce=Array(I.size);return I.forEach(function(Pe,Kt){ce[++V]=[Kt,Pe]}),ce}function ct(I,V){return function(ce){return I(V(ce))}}function kt(I){var V=-1,ce=Array(I.size);return I.forEach(function(Pe){ce[++V]=Pe}),ce}var At=Array.prototype,bt=Function.prototype,Dt=Object.prototype,Rt=Fe["__core-js_shared__"],ut=function(){var I=/[^.]+$/.exec(Rt&&Rt.keys&&Rt.keys.IE_PROTO||"");return I?"Symbol(src)_1."+I:""}(),ot=bt.toString,wt=Dt.hasOwnProperty,Ie=Dt.toString,pt=RegExp("^"+ot.call(wt).replace(ue,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_t=it?Fe.Buffer:void 0,Ot=Fe.Symbol,$t=Fe.Uint8Array,Ue=ct(Object.getPrototypeOf,Object),Tt=Object.create,zt=Dt.propertyIsEnumerable,br=At.splice,Or=Object.getOwnPropertySymbols,It=_t?_t.isBuffer:void 0,ie=ct(Object.keys,Object),X=Mt(Fe,"DataView"),Ee=Mt(Fe,"Map"),je=Mt(Fe,"Promise"),St=Mt(Fe,"Set"),ft=Mt(Fe,"WeakMap"),mt=Mt(Object,"create"),Ut=Xr(X),Lt=Xr(Ee),Qt=Xr(je),xt=Xr(St),Et=Xr(ft),gt=Ot?Ot.prototype:void 0,Ft=gt?gt.valueOf:void 0;function ur(I){var V=-1,ce=I?I.length:0;for(this.clear();++V<ce;){var Pe=I[V];this.set(Pe[0],Pe[1])}}function qe(){this.__data__=mt?mt(null):{}}function vt(I){return this.has(I)&&delete this.__data__[I]}function at(I){var V=this.__data__;if(mt){var ce=V[I];return ce===n?void 0:ce}return wt.call(V,I)?V[I]:void 0}function We(I){var V=this.__data__;return mt?V[I]!==void 0:wt.call(V,I)}function yt(I,V){var ce=this.__data__;return ce[I]=mt&&V===void 0?n:V,this}ur.prototype.clear=qe,ur.prototype.delete=vt,ur.prototype.get=at,ur.prototype.has=We,ur.prototype.set=yt;function K(I){var V=-1,ce=I?I.length:0;for(this.clear();++V<ce;){var Pe=I[V];this.set(Pe[0],Pe[1])}}function Ne(){this.__data__=[]}function lt(I){var V=this.__data__,ce=Kn(V,I);if(ce<0)return!1;var Pe=V.length-1;return ce==Pe?V.pop():br.call(V,ce,1),!0}function Bt(I){var V=this.__data__,ce=Kn(V,I);return ce<0?void 0:V[ce][1]}function or(I){return Kn(this.__data__,I)>-1}function er(I,V){var ce=this.__data__,Pe=Kn(ce,I);return Pe<0?ce.push([I,V]):ce[Pe][1]=V,this}K.prototype.clear=Ne,K.prototype.delete=lt,K.prototype.get=Bt,K.prototype.has=or,K.prototype.set=er;function jt(I){var V=-1,ce=I?I.length:0;for(this.clear();++V<ce;){var Pe=I[V];this.set(Pe[0],Pe[1])}}function tr(){this.__data__={hash:new ur,map:new(Ee||K),string:new ur}}function Mr(I){return et(this,I).delete(I)}function fr(I){return et(this,I).get(I)}function pr(I){return et(this,I).has(I)}function $r(I,V){return et(this,I).set(I,V),this}jt.prototype.clear=tr,jt.prototype.delete=Mr,jt.prototype.get=fr,jt.prototype.has=pr,jt.prototype.set=$r;function vr(I){this.__data__=new K(I)}function Gn(){this.__data__=new K}function Sn(I){return this.__data__.delete(I)}function Dn(I){return this.__data__.get(I)}function Kr(I){return this.__data__.has(I)}function Zn(I,V){var ce=this.__data__;if(ce instanceof K){var Pe=ce.__data__;if(!Ee||Pe.length<t-1)return Pe.push([I,V]),this;ce=this.__data__=new jt(Pe)}return ce.set(I,V),this}vr.prototype.clear=Gn,vr.prototype.delete=Sn,vr.prototype.get=Dn,vr.prototype.has=Kr,vr.prototype.set=Zn;function Tn(I,V){var ce=yo(I)||Jn(I)?Te(I.length,String):[],Pe=ce.length,Kt=!!Pe;for(var Vt in I)wt.call(I,Vt)&&!(Kt&&(Vt=="length"||yn(Vt,Pe)))&&ce.push(Vt);return ce}function Yn(I,V,ce){var Pe=I[V];(!(wt.call(I,V)&&Fn(Pe,ce))||ce===void 0&&!(V in I))&&(I[V]=ce)}function Kn(I,V){for(var ce=I.length;ce--;)if(Fn(I[ce][0],V))return ce;return-1}function nn(I,V){return I&&Ce(V,Dr(V),I)}function On(I,V,ce,Pe,Kt,Vt,gr){var Sr;if(Pe&&(Sr=Vt?Pe(I,Kt,Vt,gr):Pe(I)),Sr!==void 0)return Sr;if(!ei(I))return I;var dr=yo(I);if(dr){if(Sr=xr(I),!V)return ee(I,Sr)}else{var wr=qt(I),Jr=wr==M||wr==T;if(kn(I))return wn(I,V);if(wr==S||wr==l||Jr&&!Vt){if(Re(I))return Vt?I:{};if(Sr=Zr(Jr?{}:I),!V)return be(I,nn(Sr,I))}else{if(!pe[wr])return Vt?I:{};Sr=vn(I,wr,On,V)}}gr||(gr=new vr);var Rn=gr.get(I);if(Rn)return Rn;if(gr.set(I,Sr),!dr)var Vr=ce?Oe(I):Dr(I);return Ze(Vr||I,function(Fr,Qr){Vr&&(Qr=Fr,Fr=I[Qr]),Yn(Sr,Qr,On(Fr,V,ce,Pe,Qr,I,gr))}),Sr}function Cn(I){return ei(I)?Tt(I):{}}function di(I,V,ce){var Pe=V(I);return yo(I)?Pe:Le(Pe,ce(I))}function _i(I){return Ie.call(I)}function xi(I){if(!ei(I)||jn(I))return!1;var V=bo(I)||Re(I)?pt:le;return V.test(Xr(I))}function En(I){if(!Si(I))return ie(I);var V=[];for(var ce in Object(I))wt.call(I,ce)&&ce!="constructor"&&V.push(ce);return V}function wn(I,V){if(V)return I.slice();var ce=new I.constructor(I.length);return I.copy(ce),ce}function cn(I){var V=new I.constructor(I.byteLength);return new $t(V).set(new $t(I)),V}function Xn(I,V){var ce=V?cn(I.buffer):I.buffer;return new I.constructor(ce,I.byteOffset,I.byteLength)}function on(I,V,ce){var Pe=V?ce(Qe(I),!0):Qe(I);return ke(Pe,ht,new I.constructor)}function dn(I){var V=new I.constructor(I.source,ve.exec(I));return V.lastIndex=I.lastIndex,V}function x(I,V,ce){var Pe=V?ce(kt(I),!0):kt(I);return ke(Pe,Je,new I.constructor)}function j(I){return Ft?Object(Ft.call(I)):{}}function W(I,V){var ce=V?cn(I.buffer):I.buffer;return new I.constructor(ce,I.byteOffset,I.length)}function ee(I,V){var ce=-1,Pe=I.length;for(V||(V=Array(Pe));++ce<Pe;)V[ce]=I[ce];return V}function Ce(I,V,ce,Pe){ce||(ce={});for(var Kt=-1,Vt=V.length;++Kt<Vt;){var gr=V[Kt],Sr=void 0;Yn(ce,gr,Sr===void 0?I[gr]:Sr)}return ce}function be(I,V){return Ce(I,Ht(I),V)}function Oe(I){return di(I,Dr,Ht)}function et(I,V){var ce=I.__data__;return ai(V)?ce[typeof V=="string"?"string":"hash"]:ce.map}function Mt(I,V){var ce=Be(I,V);return xi(ce)?ce:void 0}var Ht=Or?ct(Or,Object):Cr,qt=_i;(X&&qt(new X(new ArrayBuffer(1)))!=G||Ee&&qt(new Ee)!=C||je&&qt(je.resolve())!=D||St&&qt(new St)!=b||ft&&qt(new ft)!=H)&&(qt=function(I){var V=Ie.call(I),ce=V==S?I.constructor:void 0,Pe=ce?Xr(ce):void 0;if(Pe)switch(Pe){case Ut:return G;case Lt:return C;case Qt:return D;case xt:return b;case Et:return H}return V});function xr(I){var V=I.length,ce=I.constructor(V);return V&&typeof I[0]=="string"&&wt.call(I,"index")&&(ce.index=I.index,ce.input=I.input),ce}function Zr(I){return typeof I.constructor=="function"&&!Si(I)?Cn(Ue(I)):{}}function vn(I,V,ce,Pe){var Kt=I.constructor;switch(V){case q:return cn(I);case h:case g:return new Kt(+I);case G:return Xn(I,Pe);case Y:case he:case J:case fe:case P:case re:case Q:case ne:case se:return W(I,Pe);case C:return on(I,Pe,ce);case _:case k:return new Kt(I);case A:return dn(I);case b:return x(I,Pe,ce);case O:return j(I)}}function yn(I,V){return V=V??i,!!V&&(typeof I=="number"||me.test(I))&&I>-1&&I%1==0&&I<V}function ai(I){var V=typeof I;return V=="string"||V=="number"||V=="symbol"||V=="boolean"?I!=="__proto__":I===null}function jn(I){return!!ut&&ut in I}function Si(I){var V=I&&I.constructor,ce=typeof V=="function"&&V.prototype||Dt;return I===ce}function Xr(I){if(I!=null){try{return ot.call(I)}catch{}try{return I+""}catch{}}return""}function hi(I){return On(I,!0,!0)}function Fn(I,V){return I===V||I!==I&&V!==V}function Jn(I){return to(I)&&wt.call(I,"callee")&&(!zt.call(I,"callee")||Ie.call(I)==l)}var yo=Array.isArray;function eo(I){return I!=null&&Qn(I.length)&&!bo(I)}function to(I){return Hi(I)&&eo(I)}var kn=It||Ir;function bo(I){var V=ei(I)?Ie.call(I):"";return V==M||V==T}function Qn(I){return typeof I=="number"&&I>-1&&I%1==0&&I<=i}function ei(I){var V=typeof I;return!!I&&(V=="object"||V=="function")}function Hi(I){return!!I&&typeof I=="object"}function Dr(I){return eo(I)?Tn(I):En(I)}function Cr(){return[]}function Ir(){return!1}r.exports=hi}(Pf,Pf.exports)),Pf.exports}var Nf={exports:{}};Nf.exports;var R0;function wx(){return R0||(R0=1,function(r,e){var t=200,n="__lodash_hash_undefined__",i=1,l=2,u=9007199254740991,h="[object Arguments]",g="[object Array]",m="[object AsyncFunction]",M="[object Boolean]",T="[object Date]",C="[object Error]",_="[object Function]",S="[object GeneratorFunction]",D="[object Map]",A="[object Number]",b="[object Null]",k="[object Object]",O="[object Promise]",H="[object Proxy]",q="[object RegExp]",G="[object Set]",Y="[object String]",he="[object Symbol]",J="[object Undefined]",fe="[object WeakMap]",P="[object ArrayBuffer]",re="[object DataView]",Q="[object Float32Array]",ne="[object Float64Array]",se="[object Int8Array]",ue="[object Int16Array]",ve="[object Int32Array]",le="[object Uint8Array]",me="[object Uint8ClampedArray]",pe="[object Uint16Array]",_e="[object Uint32Array]",De=/[\\^$.*+?()[\]{}|]/g,Fe=/^\[object .+?Constructor\]$/,Xe=/^(?:0|[1-9]\d*)$/,we={};we[Q]=we[ne]=we[se]=we[ue]=we[ve]=we[le]=we[me]=we[pe]=we[_e]=!0,we[h]=we[g]=we[P]=we[M]=we[re]=we[T]=we[C]=we[_]=we[D]=we[A]=we[k]=we[q]=we[G]=we[Y]=we[fe]=!1;var it=typeof yi=="object"&&yi&&yi.Object===Object&&yi,ht=typeof self=="object"&&self&&self.Object===Object&&self,Je=it||ht||Function("return this")(),Ze=e&&!e.nodeType&&e,Le=Ze&&!0&&r&&!r.nodeType&&r,ke=Le&&Le.exports===Ze,Te=ke&&it.process,Be=function(){try{return Te&&Te.binding&&Te.binding("util")}catch{}}(),Re=Be&&Be.isTypedArray;function Qe(I,V){for(var ce=-1,Pe=I==null?0:I.length,Kt=0,Vt=[];++ce<Pe;){var gr=I[ce];V(gr,ce,I)&&(Vt[Kt++]=gr)}return Vt}function ct(I,V){for(var ce=-1,Pe=V.length,Kt=I.length;++ce<Pe;)I[Kt+ce]=V[ce];return I}function kt(I,V){for(var ce=-1,Pe=I==null?0:I.length;++ce<Pe;)if(V(I[ce],ce,I))return!0;return!1}function At(I,V){for(var ce=-1,Pe=Array(I);++ce<I;)Pe[ce]=V(ce);return Pe}function bt(I){return function(V){return I(V)}}function Dt(I,V){return I.has(V)}function Rt(I,V){return I==null?void 0:I[V]}function ut(I){var V=-1,ce=Array(I.size);return I.forEach(function(Pe,Kt){ce[++V]=[Kt,Pe]}),ce}function ot(I,V){return function(ce){return I(V(ce))}}function wt(I){var V=-1,ce=Array(I.size);return I.forEach(function(Pe){ce[++V]=Pe}),ce}var Ie=Array.prototype,pt=Function.prototype,_t=Object.prototype,Ot=Je["__core-js_shared__"],$t=pt.toString,Ue=_t.hasOwnProperty,Tt=function(){var I=/[^.]+$/.exec(Ot&&Ot.keys&&Ot.keys.IE_PROTO||"");return I?"Symbol(src)_1."+I:""}(),zt=_t.toString,br=RegExp("^"+$t.call(Ue).replace(De,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Or=ke?Je.Buffer:void 0,It=Je.Symbol,ie=Je.Uint8Array,X=_t.propertyIsEnumerable,Ee=Ie.splice,je=It?It.toStringTag:void 0,St=Object.getOwnPropertySymbols,ft=Or?Or.isBuffer:void 0,mt=ot(Object.keys,Object),Ut=Ht(Je,"DataView"),Lt=Ht(Je,"Map"),Qt=Ht(Je,"Promise"),xt=Ht(Je,"Set"),Et=Ht(Je,"WeakMap"),gt=Ht(Object,"create"),Ft=Xr(Ut),ur=Xr(Lt),qe=Xr(Qt),vt=Xr(xt),at=Xr(Et),We=It?It.prototype:void 0,yt=We?We.valueOf:void 0;function K(I){var V=-1,ce=I==null?0:I.length;for(this.clear();++V<ce;){var Pe=I[V];this.set(Pe[0],Pe[1])}}function Ne(){this.__data__=gt?gt(null):{},this.size=0}function lt(I){var V=this.has(I)&&delete this.__data__[I];return this.size-=V?1:0,V}function Bt(I){var V=this.__data__;if(gt){var ce=V[I];return ce===n?void 0:ce}return Ue.call(V,I)?V[I]:void 0}function or(I){var V=this.__data__;return gt?V[I]!==void 0:Ue.call(V,I)}function er(I,V){var ce=this.__data__;return this.size+=this.has(I)?0:1,ce[I]=gt&&V===void 0?n:V,this}K.prototype.clear=Ne,K.prototype.delete=lt,K.prototype.get=Bt,K.prototype.has=or,K.prototype.set=er;function jt(I){var V=-1,ce=I==null?0:I.length;for(this.clear();++V<ce;){var Pe=I[V];this.set(Pe[0],Pe[1])}}function tr(){this.__data__=[],this.size=0}function Mr(I){var V=this.__data__,ce=wn(V,I);if(ce<0)return!1;var Pe=V.length-1;return ce==Pe?V.pop():Ee.call(V,ce,1),--this.size,!0}function fr(I){var V=this.__data__,ce=wn(V,I);return ce<0?void 0:V[ce][1]}function pr(I){return wn(this.__data__,I)>-1}function $r(I,V){var ce=this.__data__,Pe=wn(ce,I);return Pe<0?(++this.size,ce.push([I,V])):ce[Pe][1]=V,this}jt.prototype.clear=tr,jt.prototype.delete=Mr,jt.prototype.get=fr,jt.prototype.has=pr,jt.prototype.set=$r;function vr(I){var V=-1,ce=I==null?0:I.length;for(this.clear();++V<ce;){var Pe=I[V];this.set(Pe[0],Pe[1])}}function Gn(){this.size=0,this.__data__={hash:new K,map:new(Lt||jt),string:new K}}function Sn(I){var V=Mt(this,I).delete(I);return this.size-=V?1:0,V}function Dn(I){return Mt(this,I).get(I)}function Kr(I){return Mt(this,I).has(I)}function Zn(I,V){var ce=Mt(this,I),Pe=ce.size;return ce.set(I,V),this.size+=ce.size==Pe?0:1,this}vr.prototype.clear=Gn,vr.prototype.delete=Sn,vr.prototype.get=Dn,vr.prototype.has=Kr,vr.prototype.set=Zn;function Tn(I){var V=-1,ce=I==null?0:I.length;for(this.__data__=new vr;++V<ce;)this.add(I[V])}function Yn(I){return this.__data__.set(I,n),this}function Kn(I){return this.__data__.has(I)}Tn.prototype.add=Tn.prototype.push=Yn,Tn.prototype.has=Kn;function nn(I){var V=this.__data__=new jt(I);this.size=V.size}function On(){this.__data__=new jt,this.size=0}function Cn(I){var V=this.__data__,ce=V.delete(I);return this.size=V.size,ce}function di(I){return this.__data__.get(I)}function _i(I){return this.__data__.has(I)}function xi(I,V){var ce=this.__data__;if(ce instanceof jt){var Pe=ce.__data__;if(!Lt||Pe.length<t-1)return Pe.push([I,V]),this.size=++ce.size,this;ce=this.__data__=new vr(Pe)}return ce.set(I,V),this.size=ce.size,this}nn.prototype.clear=On,nn.prototype.delete=Cn,nn.prototype.get=di,nn.prototype.has=_i,nn.prototype.set=xi;function En(I,V){var ce=Jn(I),Pe=!ce&&Fn(I),Kt=!ce&&!Pe&&eo(I),Vt=!ce&&!Pe&&!Kt&&Hi(I),gr=ce||Pe||Kt||Vt,Sr=gr?At(I.length,String):[],dr=Sr.length;for(var wr in I)Ue.call(I,wr)&&!(gr&&(wr=="length"||Kt&&(wr=="offset"||wr=="parent")||Vt&&(wr=="buffer"||wr=="byteLength"||wr=="byteOffset")||vn(wr,dr)))&&Sr.push(wr);return Sr}function wn(I,V){for(var ce=I.length;ce--;)if(hi(I[ce][0],V))return ce;return-1}function cn(I,V,ce){var Pe=V(I);return Jn(I)?Pe:ct(Pe,ce(I))}function Xn(I){return I==null?I===void 0?J:b:je&&je in Object(I)?qt(I):Si(I)}function on(I){return ei(I)&&Xn(I)==h}function dn(I,V,ce,Pe,Kt){return I===V?!0:I==null||V==null||!ei(I)&&!ei(V)?I!==I&&V!==V:x(I,V,ce,Pe,dn,Kt)}function x(I,V,ce,Pe,Kt,Vt){var gr=Jn(I),Sr=Jn(V),dr=gr?g:Zr(I),wr=Sr?g:Zr(V);dr=dr==h?k:dr,wr=wr==h?k:wr;var Jr=dr==k,Rn=wr==k,Vr=dr==wr;if(Vr&&eo(I)){if(!eo(V))return!1;gr=!0,Jr=!1}if(Vr&&!Jr)return Vt||(Vt=new nn),gr||Hi(I)?Ce(I,V,ce,Pe,Kt,Vt):be(I,V,dr,ce,Pe,Kt,Vt);if(!(ce&i)){var Fr=Jr&&Ue.call(I,"__wrapped__"),Qr=Rn&&Ue.call(V,"__wrapped__");if(Fr||Qr){var li=Fr?I.value():I,pi=Qr?V.value():V;return Vt||(Vt=new nn),Kt(li,pi,ce,Pe,Vt)}}return Vr?(Vt||(Vt=new nn),Oe(I,V,ce,Pe,Kt,Vt)):!1}function j(I){if(!Qn(I)||ai(I))return!1;var V=kn(I)?br:Fe;return V.test(Xr(I))}function W(I){return ei(I)&&bo(I.length)&&!!we[Xn(I)]}function ee(I){if(!jn(I))return mt(I);var V=[];for(var ce in Object(I))Ue.call(I,ce)&&ce!="constructor"&&V.push(ce);return V}function Ce(I,V,ce,Pe,Kt,Vt){var gr=ce&i,Sr=I.length,dr=V.length;if(Sr!=dr&&!(gr&&dr>Sr))return!1;var wr=Vt.get(I);if(wr&&Vt.get(V))return wr==V;var Jr=-1,Rn=!0,Vr=ce&l?new Tn:void 0;for(Vt.set(I,V),Vt.set(V,I);++Jr<Sr;){var Fr=I[Jr],Qr=V[Jr];if(Pe)var li=gr?Pe(Qr,Fr,Jr,V,I,Vt):Pe(Fr,Qr,Jr,I,V,Vt);if(li!==void 0){if(li)continue;Rn=!1;break}if(Vr){if(!kt(V,function(pi,Bn){if(!Dt(Vr,Bn)&&(Fr===pi||Kt(Fr,pi,ce,Pe,Vt)))return Vr.push(Bn)})){Rn=!1;break}}else if(!(Fr===Qr||Kt(Fr,Qr,ce,Pe,Vt))){Rn=!1;break}}return Vt.delete(I),Vt.delete(V),Rn}function be(I,V,ce,Pe,Kt,Vt,gr){switch(ce){case re:if(I.byteLength!=V.byteLength||I.byteOffset!=V.byteOffset)return!1;I=I.buffer,V=V.buffer;case P:return!(I.byteLength!=V.byteLength||!Vt(new ie(I),new ie(V)));case M:case T:case A:return hi(+I,+V);case C:return I.name==V.name&&I.message==V.message;case q:case Y:return I==V+"";case D:var Sr=ut;case G:var dr=Pe&i;if(Sr||(Sr=wt),I.size!=V.size&&!dr)return!1;var wr=gr.get(I);if(wr)return wr==V;Pe|=l,gr.set(I,V);var Jr=Ce(Sr(I),Sr(V),Pe,Kt,Vt,gr);return gr.delete(I),Jr;case he:if(yt)return yt.call(I)==yt.call(V)}return!1}function Oe(I,V,ce,Pe,Kt,Vt){var gr=ce&i,Sr=et(I),dr=Sr.length,wr=et(V),Jr=wr.length;if(dr!=Jr&&!gr)return!1;for(var Rn=dr;Rn--;){var Vr=Sr[Rn];if(!(gr?Vr in V:Ue.call(V,Vr)))return!1}var Fr=Vt.get(I);if(Fr&&Vt.get(V))return Fr==V;var Qr=!0;Vt.set(I,V),Vt.set(V,I);for(var li=gr;++Rn<dr;){Vr=Sr[Rn];var pi=I[Vr],Bn=V[Vr];if(Pe)var _o=gr?Pe(Bn,pi,Vr,V,I,Vt):Pe(pi,Bn,Vr,I,V,Vt);if(!(_o===void 0?pi===Bn||Kt(pi,Bn,ce,Pe,Vt):_o)){Qr=!1;break}li||(li=Vr=="constructor")}if(Qr&&!li){var zi=I.constructor,sn=V.constructor;zi!=sn&&"constructor"in I&&"constructor"in V&&!(typeof zi=="function"&&zi instanceof zi&&typeof sn=="function"&&sn instanceof sn)&&(Qr=!1)}return Vt.delete(I),Vt.delete(V),Qr}function et(I){return cn(I,Dr,xr)}function Mt(I,V){var ce=I.__data__;return yn(V)?ce[typeof V=="string"?"string":"hash"]:ce.map}function Ht(I,V){var ce=Rt(I,V);return j(ce)?ce:void 0}function qt(I){var V=Ue.call(I,je),ce=I[je];try{I[je]=void 0;var Pe=!0}catch{}var Kt=zt.call(I);return Pe&&(V?I[je]=ce:delete I[je]),Kt}var xr=St?function(I){return I==null?[]:(I=Object(I),Qe(St(I),function(V){return X.call(I,V)}))}:Cr,Zr=Xn;(Ut&&Zr(new Ut(new ArrayBuffer(1)))!=re||Lt&&Zr(new Lt)!=D||Qt&&Zr(Qt.resolve())!=O||xt&&Zr(new xt)!=G||Et&&Zr(new Et)!=fe)&&(Zr=function(I){var V=Xn(I),ce=V==k?I.constructor:void 0,Pe=ce?Xr(ce):"";if(Pe)switch(Pe){case Ft:return re;case ur:return D;case qe:return O;case vt:return G;case at:return fe}return V});function vn(I,V){return V=V??u,!!V&&(typeof I=="number"||Xe.test(I))&&I>-1&&I%1==0&&I<V}function yn(I){var V=typeof I;return V=="string"||V=="number"||V=="symbol"||V=="boolean"?I!=="__proto__":I===null}function ai(I){return!!Tt&&Tt in I}function jn(I){var V=I&&I.constructor,ce=typeof V=="function"&&V.prototype||_t;return I===ce}function Si(I){return zt.call(I)}function Xr(I){if(I!=null){try{return $t.call(I)}catch{}try{return I+""}catch{}}return""}function hi(I,V){return I===V||I!==I&&V!==V}var Fn=on(function(){return arguments}())?on:function(I){return ei(I)&&Ue.call(I,"callee")&&!X.call(I,"callee")},Jn=Array.isArray;function yo(I){return I!=null&&bo(I.length)&&!kn(I)}var eo=ft||Ir;function to(I,V){return dn(I,V)}function kn(I){if(!Qn(I))return!1;var V=Xn(I);return V==_||V==S||V==m||V==H}function bo(I){return typeof I=="number"&&I>-1&&I%1==0&&I<=u}function Qn(I){var V=typeof I;return I!=null&&(V=="object"||V=="function")}function ei(I){return I!=null&&typeof I=="object"}var Hi=Re?bt(Re):W;function Dr(I){return yo(I)?En(I):ee(I)}function Cr(){return[]}function Ir(){return!1}r.exports=to}(Nf,Nf.exports)),Nf.exports}var Id={},I0;function FL(){if(I0)return Id;I0=1,Object.defineProperty(Id,"__esModule",{value:!0});const r=Cx(),e=wx();var t;return function(n){function i(g={},m={},M=!1){typeof g!="object"&&(g={}),typeof m!="object"&&(m={});let T=r(m);M||(T=Object.keys(T).reduce((C,_)=>(T[_]!=null&&(C[_]=T[_]),C),{}));for(const C in g)g[C]!==void 0&&m[C]===void 0&&(T[C]=g[C]);return Object.keys(T).length>0?T:void 0}n.compose=i;function l(g={},m={}){typeof g!="object"&&(g={}),typeof m!="object"&&(m={});const M=Object.keys(g).concat(Object.keys(m)).reduce((T,C)=>(e(g[C],m[C])||(T[C]=m[C]===void 0?null:m[C]),T),{});return Object.keys(M).length>0?M:void 0}n.diff=l;function u(g={},m={}){g=g||{};const M=Object.keys(m).reduce((T,C)=>(m[C]!==g[C]&&g[C]!==void 0&&(T[C]=m[C]),T),{});return Object.keys(g).reduce((T,C)=>(g[C]!==m[C]&&m[C]===void 0&&(T[C]=null),T),M)}n.invert=u;function h(g,m,M=!1){if(typeof g!="object")return m;if(typeof m!="object")return;if(!M)return m;const T=Object.keys(m).reduce((C,_)=>(g[_]===void 0&&(C[_]=m[_]),C),{});return Object.keys(T).length>0?T:void 0}n.transform=h}(t||(t={})),Id.default=t,Id}var Ld={},L0;function Ax(){if(L0)return Ld;L0=1,Object.defineProperty(Ld,"__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={})),Ld.default=r,Ld}var Md={},M0;function BL(){if(M0)return Md;M0=1,Object.defineProperty(Md,"__esModule",{value:!0});const r=Ax();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 h={};return i.attributes&&(h.attributes=i.attributes),typeof i.retain=="number"?h.retain=n:typeof i.retain=="object"&&i.retain!==null?h.retain=i.retain:typeof i.insert=="string"?h.insert=i.insert.substr(l,n):h.insert=i.insert,h}}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 Md.default=e,Md}var D0;function qL(){return D0||(D0=1,function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const t=jL(),n=Cx(),i=wx(),l=FL();e.AttributeMap=l.default;const u=Ax();e.Op=u.default;const h=BL();e.OpIterator=h.default;const g="\0",m=(T,C)=>{if(typeof T!="object"||T===null)throw new Error(`cannot retain a ${typeof T}`);if(typeof C!="object"||C===null)throw new Error(`cannot retain a ${typeof C}`);const _=Object.keys(T)[0];if(!_||_!==Object.keys(C)[0])throw new Error(`embed types not matched: ${_} != ${Object.keys(C)[0]}`);return[_,T[_],C[_]]};class M{constructor(C){Array.isArray(C)?this.ops=C:C!=null&&Array.isArray(C.ops)?this.ops=C.ops:this.ops=[]}static registerEmbed(C,_){this.handlers[C]=_}static unregisterEmbed(C){delete this.handlers[C]}static getHandler(C){const _=this.handlers[C];if(!_)throw new Error(`no handlers for embed type "${C}"`);return _}insert(C,_){const S={};return typeof C=="string"&&C.length===0?this:(S.insert=C,_!=null&&typeof _=="object"&&Object.keys(_).length>0&&(S.attributes=_),this.push(S))}delete(C){return C<=0?this:this.push({delete:C})}retain(C,_){if(typeof C=="number"&&C<=0)return this;const S={retain:C};return _!=null&&typeof _=="object"&&Object.keys(_).length>0&&(S.attributes=_),this.push(S)}push(C){let _=this.ops.length,S=this.ops[_-1];if(C=n(C),typeof S=="object"){if(typeof C.delete=="number"&&typeof S.delete=="number")return this.ops[_-1]={delete:S.delete+C.delete},this;if(typeof S.delete=="number"&&C.insert!=null&&(_-=1,S=this.ops[_-1],typeof S!="object"))return this.ops.unshift(C),this;if(i(C.attributes,S.attributes)){if(typeof C.insert=="string"&&typeof S.insert=="string")return this.ops[_-1]={insert:S.insert+C.insert},typeof C.attributes=="object"&&(this.ops[_-1].attributes=C.attributes),this;if(typeof C.retain=="number"&&typeof S.retain=="number")return this.ops[_-1]={retain:S.retain+C.retain},typeof C.attributes=="object"&&(this.ops[_-1].attributes=C.attributes),this}}return _===this.ops.length?this.ops.push(C):this.ops.splice(_,0,C),this}chop(){const C=this.ops[this.ops.length-1];return C&&typeof C.retain=="number"&&!C.attributes&&this.ops.pop(),this}filter(C){return this.ops.filter(C)}forEach(C){this.ops.forEach(C)}map(C){return this.ops.map(C)}partition(C){const _=[],S=[];return this.forEach(D=>{(C(D)?_:S).push(D)}),[_,S]}reduce(C,_){return this.ops.reduce(C,_)}changeLength(){return this.reduce((C,_)=>_.insert?C+u.default.length(_):_.delete?C-_.delete:C,0)}length(){return this.reduce((C,_)=>C+u.default.length(_),0)}slice(C=0,_=1/0){const S=[],D=new h.default(this.ops);let A=0;for(;A<_&&D.hasNext();){let b;A<C?b=D.next(C-A):(b=D.next(_-A),S.push(b)),A+=u.default.length(b)}return new M(S)}compose(C){const _=new h.default(this.ops),S=new h.default(C.ops),D=[],A=S.peek();if(A!=null&&typeof A.retain=="number"&&A.attributes==null){let k=A.retain;for(;_.peekType()==="insert"&&_.peekLength()<=k;)k-=_.peekLength(),D.push(_.next());A.retain-k>0&&S.next(A.retain-k)}const b=new M(D);for(;_.hasNext()||S.hasNext();)if(S.peekType()==="insert")b.push(S.next());else if(_.peekType()==="delete")b.push(_.next());else{const k=Math.min(_.peekLength(),S.peekLength()),O=_.next(k),H=S.next(k);if(H.retain){const q={};if(typeof O.retain=="number")q.retain=typeof H.retain=="number"?k:H.retain;else if(typeof H.retain=="number")O.retain==null?q.insert=O.insert:q.retain=O.retain;else{const Y=O.retain==null?"insert":"retain",[he,J,fe]=m(O[Y],H.retain),P=M.getHandler(he);q[Y]={[he]:P.compose(J,fe,Y==="retain")}}const G=l.default.compose(O.attributes,H.attributes,typeof O.retain=="number");if(G&&(q.attributes=G),b.push(q),!S.hasNext()&&i(b.ops[b.ops.length-1],q)){const Y=new M(_.rest());return b.concat(Y).chop()}}else typeof H.delete=="number"&&(typeof O.retain=="number"||typeof O.retain=="object"&&O.retain!==null)&&b.push(H)}return b.chop()}concat(C){const _=new M(this.ops.slice());return C.ops.length>0&&(_.push(C.ops[0]),_.ops=_.ops.concat(C.ops.slice(1))),_}diff(C,_){if(this.ops===C.ops)return new M;const S=[this,C].map(O=>O.map(H=>{if(H.insert!=null)return typeof H.insert=="string"?H.insert:g;const q=O===C?"on":"with";throw new Error("diff() called "+q+" non-document")}).join("")),D=new M,A=t(S[0],S[1],_,!0),b=new h.default(this.ops),k=new h.default(C.ops);return A.forEach(O=>{let H=O[1].length;for(;H>0;){let q=0;switch(O[0]){case t.INSERT:q=Math.min(k.peekLength(),H),D.push(k.next(q));break;case t.DELETE:q=Math.min(H,b.peekLength()),b.next(q),D.delete(q);break;case t.EQUAL:q=Math.min(b.peekLength(),k.peekLength(),H);const G=b.next(q),Y=k.next(q);i(G.insert,Y.insert)?D.retain(q,l.default.diff(G.attributes,Y.attributes)):D.push(Y).delete(q);break}H-=q}}),D.chop()}eachLine(C,_=`
|
54
|
-
`){const S=new h.default(this.ops);let D=new M,A=0;for(;S.hasNext();){if(S.peekType()!=="insert")return;const b=S.peek(),k=u.default.length(b)-S.peekLength(),O=typeof b.insert=="string"?b.insert.indexOf(_,k)-k:-1;if(O<0)D.push(S.next());else if(O>0)D.push(S.next(O));else{if(C(D,S.next(1).attributes||{},A)===!1)return;A+=1,D=new M}}D.length()>0&&C(D,{},A)}invert(C){const _=new M;return this.reduce((S,D)=>{if(D.insert)_.delete(u.default.length(D));else{if(typeof D.retain=="number"&&D.attributes==null)return _.retain(D.retain),S+D.retain;if(D.delete||typeof D.retain=="number"){const A=D.delete||D.retain;return C.slice(S,S+A).forEach(k=>{D.delete?_.push(k):D.retain&&D.attributes&&_.retain(u.default.length(k),l.default.invert(D.attributes,k.attributes))}),S+A}else if(typeof D.retain=="object"&&D.retain!==null){const A=C.slice(S,S+1),b=new h.default(A.ops).next(),[k,O,H]=m(D.retain,b.insert),q=M.getHandler(k);return _.retain({[k]:q.invert(O,H)},l.default.invert(D.attributes,b.attributes)),S+1}}return S},0),_.chop()}transform(C,_=!1){if(_=!!_,typeof C=="number")return this.transformPosition(C,_);const S=C,D=new h.default(this.ops),A=new h.default(S.ops),b=new M;for(;D.hasNext()||A.hasNext();)if(D.peekType()==="insert"&&(_||A.peekType()!=="insert"))b.retain(u.default.length(D.next()));else if(A.peekType()==="insert")b.push(A.next());else{const k=Math.min(D.peekLength(),A.peekLength()),O=D.next(k),H=A.next(k);if(O.delete)continue;if(H.delete)b.push(H);else{const q=O.retain,G=H.retain;let Y=typeof G=="object"&&G!==null?G:k;if(typeof q=="object"&&q!==null&&typeof G=="object"&&G!==null){const he=Object.keys(q)[0];if(he===Object.keys(G)[0]){const J=M.getHandler(he);J&&(Y={[he]:J.transform(q[he],G[he],_)})}}b.retain(Y,l.default.transform(O.attributes,H.attributes,_))}}return b.chop()}transformPosition(C,_=!1){_=!!_;const S=new h.default(this.ops);let D=0;for(;S.hasNext()&&D<=C;){const A=S.peekLength(),b=S.peekType();if(S.next(),b==="delete"){C-=Math.min(A,C-D);continue}else b==="insert"&&(D<C||!_)&&(C+=A);D+=A}return C}}M.Op=u.default,M.OpIterator=h.default,M.AttributeMap=l.default,M.handlers={},e.default=M,r.exports=M,r.exports.default=M}(Rd,Rd.exports)),Rd.exports}var ds=qL();const Gt=ol(ds);class Us extends Ho{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}Us.blotName="break";Us.tagName="BR";let zs=class extends eh{};const HL={"&":"&","<":"<",">":">",'"':""","'":"'"};function fh(r){return r.replace(/[&<>"']/g,e=>HL[e])}const ma=class ma extends Am{static compare(e,t){const n=ma.order.indexOf(e),i=ma.order.indexOf(t);return n>=0||i>=0?n-i:e===t?0:e<t?-1:1}formatAt(e,t,n,i){if(ma.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 ma&&ma.compare(this.statics.blotName,this.parent.statics.blotName)>0){const t=this.parent.isolate(this.offset(),this.length());this.moveChildren(t),t.wrap(this)}}};nt(ma,"allowedChildren",[ma,Us,Ho,zs]),nt(ma,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);let Sa=ma;const O0=1;class Pi extends Kf{constructor(){super(...arguments);nt(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=Tx(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(`
|
55
|
-
`),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 h=this;l.reduce((g,m)=>(h=h.split(g,!0),h.insertAt(0,m),m.length),t+u.length)}insertBefore(t,n){const{head:i}=this.children;super.insertBefore(t,n),i instanceof Us&&i.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+O0),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()-O0)){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}}Pi.blotName="block";Pi.tagName="P";Pi.defaultChild=Us;Pi.allowedChildren=[Us,Sa,Ho,zs];class fs extends Ho{attach(){super.attach(),this.attributes=new ch(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(`
|
56
|
-
`),l=i.pop(),u=i.map(g=>{const m=this.scroll.create(Pi.blotName);return m.insertAt(0,g),m}),h=this.split(e);u.forEach(g=>{this.parent.insertBefore(g,h)}),l&&this.parent.insertBefore(this.scroll.create("text",l),h)}}fs.scope=Jt.BLOCK_BLOT;function Tx(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return r.descendants(Fi).reduce((t,n)=>n.length()===0?t:t.insert(n.value(),cs(n,{},e)),new Gt).insert(`
|
57
|
-
`,cs(r))}function cs(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:cs(r.parent,e,t)}const ls=class ls extends Ho{static value(){}constructor(e,t,n){super(e,t),this.selection=n,this.textNode=document.createTextNode(ls.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=ls.CONTENTS.length,n.optimize(),n.formatAt(i,ls.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 zs?this.prev:null,n=t?t.length():0,i=this.next instanceof zs?this.next:null,l=i?i.text:"",{textNode:u}=this,h=u.data.split(ls.CONTENTS).join("");u.data=ls.CONTENTS;let g;if(t)g=t,(h||i)&&(t.insertAt(t.length(),h+l),i&&i.remove());else if(i)g=i,i.insertAt(0,h);else{const m=document.createTextNode(h);g=this.scroll.create(m),this.parent.insertBefore(g,this)}if(this.remove(),e){const m=(C,_)=>t&&C===t.domNode?_:C===u?n+_-1:i&&C===i.domNode?n+h.length+_:null,M=m(e.start.node,e.start.offset),T=m(e.end.node,e.end.offset);if(M!==null&&T!==null)return{startNode:g.domNode,startOffset:M,endNode:g.domNode,endOffset:T}}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=ls.CONTENTS.length,t.isolate(this.offset(t),this.length()).unwrap(),this.savedLength=0;break}t=t.parent}}value(){return""}};nt(ls,"blotName","cursor"),nt(ls,"className","ql-cursor"),nt(ls,"tagName","span"),nt(ls,"CONTENTS","\uFEFF");let Zu=ls;var tp={exports:{}},P0;function zL(){return P0||(P0=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,M){this.fn=g,this.context=m,this.once=M||!1}function l(g,m,M,T,C){if(typeof M!="function")throw new TypeError("The listener must be a function");var _=new i(M,T||g,C),S=t?t+m:m;return g._events[S]?g._events[S].fn?g._events[S]=[g._events[S],_]:g._events[S].push(_):(g._events[S]=_,g._eventsCount++),g}function u(g,m){--g._eventsCount===0?g._events=new n:delete g._events[m]}function h(){this._events=new n,this._eventsCount=0}h.prototype.eventNames=function(){var m=[],M,T;if(this._eventsCount===0)return m;for(T in M=this._events)e.call(M,T)&&m.push(t?T.slice(1):T);return Object.getOwnPropertySymbols?m.concat(Object.getOwnPropertySymbols(M)):m},h.prototype.listeners=function(m){var M=t?t+m:m,T=this._events[M];if(!T)return[];if(T.fn)return[T.fn];for(var C=0,_=T.length,S=new Array(_);C<_;C++)S[C]=T[C].fn;return S},h.prototype.listenerCount=function(m){var M=t?t+m:m,T=this._events[M];return T?T.fn?1:T.length:0},h.prototype.emit=function(m,M,T,C,_,S){var D=t?t+m:m;if(!this._events[D])return!1;var A=this._events[D],b=arguments.length,k,O;if(A.fn){switch(A.once&&this.removeListener(m,A.fn,void 0,!0),b){case 1:return A.fn.call(A.context),!0;case 2:return A.fn.call(A.context,M),!0;case 3:return A.fn.call(A.context,M,T),!0;case 4:return A.fn.call(A.context,M,T,C),!0;case 5:return A.fn.call(A.context,M,T,C,_),!0;case 6:return A.fn.call(A.context,M,T,C,_,S),!0}for(O=1,k=new Array(b-1);O<b;O++)k[O-1]=arguments[O];A.fn.apply(A.context,k)}else{var H=A.length,q;for(O=0;O<H;O++)switch(A[O].once&&this.removeListener(m,A[O].fn,void 0,!0),b){case 1:A[O].fn.call(A[O].context);break;case 2:A[O].fn.call(A[O].context,M);break;case 3:A[O].fn.call(A[O].context,M,T);break;case 4:A[O].fn.call(A[O].context,M,T,C);break;default:if(!k)for(q=1,k=new Array(b-1);q<b;q++)k[q-1]=arguments[q];A[O].fn.apply(A[O].context,k)}}return!0},h.prototype.on=function(m,M,T){return l(this,m,M,T,!1)},h.prototype.once=function(m,M,T){return l(this,m,M,T,!0)},h.prototype.removeListener=function(m,M,T,C){var _=t?t+m:m;if(!this._events[_])return this;if(!M)return u(this,_),this;var S=this._events[_];if(S.fn)S.fn===M&&(!C||S.once)&&(!T||S.context===T)&&u(this,_);else{for(var D=0,A=[],b=S.length;D<b;D++)(S[D].fn!==M||C&&!S[D].once||T&&S[D].context!==T)&&A.push(S[D]);A.length?this._events[_]=A.length===1?A[0]:A:u(this,_)}return this},h.prototype.removeAllListeners=function(m){var M;return m?(M=t?t+m:m,this._events[M]&&u(this,M)):(this._events=new n,this._eventsCount=0),this},h.prototype.off=h.prototype.removeListener,h.prototype.addListener=h.prototype.on,h.prefixed=t,h.EventEmitter=h,r.exports=h}(tp)),tp.exports}var $L=zL();const UL=ol($L),Z1=new WeakMap,Y1=["error","warn","log","info"];let K1="warn";function Ex(r){if(K1&&Y1.indexOf(r)<=Y1.indexOf(K1)){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 al(r){return Y1.reduce((e,t)=>(e[t]=Ex.bind(console,t,r),e),{})}al.level=r=>{K1=r};Ex.level=al.level;const rp=al("quill:events"),WL=["selectionchange","mousedown","mouseup","click"];WL.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=Z1.get(i);l&&l.emitter&&l.emitter.handleDOM(...t)})})});class Zt extends UL{constructor(){super(),this.domListeners={},this.on("error",rp.error)}emit(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return rp.log.call(rp,...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:h}=l;(e.target===u||u.contains(e.target))&&h(e,...n)})}listenDOM(e,t,n){this.domListeners[e]||(this.domListeners[e]=[]),this.domListeners[e].push({node:t,handler:n})}}nt(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"}),nt(Zt,"sources",{API:"api",SILENT:"silent",USER:"user"});const np=al("quill:selection");class Yc{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.index=e,this.length=t}}class VL{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 Yc(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(h=>h.type==="characterData"||h.type==="childList"||h.type==="attributes"&&h.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:h,endOffset:g}=i.range;this.setNativeRange(l,u,h,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 Fi){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[M]=this.scroll.leaf(e+1);if(M){const[T]=this.scroll.line(e),[C]=this.scroll.line(e+1);T===C&&(l=M,u=0)}}[i,u]=l.position(u,!0);const h=document.createRange();if(t>0)return h.setStart(i,u),[l,u]=this.scroll.leaf(e+t),l==null?null:([i,u]=l.position(u,!0),h.setEnd(i,u),h.getBoundingClientRect());let g="left",m;if(i instanceof Text){if(!i.data.length)return null;u<i.data.length?(h.setStart(i,u),h.setEnd(i,u+1)):(h.setStart(i,u-1),h.setEnd(i,u),g="right"),m=h.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 np.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&&ip(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[h,g]=u,m=this.scroll.find(h,!0),M=m.offset(this.scroll);return g===0?M:m instanceof Fi?M+m.index(h,g):M+m.length()}),i=Math.min(Math.max(...n),this.scroll.length()-1),l=Math.min(i,...n);return new Yc(l,i-l)}normalizeNative(e){if(!ip(this.root,e.startContainer)||!e.collapsed&&!ip(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,h]=this.scroll.leaf(i);return u?u.position(h,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(np.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:h}=this.getNativeRange()||{};if(h==null||l||e!==h.startContainer||t!==h.startOffset||n!==h.endContainer||i!==h.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),np.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),!wm(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,Hu(this.lastRange),Hu(t),e];this.emitter.emit(Zt.events.EDITOR_CHANGE,...l),e!==Zt.sources.SILENT&&this.emitter.emit(...l)}}}function ip(r,e){try{e.parentNode}catch{return!1}return r.contains(e)}const GL=/^[ -~]*$/;class ZL{constructor(e){this.scroll=e,this.delta=this.getDelta()}applyDelta(e){this.scroll.update();let t=this.scroll.length();this.scroll.batchStart();const n=N0(e),i=new Gt;return KL(n.ops.slice()).reduce((u,h)=>{const g=ds.Op.length(h);let m=h.attributes||{},M=!1,T=!1;if(h.insert!=null){if(i.retain(g),typeof h.insert=="string"){const S=h.insert;T=!S.endsWith(`
|
58
|
-
`)&&(t<=u||!!this.scroll.descendant(fs,u)[0]),this.scroll.insertAt(u,S);const[D,A]=this.scroll.line(u);let b=Xl({},cs(D));if(D instanceof Pi){const[k]=D.descendant(Fi,A);k&&(b=Xl(b,cs(k)))}m=ds.AttributeMap.diff(b,m)||{}}else if(typeof h.insert=="object"){const S=Object.keys(h.insert)[0];if(S==null)return u;const D=this.scroll.query(S,Jt.INLINE)!=null;if(D)(t<=u||this.scroll.descendant(fs,u)[0])&&(T=!0);else if(u>0){const[A,b]=this.scroll.descendant(Fi,u-1);A instanceof zs?A.value()[b]!==`
|
59
|
-
`&&(M=!0):A instanceof Ho&&A.statics.scope===Jt.INLINE_BLOT&&(M=!0)}if(this.scroll.insertAt(u,S,h.insert[S]),D){const[A]=this.scroll.descendant(Fi,u);if(A){const b=Xl({},cs(A));m=ds.AttributeMap.diff(b,m)||{}}}}t+=g}else if(i.push(h),h.retain!==null&&typeof h.retain=="object"){const S=Object.keys(h.retain)[0];if(S==null)return u;this.scroll.updateEmbedAt(u,S,h.retain[S])}Object.keys(m).forEach(S=>{this.scroll.formatAt(u,g,S,m[S])});const C=M?1:0,_=T?1:0;return t+=C+_,i.retain(C),i.delete(_),u+g+C+_},0),i.reduce((u,h)=>typeof h.delete=="number"?(this.scroll.deleteAt(u,h.delete),u):u+ds.Op.length(h),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,Hu(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,Hu(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(h=>{const[g]=h;g instanceof Pi?n.push(g):g instanceof Fi&&i.push(g)}):(n=this.scroll.lines(e,t),i=this.scroll.descendants(Fi,e,t));const[l,u]=[n,i].map(h=>{const g=h.shift();if(g==null)return{};let m=cs(g);for(;Object.keys(m).length>0;){const M=h.shift();if(M==null)return m;m=YL(cs(M),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)?Xf(n,i,t,!0):Xf(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=N0(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,`
|
60
|
-
`).replace(/\r/g,`
|
61
|
-
`),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,Hu(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)!==Pi.blotName)return!1;const t=e;return t.children.length>1?!1:t.children.head instanceof Us}removeFormat(e,t){const n=this.getText(e,t),[i,l]=this.scroll.line(e+t);let u=0,h=new Gt;i!=null&&(u=i.length()-l,h=i.delta().slice(l,l+u-1).insert(`
|
62
|
-
`));const m=this.getContents(e,t+u).diff(new Gt().insert(n).concat(h)),M=new Gt().retain(e).concat(m);return this.applyDelta(M)}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(GL)&&this.scroll.find(t[0].target)){const l=this.scroll.find(t[0].target),u=cs(l),h=l.offset(this.scroll),g=t[0].oldValue.replace(Zu.CONTENTS,""),m=new Gt().insert(g),M=new Gt().insert(l.value()),T=n&&{oldRange:j0(n.oldRange,-h),newRange:j0(n.newRange,-h)};e=new Gt().retain(h).concat(m.diff(M,T)).reduce((_,S)=>S.insert?_.insert(S.insert,u):_.push(S),new Gt),this.delta=i.compose(e)}else this.delta=this.getDelta(),(!e||!wm(i.compose(e),this.delta))&&(e=i.diff(this.delta,n));return e}}function Nu(r,e,t){if(r.length===0){const[_]=op(t.pop());return e<=0?`</li></${_}>`:`</li></${_}>${Nu([],e-1,t)}`}const[{child:n,offset:i,length:l,indent:u,type:h},...g]=r,[m,M]=op(h);if(u>e)return t.push(h),u===e+1?`<${m}><li${M}>${Xf(n,i,l)}${Nu(g,u,t)}`:`<${m}><li>${Nu(r,e+1,t)}`;const T=t[t.length-1];if(u===e&&h===T)return`</li><li${M}>${Xf(n,i,l)}${Nu(g,u,t)}`;const[C]=op(t.pop());return`</li></${C}>${Nu(r,e-1,t)}`}function Xf(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 zs)return fh(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,(M,T,C)=>{const _="formats"in M&&typeof M.formats=="function"?M.formats():{};m.push({child:M,offset:T,length:C,indent:_.indent||0,type:_.list})}),Nu(m,-1,[])}const i=[];if(r.children.forEachAt(e,t,(m,M,T)=>{i.push(Xf(m,M,T))}),n||r.statics.blotName==="list")return i.join("");const{outerHTML:l,innerHTML:u}=r.domNode,[h,g]=l.split(`>${u}<`);return h==="<table"?`<table style="border: 1px solid #000;">${i.join("")}<${g}`:`${h}>${i.join("")}<${g}`}return r.domNode instanceof Element?r.domNode.outerHTML:""}function YL(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 op(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 N0(r){return r.reduce((e,t)=>{if(typeof t.insert=="string"){const n=t.insert.replace(/\r\n/g,`
|
63
|
-
`).replace(/\r/g,`
|
64
|
-
`);return e.insert(n,t.attributes)}return e.push(t)},new Gt)}function j0(r,e){let{index:t,length:n}=r;return new Yc(t+e,n)}function KL(r){const e=[];return r.forEach(t=>{typeof t.insert=="string"?t.insert.split(`
|
65
|
-
`).forEach((i,l)=>{l&&e.push({insert:`
|
66
|
-
`,attributes:t.attributes}),i&&e.push({insert:i,attributes:t.attributes})}):e.push(t)}),e}class Ws{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.quill=e,this.options=t}}nt(Ws,"DEFAULTS",{});const Dd="\uFEFF";class Em extends Ho{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(Dd),this.rightGuard=document.createTextNode(Dd),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(Dd).join("");if(e===this.leftGuard)if(this.prev instanceof zs){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 zs?(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=Dd,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 XL{constructor(e,t){nt(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 Em)&&(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 zf=class zf{constructor(e,t){nt(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]}};nt(zf,"DEFAULTS",{modules:{}}),nt(zf,"themes",{default:zf});let Yu=zf;const JL=r=>r.parentElement||r.getRootNode().host||null,QL=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}},Od=r=>{const e=parseInt(r,10);return Number.isNaN(e)?0:e},F0=(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,eM=(r,e)=>{var l,u,h;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}:QL(i),M=getComputedStyle(i),T=F0(n.left,n.right,m.left,m.right,Od(M.scrollPaddingLeft),Od(M.scrollPaddingRight)),C=F0(n.top,n.bottom,m.top,m.bottom,Od(M.scrollPaddingTop),Od(M.scrollPaddingBottom));if(T||C)if(g)(h=t.defaultView)==null||h.scrollBy(T,C);else{const{scrollLeft:_,scrollTop:S}=i;C&&(i.scrollTop+=C),T&&(i.scrollLeft+=T);const D=i.scrollLeft-_,A=i.scrollTop-S;n={left:n.left-D,top:n.top-A,right:n.right-D,bottom:n.bottom-A}}i=g||M.position==="fixed"?null:JL(i)}},tM=100,rM=["block","break","cursor","inline","scroll","text"],nM=(r,e,t)=>{const n=new Gu;return rM.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>tM){t.error(`Cycle detected in registering blot requiredContainer: "${i}"`);break}}),n},$u=al("quill"),Pd=new Gu;qs.uiClass="ql-ui";const Os=class Os{static debug(e){e===!0&&(e="log"),al.level(e)}static find(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Z1.get(e)||Pd.find(e,t)}static import(e){return this.imports[e]==null&&$u.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&&$u.warn(`Overwriting ${e} with`,t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&t&&typeof t!="boolean"&&t.blotName!=="abstract"&&Pd.register(t),typeof t.register=="function"&&t.register(Pd)}}constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.options=iM(e,t),this.container=this.options.container,this.container==null){$u.error("Invalid Quill container",e);return}this.options.debug&&Os.debug(this.options.debug);const n=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",Z1.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new Zt;const i=Tm.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 ZL(this.scroll),this.selection=new VL(this.scroll,this.emitter),this.composition=new XL(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,h)=>{const g=this.selection.lastRange,[m]=this.selection.getRange(),M=g&&m?{oldRange:g,newRange:m}:void 0;Ds.call(this,()=>this.editor.update(null,h,M),u)}),this.emitter.on(Zt.events.SCROLL_EMBED_UPDATE,(u,h)=>{const g=this.selection.lastRange,[m]=this.selection.getRange(),M=g&&m?{oldRange:g,newRange:m}:void 0;Ds.call(this,()=>{const T=new Gt().retain(u.offset(this)).retain({[u.statics.blotName]:h});return this.editor.update(T,[],M)},Os.sources.USER)}),n){const u=this.clipboard.convert({html:`${n}<p><br></p>`,text:`
|
67
|
-
`});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]=Ja(e,t,n),Ds.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 Ds.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]=Ja(e,t,n,i,l),Ds.call(this,()=>this.editor.formatLine(e,t,u),l,e,0)}formatText(e,t,n,i,l){let u;return[e,t,u,l]=Ja(e,t,n,i,l),Ds.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]=Ja(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]=Ja(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]=Ja(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]:Os.sources.API;return Ds.call(this,()=>this.editor.insertEmbed(e,t,n),i,e)}insertText(e,t,n,i,l){let u;return[e,,u,l]=Ja(e,0,n,i,l),Ds.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]=Ja(e,t,n),Ds.call(this,()=>this.editor.removeFormat(e,t),n,e)}scrollRectIntoView(e){eM(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 Ds.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||Os.sources.API):([e,t,,n]=Ja(e,t,n),this.selection.setRange(new Yc(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 Ds.call(this,()=>(e=new Gt(e),this.editor.applyDelta(e)),t,!0)}};nt(Os,"DEFAULTS",{bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:Pd,theme:"default"}),nt(Os,"events",Zt.events),nt(Os,"sources",Zt.sources),nt(Os,"version","2.0.3"),nt(Os,"imports",{delta:Gt,parchment:NL,"core/module":Ws,"core/theme":Yu});let $e=Os;function B0(r){return typeof r=="string"?document.querySelector(r):r}function sp(r){return Object.entries(r??{}).reduce((e,t)=>{let[n,i]=t;return{...e,[n]:i===!0?{}:i}},{})}function q0(r){return Object.fromEntries(Object.entries(r).filter(e=>e[1]!==void 0))}function iM(r,e){const t=B0(r);if(!t)throw new Error("Invalid Quill container");const i=!e.theme||e.theme===$e.DEFAULTS.theme?Yu:$e.import(`themes/${e.theme}`);if(!i)throw new Error(`Invalid theme ${e.theme}. Did you register it?`);const{modules:l,...u}=$e.DEFAULTS,{modules:h,...g}=i.DEFAULTS;let m=sp(e.modules);m!=null&&m.toolbar&&m.toolbar.constructor!==Object&&(m={...m,toolbar:{container:m.toolbar}});const M=Xl({},sp(l),sp(h),m),T={...u,...q0(g),...q0(e)};let C=e.registry;return C?e.formats&&$u.warn('Ignoring "formats" option because "registry" is specified'):C=e.formats?nM(e.formats,T.registry,$u):T.registry,{...T,registry:C,container:t,theme:i,modules:Object.entries(M).reduce((_,S)=>{let[D,A]=S;if(!A)return _;const b=$e.import(`modules/${D}`);return b==null?($u.error(`Cannot load ${D} module. Are you sure you registered it?`),_):{..._,[D]:Xl({},b.DEFAULTS||{},A)}},{}),bounds:B0(T.bounds)}}function Ds(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=H0(i,u,e):n!==0&&(i=H0(i,t,n,e)),this.setSelection(i,Zt.sources.SILENT)),u.length()>0){const h=[Zt.events.TEXT_CHANGE,u,l,e];this.emitter.emit(Zt.events.EDITOR_CHANGE,...h),e!==Zt.sources.SILENT&&this.emitter.emit(...h)}return u}function Ja(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 H0(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(h=>e.transformPosition(h,n!==Zt.sources.USER)):[l,u]=[r.index,r.index+r.length].map(h=>h<e||h===e&&n===Zt.sources.USER?h:i>=0?h+i:Math.max(e,h+i)),new Yc(l,u-l)}class eu extends uh{}function z0(r){return r instanceof Pi||r instanceof fs}function $0(r){return typeof r.updateContent=="function"}class ju extends Tm{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 fs||l instanceof fs){this.optimize();return}const u=l.children.head instanceof Us?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(`
|
68
|
-
`)?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(`
|
69
|
-
`))),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(fs,e)[0]&&e<this.length()),m=l.type==="block"?l.delta:new Gt().insert({[l.key]:l.value});ap(this,e,m);const M=l.type==="block"?1:0,T=e+m.length()+M;g&&this.insertAt(T-1,`
|
70
|
-
`);const C=cs(this.line(e)[0]),_=ds.AttributeMap.diff(C,l.attributes)||{};Object.keys(_).forEach(S=>{this.formatAt(T-1,1,S,_[S])}),e=T}let[u,h]=this.children.find(e);if(n.length&&(u&&(u=u.split(h),h=0),n.forEach(g=>{if(g.type==="block"){const m=this.createBlock(g.attributes,u||void 0);ap(m,0,g.delta)}else{const m=this.create(g.key,g.value);this.insertBefore(m,u||void 0),Object.keys(g.attributes).forEach(M=>{m.format(M,g.attributes[M])})}})),i.type==="block"&&i.delta.length()){const g=u?u.offset(u.scroll)+h:this.length();ap(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 Fi?[n,i]:[null,-1]}line(e){return e===this.length()?this.line(e-1):this.descendant(z0,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 h=[],g=u;return i.children.forEachAt(l,u,(m,M,T)=>{z0(m)?h.push(m):m instanceof uh&&(h=h.concat(n(m,M,g))),g-=T}),h};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&&!$0(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 fs,e);i&&i.statics.blotName===t&&$0(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(`
|
71
|
-
`);u.slice(0,-1).forEach(g=>{n.insert(g,i.attributes),t.push({type:"block",delta:n,attributes:i.attributes??{}}),n=new Gt});const h=u[u.length-1];h&&n.insert(h,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(h=>{let[g,m]=h;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(h=>{let[g,m]=h;l.formatAt(0,u,g,m)}),l}}nt(ju,"blotName","scroll"),nt(ju,"className","ql-editor"),nt(ju,"tagName","DIV"),nt(ju,"defaultChild",Pi),nt(ju,"allowedChildren",[Pi,fs,eu]);function ap(r,e,t){t.reduce((n,i)=>{const l=ds.Op.length(i);let u=i.attributes||{};if(i.insert!=null){if(typeof i.insert=="string"){const h=i.insert;r.insertAt(n,h);const[g]=r.descendant(Fi,n),m=cs(g);u=ds.AttributeMap.diff(m,u)||{}}else if(typeof i.insert=="object"){const h=Object.keys(i.insert)[0];if(h==null)return n;if(r.insertAt(n,h,i.insert[h]),r.scroll.query(h,Jt.INLINE)!=null){const[m]=r.descendant(Fi,n),M=cs(m);u=ds.AttributeMap.diff(M,u)||{}}}}return Object.keys(u).forEach(h=>{r.formatAt(n,l,h,u[h])}),n+l},e)}const km={scope:Jt.BLOCK,whitelist:["right","center","justify"]},oM=new xa("align","align",km),kx=new $s("align","ql-align",km),Rx=new rc("align","text-align",km);class Ix extends rc{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 sM=new $s("color","ql-color",{scope:Jt.INLINE}),Rm=new Ix("color","color",{scope:Jt.INLINE}),aM=new $s("background","ql-bg",{scope:Jt.INLINE}),Im=new Ix("background","background-color",{scope:Jt.INLINE});class tu extends eu{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(`
|
72
|
-
`).slice(e,e+t)}html(e,t){return`<pre>
|
73
|
-
${fh(this.code(e,t))}
|
74
|
-
</pre>`}}class qi extends Pi{static register(){$e.register(tu)}}nt(qi,"TAB"," ");class Lm extends Sa{}Lm.blotName="code";Lm.tagName="CODE";qi.blotName="code-block";qi.className="ql-code-block";qi.tagName="DIV";tu.blotName="code-block-container";tu.className="ql-code-block-container";tu.tagName="DIV";tu.allowedChildren=[qi];qi.allowedChildren=[zs,Us,Zu];qi.requiredContainer=tu;const Mm={scope:Jt.BLOCK,whitelist:["rtl"]},Lx=new xa("direction","dir",Mm),Mx=new $s("direction","ql-direction",Mm),Dx=new rc("direction","direction",Mm),Ox={scope:Jt.INLINE,whitelist:["serif","monospace"]},Px=new $s("font","ql-font",Ox);class lM extends rc{value(e){return super.value(e).replace(/["']/g,"")}}const Nx=new lM("font","font-family",Ox),jx=new $s("size","ql-size",{scope:Jt.INLINE,whitelist:["small","large","huge"]}),Fx=new rc("size","font-size",{scope:Jt.INLINE,whitelist:["10px","18px","32px"]}),cM=al("quill:keyboard"),uM=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class dh extends Ws{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=dM(e);if(i==null){cM.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 h={...i,key:u,...t,...n};this.bindings[h.key]=this.bindings[h.key]||[],this.bindings[h.key].push(h)})}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(b=>dh.match(e,b));if(i.length===0)return;const l=$e.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[h,g]=this.quill.getLine(u.index),[m,M]=this.quill.getLeaf(u.index),[T,C]=u.length===0?[m,M]:this.quill.getLeaf(u.index+u.length),_=m instanceof eh?m.value().slice(0,M):"",S=T instanceof eh?T.value().slice(C):"",D={collapsed:u.length===0,empty:u.length===0&&h.length()<=1,format:this.quill.getFormat(u),line:h,offset:g,prefix:_,suffix:S,event:e};i.some(b=>{if(b.collapsed!=null&&b.collapsed!==D.collapsed||b.empty!=null&&b.empty!==D.empty||b.offset!=null&&b.offset!==D.offset)return!1;if(Array.isArray(b.format)){if(b.format.every(k=>D.format[k]==null))return!1}else if(typeof b.format=="object"&&!Object.keys(b.format).every(k=>b.format[k]===!0?D.format[k]!=null:b.format[k]===!1?D.format[k]==null:wm(b.format[k],D.format[k])))return!1;return b.prefix!=null&&!b.prefix.test(D.prefix)||b.suffix!=null&&!b.suffix.test(D.suffix)?!1:b.handler.call(this,u,D,b)!==!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[h]=this.quill.getLine(e.index-1);if(h&&!(h.statics.blotName==="block"&&h.length()<=1)){const m=l.formats(),M=this.quill.getFormat(e.index-1,1);if(i=ds.AttributeMap.diff(m,M)||{},Object.keys(i).length>0){const T=new Gt().retain(e.index+l.length()-2).retain(1,i);u=u.compose(T)}}}this.quill.updateContents(u,$e.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[h]=this.quill.getLine(e.index+1);if(h){const g=l.formats(),m=this.quill.getFormat(e.index,1);i=ds.AttributeMap.diff(g,m)||{},Object.keys(i).length>0&&(u=u.retain(h.length()-1).retain(1,i))}}this.quill.updateContents(u,$e.sources.USER),this.quill.focus()}handleDeleteRange(e){Dm({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(`
|
75
|
-
`,n);this.quill.updateContents(i,$e.sources.USER),this.quill.setSelection(e.index+1,$e.sources.SILENT),this.quill.focus()}}const fM={bindings:{bold:lp("bold"),italic:lp("italic"),underline:lp("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(r,e){return e.collapsed&&e.offset!==0?!0:(this.quill.format("indent","+1",$e.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",$e.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",$e.sources.USER):e.format.list!=null&&this.quill.format("list",!1,$e.sources.USER)}},"indent code-block":U0(!0),"outdent code-block":U0(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(r){this.quill.deleteText(r.index-1,1,$e.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,$e.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(r.index+1,$e.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,$e.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,$e.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(`
|
76
|
-
`,n).retain(e.length()-t-1).retain(1,{list:"unchecked"});this.quill.updateContents(i,$e.sources.USER),this.quill.setSelection(r.index+1,$e.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(`
|
77
|
-
`,e.format).retain(t.length()-n-1).retain(1,{header:null});this.quill.updateContents(i,$e.sources.USER),this.quill.setSelection(r.index+1,$e.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=hM(t,n,i,l);if(u==null)return;let h=t.offset();if(u<0){const g=new Gt().retain(h).insert(`
|
78
|
-
`);this.quill.updateContents(g,$e.sources.USER),this.quill.setSelection(r.index+1,r.length,$e.sources.SILENT)}else if(u>0){h+=t.length();const g=new Gt().retain(h).insert(`
|
79
|
-
`);this.quill.updateContents(g,$e.sources.USER),this.quill.setSelection(h,$e.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,$e.sources.USER):this.quill.setSelection(i+n.length(),$e.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," ",$e.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,$e.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(r.index-t,$e.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,$e.sources.USER),this.quill.setSelection(r.index-1,$e.sources.SILENT),!1}return!0}},"embed left":Nd("ArrowLeft",!1),"embed left shift":Nd("ArrowLeft",!0),"embed right":Nd("ArrowRight",!1),"embed right shift":Nd("ArrowRight",!0),"table down":W0(!1),"table up":W0(!0)}};dh.DEFAULTS=fM;function U0(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,$e.sources.USER),this.quill.setSelection(e.index+l.length,$e.sources.SILENT);return}const u=e.length===0?this.quill.getLines(e.index,1):this.quill.getLines(e);let{index:h,length:g}=e;u.forEach((m,M)=>{r?(m.insertAt(0,l),M===0?h+=l.length:g+=l.length):m.domNode.textContent.startsWith(l)&&(m.deleteAt(0,l.length),M===0?h-=l.length:g-=l.length)}),this.quill.update($e.sources.USER),this.quill.setSelection(h,g,$e.sources.SILENT)}}}function Nd(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 Ho?(r==="ArrowLeft"?e?this.quill.setSelection(n.index-1,n.length+1,$e.sources.USER):this.quill.setSelection(n.index-1,$e.sources.USER):e?this.quill.setSelection(n.index,n.length+1,$e.sources.USER):this.quill.setSelection(n.index+n.length+1,$e.sources.USER),!1):!0}}}function lp(r){return{key:r[0],shortKey:!0,handler(e,t){this.quill.format(r,!t.format[r],$e.sources.USER)}}}function W0(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,h=i;for(;h.prev!=null;)h=h.prev,u=u.next;const g=u.offset(this.quill.scroll)+Math.min(t.offset,u.length()-1);this.quill.setSelection(g,0,$e.sources.USER)}}else{const u=i.table()[n];u!=null&&(r?this.quill.setSelection(u.offset(this.quill.scroll)+u.length()-1,0,$e.sources.USER):this.quill.setSelection(u.offset(this.quill.scroll),0,$e.sources.USER))}return!1}}}function dM(r){if(typeof r=="string"||typeof r=="number")r={key:r};else if(typeof r=="object")r=Hu(r);else return null;return r.shortKey&&(r[uM]=r.shortKey,delete r.shortKey),r}function Dm(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=ds.AttributeMap.diff(u,l)||{}}e.deleteText(t,$e.sources.USER),Object.keys(i).length>0&&e.formatLine(t.index,1,i,$e.sources.USER),e.setSelection(t.index,$e.sources.SILENT)}function hM(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 pM=/font-weight:\s*normal/,gM=["P","OL","UL"],V0=r=>r&&gM.includes(r.tagName),mM=r=>{Array.from(r.querySelectorAll("br")).filter(e=>V0(e.previousElementSibling)&&V0(e.nextElementSibling)).forEach(e=>{var t;(t=e.parentNode)==null||t.removeChild(e)})},vM=r=>{Array.from(r.querySelectorAll('b[style*="font-weight"]')).filter(e=>{var t;return(t=e.getAttribute("style"))==null?void 0:t.match(pM)}).forEach(e=>{var n;const t=r.createDocumentFragment();t.append(...e.childNodes),(n=e.parentNode)==null||n.replaceChild(t,e)})};function yM(r){r.querySelector('[id^="docs-internal-guid-"]')&&(vM(r),mM(r))}const bM=/\bmso-list:[^;]*ignore/i,_M=/\bmso-list:[^;]*\bl(\d+)/i,xM=/\bmso-list:[^;]*\blevel(\d+)/i,SM=(r,e)=>{const t=r.getAttribute("style"),n=t==null?void 0:t.match(_M);if(!n)return null;const i=Number(n[1]),l=t==null?void 0:t.match(xM),u=l?Number(l[1]):1,h=new RegExp(`@list l${i}:level${u}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),g=e.match(h),m=g&&g[1]==="bullet"?"bullet":"ordered";return{id:i,indent:u,type:m,element:r}},CM=r=>{var u,h;const e=Array.from(r.querySelectorAll("[style*=mso-list]")),t=[],n=[];e.forEach(g=>{(g.getAttribute("style")||"").match(bM)?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=>SM(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 M=document.createElement("ul");g.forEach(_=>{const S=document.createElement("li");S.setAttribute("data-list",_.type),_.indent>1&&S.setAttribute("class",`ql-indent-${_.indent-1}`),S.innerHTML=_.element.innerHTML,M.appendChild(S)});const T=(h=g[0])==null?void 0:h.element,{parentNode:C}=T??{};T&&(C==null||C.replaceChild(M,T)),g.slice(1).forEach(_=>{let{element:S}=_;C==null||C.removeChild(S)})}};function wM(r){r.documentElement.getAttribute("xmlns:w")==="urn:schemas-microsoft-com:office:word"&&CM(r)}const AM=[wM,yM],TM=r=>{r.documentElement&&AM.forEach(e=>{e(r)})},EM=al("quill:clipboard"),kM=[[Node.TEXT_NODE,qM],[Node.TEXT_NODE,Z0],["br",DM],[Node.ELEMENT_NODE,Z0],[Node.ELEMENT_NODE,MM],[Node.ELEMENT_NODE,LM],[Node.ELEMENT_NODE,FM],["li",NM],["ol, ul",jM],["pre",OM],["tr",BM],["b",cp("bold")],["i",cp("italic")],["strike",cp("strike")],["style",PM]],RM=[oM,Lx].reduce((r,e)=>(r[e.keyName]=e,r),{}),G0=[Rx,Im,Rm,Dx,Nx,Fx].reduce((r,e)=>(r[e.keyName]=e,r),{});class Bx extends Ws{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=[],kM.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[qi.blotName])return new Gt().insert(n||"",{[qi.blotName]:i[qi.blotName]});if(!t)return new Gt().insert(n||"",i);const l=this.convertHTML(t);return nd(l,`
|
80
|
-
`)&&(l.ops[l.ops.length-1].attributes==null||i.table)?l.compose(new Gt().retain(l.length()-1).delete(1)):l}normalizeHTML(e){TM(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 Om(this.quill.scroll,n,l,u,i)}dangerouslyPasteHTML(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$e.sources.API;if(typeof e=="string"){const i=this.convert({html:e,text:""});this.quill.setContents(i,t),this.quill.setSelection(0,$e.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(),$e.sources.SILENT)}}onCaptureCopy(e){var u,h;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),(h=e.clipboardData)==null||h.setData("text/html",i),t&&Dm({range:n,quill:this.quill})}normalizeURIList(e){return e.split(/\r?\n/).filter(t=>t[0]!=="#").join(`
|
81
|
-
`)}onCapturePaste(e){var u,h,g,m,M;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=(h=e.clipboardData)==null?void 0:h.getData("text/plain");if(!n&&!i){const T=(g=e.clipboardData)==null?void 0:g.getData("text/uri-list");T&&(i=this.normalizeURIList(T))}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 T=new DOMParser().parseFromString(n,"text/html");if(T.body.childElementCount===1&&((M=T.body.firstElementChild)==null?void 0:M.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);EM.log("onPaste",u,{text:n,html:i});const h=new Gt().retain(e.index).delete(e.length).concat(u);this.quill.updateContents(h,$e.sources.USER),this.quill.setSelection(h.length()-e.length,$e.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(e,t){const n=[],i=[];return this.matchers.forEach(l=>{const[u,h]=l;switch(u){case Node.TEXT_NODE:i.push(h);break;case Node.ELEMENT_NODE:n.push(h);break;default:Array.from(e.querySelectorAll(u)).forEach(g=>{if(t.has(g)){const m=t.get(g);m==null||m.push(h)}else t.set(g,[h])});break}}),[n,i]}}nt(Bx,"DEFAULTS",{matchers:[]});function ru(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 nd(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 Yl(r,e){if(!(r instanceof Element))return!1;const t=e.query(r);return t&&t.prototype instanceof Ho?!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 IM(r,e){return r.previousElementSibling&&r.nextElementSibling&&!Yl(r.previousElementSibling,e)&&!Yl(r.nextElementSibling,e)}const jd=new WeakMap;function qx(r){return r==null?!1:(jd.has(r)||(r.tagName==="PRE"?jd.set(r,!0):jd.set(r,qx(r.parentNode))),jd.get(r))}function Om(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 h=Om(r,u,t,n,i);return u.nodeType===e.ELEMENT_NODE&&(h=t.reduce((g,m)=>m(u,g,r),h),h=(i.get(u)||[]).reduce((g,m)=>m(u,g,r),h)),l.concat(h)},new Gt):new Gt}function cp(r){return(e,t,n)=>ru(t,r,!0,n)}function LM(r,e,t){const n=xa.keys(r),i=$s.keys(r),l=rc.keys(r),u={};return n.concat(i).concat(l).forEach(h=>{let g=t.query(h,Jt.ATTRIBUTE);g!=null&&(u[g.attrName]=g.value(r),u[g.attrName])||(g=RM[h],g!=null&&(g.attrName===h||g.keyName===h)&&(u[g.attrName]=g.value(r)||void 0),g=G0[h],g!=null&&(g.attrName===h||g.keyName===h)&&(g=G0[h],u[g.attrName]=g.value(r)||void 0))}),Object.entries(u).reduce((h,g)=>{let[m,M]=g;return ru(h,m,M,t)},e)}function MM(r,e,t){const n=t.query(r);if(n==null)return e;if(n.prototype instanceof Ho){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 Kf&&!nd(e,`
|
82
|
-
`)&&e.insert(`
|
83
|
-
`),"blotName"in n&&"formats"in n&&typeof n.formats=="function")return ru(e,n.blotName,n.formats(r,t),t);return e}function DM(r,e){return nd(e,`
|
84
|
-
`)||e.insert(`
|
85
|
-
`),e}function OM(r,e,t){const n=t.query("code-block"),i=n&&"formats"in n&&typeof n.formats=="function"?n.formats(r,t):!0;return ru(e,"code-block",i,t)}function PM(){return new Gt}function NM(r,e,t){const n=t.query(r);if(n==null||n.blotName!=="list"||!nd(e,`
|
86
|
-
`))return e;let i=-1,l=r.parentNode;for(;l!=null;)["OL","UL"].includes(l.tagName)&&(i+=1),l=l.parentNode;return i<=0?e:e.reduce((u,h)=>h.insert?h.attributes&&typeof h.attributes.indent=="number"?u.push(h):u.insert(h.insert,{indent:i,...h.attributes||{}}):u,new Gt)}function jM(r,e,t){const n=r;let i=n.tagName==="OL"?"ordered":"bullet";const l=n.getAttribute("data-checked");return l&&(i=l==="true"?"checked":"unchecked"),ru(e,"list",i,t)}function Z0(r,e,t){if(!nd(e,`
|
87
|
-
`)){if(Yl(r,t)&&(r.childNodes.length>0||r instanceof HTMLParagraphElement))return e.insert(`
|
88
|
-
`);if(e.length()>0&&r.nextSibling){let n=r.nextSibling;for(;n!=null;){if(Yl(n,t))return e.insert(`
|
89
|
-
`);const i=t.query(n);if(i&&i.prototype instanceof fs)return e.insert(`
|
90
|
-
`);n=n.firstChild}}}return e}function FM(r,e,t){var l;const n={},i=r.style||{};return i.fontStyle==="italic"&&(n.italic=!0),i.textDecoration==="underline"&&(n.underline=!0),i.textDecoration==="line-through"&&(n.strike=!0),((l=i.fontWeight)!=null&&l.startsWith("bold")||parseInt(i.fontWeight,10)>=700)&&(n.bold=!0),e=Object.entries(n).reduce((u,h)=>{let[g,m]=h;return ru(u,g,m,t)},e),parseFloat(i.textIndent||0)>0?new Gt().insert(" ").concat(e):e}function BM(r,e,t){var i,l;const n=((i=r.parentElement)==null?void 0:i.tagName)==="TABLE"?r.parentElement:(l=r.parentElement)==null?void 0:l.parentElement;if(n!=null){const h=Array.from(n.querySelectorAll("tr")).indexOf(r)+1;return ru(e,"table",h,t)}return e}function qM(r,e,t){var i;let n=r.data;if(((i=r.parentElement)==null?void 0:i.tagName)==="O:P")return e.insert(n.trim());if(!qx(r)){if(n.trim().length===0&&n.includes(`
|
91
|
-
`)&&!IM(r,t))return e;n=n.replace(/[^\S\u00a0]/g," "),n=n.replace(/ {2,}/g," "),(r.previousSibling==null&&r.parentElement!=null&&Yl(r.parentElement,t)||r.previousSibling instanceof Element&&Yl(r.previousSibling,t))&&(n=n.replace(/^ /,"")),(r.nextSibling==null&&r.parentElement!=null&&Yl(r.parentElement,t)||r.nextSibling instanceof Element&&Yl(r.nextSibling,t))&&(n=n.replace(/ $/,"")),n=n.replaceAll(" "," ")}return e.insert(n)}class Hx extends Ws{constructor(t,n){super(t,n);nt(this,"lastRecorded",0);nt(this,"ignoreChange",!1);nt(this,"stack",{undo:[],redo:[]});nt(this,"currentRange",null);this.quill.on($e.events.EDITOR_CHANGE,(i,l,u,h)=>{i===$e.events.SELECTION_CHANGE?l&&h!==$e.sources.SILENT&&(this.currentRange=l):i===$e.events.TEXT_CHANGE&&(this.ignoreChange||(!this.options.userOnly||h===$e.sources.USER?this.record(l,u):this.transform(l)),this.currentRange=X1(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:X1(i.range,u)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(i.delta,$e.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 h=this.stack.undo.pop();h&&(i=i.compose(h.delta),l=h.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){Y0(this.stack.undo,t),Y0(this.stack.redo,t)}undo(){this.change("undo","redo")}restoreSelection(t){if(t.range)this.quill.setSelection(t.range,$e.sources.USER);else{const n=zM(this.quill.scroll,t.delta);this.quill.setSelection(n,$e.sources.USER)}}}nt(Hx,"DEFAULTS",{delay:1e3,maxStack:100,userOnly:!1});function Y0(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&&X1(i.range,t)},t=i.delta.transform(t),r[n].delta.length()===0&&r.splice(n,1)}}function HM(r,e){const t=e.ops[e.ops.length-1];return t==null?!1:t.insert!=null?typeof t.insert=="string"&&t.insert.endsWith(`
|
92
|
-
`):t.attributes!=null?Object.keys(t.attributes).some(n=>r.query(n,Jt.BLOCK)!=null):!1}function zM(r,e){const t=e.reduce((i,l)=>i+(l.delete||0),0);let n=e.length()-t;return HM(r,e)&&(n-=1),n}function X1(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 zx extends Ws{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 h=document.caretPositionFromPoint(n.clientX,n.clientY);i=document.createRange(),i.setStart(h.offsetNode,h.offset),i.setEnd(h.offsetNode,h.offset)}const l=i&&e.selection.normalizeNative(i);if(l){const h=e.selection.normalizedToRange(l);(u=n.dataTransfer)!=null&&u.files&&this.upload(h,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)}}zx.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 $M=["insertText","insertReplacementText"];class UM extends Ws{constructor(e,t){super(e,t),e.root.addEventListener("beforeinput",n=>{this.handleBeforeInput(n)}),/Android/i.test(navigator.userAgent)||e.on($e.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(e){Dm({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),$e.sources.USER)}else this.deleteRange(e);return this.quill.setSelection(e.index+t.length,0,$e.sources.SILENT),!0}handleBeforeInput(e){if(this.quill.composition.isComposing||e.defaultPrevented||!$M.includes(e.inputType))return;const t=e.getTargetRanges?e.getTargetRanges()[0]:null;if(!t||t.collapsed===!0)return;const n=WM(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 WM(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 VM=/Mac/i.test(navigator.platform),GM=100,ZM=r=>!!(r.key==="ArrowLeft"||r.key==="ArrowRight"||r.key==="ArrowUp"||r.key==="ArrowDown"||r.key==="Home"||VM&&r.key==="a"&&r.ctrlKey===!0);class YM extends Ws{constructor(t,n){super(t,n);nt(this,"isListening",!1);nt(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),$e.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",t=>{!t.defaultPrevented&&ZM(t)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+GM,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)}}$e.register({"blots/block":Pi,"blots/block/embed":fs,"blots/break":Us,"blots/container":eu,"blots/cursor":Zu,"blots/embed":Em,"blots/inline":Sa,"blots/scroll":ju,"blots/text":zs,"modules/clipboard":Bx,"modules/history":Hx,"modules/keyboard":dh,"modules/uploader":zx,"modules/input":UM,"modules/uiNode":YM});class KM extends $s{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 XM=new KM("indent","ql-indent",{scope:Jt.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});class J1 extends Pi{}nt(J1,"blotName","blockquote"),nt(J1,"tagName","blockquote");class Q1 extends Pi{static formats(e){return this.tagName.indexOf(e.tagName)+1}}nt(Q1,"blotName","header"),nt(Q1,"tagName",["H1","H2","H3","H4","H5","H6"]);class id extends eu{}id.blotName="list-container";id.tagName="OL";class od extends Pi{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(){$e.register(id)}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)}}od.blotName="list";od.tagName="LI";id.allowedChildren=[od];od.requiredContainer=id;class Jf extends Sa{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)}}nt(Jf,"blotName","bold"),nt(Jf,"tagName",["STRONG","B"]);class em extends Jf{}nt(em,"blotName","italic"),nt(em,"tagName",["EM","I"]);class Kl extends Sa{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 $x(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))}}nt(Kl,"blotName","link"),nt(Kl,"tagName","A"),nt(Kl,"SANITIZED_URL","about:blank"),nt(Kl,"PROTOCOL_WHITELIST",["http","https","mailto","tel","sms"]);function $x(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 tm extends Sa{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"}}nt(tm,"blotName","script"),nt(tm,"tagName",["SUB","SUP"]);class rm extends Jf{}nt(rm,"blotName","strike"),nt(rm,"tagName",["S","STRIKE"]);class nm extends Sa{}nt(nm,"blotName","underline"),nt(nm,"tagName","U");class $d extends Em{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>`}}nt($d,"blotName","formula"),nt($d,"className","ql-formula"),nt($d,"tagName","SPAN");const K0=["alt","height","width"];var qd;let JM=(qd=class extends Ho{static create(e){const t=super.create(e);return typeof e=="string"&&t.setAttribute("src",this.sanitize(e)),t}static formats(e){return K0.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 $x(e,["http","https","data"])?e:"//:0"}static value(e){return e.getAttribute("src")}format(e,t){K0.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}},nt(qd,"blotName","image"),nt(qd,"tagName","IMG"),qd);const X0=["height","width"];class Ud extends fs{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 X0.reduce((t,n)=>(e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t),{})}static sanitize(e){return Kl.sanitize(e)}static value(e){return e.getAttribute("src")}format(e,t){X0.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>`}}nt(Ud,"blotName","video"),nt(Ud,"className","ql-video"),nt(Ud,"tagName","IFRAME");const jf=new $s("code-token","hljs",{scope:Jt.INLINE});class nl extends Sa{static formats(e,t){for(;e!=null&&e!==t.domNode;){if(e.classList&&e.classList.contains(qi.className))return super.formats(e,t);e=e.parentNode}}constructor(e,t,n){super(e,t,n),jf.add(this.domNode,n)}format(e,t){e!==nl.blotName?super.format(e,t):t?jf.add(this.domNode,t):(jf.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),jf.value(this.domNode)||this.unwrap()}}nl.blotName="code-token";nl.className="ql-token";class us extends qi{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(),nl.blotName,!1),super.replaceWith(e,t)}}class Hf extends tu{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(e,t){e===us.blotName&&(this.forceNext=!0,this.children.forEach(n=>{n.format(e,t)}))}formatAt(e,t,n,i){n===us.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(`
|
93
|
-
`)}
|
94
|
-
`,l=us.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(Tx(m,!1)),new Gt),h=e(i,l);u.diff(h).reduce((g,m)=>{let{retain:M,attributes:T}=m;return M?(T&&Object.keys(T).forEach(C=>{[us.blotName,nl.blotName].includes(C)&&this.formatAt(g,M,C,T[C])}),g+M):g},0)}this.cachedText=i,this.forceNext=!1}}html(e,t){const[n]=this.children.find(e);return`<pre data-language="${n?us.formats(n.domNode):"plain"}">
|
95
|
-
${fh(this.code(e,t))}
|
96
|
-
</pre>`}optimize(e){if(super.optimize(e),this.parent!=null&&this.children.head!=null&&this.uiNode!=null){const t=us.formats(this.children.head.domNode);t!==this.uiNode.value&&(this.uiNode.value=t)}}}Hf.allowedChildren=[us];us.requiredContainer=Hf;us.allowedChildren=[nl,Zu,zs,Us];const QM=(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 Ux extends Ws{static register(){$e.register(nl,!0),$e.register(us,!0),$e.register(Hf,!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($e.events.SCROLL_BLOT_MOUNT,e=>{if(!(e instanceof Hf))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(us.blotName,t.value),this.quill.root.focus(),this.highlight(e,!0)}),e.uiNode==null&&(e.attachUI(t),e.children.head&&(t.value=us.formats(e.children.head.domNode)))})}initTimer(){let e=null;this.quill.on($e.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($e.sources.USER);const n=this.quill.getSelection();(e==null?this.quill.scroll.descendants(Hf):[e]).forEach(l=>{l.highlight(this.highlightBlot,t)}),this.quill.update($e.sources.SILENT),n!=null&&this.quill.setSelection(n,$e.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 fh(e).split(`
|
97
|
-
`).reduce((i,l,u)=>(u!==0&&i.insert(`
|
98
|
-
`,{[qi.blotName]:t}),i.insert(l)),new Gt);const n=this.quill.root.ownerDocument.createElement("div");return n.classList.add(qi.className),n.innerHTML=QM(this.options.hljs,t,e),Om(this.quill.scroll,n,[(i,l)=>{const u=jf.value(i);return u?l.compose(new Gt().retain(l.length(),{[nl.blotName]:u})):l}],[(i,l)=>i.data.split(`
|
99
|
-
`).reduce((u,h,g)=>(g!==0&&u.insert(`
|
100
|
-
`,{[qi.blotName]:t}),u.insert(h)),l)],new WeakMap)}}Ux.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 $f=class $f extends Pi{static create(e){const t=super.create();return e?t.setAttribute("data-row",e):t.setAttribute("data-row",Pm()),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===$f.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()}};nt($f,"blotName","table"),nt($f,"tagName","TD");let Fs=$f;class il extends eu{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}}nt(il,"blotName","table-row"),nt(il,"tagName","TR");class _a extends eu{}nt(_a,"blotName","table-body"),nt(_a,"tagName","TBODY");class Ku extends eu{balanceCells(){const e=this.descendants(il),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=Fs.formats(n.children.head.domNode));const l=this.scroll.create(Fs.blotName,i);n.appendChild(l),l.optimize()})})}cells(e){return this.rows().map(t=>t.children.at(e))}deleteColumn(e){const[t]=this.descendant(_a);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(_a);t==null||t.children.head==null||t.children.forEach(n=>{const i=n.children.at(e),l=Fs.formats(n.children.head.domNode),u=this.scroll.create(Fs.blotName,l);n.insertBefore(u,i)})}insertRow(e){const[t]=this.descendant(_a);if(t==null||t.children.head==null)return;const n=Pm(),i=this.scroll.create(il.blotName);t.children.head.children.forEach(()=>{const u=this.scroll.create(Fs.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)}}nt(Ku,"blotName","table-container"),nt(Ku,"tagName","TABLE");Ku.allowedChildren=[_a];_a.requiredContainer=Ku;_a.allowedChildren=[il];il.requiredContainer=_a;il.allowedChildren=[Fs];Fs.requiredContainer=il;function Pm(){return`row-${Math.random().toString(36).slice(2,6)}`}class eD extends Ws{static register(){$e.register(Fs),$e.register(il),$e.register(_a),$e.register(Ku)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(Ku).forEach(e=>{e.balanceCells()})}deleteColumn(){const[e,,t]=this.getTable();t!=null&&(e.deleteColumn(t.cellOffset()),this.quill.update($e.sources.USER))}deleteRow(){const[,e]=this.getTable();e!=null&&(e.remove(),this.quill.update($e.sources.USER))}deleteTable(){const[e]=this.getTable();if(e==null)return;const t=e.offset();e.remove(),this.quill.update($e.sources.USER),this.quill.setSelection(t,$e.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!==Fs.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($e.sources.USER);let h=i.rowOffset();e===0&&(h+=1),this.quill.setSelection(t.index+h,t.length,$e.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($e.sources.USER),e>0?this.quill.setSelection(t,$e.sources.SILENT):this.quill.setSelection(t.index+i.children.length,t.length,$e.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(`
|
101
|
-
`).join("");return l.insert(u,{table:Pm()})},new Gt().retain(n.index));this.quill.updateContents(i,$e.sources.USER),this.quill.setSelection(n.index,$e.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on($e.events.SCROLL_OPTIMIZE,e=>{e.some(t=>["TD","TR","TBODY","TABLE"].includes(t.target.tagName)?(this.quill.once($e.events.TEXT_CHANGE,(n,i,l)=>{l===$e.sources.USER&&this.balanceTables()}),!0):!1)})}}const J0=al("quill:toolbar");class Nm extends Ws{constructor(e,t){var n,i;if(super(e,t),Array.isArray(this.options.container)){const l=document.createElement("div");l.setAttribute("role","toolbar"),tD(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)){J0.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 h;const u=(h=this.options.handlers)==null?void 0:h[l];u&&this.addHandler(l,u)}),Array.from(this.container.querySelectorAll("button, select")).forEach(l=>{this.attach(l)}),this.quill.on($e.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){J0.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 h=e.options[e.selectedIndex];h.hasAttribute("selected")?l=!1:l=h.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 Ho){if(l=prompt(`Enter ${t}`),!l)return;this.quill.updateContents(new Gt().retain(u.index).delete(u.length).insert({[t]:l}),$e.sources.USER)}else this.quill.format(t,l,$e.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 h=t[i];typeof h=="string"&&(h=h.replace(/"/g,'\\"')),u=l.querySelector(`option[value="${h}"]`)}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],h=u===l.getAttribute("value")||u!=null&&u.toString()===l.getAttribute("value")||u==null&&!l.getAttribute("value");l.classList.toggle("ql-active",h),l.setAttribute("aria-pressed",h.toString())}else{const u=t[i]!=null;l.classList.toggle("ql-active",u),l.setAttribute("aria-pressed",u.toString())}})}}Nm.DEFAULTS={};function Q0(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 tD(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")Q0(n,i);else{const l=Object.keys(i)[0],u=i[l];Array.isArray(u)?rD(n,l,u):Q0(n,l,u)}}),r.appendChild(n)})}function rD(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)}Nm.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,$e.sources.USER)})}else this.quill.removeFormat(r.index,r.length,$e.sources.USER)},direction(r){const{align:e}=this.quill.getFormat();r==="rtl"&&e==null?this.quill.format("align","right",$e.sources.USER):!r&&e==="right"&&this.quill.format("align",!1,$e.sources.USER),this.quill.format("direction",r,$e.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,$e.sources.USER)}},link(r){r===!0&&(r=prompt("Enter link URL:")),this.quill.format("link",r,$e.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,$e.sources.USER):this.quill.format("list","unchecked",$e.sources.USER):this.quill.format("list",r,$e.sources.USER)}}};const nD='<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>',iD='<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>',oD='<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>',sD='<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>',aD='<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>',lD='<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>',cD='<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>',uD='<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>',ey='<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>',fD='<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>',dD='<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>',hD='<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>',pD='<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>',gD='<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>',mD='<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>',vD='<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>',yD='<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>',bD='<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>',_D='<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>',xD='<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>',SD='<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>',CD='<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>',wD='<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>',AD='<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>',TD='<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>',ED='<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>',kD='<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>',RD='<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>',ID='<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>',LD='<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>',MD='<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>',DD='<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>',OD='<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>',Qf={align:{"":nD,center:iD,right:oD,justify:sD},background:aD,blockquote:lD,bold:cD,clean:uD,code:ey,"code-block":ey,color:fD,direction:{"":dD,rtl:hD},formula:pD,header:{1:gD,2:mD,3:vD,4:yD,5:bD,6:_D},italic:xD,image:SD,indent:{"+1":CD,"-1":wD},link:AD,list:{bullet:TD,check:ED,ordered:kD},script:{sub:RD,super:ID},strike:LD,table:MD,underline:DD,video:OD},PD='<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 ty=0;function ry(r,e){r.setAttribute(e,`${r.getAttribute(e)!=="true"}`)}class hh{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"),ry(this.label,"aria-expanded"),ry(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=PD,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-${ty}`,ty+=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 Wx extends hh{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 Vx extends hh{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 ND=r=>{const{overflowY:e}=getComputedStyle(r,null);return e!=="visible"&&e!=="clip"};class Gx{constructor(e,t){this.quill=e,this.boundsContainer=t||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,ND(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 h=l.bottom-l.top,g=e.bottom-e.top+h;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 jD=[!1,"center","right","justify"],FD=["#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"],BD=[!1,"serif","monospace"],qD=["1","2","3",!1],HD=["small",!1,"large","huge"];class sd extends Yu{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&&If(i,jD),typeof t.align=="object"))return new Vx(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&&If(i,FD,l==="background"?"#ffffff":"#000000"),new Wx(i,t[l])}return i.querySelector("option")==null&&(i.classList.contains("ql-font")?If(i,BD):i.classList.contains("ql-header")?If(i,qD):i.classList.contains("ql-size")&&If(i,HD)),new hh(i)});const n=()=>{this.pickers.forEach(i=>{i.update()})};this.quill.on(Zt.events.EDITOR_CHANGE,n)}}sd.DEFAULTS=Xl({},Yu.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 Zx extends Gx{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=zD(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 zD(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 If(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 $D=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class Yx extends Zx{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 h=this.quill.getLines(i.index,i.length);if(h.length===1){const g=this.quill.getBounds(i);g!=null&&this.position(g)}else{const g=h[h.length-1],m=this.quill.getIndex(g),M=Math.min(g.length()-1,i.index+i.length-m),T=this.quill.getBounds(new Yc(m,M));T!=null&&this.position(T)}}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}}nt(Yx,"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 Kx extends sd{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=$D),super(e,t),this.quill.container.classList.add("ql-bubble")}extendToolbar(e){this.tooltip=new Yx(this.quill,this.options.bounds),e.container!=null&&(this.tooltip.root.appendChild(e.container),this.buildButtons(e.container.querySelectorAll("button"),Qf),this.buildPickers(e.container.querySelectorAll("select"),Qf))}}Kx.DEFAULTS=Xl({},sd.DEFAULTS,{modules:{toolbar:{handlers:{link(r){r?this.quill.theme.tooltip.edit():this.quill.format("link",!1,$e.sources.USER)}}}}});const UD=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class Xx extends Zx{constructor(){super(...arguments);nt(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(Kl,t.index);if(l!=null){this.linkRange=new Yc(t.index-u,l.length());const h=Kl.formats(l.domNode);this.preview.textContent=h,this.preview.setAttribute("href",h),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")}}nt(Xx,"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 Jx extends sd{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=UD),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"),Qf),this.buildPickers(e.container.querySelectorAll("select"),Qf),this.tooltip=new Xx(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)}))}}Jx.DEFAULTS=Xl({},sd.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,$e.sources.USER)}}}}});$e.register({"attributors/attribute/direction":Lx,"attributors/class/align":kx,"attributors/class/background":aM,"attributors/class/color":sM,"attributors/class/direction":Mx,"attributors/class/font":Px,"attributors/class/size":jx,"attributors/style/align":Rx,"attributors/style/background":Im,"attributors/style/color":Rm,"attributors/style/direction":Dx,"attributors/style/font":Nx,"attributors/style/size":Fx},!0);$e.register({"formats/align":kx,"formats/direction":Mx,"formats/indent":XM,"formats/background":Im,"formats/color":Rm,"formats/font":Px,"formats/size":jx,"formats/blockquote":J1,"formats/code-block":qi,"formats/header":Q1,"formats/list":od,"formats/bold":Jf,"formats/code":Lm,"formats/italic":em,"formats/link":Kl,"formats/script":tm,"formats/strike":rm,"formats/underline":nm,"formats/formula":$d,"formats/image":JM,"formats/video":Ud,"modules/syntax":Ux,"modules/table":eD,"modules/toolbar":Nm,"themes/bubble":Kx,"themes/snow":Jx,"ui/icons":Qf,"ui/picker":hh,"ui/icon-picker":Vx,"ui/color-picker":Wx,"ui/tooltip":Gx},!0);var up={exports:{}},ny;function WD(){return ny||(ny=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 h=function(){function g(m,M){this.debug=m,this.suppressErrorLogging=M}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=h},337:function(l,u){var h=this&&this.__awaiter||function(m,M,T,C){return new(T||(T=Promise))(function(_,S){function D(k){try{b(C.next(k))}catch(O){S(O)}}function A(k){try{b(C.throw(k))}catch(O){S(O)}}function b(k){var O;k.done?_(k.value):(O=k.value,O instanceof T?O:new T(function(H){H(O)})).then(D,A)}b((C=C.apply(m,M||[])).next())})},g=this&&this.__generator||function(m,M){var T,C,_,S={label:0,sent:function(){if(1&_[0])throw _[1];return _[1]},trys:[],ops:[]},D=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return D.next=A(0),D.throw=A(1),D.return=A(2),typeof Symbol=="function"&&(D[Symbol.iterator]=function(){return this}),D;function A(b){return function(k){return function(O){if(T)throw new TypeError("Generator is already executing.");for(;D&&(D=0,O[0]&&(S=0)),S;)try{if(T=1,C&&(_=2&O[0]?C.return:O[0]?C.throw||((_=C.return)&&_.call(C),0):C.next)&&!(_=_.call(C,O[1])).done)return _;switch(C=0,_&&(O=[2&O[0],_.value]),O[0]){case 0:case 1:_=O;break;case 4:return S.label++,{value:O[1],done:!1};case 5:S.label++,C=O[1],O=[0];continue;case 7:O=S.ops.pop(),S.trys.pop();continue;default:if(_=S.trys,!((_=_.length>0&&_[_.length-1])||O[0]!==6&&O[0]!==2)){S=0;continue}if(O[0]===3&&(!_||O[1]>_[0]&&O[1]<_[3])){S.label=O[1];break}if(O[0]===6&&S.label<_[1]){S.label=_[1],_=O;break}if(_&&S.label<_[2]){S.label=_[2],S.ops.push(O);break}_[2]&&S.ops.pop(),S.trys.pop();continue}O=M.call(m,S)}catch(H){O=[6,H],C=0}finally{T=_=0}if(5&O[0])throw O[1];return{value:O[0]?O[1]:void 0,done:!0}}([b,k])}}};Object.defineProperty(u,"__esModule",{value:!0}),u.downscaleImage=function(m,M,T,C,_,S,D,A){return h(this,void 0,void 0,function(){var b,k,O,H,q,G,Y,he;return g(this,function(J){switch(J.label){case 0:return b=M.split(";")[0].split(":")[1],_=_||"image/jpeg",A=A||.7,(k=new Image).src=M,[4,new Promise(function(fe){k.onload=function(){fe()}})];case 1:return J.sent(),O=function(fe,P,re,Q){if(re&&Q&&fe<=re&&P<=Q)return[fe,P];if(re&&fe>re){var ne=re,se=Math.floor(P/fe*ne);if(Q&&se>Q){var ue=Q;return[Math.floor(fe/P*ue),ue]}return[ne,se]}return Q&&P>Q?(se=Q,[ne=Math.floor(fe/P*se),se]):[P,fe]}(k.width,k.height,T,C),H=O[0],q=O[1],(G=document.createElement("canvas")).width=H,G.height=q,Y=G.getContext("2d"),_==="image/jpeg"&&(Y.fillStyle="#FFFFFF",Y.fillRect(0,0,k.width,k.height)),D!=null&&D.includes(b)?[2,M]:(S!=null&&S.includes(b)&&(_=b),Y.drawImage(k,0,0,H,q),he=G.toDataURL(_,A),m.log("downscaling image...",{args:{dataUrl:M,maxWidth:T,maxHeight:C,imageType:_,ignoreImageTypes:D,keepImageTypes:S,imageQuality:A},newHeight:q,newWidth:H}),[2,he])}})})}},922:function(l,u){var h=this&&this.__awaiter||function(m,M,T,C){return new(T||(T=Promise))(function(_,S){function D(k){try{b(C.next(k))}catch(O){S(O)}}function A(k){try{b(C.throw(k))}catch(O){S(O)}}function b(k){var O;k.done?_(k.value):(O=k.value,O instanceof T?O:new T(function(H){H(O)})).then(D,A)}b((C=C.apply(m,M||[])).next())})},g=this&&this.__generator||function(m,M){var T,C,_,S={label:0,sent:function(){if(1&_[0])throw _[1];return _[1]},trys:[],ops:[]},D=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return D.next=A(0),D.throw=A(1),D.return=A(2),typeof Symbol=="function"&&(D[Symbol.iterator]=function(){return this}),D;function A(b){return function(k){return function(O){if(T)throw new TypeError("Generator is already executing.");for(;D&&(D=0,O[0]&&(S=0)),S;)try{if(T=1,C&&(_=2&O[0]?C.return:O[0]?C.throw||((_=C.return)&&_.call(C),0):C.next)&&!(_=_.call(C,O[1])).done)return _;switch(C=0,_&&(O=[2&O[0],_.value]),O[0]){case 0:case 1:_=O;break;case 4:return S.label++,{value:O[1],done:!1};case 5:S.label++,C=O[1],O=[0];continue;case 7:O=S.ops.pop(),S.trys.pop();continue;default:if(_=S.trys,!((_=_.length>0&&_[_.length-1])||O[0]!==6&&O[0]!==2)){S=0;continue}if(O[0]===3&&(!_||O[1]>_[0]&&O[1]<_[3])){S.label=O[1];break}if(O[0]===6&&S.label<_[1]){S.label=_[1],_=O;break}if(_&&S.label<_[2]){S.label=_[2],S.ops.push(O);break}_[2]&&S.ops.pop(),S.trys.pop();continue}O=M.call(m,S)}catch(H){O=[6,H],C=0}finally{T=_=0}if(5&O[0])throw O[1];return{value:O[0]?O[1]:void 0,done:!0}}([b,k])}}};Object.defineProperty(u,"__esModule",{value:!0}),u.file2b64=function(m){return h(this,void 0,void 0,function(){var M,T;return g(this,function(C){return M=new FileReader,T=new Promise(function(_,S){M.addEventListener("load",function(){var D,A=(D=M.result)===null||D===void 0?void 0:D.toString();A?_(A):S("could not convert file to base64")},!1)}),M.readAsDataURL(m),[2,T]})})}},457:(l,u)=>{Object.defineProperty(u,"__esModule",{value:!0}),u.warnAboutOptions=function(h,g){h.maxWidth=h.maxWidth||1e3,h.maxHeight=h.maxHeight||1e3,h.maxWidth&&typeof h.maxWidth!="number"&&(g.warn(`[config error] 'maxWidth' is required to be a "number" (in pixels),
|
102
|
-
received: `.concat(h.maxWidth,`
|
103
|
-
-> using default 1000`)),h.maxWidth=1e3),h.maxHeight&&typeof h.maxHeight!="number"&&(g.warn(`[config error] 'maxHeight' is required to be a "number" (in pixels),
|
104
|
-
received: `.concat(h.maxHeight,`
|
105
|
-
-> using default 1000`)),h.maxHeight=1e3),h.quality&&typeof h.quality!="number"&&(g.warn(`quill.imageCompressor: [config error] 'quality' is required to be a "number",
|
106
|
-
received: `.concat(h.quality,`
|
107
|
-
-> using default 0.7`)),h.quality=.7),!h.imageType||typeof h.imageType=="string"&&h.imageType.startsWith("image/")||(g.warn(`quill.imageCompressor: [config error] 'imageType' is required be in the form of "image/png" or "image/jpeg" etc ...,
|
108
|
-
received: `.concat(h.imageType,`
|
109
|
-
-> using default image/jpeg`)),h.imageType="image/jpeg"),h.keepImageTypes||(h.keepImageTypes=[]),h.keepImageTypes&&!Array.isArray(h.keepImageTypes)&&(g.warn(`quill.imageCompressor: [config error] 'keepImageTypes' is required to be a "array", received: `.concat(h.keepImageTypes," -> using default []")),h.keepImageTypes=[]),h.ignoreImageTypes||(h.ignoreImageTypes=[]),h.ignoreImageTypes&&!Array.isArray(h.ignoreImageTypes)&&(g.warn(`quill.imageCompressor: [config error] 'ignoreImageTypes' is required to be a "array", received: `.concat(h.ignoreImageTypes," -> using default []")),h.ignoreImageTypes=[]),h.handleOnPaste&&typeof h.handleOnPaste!="boolean"&&(g.warn(`quill.imageCompressor: [config error] 'handlePaste' is required to be a "boolean", received: `.concat(h.ignoreImageTypes," -> using default true")),h.handleOnPaste=!0),h.insertIntoEditor&&typeof h.insertIntoEditor!="function"&&(g.warn(`quill.imageCompressor: [config error] 'insertIntoEditor' is required to be a "function", received: `.concat(h.insertIntoEditor," -> using default undefined")),h.insertIntoEditor=void 0)}},423:function(l,u,h){var g=this&&this.__awaiter||function(A,b,k,O){return new(k||(k=Promise))(function(H,q){function G(J){try{he(O.next(J))}catch(fe){q(fe)}}function Y(J){try{he(O.throw(J))}catch(fe){q(fe)}}function he(J){var fe;J.done?H(J.value):(fe=J.value,fe instanceof k?fe:new k(function(P){P(fe)})).then(G,Y)}he((O=O.apply(A,b||[])).next())})},m=this&&this.__generator||function(A,b){var k,O,H,q={label:0,sent:function(){if(1&H[0])throw H[1];return H[1]},trys:[],ops:[]},G=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return G.next=Y(0),G.throw=Y(1),G.return=Y(2),typeof Symbol=="function"&&(G[Symbol.iterator]=function(){return this}),G;function Y(he){return function(J){return function(fe){if(k)throw new TypeError("Generator is already executing.");for(;G&&(G=0,fe[0]&&(q=0)),q;)try{if(k=1,O&&(H=2&fe[0]?O.return:fe[0]?O.throw||((H=O.return)&&H.call(O),0):O.next)&&!(H=H.call(O,fe[1])).done)return H;switch(O=0,H&&(fe=[2&fe[0],H.value]),fe[0]){case 0:case 1:H=fe;break;case 4:return q.label++,{value:fe[1],done:!1};case 5:q.label++,O=fe[1],fe=[0];continue;case 7:fe=q.ops.pop(),q.trys.pop();continue;default:if(H=q.trys,!((H=H.length>0&&H[H.length-1])||fe[0]!==6&&fe[0]!==2)){q=0;continue}if(fe[0]===3&&(!H||fe[1]>H[0]&&fe[1]<H[3])){q.label=fe[1];break}if(fe[0]===6&&q.label<H[1]){q.label=H[1],H=fe;break}if(H&&q.label<H[2]){q.label=H[2],q.ops.push(fe);break}H[2]&&q.ops.pop(),q.trys.pop();continue}fe=b.call(A,q)}catch(P){fe=[6,P],O=0}finally{k=H=0}if(5&fe[0])throw fe[1];return{value:fe[0]?fe[1]:void 0,done:!0}}([he,J])}}};Object.defineProperty(u,"__esModule",{value:!0}),u.imageCompressor=void 0;var M=h(379),T=h(457),C=h(922),_=h(337),S=h(321),D=function(){function A(b,k){var O=this;this.quill=b,this.options=k||{};var H=!!k.debug,q=!!k.suppressErrorLogging;this.Logger=new S.ConsoleLogger(H,q),(0,T.warnAboutOptions)(k,this.Logger),this.imageDrop=new M.ImageDrop(b,function(Y){return g(O,void 0,void 0,function(){var he;return m(this,function(J){switch(J.label){case 0:return this.Logger.log("onImageDrop",{dataUrl:Y}),[4,this.downscaleImageFromUrl(Y)];case 1:return he=J.sent(),this.insertToEditor(he,A.b64toBlob(he)),[2]}})})},this.Logger,this.options.handleOnPaste!==!1),this.Logger.log("fileChanged",{options:k,quill:b,debug:H});var G=this.quill.getModule("toolbar");G?G.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 A.b64toBlob=function(b){for(var k=atob(b.split(",")[1]),O=b.slice(5).split(";")[0],H=new ArrayBuffer(k.length),q=new Uint8Array(H),G=0;G<k.length;G++)q[G]=k.charCodeAt(G);return new Blob([H],{type:O})},A.prototype.selectLocalImage=function(b){var k=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 k.fileChanged().then(function(){return b&&b()})},document.body.appendChild(this.fileHolder),this.fileHolder.click(),window.requestAnimationFrame(function(){k.fileHolder&&document.body.removeChild(k.fileHolder)})},A.prototype.fileChanged=function(b){return g(this,void 0,void 0,function(){var k,O,H,q,G;return m(this,function(Y){switch(Y.label){case 0:return(k=b||((G=this.fileHolder)===null||G===void 0?void 0:G.files))&&k.length?(O=k[0],this.Logger.log("fileChanged",{file:O}),O?[4,(0,C.file2b64)(O)]:[2]):[2];case 1:return H=Y.sent(),[4,this.downscaleImageFromUrl(H)];case 2:return q=Y.sent(),this.insertToEditor(q,A.b64toBlob(q)),[2]}})})},A.prototype.downscaleImageFromUrl=function(b){return g(this,void 0,void 0,function(){var k;return m(this,function(O){switch(O.label){case 0:return[4,(0,_.downscaleImage)(this.Logger,b,this.options.maxWidth,this.options.maxHeight,this.options.imageType,this.options.keepImageTypes,this.options.ignoreImageTypes,this.options.quality)];case 1:return k=O.sent(),this.Logger.log("downscaleImageFromUrl",{dataUrl:b,dataUrlCompressed:k}),[2,k]}})})},A.prototype.insertToEditor=function(b,k){if(this.options.insertIntoEditor)this.options.insertIntoEditor(b,k,this.quill);else{this.Logger.log("insertToEditor",{url:b}),this.range=this.quill.getSelection();var O=this.range;if(!O)return;this.logFileSize(b),this.quill.insertEmbed(O.index,"image","".concat(b),"user"),O.index++,this.quill.setSelection(O,"api")}},A.prototype.logFileSize=function(b){var k=(Math.round(3*(b.length-22)/4)/1024).toFixed(0);this.Logger.log("estimated img size: "+k+" kb")},A}();u.imageCompressor=D,window.imageCompressor=D,u.default=D},379:function(l,u,h){var g=this&&this.__awaiter||function(_,S,D,A){return new(D||(D=Promise))(function(b,k){function O(G){try{q(A.next(G))}catch(Y){k(Y)}}function H(G){try{q(A.throw(G))}catch(Y){k(Y)}}function q(G){var Y;G.done?b(G.value):(Y=G.value,Y instanceof D?Y:new D(function(he){he(Y)})).then(O,H)}q((A=A.apply(_,S||[])).next())})},m=this&&this.__generator||function(_,S){var D,A,b,k={label:0,sent:function(){if(1&b[0])throw b[1];return b[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(G){return function(Y){if(D)throw new TypeError("Generator is already executing.");for(;O&&(O=0,Y[0]&&(k=0)),k;)try{if(D=1,A&&(b=2&Y[0]?A.return:Y[0]?A.throw||((b=A.return)&&b.call(A),0):A.next)&&!(b=b.call(A,Y[1])).done)return b;switch(A=0,b&&(Y=[2&Y[0],b.value]),Y[0]){case 0:case 1:b=Y;break;case 4:return k.label++,{value:Y[1],done:!1};case 5:k.label++,A=Y[1],Y=[0];continue;case 7:Y=k.ops.pop(),k.trys.pop();continue;default:if(b=k.trys,!((b=b.length>0&&b[b.length-1])||Y[0]!==6&&Y[0]!==2)){k=0;continue}if(Y[0]===3&&(!b||Y[1]>b[0]&&Y[1]<b[3])){k.label=Y[1];break}if(Y[0]===6&&k.label<b[1]){k.label=b[1],b=Y;break}if(b&&k.label<b[2]){k.label=b[2],k.ops.push(Y);break}b[2]&&k.ops.pop(),k.trys.pop();continue}Y=S.call(_,k)}catch(he){Y=[6,he],A=0}finally{D=b=0}if(5&Y[0])throw Y[1];return{value:Y[0]?Y[1]:void 0,done:!0}}([q,G])}}};Object.defineProperty(u,"__esModule",{value:!0}),u.ImageDrop=void 0;var M=h(922),T=function(){function _(S,D,A,b){var k=this;this.quill=S,this.onNewDataUrl=D,this.logger=A,this.handleOnPaste=b,this.localDrag=!1,this.quill.root.addEventListener("dragstart",function(O){return k.handleDragStart(O)},!1),this.quill.root.addEventListener("dragend",function(O){return k.handleDragEnd(O)},!1),this.quill.root.addEventListener("drop",function(O){return k.handleDrop(O)},!0),this.handleOnPaste&&this.quill.root.addEventListener("paste",function(O){return k.handlePaste(O)},!0)}return _.prototype.handleDragStart=function(S){this.localDrag=!0},_.prototype.handleDragEnd=function(S){this.localDrag=!1},_.prototype.handleDrop=function(S){return g(this,void 0,void 0,function(){var D,A,b,k,O,H,q,G,Y,he;return m(this,function(J){switch(J.label){case 0:return this.localDrag?[2]:(S.preventDefault(),document.caretRangeFromPoint&&(D=document.getSelection(),A=document.caretRangeFromPoint(S.clientX,S.clientY),D&&A&&D.setBaseAndExtent(A.startContainer,A.startOffset,A.startContainer,A.startOffset)),this.logger.log("handleDrop",{evt:S}),b=(q=S.dataTransfer)===null||q===void 0?void 0:q.files,(k=Array.from(b||[]).filter(function(fe){return C(fe.type)})).length>0?(S.stopPropagation(),this.logger.log("handleDrop","found files",{evt:S,files:b,imageFiles:k}),[4,this.pasteFilesIntoQuill(k)]):[3,2]);case 1:return J.sent(),[2];case 2:return!((G=S.dataTransfer)===null||G===void 0)&&G.items?(S.stopPropagation(),this.logger.log("handleDrop","found items",{evt:S,files:b,imageFiles:k}),[4,this.handleDataTransferList((Y=S.dataTransfer)===null||Y===void 0?void 0:Y.items,S)]):[3,4];case 3:return J.sent(),[2];case 4:return O=(he=S.dataTransfer)===null||he===void 0?void 0:he.getData("URL"),this.logger.log("handleDrop","trying getData('URL')",{draggedUrl:O}),O?[4,fetch(O)]:[3,8];case 5:return[4,J.sent().blob()];case 6:return H=J.sent(),this.logger.log("handleDrop","blob from drag event",{evt:S,files:b,imageFiles:k}),[4,this.pasteFilesIntoQuill([H])];case 7:J.sent(),J.label=8;case 8:return[2]}})})},_.prototype.handlePaste=function(S){return g(this,void 0,void 0,function(){var D;return m(this,function(A){switch(A.label){case 0:return[4,this.handleDataTransferList((D=S.clipboardData)===null||D===void 0?void 0:D.items,S)];case 1:return A.sent(),[2]}})})},_.prototype.handleDataTransferList=function(S,D){return g(this,void 0,void 0,function(){var A,b,k,O;return m(this,function(H){switch(H.label){case 0:return A=Array.from(S||[]),b=A.filter(function(q){return q.kind==="file"&&C(q.type)}),k=A.map(function(q){return{type:q.type,kind:q.kind}}),this.logger.log("handleDataTransferList",{fileTypes:k,imageCount:b.length}),b.length?(D.preventDefault(),D.stopPropagation(),O=b.map(function(q){return q.getAsFile()}),[4,this.pasteFilesIntoQuill(O)]):[2];case 1:return H.sent(),[2]}})})},_.prototype.pasteFilesIntoQuill=function(S){return g(this,void 0,void 0,function(){var D=this;return m(this,function(A){switch(A.label){case 0:return this.logger.log(" pasteFilesIntoQuill","pasting ".concat(S.length," images...")),[4,Promise.all(S.map(function(b,k){return g(D,void 0,void 0,function(){var O;return m(this,function(H){switch(H.label){case 0:return b?[4,(0,M.file2b64)(b)]:[2];case 1:return O=H.sent(),this.logger.log(" pasteFilesIntoQuill","pasting image (".concat(k,")")),this.onNewDataUrl(O),[2]}})})}))];case 1:return A.sent(),this.logger.log(" pasteFilesIntoQuill","done"),[2]}})})},_}();function C(_){return!!_.match(/^image\/(gif|jpe?g|a?png|svg|webp|bmp)/i)}u.ImageDrop=T}},n={},i=function l(u){var h=n[u];if(h!==void 0)return h.exports;var g=n[u]={exports:{}};return t[u].call(g.exports,g,g.exports,l),g.exports}(423);return i})())}(up)),up.exports}var VD=WD();const GD=ol(VD);var Wd={exports:{}},ZD=Wd.exports,iy;function YD(){return iy||(iy=1,function(r,e){(function(t,n){r.exports=n()})(ZD,function(){function t(S){if(!(typeof window>"u")){var D=document.createElement("style");return D.setAttribute("media","screen"),D.innerHTML=S,document.head.appendChild(D),S}}/*! *****************************************************************************
|
110
|
-
Copyright (c) Microsoft Corporation.
|
111
|
-
|
112
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
113
|
-
purpose with or without fee is hereby granted.
|
114
|
-
|
115
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
116
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
117
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
118
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
119
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
120
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
121
|
-
PERFORMANCE OF THIS SOFTWARE.
|
122
|
-
***************************************************************************** */var n=function(S,D){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,b){A.__proto__=b}||function(A,b){for(var k in b)b.hasOwnProperty(k)&&(A[k]=b[k])},n(S,D)};function i(S,D){n(S,D);function A(){this.constructor=S}S.prototype=D===null?Object.create(D):(A.prototype=D.prototype,new A)}var l=function(){return l=Object.assign||function(D){for(var A,b=1,k=arguments.length;b<k;b++){A=arguments[b];for(var O in A)Object.prototype.hasOwnProperty.call(A,O)&&(D[O]=A[O])}return D},l.apply(this,arguments)};t(`#editor-resizer {
|
123
|
-
position: absolute;
|
124
|
-
border: 1px dashed #fff;
|
125
|
-
background-color: rgba(0, 0, 0, 0.5);
|
126
|
-
}
|
127
|
-
#editor-resizer .handler {
|
128
|
-
position: absolute;
|
129
|
-
right: -5px;
|
130
|
-
bottom: -5px;
|
131
|
-
width: 10px;
|
132
|
-
height: 10px;
|
133
|
-
border: 1px solid #333;
|
134
|
-
background-color: rgba(255, 255, 255, 0.8);
|
135
|
-
cursor: nwse-resize;
|
136
|
-
user-select: none;
|
137
|
-
}
|
138
|
-
#editor-resizer .toolbar {
|
139
|
-
position: absolute;
|
140
|
-
top: -5em;
|
141
|
-
left: 50%;
|
142
|
-
padding: 0.5em;
|
143
|
-
border: 1px solid #fff;
|
144
|
-
border-radius: 3px;
|
145
|
-
background-color: #fff;
|
146
|
-
box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
|
147
|
-
transform: translateX(-50%);
|
148
|
-
width: 20em;
|
149
|
-
}
|
150
|
-
#editor-resizer .toolbar .group {
|
151
|
-
display: flex;
|
152
|
-
border: 1px solid #aaa;
|
153
|
-
border-radius: 6px;
|
154
|
-
white-space: nowrap;
|
155
|
-
text-align: center;
|
156
|
-
line-height: 2;
|
157
|
-
color: rgba(0, 0, 0, 0.65);
|
158
|
-
}
|
159
|
-
#editor-resizer .toolbar .group:not(:first-child) {
|
160
|
-
margin-top: 0.5em;
|
161
|
-
}
|
162
|
-
#editor-resizer .toolbar .group .btn {
|
163
|
-
flex: 1 0 0;
|
164
|
-
text-align: center;
|
165
|
-
width: 25%;
|
166
|
-
padding: 0 0.5rem;
|
167
|
-
display: inline-block;
|
168
|
-
vertical-align: top;
|
169
|
-
user-select: none;
|
170
|
-
color: inherit;
|
171
|
-
}
|
172
|
-
#editor-resizer .toolbar .group .btn:not(:last-child) {
|
173
|
-
border-right: 1px solid #bbb;
|
174
|
-
}
|
175
|
-
#editor-resizer .toolbar .group .btn:not(.btn-group):active {
|
176
|
-
background-color: rgba(0, 0, 0, 0.1);
|
177
|
-
}
|
178
|
-
#editor-resizer .toolbar .group .input-wrapper {
|
179
|
-
width: 25%;
|
180
|
-
border: 1px solid #eee;
|
181
|
-
position: relative;
|
182
|
-
border-right: 1px solid #bbb;
|
183
|
-
min-width: 4em;
|
184
|
-
}
|
185
|
-
#editor-resizer .toolbar .group .input-wrapper::after {
|
186
|
-
content: " ";
|
187
|
-
position: absolute;
|
188
|
-
height: 1px;
|
189
|
-
background-color: #333;
|
190
|
-
left: 0.5em;
|
191
|
-
right: 1em;
|
192
|
-
bottom: 0.2em;
|
193
|
-
}
|
194
|
-
#editor-resizer .toolbar .group .input-wrapper input {
|
195
|
-
color: inherit;
|
196
|
-
text-align: center;
|
197
|
-
width: 100%;
|
198
|
-
border: none;
|
199
|
-
outline: none;
|
200
|
-
padding: 0 0.5em;
|
201
|
-
padding-right: 1.5em;
|
202
|
-
}
|
203
|
-
#editor-resizer .toolbar .group .input-wrapper input:focus ~ .tooltip {
|
204
|
-
display: block;
|
205
|
-
}
|
206
|
-
#editor-resizer .toolbar .group .input-wrapper .suffix {
|
207
|
-
position: absolute;
|
208
|
-
right: 0.5em;
|
209
|
-
}
|
210
|
-
#editor-resizer .toolbar .group .input-wrapper .tooltip {
|
211
|
-
display: none;
|
212
|
-
position: absolute;
|
213
|
-
top: 100%;
|
214
|
-
left: 0;
|
215
|
-
font-size: small;
|
216
|
-
background-color: #fff;
|
217
|
-
box-shadow: 0 0 3px #a7a7a7;
|
218
|
-
padding: 0 0.6em;
|
219
|
-
border-radius: 5px;
|
220
|
-
zoom: 0.85;
|
221
|
-
}
|
222
|
-
`);var u=function(){function S(D){this.config=l(l({},h),D)}return S.prototype.findLabel=function(D){return this.config?Reflect.get(this.config,D):null},S}(),h={floatLeft:"left",floatRight:"right",center:"center",restore:"restore",altTip:"Press and hold alt to lock ratio!",inputTip:"Press enter key to apply change!"};function g(S){for(var D=[],A=1;A<arguments.length;A++)D[A-1]=arguments[A];return S.replace(/\{(\d+)\}/g,function(b,k){return D.length>k?D[k]:""})}(function(S){i(D,S);function D(){var A=S!==null&&S.apply(this,arguments)||this;return A.originSize=null,A}return D})(HTMLElement);var m=`
|
223
|
-
<div class="handler" title="{0}"></div>
|
224
|
-
<div class="toolbar">
|
225
|
-
<div class="group">
|
226
|
-
<a class="btn" data-type="width" data-styles="width:100%">100%</a>
|
227
|
-
<a class="btn" data-type="width" data-styles="width:50%">50%</a>
|
228
|
-
<span class="input-wrapper"><input data-type="width" maxlength="3" /><span class="suffix">%</span><span class="tooltip">{5}</span></span>
|
229
|
-
<a class="btn" data-type="width" data-styles="width:auto">{4}</a>
|
230
|
-
</div>
|
231
|
-
<div class="group">
|
232
|
-
<a class="btn" data-type="align" data-styles="float:left">{1}</a>
|
233
|
-
<a class="btn" data-type="align" data-styles="display:block;margin:auto;">{2}</a>
|
234
|
-
<a class="btn" data-type="align" data-styles="float:right;">{3}</a>
|
235
|
-
<a class="btn" data-type="align" data-styles="">{4}</a>
|
236
|
-
</div>
|
237
|
-
</div>
|
238
|
-
`,M=function(){function S(D,A,b,k){this.resizer=null,this.startResizePosition=null,this.i18n=new u((k==null?void 0:k.locale)||h),this.options=k,this.resizeTarget=D,D.originSize||(D.originSize={width:D.clientWidth,height:D.clientHeight}),this.editor=b,this.container=A,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 S.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},S.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"))},S.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)},S.prototype.onScroll=function(){this.positionResizerToTarget(this.resizeTarget)},S.prototype._setStylesForToolbar=function(D,A){var b,k="_styles_"+D,O=this.resizeTarget.style,H=this.resizeTarget[k];O.cssText=O.cssText.replaceAll(" ","").replace(H,"")+(";"+A),this.resizeTarget[k]=A,this.positionResizerToTarget(this.resizeTarget),(b=this.options)===null||b===void 0||b.onChange(this.resizeTarget)},S.prototype.toolbarInputChange=function(D){var A,b=D.target,k=(A=b==null?void 0:b.dataset)===null||A===void 0?void 0:A.type,O=b.value;k&&Number(O)&&this._setStylesForToolbar(k,"width: "+Number(O)+"%;")},S.prototype.toolbarClick=function(D){var A,b,k=D.target,O=(A=k==null?void 0:k.dataset)===null||A===void 0?void 0:A.type;O&&k.classList.contains("btn")&&this._setStylesForToolbar(O,(b=k==null?void 0:k.dataset)===null||b===void 0?void 0:b.styles)},S.prototype.startResize=function(D){var A=D.target;A.classList.contains("handler")&&D.which===1&&(this.startResizePosition={left:D.clientX,top:D.clientY,width:this.resizeTarget.clientWidth,height:this.resizeTarget.clientHeight})},S.prototype.endResize=function(){var D;this.startResizePosition=null,(D=this.options)===null||D===void 0||D.onChange(this.resizeTarget)},S.prototype.resizing=function(D){if(this.startResizePosition){var A=D.clientX-this.startResizePosition.left,b=D.clientY-this.startResizePosition.top,k=this.startResizePosition.width,O=this.startResizePosition.height;if(k+=A,O+=b,D.altKey){var H=this.resizeTarget.originSize,q=H.height/H.width;O=q*k}this.resizeTarget.style.setProperty("width",Math.max(k,30)+"px"),this.resizeTarget.style.setProperty("height",Math.max(O,30)+"px"),this.positionResizerToTarget(this.resizeTarget)}},S.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},S}(),T=function(){function S(D,A){this.element=D,this.cb=A,this.hasTracked=!1}return S}(),C=function(){function S(){}return S.track=function(D,A){this.iframes.push(new T(D,A)),this.interval||(this.interval=setInterval(function(){S.checkClick()},this.resolution))},S.checkClick=function(){if(document.activeElement){var D=document.activeElement;for(var A in this.iframes)D===this.iframes[A].element?this.iframes[A].hasTracked==!1&&(this.iframes[A].cb.apply(window,[]),this.iframes[A].hasTracked=!0):this.iframes[A].hasTracked=!1}},S.resolution=200,S.iframes=[],S.interval=null,S}();function _(S,D){var A=S.root,b,k;function O(){var H=S.getContents().constructor,q=new H().retain(1);S.updateContents(q)}A.addEventListener("click",function(H){var q=H.target;H.target&&["img","video"].includes(q.tagName.toLowerCase())&&(b=q,k=new M(q,A.parentElement,A,l(l({},D),{onChange:O})))}),S.on("text-change",function(H,q){A.querySelectorAll("iframe").forEach(function(G){C.track(G,function(){b=G,k=new M(G,A.parentElement,A,l(l({},D),{onChange:O}))})})}),document.addEventListener("mousedown",function(H){var q,G,Y,he=H.target;he!==b&&!(!((G=(q=k==null?void 0:k.resizer)===null||q===void 0?void 0:q.contains)===null||G===void 0)&&G.call(q,he))&&((Y=k==null?void 0:k.destory)===null||Y===void 0||Y.call(k),k=null,b=null)},{capture:!0})}return _})}(Wd)),Wd.exports}var KD=YD();const XD=ol(KD);var Vl={},zc={};/**
|
239
|
-
* @license React
|
240
|
-
* react-dom-server-legacy.browser.production.min.js
|
241
|
-
*
|
242
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
243
|
-
*
|
244
|
-
* This source code is licensed under the MIT license found in the
|
245
|
-
* LICENSE file in the root directory of this source tree.
|
246
|
-
*/var oy;function JD(){if(oy)return zc;oy=1;var r=R;function e(x){for(var j="https://reactjs.org/docs/error-decoder.html?invariant="+x,W=1;W<arguments.length;W++)j+="&args[]="+encodeURIComponent(arguments[W]);return"Minified React error #"+x+"; visit "+j+" 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(x){return t.call(l,x)?!0:t.call(i,x)?!1:n.test(x)?l[x]=!0:(i[x]=!0,!1)}function h(x,j,W,ee,Ce,be,Oe){this.acceptsBooleans=j===2||j===3||j===4,this.attributeName=ee,this.attributeNamespace=Ce,this.mustUseProperty=W,this.propertyName=x,this.type=j,this.sanitizeURL=be,this.removeEmptyString=Oe}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(x){g[x]=new h(x,0,!1,x,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(x){var j=x[0];g[j]=new h(j,1,!1,x[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(x){g[x]=new h(x,2,!1,x.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(x){g[x]=new h(x,2,!1,x,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(x){g[x]=new h(x,3,!1,x.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(x){g[x]=new h(x,3,!0,x,null,!1,!1)}),["capture","download"].forEach(function(x){g[x]=new h(x,4,!1,x,null,!1,!1)}),["cols","rows","size","span"].forEach(function(x){g[x]=new h(x,6,!1,x,null,!1,!1)}),["rowSpan","start"].forEach(function(x){g[x]=new h(x,5,!1,x.toLowerCase(),null,!1,!1)});var m=/[\-:]([a-z])/g;function M(x){return x[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(x){var j=x.replace(m,M);g[j]=new h(j,1,!1,x,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(x){var j=x.replace(m,M);g[j]=new h(j,1,!1,x,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(x){var j=x.replace(m,M);g[j]=new h(j,1,!1,x,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(x){g[x]=new h(x,1,!1,x.toLowerCase(),null,!1,!1)}),g.xlinkHref=new h("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(x){g[x]=new h(x,1,!1,x.toLowerCase(),null,!0,!0)});var T={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},C=["Webkit","ms","Moz","O"];Object.keys(T).forEach(function(x){C.forEach(function(j){j=j+x.charAt(0).toUpperCase()+x.substring(1),T[j]=T[x]})});var _=/["'&<>]/;function S(x){if(typeof x=="boolean"||typeof x=="number")return""+x;x=""+x;var j=_.exec(x);if(j){var W="",ee,Ce=0;for(ee=j.index;ee<x.length;ee++){switch(x.charCodeAt(ee)){case 34:j=""";break;case 38:j="&";break;case 39:j="'";break;case 60:j="<";break;case 62:j=">";break;default:continue}Ce!==ee&&(W+=x.substring(Ce,ee)),Ce=ee+1,W+=j}x=Ce!==ee?W+x.substring(Ce,ee):W}return x}var D=/([A-Z])/g,A=/^ms-/,b=Array.isArray;function k(x,j){return{insertionMode:x,selectedValue:j}}function O(x,j,W){switch(j){case"select":return k(1,W.value!=null?W.value:W.defaultValue);case"svg":return k(2,null);case"math":return k(3,null);case"foreignObject":return k(1,null);case"table":return k(4,null);case"thead":case"tbody":case"tfoot":return k(5,null);case"colgroup":return k(7,null);case"tr":return k(6,null)}return 4<=x.insertionMode||x.insertionMode===0?k(1,null):x}var H=new Map;function q(x,j,W){if(typeof W!="object")throw Error(e(62));j=!0;for(var ee in W)if(t.call(W,ee)){var Ce=W[ee];if(Ce!=null&&typeof Ce!="boolean"&&Ce!==""){if(ee.indexOf("--")===0){var be=S(ee);Ce=S((""+Ce).trim())}else{be=ee;var Oe=H.get(be);Oe!==void 0||(Oe=S(be.replace(D,"-$1").toLowerCase().replace(A,"-ms-")),H.set(be,Oe)),be=Oe,Ce=typeof Ce=="number"?Ce===0||t.call(T,ee)?""+Ce:Ce+"px":S((""+Ce).trim())}j?(j=!1,x.push(' style="',be,":",Ce)):x.push(";",be,":",Ce)}}j||x.push('"')}function G(x,j,W,ee){switch(W){case"style":q(x,j,ee);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<W.length)||W[0]!=="o"&&W[0]!=="O"||W[1]!=="n"&&W[1]!=="N"){if(j=g.hasOwnProperty(W)?g[W]:null,j!==null){switch(typeof ee){case"function":case"symbol":return;case"boolean":if(!j.acceptsBooleans)return}switch(W=j.attributeName,j.type){case 3:ee&&x.push(" ",W,'=""');break;case 4:ee===!0?x.push(" ",W,'=""'):ee!==!1&&x.push(" ",W,'="',S(ee),'"');break;case 5:isNaN(ee)||x.push(" ",W,'="',S(ee),'"');break;case 6:!isNaN(ee)&&1<=ee&&x.push(" ",W,'="',S(ee),'"');break;default:j.sanitizeURL&&(ee=""+ee),x.push(" ",W,'="',S(ee),'"')}}else if(u(W)){switch(typeof ee){case"function":case"symbol":return;case"boolean":if(j=W.toLowerCase().slice(0,5),j!=="data-"&&j!=="aria-")return}x.push(" ",W,'="',S(ee),'"')}}}function Y(x,j,W){if(j!=null){if(W!=null)throw Error(e(60));if(typeof j!="object"||!("__html"in j))throw Error(e(61));j=j.__html,j!=null&&x.push(""+j)}}function he(x){var j="";return r.Children.forEach(x,function(W){W!=null&&(j+=W)}),j}function J(x,j,W,ee){x.push(re(W));var Ce=W=null,be;for(be in j)if(t.call(j,be)){var Oe=j[be];if(Oe!=null)switch(be){case"children":W=Oe;break;case"dangerouslySetInnerHTML":Ce=Oe;break;default:G(x,ee,be,Oe)}}return x.push(">"),Y(x,Ce,W),typeof W=="string"?(x.push(S(W)),null):W}var fe=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,P=new Map;function re(x){var j=P.get(x);if(j===void 0){if(!fe.test(x))throw Error(e(65,x));j="<"+x,P.set(x,j)}return j}function Q(x,j,W,ee,Ce){switch(j){case"select":x.push(re("select"));var be=null,Oe=null;for(qt in W)if(t.call(W,qt)){var et=W[qt];if(et!=null)switch(qt){case"children":be=et;break;case"dangerouslySetInnerHTML":Oe=et;break;case"defaultValue":case"value":break;default:G(x,ee,qt,et)}}return x.push(">"),Y(x,Oe,be),be;case"option":Oe=Ce.selectedValue,x.push(re("option"));var Mt=et=null,Ht=null,qt=null;for(be in W)if(t.call(W,be)){var xr=W[be];if(xr!=null)switch(be){case"children":et=xr;break;case"selected":Ht=xr;break;case"dangerouslySetInnerHTML":qt=xr;break;case"value":Mt=xr;default:G(x,ee,be,xr)}}if(Oe!=null)if(W=Mt!==null?""+Mt:he(et),b(Oe)){for(ee=0;ee<Oe.length;ee++)if(""+Oe[ee]===W){x.push(' selected=""');break}}else""+Oe===W&&x.push(' selected=""');else Ht&&x.push(' selected=""');return x.push(">"),Y(x,qt,et),et;case"textarea":x.push(re("textarea")),qt=Oe=be=null;for(et in W)if(t.call(W,et)&&(Mt=W[et],Mt!=null))switch(et){case"children":qt=Mt;break;case"value":be=Mt;break;case"defaultValue":Oe=Mt;break;case"dangerouslySetInnerHTML":throw Error(e(91));default:G(x,ee,et,Mt)}if(be===null&&Oe!==null&&(be=Oe),x.push(">"),qt!=null){if(be!=null)throw Error(e(92));if(b(qt)&&1<qt.length)throw Error(e(93));be=""+qt}return typeof be=="string"&&be[0]===`
|
247
|
-
`&&x.push(`
|
248
|
-
`),be!==null&&x.push(S(""+be)),null;case"input":x.push(re("input")),Mt=qt=et=be=null;for(Oe in W)if(t.call(W,Oe)&&(Ht=W[Oe],Ht!=null))switch(Oe){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,"input"));case"defaultChecked":Mt=Ht;break;case"defaultValue":et=Ht;break;case"checked":qt=Ht;break;case"value":be=Ht;break;default:G(x,ee,Oe,Ht)}return qt!==null?G(x,ee,"checked",qt):Mt!==null&&G(x,ee,"checked",Mt),be!==null?G(x,ee,"value",be):et!==null&&G(x,ee,"value",et),x.push("/>"),null;case"menuitem":x.push(re("menuitem"));for(var Zr in W)if(t.call(W,Zr)&&(be=W[Zr],be!=null))switch(Zr){case"children":case"dangerouslySetInnerHTML":throw Error(e(400));default:G(x,ee,Zr,be)}return x.push(">"),null;case"title":x.push(re("title")),be=null;for(xr in W)if(t.call(W,xr)&&(Oe=W[xr],Oe!=null))switch(xr){case"children":be=Oe;break;case"dangerouslySetInnerHTML":throw Error(e(434));default:G(x,ee,xr,Oe)}return x.push(">"),be;case"listing":case"pre":x.push(re(j)),Oe=be=null;for(Mt in W)if(t.call(W,Mt)&&(et=W[Mt],et!=null))switch(Mt){case"children":be=et;break;case"dangerouslySetInnerHTML":Oe=et;break;default:G(x,ee,Mt,et)}if(x.push(">"),Oe!=null){if(be!=null)throw Error(e(60));if(typeof Oe!="object"||!("__html"in Oe))throw Error(e(61));W=Oe.__html,W!=null&&(typeof W=="string"&&0<W.length&&W[0]===`
|
249
|
-
`?x.push(`
|
250
|
-
`,W):x.push(""+W))}return typeof be=="string"&&be[0]===`
|
251
|
-
`&&x.push(`
|
252
|
-
`),be;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":x.push(re(j));for(var vn in W)if(t.call(W,vn)&&(be=W[vn],be!=null))switch(vn){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,j));default:G(x,ee,vn,be)}return x.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 J(x,W,j,ee);case"html":return Ce.insertionMode===0&&x.push("<!DOCTYPE html>"),J(x,W,j,ee);default:if(j.indexOf("-")===-1&&typeof W.is!="string")return J(x,W,j,ee);x.push(re(j)),Oe=be=null;for(Ht in W)if(t.call(W,Ht)&&(et=W[Ht],et!=null))switch(Ht){case"children":be=et;break;case"dangerouslySetInnerHTML":Oe=et;break;case"style":q(x,ee,et);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:u(Ht)&&typeof et!="function"&&typeof et!="symbol"&&x.push(" ",Ht,'="',S(et),'"')}return x.push(">"),Y(x,Oe,be),be}}function ne(x,j,W){if(x.push('<!--$?--><template id="'),W===null)throw Error(e(395));return x.push(W),x.push('"></template>')}function se(x,j,W,ee){switch(W.insertionMode){case 0:case 1:return x.push('<div hidden id="'),x.push(j.segmentPrefix),j=ee.toString(16),x.push(j),x.push('">');case 2:return x.push('<svg aria-hidden="true" style="display:none" id="'),x.push(j.segmentPrefix),j=ee.toString(16),x.push(j),x.push('">');case 3:return x.push('<math aria-hidden="true" style="display:none" id="'),x.push(j.segmentPrefix),j=ee.toString(16),x.push(j),x.push('">');case 4:return x.push('<table hidden id="'),x.push(j.segmentPrefix),j=ee.toString(16),x.push(j),x.push('">');case 5:return x.push('<table hidden><tbody id="'),x.push(j.segmentPrefix),j=ee.toString(16),x.push(j),x.push('">');case 6:return x.push('<table hidden><tr id="'),x.push(j.segmentPrefix),j=ee.toString(16),x.push(j),x.push('">');case 7:return x.push('<table hidden><colgroup id="'),x.push(j.segmentPrefix),j=ee.toString(16),x.push(j),x.push('">');default:throw Error(e(397))}}function ue(x,j){switch(j.insertionMode){case 0:case 1:return x.push("</div>");case 2:return x.push("</svg>");case 3:return x.push("</math>");case 4:return x.push("</table>");case 5:return x.push("</tbody></table>");case 6:return x.push("</tr></table>");case 7:return x.push("</colgroup></table>");default:throw Error(e(397))}}var ve=/[<\u2028\u2029]/g;function le(x){return JSON.stringify(x).replace(ve,function(j){switch(j){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 me(x,j){return j=j===void 0?"":j,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:j+"P:",segmentPrefix:j+"S:",boundaryPrefix:j+"B:",idPrefix:j,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:x}}function pe(x,j,W,ee){return W.generateStaticMarkup?(x.push(S(j)),!1):(j===""?x=ee:(ee&&x.push("<!-- -->"),x.push(S(j)),x=!0),x)}var _e=Object.assign,De=Symbol.for("react.element"),Fe=Symbol.for("react.portal"),Xe=Symbol.for("react.fragment"),we=Symbol.for("react.strict_mode"),it=Symbol.for("react.profiler"),ht=Symbol.for("react.provider"),Je=Symbol.for("react.context"),Ze=Symbol.for("react.forward_ref"),Le=Symbol.for("react.suspense"),ke=Symbol.for("react.suspense_list"),Te=Symbol.for("react.memo"),Be=Symbol.for("react.lazy"),Re=Symbol.for("react.scope"),Qe=Symbol.for("react.debug_trace_mode"),ct=Symbol.for("react.legacy_hidden"),kt=Symbol.for("react.default_value"),At=Symbol.iterator;function bt(x){if(x==null)return null;if(typeof x=="function")return x.displayName||x.name||null;if(typeof x=="string")return x;switch(x){case Xe:return"Fragment";case Fe:return"Portal";case it:return"Profiler";case we:return"StrictMode";case Le:return"Suspense";case ke:return"SuspenseList"}if(typeof x=="object")switch(x.$$typeof){case Je:return(x.displayName||"Context")+".Consumer";case ht:return(x._context.displayName||"Context")+".Provider";case Ze:var j=x.render;return x=x.displayName,x||(x=j.displayName||j.name||"",x=x!==""?"ForwardRef("+x+")":"ForwardRef"),x;case Te:return j=x.displayName||null,j!==null?j:bt(x.type)||"Memo";case Be:j=x._payload,x=x._init;try{return bt(x(j))}catch{}}return null}var Dt={};function Rt(x,j){if(x=x.contextTypes,!x)return Dt;var W={},ee;for(ee in x)W[ee]=j[ee];return W}var ut=null;function ot(x,j){if(x!==j){x.context._currentValue2=x.parentValue,x=x.parent;var W=j.parent;if(x===null){if(W!==null)throw Error(e(401))}else{if(W===null)throw Error(e(401));ot(x,W)}j.context._currentValue2=j.value}}function wt(x){x.context._currentValue2=x.parentValue,x=x.parent,x!==null&&wt(x)}function Ie(x){var j=x.parent;j!==null&&Ie(j),x.context._currentValue2=x.value}function pt(x,j){if(x.context._currentValue2=x.parentValue,x=x.parent,x===null)throw Error(e(402));x.depth===j.depth?ot(x,j):pt(x,j)}function _t(x,j){var W=j.parent;if(W===null)throw Error(e(402));x.depth===W.depth?ot(x,W):_t(x,W),j.context._currentValue2=j.value}function Ot(x){var j=ut;j!==x&&(j===null?Ie(x):x===null?wt(j):j.depth===x.depth?ot(j,x):j.depth>x.depth?pt(j,x):_t(j,x),ut=x)}var $t={isMounted:function(){return!1},enqueueSetState:function(x,j){x=x._reactInternals,x.queue!==null&&x.queue.push(j)},enqueueReplaceState:function(x,j){x=x._reactInternals,x.replace=!0,x.queue=[j]},enqueueForceUpdate:function(){}};function Ue(x,j,W,ee){var Ce=x.state!==void 0?x.state:null;x.updater=$t,x.props=W,x.state=Ce;var be={queue:[],replace:!1};x._reactInternals=be;var Oe=j.contextType;if(x.context=typeof Oe=="object"&&Oe!==null?Oe._currentValue2:ee,Oe=j.getDerivedStateFromProps,typeof Oe=="function"&&(Oe=Oe(W,Ce),Ce=Oe==null?Ce:_e({},Ce,Oe),x.state=Ce),typeof j.getDerivedStateFromProps!="function"&&typeof x.getSnapshotBeforeUpdate!="function"&&(typeof x.UNSAFE_componentWillMount=="function"||typeof x.componentWillMount=="function"))if(j=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),j!==x.state&&$t.enqueueReplaceState(x,x.state,null),be.queue!==null&&0<be.queue.length)if(j=be.queue,Oe=be.replace,be.queue=null,be.replace=!1,Oe&&j.length===1)x.state=j[0];else{for(be=Oe?j[0]:x.state,Ce=!0,Oe=Oe?1:0;Oe<j.length;Oe++){var et=j[Oe];et=typeof et=="function"?et.call(x,be,W,ee):et,et!=null&&(Ce?(Ce=!1,be=_e({},be,et)):_e(be,et))}x.state=be}else be.queue=null}var Tt={id:1,overflow:""};function zt(x,j,W){var ee=x.id;x=x.overflow;var Ce=32-br(ee)-1;ee&=~(1<<Ce),W+=1;var be=32-br(j)+Ce;if(30<be){var Oe=Ce-Ce%5;return be=(ee&(1<<Oe)-1).toString(32),ee>>=Oe,Ce-=Oe,{id:1<<32-br(j)+Ce|W<<Ce|ee,overflow:be+x}}return{id:1<<be|W<<Ce|ee,overflow:x}}var br=Math.clz32?Math.clz32:ie,Or=Math.log,It=Math.LN2;function ie(x){return x>>>=0,x===0?32:31-(Or(x)/It|0)|0}function X(x,j){return x===j&&(x!==0||1/x===1/j)||x!==x&&j!==j}var Ee=typeof Object.is=="function"?Object.is:X,je=null,St=null,ft=null,mt=null,Ut=!1,Lt=!1,Qt=0,xt=null,Et=0;function gt(){if(je===null)throw Error(e(321));return je}function Ft(){if(0<Et)throw Error(e(312));return{memoizedState:null,queue:null,next:null}}function ur(){return mt===null?ft===null?(Ut=!1,ft=mt=Ft()):(Ut=!0,mt=ft):mt.next===null?(Ut=!1,mt=mt.next=Ft()):(Ut=!0,mt=mt.next),mt}function qe(){St=je=null,Lt=!1,ft=null,Et=0,mt=xt=null}function vt(x,j){return typeof j=="function"?j(x):j}function at(x,j,W){if(je=gt(),mt=ur(),Ut){var ee=mt.queue;if(j=ee.dispatch,xt!==null&&(W=xt.get(ee),W!==void 0)){xt.delete(ee),ee=mt.memoizedState;do ee=x(ee,W.action),W=W.next;while(W!==null);return mt.memoizedState=ee,[ee,j]}return[mt.memoizedState,j]}return x=x===vt?typeof j=="function"?j():j:W!==void 0?W(j):j,mt.memoizedState=x,x=mt.queue={last:null,dispatch:null},x=x.dispatch=yt.bind(null,je,x),[mt.memoizedState,x]}function We(x,j){if(je=gt(),mt=ur(),j=j===void 0?null:j,mt!==null){var W=mt.memoizedState;if(W!==null&&j!==null){var ee=W[1];e:if(ee===null)ee=!1;else{for(var Ce=0;Ce<ee.length&&Ce<j.length;Ce++)if(!Ee(j[Ce],ee[Ce])){ee=!1;break e}ee=!0}if(ee)return W[0]}}return x=x(),mt.memoizedState=[x,j],x}function yt(x,j,W){if(25<=Et)throw Error(e(301));if(x===je)if(Lt=!0,x={action:W,next:null},xt===null&&(xt=new Map),W=xt.get(j),W===void 0)xt.set(j,x);else{for(j=W;j.next!==null;)j=j.next;j.next=x}}function K(){throw Error(e(394))}function Ne(){}var lt={readContext:function(x){return x._currentValue2},useContext:function(x){return gt(),x._currentValue2},useMemo:We,useReducer:at,useRef:function(x){je=gt(),mt=ur();var j=mt.memoizedState;return j===null?(x={current:x},mt.memoizedState=x):j},useState:function(x){return at(vt,x)},useInsertionEffect:Ne,useLayoutEffect:function(){},useCallback:function(x,j){return We(function(){return x},j)},useImperativeHandle:Ne,useEffect:Ne,useDebugValue:Ne,useDeferredValue:function(x){return gt(),x},useTransition:function(){return gt(),[!1,K]},useId:function(){var x=St.treeContext,j=x.overflow;x=x.id,x=(x&~(1<<32-br(x)-1)).toString(32)+j;var W=Bt;if(W===null)throw Error(e(404));return j=Qt++,x=":"+W.idPrefix+"R"+x,0<j&&(x+="H"+j.toString(32)),x+":"},useMutableSource:function(x,j){return gt(),j(x._source)},useSyncExternalStore:function(x,j,W){if(W===void 0)throw Error(e(407));return W()}},Bt=null,or=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function er(x){return console.error(x),null}function jt(){}function tr(x,j,W,ee,Ce,be,Oe,et,Mt){var Ht=[],qt=new Set;return j={destination:null,responseState:j,progressiveChunkSize:ee===void 0?12800:ee,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:qt,pingedTasks:Ht,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:Ce===void 0?er:Ce,onAllReady:jt,onShellReady:Oe===void 0?jt:Oe,onShellError:jt,onFatalError:jt},W=fr(j,0,null,W,!1,!1),W.parentFlushed=!0,x=Mr(j,x,null,W,qt,Dt,null,Tt),Ht.push(x),j}function Mr(x,j,W,ee,Ce,be,Oe,et){x.allPendingTasks++,W===null?x.pendingRootTasks++:W.pendingTasks++;var Mt={node:j,ping:function(){var Ht=x.pingedTasks;Ht.push(Mt),Ht.length===1&&Cn(x)},blockedBoundary:W,blockedSegment:ee,abortSet:Ce,legacyContext:be,context:Oe,treeContext:et};return Ce.add(Mt),Mt}function fr(x,j,W,ee,Ce,be){return{status:0,id:-1,index:j,parentFlushed:!1,chunks:[],children:[],formatContext:ee,boundary:W,lastPushedText:Ce,textEmbedded:be}}function pr(x,j){if(x=x.onError(j),x!=null&&typeof x!="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 x+'" instead');return x}function $r(x,j){var W=x.onShellError;W(j),W=x.onFatalError,W(j),x.destination!==null?(x.status=2,x.destination.destroy(j)):(x.status=1,x.fatalError=j)}function vr(x,j,W,ee,Ce){for(je={},St=j,Qt=0,x=W(ee,Ce);Lt;)Lt=!1,Qt=0,Et+=1,mt=null,x=W(ee,Ce);return qe(),x}function Gn(x,j,W,ee){var Ce=W.render(),be=ee.childContextTypes;if(be!=null){var Oe=j.legacyContext;if(typeof W.getChildContext!="function")ee=Oe;else{W=W.getChildContext();for(var et in W)if(!(et in be))throw Error(e(108,bt(ee)||"Unknown",et));ee=_e({},Oe,W)}j.legacyContext=ee,Kr(x,j,Ce),j.legacyContext=Oe}else Kr(x,j,Ce)}function Sn(x,j){if(x&&x.defaultProps){j=_e({},j),x=x.defaultProps;for(var W in x)j[W]===void 0&&(j[W]=x[W]);return j}return j}function Dn(x,j,W,ee,Ce){if(typeof W=="function")if(W.prototype&&W.prototype.isReactComponent){Ce=Rt(W,j.legacyContext);var be=W.contextType;be=new W(ee,typeof be=="object"&&be!==null?be._currentValue2:Ce),Ue(be,W,ee,Ce),Gn(x,j,be,W)}else{be=Rt(W,j.legacyContext),Ce=vr(x,j,W,ee,be);var Oe=Qt!==0;if(typeof Ce=="object"&&Ce!==null&&typeof Ce.render=="function"&&Ce.$$typeof===void 0)Ue(Ce,W,ee,be),Gn(x,j,Ce,W);else if(Oe){ee=j.treeContext,j.treeContext=zt(ee,1,0);try{Kr(x,j,Ce)}finally{j.treeContext=ee}}else Kr(x,j,Ce)}else if(typeof W=="string"){switch(Ce=j.blockedSegment,be=Q(Ce.chunks,W,ee,x.responseState,Ce.formatContext),Ce.lastPushedText=!1,Oe=Ce.formatContext,Ce.formatContext=O(Oe,W,ee),Tn(x,j,be),Ce.formatContext=Oe,W){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:Ce.chunks.push("</",W,">")}Ce.lastPushedText=!1}else{switch(W){case ct:case Qe:case we:case it:case Xe:Kr(x,j,ee.children);return;case ke:Kr(x,j,ee.children);return;case Re:throw Error(e(343));case Le:e:{W=j.blockedBoundary,Ce=j.blockedSegment,be=ee.fallback,ee=ee.children,Oe=new Set;var et={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Oe,errorDigest:null},Mt=fr(x,Ce.chunks.length,et,Ce.formatContext,!1,!1);Ce.children.push(Mt),Ce.lastPushedText=!1;var Ht=fr(x,0,null,Ce.formatContext,!1,!1);Ht.parentFlushed=!0,j.blockedBoundary=et,j.blockedSegment=Ht;try{if(Tn(x,j,ee),x.responseState.generateStaticMarkup||Ht.lastPushedText&&Ht.textEmbedded&&Ht.chunks.push("<!-- -->"),Ht.status=1,nn(et,Ht),et.pendingTasks===0)break e}catch(qt){Ht.status=4,et.forceClientRender=!0,et.errorDigest=pr(x,qt)}finally{j.blockedBoundary=W,j.blockedSegment=Ce}j=Mr(x,be,W,Mt,Oe,j.legacyContext,j.context,j.treeContext),x.pingedTasks.push(j)}return}if(typeof W=="object"&&W!==null)switch(W.$$typeof){case Ze:if(ee=vr(x,j,W.render,ee,Ce),Qt!==0){W=j.treeContext,j.treeContext=zt(W,1,0);try{Kr(x,j,ee)}finally{j.treeContext=W}}else Kr(x,j,ee);return;case Te:W=W.type,ee=Sn(W,ee),Dn(x,j,W,ee,Ce);return;case ht:if(Ce=ee.children,W=W._context,ee=ee.value,be=W._currentValue2,W._currentValue2=ee,Oe=ut,ut=ee={parent:Oe,depth:Oe===null?0:Oe.depth+1,context:W,parentValue:be,value:ee},j.context=ee,Kr(x,j,Ce),x=ut,x===null)throw Error(e(403));ee=x.parentValue,x.context._currentValue2=ee===kt?x.context._defaultValue:ee,x=ut=x.parent,j.context=x;return;case Je:ee=ee.children,ee=ee(W._currentValue2),Kr(x,j,ee);return;case Be:Ce=W._init,W=Ce(W._payload),ee=Sn(W,ee),Dn(x,j,W,ee,void 0);return}throw Error(e(130,W==null?W:typeof W,""))}}function Kr(x,j,W){if(j.node=W,typeof W=="object"&&W!==null){switch(W.$$typeof){case De:Dn(x,j,W.type,W.props,W.ref);return;case Fe:throw Error(e(257));case Be:var ee=W._init;W=ee(W._payload),Kr(x,j,W);return}if(b(W)){Zn(x,j,W);return}if(W===null||typeof W!="object"?ee=null:(ee=At&&W[At]||W["@@iterator"],ee=typeof ee=="function"?ee:null),ee&&(ee=ee.call(W))){if(W=ee.next(),!W.done){var Ce=[];do Ce.push(W.value),W=ee.next();while(!W.done);Zn(x,j,Ce)}return}throw x=Object.prototype.toString.call(W),Error(e(31,x==="[object Object]"?"object with keys {"+Object.keys(W).join(", ")+"}":x))}typeof W=="string"?(ee=j.blockedSegment,ee.lastPushedText=pe(j.blockedSegment.chunks,W,x.responseState,ee.lastPushedText)):typeof W=="number"&&(ee=j.blockedSegment,ee.lastPushedText=pe(j.blockedSegment.chunks,""+W,x.responseState,ee.lastPushedText))}function Zn(x,j,W){for(var ee=W.length,Ce=0;Ce<ee;Ce++){var be=j.treeContext;j.treeContext=zt(be,ee,Ce);try{Tn(x,j,W[Ce])}finally{j.treeContext=be}}}function Tn(x,j,W){var ee=j.blockedSegment.formatContext,Ce=j.legacyContext,be=j.context;try{return Kr(x,j,W)}catch(Mt){if(qe(),typeof Mt=="object"&&Mt!==null&&typeof Mt.then=="function"){W=Mt;var Oe=j.blockedSegment,et=fr(x,Oe.chunks.length,null,Oe.formatContext,Oe.lastPushedText,!0);Oe.children.push(et),Oe.lastPushedText=!1,x=Mr(x,j.node,j.blockedBoundary,et,j.abortSet,j.legacyContext,j.context,j.treeContext).ping,W.then(x,x),j.blockedSegment.formatContext=ee,j.legacyContext=Ce,j.context=be,Ot(be)}else throw j.blockedSegment.formatContext=ee,j.legacyContext=Ce,j.context=be,Ot(be),Mt}}function Yn(x){var j=x.blockedBoundary;x=x.blockedSegment,x.status=3,On(this,j,x)}function Kn(x,j,W){var ee=x.blockedBoundary;x.blockedSegment.status=3,ee===null?(j.allPendingTasks--,j.status!==2&&(j.status=2,j.destination!==null&&j.destination.push(null))):(ee.pendingTasks--,ee.forceClientRender||(ee.forceClientRender=!0,x=W===void 0?Error(e(432)):W,ee.errorDigest=j.onError(x),ee.parentFlushed&&j.clientRenderedBoundaries.push(ee)),ee.fallbackAbortableTasks.forEach(function(Ce){return Kn(Ce,j,W)}),ee.fallbackAbortableTasks.clear(),j.allPendingTasks--,j.allPendingTasks===0&&(ee=j.onAllReady,ee()))}function nn(x,j){if(j.chunks.length===0&&j.children.length===1&&j.children[0].boundary===null){var W=j.children[0];W.id=j.id,W.parentFlushed=!0,W.status===1&&nn(x,W)}else x.completedSegments.push(j)}function On(x,j,W){if(j===null){if(W.parentFlushed){if(x.completedRootSegment!==null)throw Error(e(389));x.completedRootSegment=W}x.pendingRootTasks--,x.pendingRootTasks===0&&(x.onShellError=jt,j=x.onShellReady,j())}else j.pendingTasks--,j.forceClientRender||(j.pendingTasks===0?(W.parentFlushed&&W.status===1&&nn(j,W),j.parentFlushed&&x.completedBoundaries.push(j),j.fallbackAbortableTasks.forEach(Yn,x),j.fallbackAbortableTasks.clear()):W.parentFlushed&&W.status===1&&(nn(j,W),j.completedSegments.length===1&&j.parentFlushed&&x.partialBoundaries.push(j)));x.allPendingTasks--,x.allPendingTasks===0&&(x=x.onAllReady,x())}function Cn(x){if(x.status!==2){var j=ut,W=or.current;or.current=lt;var ee=Bt;Bt=x.responseState;try{var Ce=x.pingedTasks,be;for(be=0;be<Ce.length;be++){var Oe=Ce[be],et=x,Mt=Oe.blockedSegment;if(Mt.status===0){Ot(Oe.context);try{Kr(et,Oe,Oe.node),et.responseState.generateStaticMarkup||Mt.lastPushedText&&Mt.textEmbedded&&Mt.chunks.push("<!-- -->"),Oe.abortSet.delete(Oe),Mt.status=1,On(et,Oe.blockedBoundary,Mt)}catch(yn){if(qe(),typeof yn=="object"&&yn!==null&&typeof yn.then=="function"){var Ht=Oe.ping;yn.then(Ht,Ht)}else{Oe.abortSet.delete(Oe),Mt.status=4;var qt=Oe.blockedBoundary,xr=yn,Zr=pr(et,xr);if(qt===null?$r(et,xr):(qt.pendingTasks--,qt.forceClientRender||(qt.forceClientRender=!0,qt.errorDigest=Zr,qt.parentFlushed&&et.clientRenderedBoundaries.push(qt))),et.allPendingTasks--,et.allPendingTasks===0){var vn=et.onAllReady;vn()}}}finally{}}}Ce.splice(0,be),x.destination!==null&&cn(x,x.destination)}catch(yn){pr(x,yn),$r(x,yn)}finally{Bt=ee,or.current=W,W===lt&&Ot(j)}}}function di(x,j,W){switch(W.parentFlushed=!0,W.status){case 0:var ee=W.id=x.nextSegmentId++;return W.lastPushedText=!1,W.textEmbedded=!1,x=x.responseState,j.push('<template id="'),j.push(x.placeholderPrefix),x=ee.toString(16),j.push(x),j.push('"></template>');case 1:W.status=2;var Ce=!0;ee=W.chunks;var be=0;W=W.children;for(var Oe=0;Oe<W.length;Oe++){for(Ce=W[Oe];be<Ce.index;be++)j.push(ee[be]);Ce=_i(x,j,Ce)}for(;be<ee.length-1;be++)j.push(ee[be]);return be<ee.length&&(Ce=j.push(ee[be])),Ce;default:throw Error(e(390))}}function _i(x,j,W){var ee=W.boundary;if(ee===null)return di(x,j,W);if(ee.parentFlushed=!0,ee.forceClientRender)return x.responseState.generateStaticMarkup||(ee=ee.errorDigest,j.push("<!--$!-->"),j.push("<template"),ee&&(j.push(' data-dgst="'),ee=S(ee),j.push(ee),j.push('"')),j.push("></template>")),di(x,j,W),x=x.responseState.generateStaticMarkup?!0:j.push("<!--/$-->"),x;if(0<ee.pendingTasks){ee.rootSegmentID=x.nextSegmentId++,0<ee.completedSegments.length&&x.partialBoundaries.push(ee);var Ce=x.responseState,be=Ce.nextSuspenseID++;return Ce=Ce.boundaryPrefix+be.toString(16),ee=ee.id=Ce,ne(j,x.responseState,ee),di(x,j,W),j.push("<!--/$-->")}if(ee.byteSize>x.progressiveChunkSize)return ee.rootSegmentID=x.nextSegmentId++,x.completedBoundaries.push(ee),ne(j,x.responseState,ee.id),di(x,j,W),j.push("<!--/$-->");if(x.responseState.generateStaticMarkup||j.push("<!--$-->"),W=ee.completedSegments,W.length!==1)throw Error(e(391));return _i(x,j,W[0]),x=x.responseState.generateStaticMarkup?!0:j.push("<!--/$-->"),x}function xi(x,j,W){return se(j,x.responseState,W.formatContext,W.id),_i(x,j,W),ue(j,W.formatContext)}function En(x,j,W){for(var ee=W.completedSegments,Ce=0;Ce<ee.length;Ce++)wn(x,j,W,ee[Ce]);if(ee.length=0,x=x.responseState,ee=W.id,W=W.rootSegmentID,j.push(x.startInlineScript),x.sentCompleteBoundaryFunction?j.push('$RC("'):(x.sentCompleteBoundaryFunction=!0,j.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 W=W.toString(16),j.push(ee),j.push('","'),j.push(x.segmentPrefix),j.push(W),j.push('")<\/script>')}function wn(x,j,W,ee){if(ee.status===2)return!0;var Ce=ee.id;if(Ce===-1){if((ee.id=W.rootSegmentID)===-1)throw Error(e(392));return xi(x,j,ee)}return xi(x,j,ee),x=x.responseState,j.push(x.startInlineScript),x.sentCompleteSegmentFunction?j.push('$RS("'):(x.sentCompleteSegmentFunction=!0,j.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("')),j.push(x.segmentPrefix),Ce=Ce.toString(16),j.push(Ce),j.push('","'),j.push(x.placeholderPrefix),j.push(Ce),j.push('")<\/script>')}function cn(x,j){try{var W=x.completedRootSegment;if(W!==null&&x.pendingRootTasks===0){_i(x,j,W),x.completedRootSegment=null;var ee=x.responseState.bootstrapChunks;for(W=0;W<ee.length-1;W++)j.push(ee[W]);W<ee.length&&j.push(ee[W])}var Ce=x.clientRenderedBoundaries,be;for(be=0;be<Ce.length;be++){var Oe=Ce[be];ee=j;var et=x.responseState,Mt=Oe.id,Ht=Oe.errorDigest,qt=Oe.errorMessage,xr=Oe.errorComponentStack;if(ee.push(et.startInlineScript),et.sentClientRenderFunction?ee.push('$RX("'):(et.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("')),Mt===null)throw Error(e(395));if(ee.push(Mt),ee.push('"'),Ht||qt||xr){ee.push(",");var Zr=le(Ht||"");ee.push(Zr)}if(qt||xr){ee.push(",");var vn=le(qt||"");ee.push(vn)}if(xr){ee.push(",");var yn=le(xr);ee.push(yn)}if(!ee.push(")<\/script>")){x.destination=null,be++,Ce.splice(0,be);return}}Ce.splice(0,be);var ai=x.completedBoundaries;for(be=0;be<ai.length;be++)if(!En(x,j,ai[be])){x.destination=null,be++,ai.splice(0,be);return}ai.splice(0,be);var jn=x.partialBoundaries;for(be=0;be<jn.length;be++){var Si=jn[be];e:{Ce=x,Oe=j;var Xr=Si.completedSegments;for(et=0;et<Xr.length;et++)if(!wn(Ce,Oe,Si,Xr[et])){et++,Xr.splice(0,et);var hi=!1;break e}Xr.splice(0,et),hi=!0}if(!hi){x.destination=null,be++,jn.splice(0,be);return}}jn.splice(0,be);var Fn=x.completedBoundaries;for(be=0;be<Fn.length;be++)if(!En(x,j,Fn[be])){x.destination=null,be++,Fn.splice(0,be);return}Fn.splice(0,be)}finally{x.allPendingTasks===0&&x.pingedTasks.length===0&&x.clientRenderedBoundaries.length===0&&x.completedBoundaries.length===0&&j.push(null)}}function Xn(x,j){try{var W=x.abortableTasks;W.forEach(function(ee){return Kn(ee,x,j)}),W.clear(),x.destination!==null&&cn(x,x.destination)}catch(ee){pr(x,ee),$r(x,ee)}}function on(){}function dn(x,j,W,ee){var Ce=!1,be=null,Oe="",et={push:function(Ht){return Ht!==null&&(Oe+=Ht),!0},destroy:function(Ht){Ce=!0,be=Ht}},Mt=!1;if(x=tr(x,me(W,j?j.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,on,void 0,function(){Mt=!0}),Cn(x),Xn(x,ee),x.status===1)x.status=2,et.destroy(x.fatalError);else if(x.status!==2&&x.destination===null){x.destination=et;try{cn(x,et)}catch(Ht){pr(x,Ht),$r(x,Ht)}}if(Ce)throw be;if(!Mt)throw Error(e(426));return Oe}return zc.renderToNodeStream=function(){throw Error(e(207))},zc.renderToStaticMarkup=function(x,j){return dn(x,j,!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')},zc.renderToStaticNodeStream=function(){throw Error(e(208))},zc.renderToString=function(x,j){return dn(x,j,!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')},zc.version="18.2.0",zc}var Fd={};/**
|
253
|
-
* @license React
|
254
|
-
* react-dom-server.browser.production.min.js
|
255
|
-
*
|
256
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
257
|
-
*
|
258
|
-
* This source code is licensed under the MIT license found in the
|
259
|
-
* LICENSE file in the root directory of this source tree.
|
260
|
-
*/var sy;function QD(){if(sy)return Fd;sy=1;var r=R;function e(w){for(var N="https://reactjs.org/docs/error-decoder.html?invariant="+w,z=1;z<arguments.length;z++)N+="&args[]="+encodeURIComponent(arguments[z]);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=null,n=0;function i(w,N){if(N.length!==0)if(512<N.length)0<n&&(w.enqueue(new Uint8Array(t.buffer,0,n)),t=new Uint8Array(512),n=0),w.enqueue(N);else{var z=t.length-n;z<N.length&&(z===0?w.enqueue(t):(t.set(N.subarray(0,z),n),w.enqueue(t),N=N.subarray(z)),t=new Uint8Array(512),n=0),t.set(N,n),n+=N.length}}function l(w,N){return i(w,N),!0}function u(w){t&&0<n&&(w.enqueue(new Uint8Array(t.buffer,0,n)),t=null,n=0)}var h=new TextEncoder;function g(w){return h.encode(w)}function m(w){return h.encode(w)}function M(w,N){typeof w.error=="function"?w.error(N):w.close()}var T=Object.prototype.hasOwnProperty,C=/^[: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(w){return T.call(S,w)?!0:T.call(_,w)?!1:C.test(w)?S[w]=!0:(_[w]=!0,!1)}function A(w,N,z,te,Ae,Se,Ve){this.acceptsBooleans=N===2||N===3||N===4,this.attributeName=te,this.attributeNamespace=Ae,this.mustUseProperty=z,this.propertyName=w,this.type=N,this.sanitizeURL=Se,this.removeEmptyString=Ve}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(w){b[w]=new A(w,0,!1,w,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(w){var N=w[0];b[N]=new A(N,1,!1,w[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(w){b[w]=new A(w,2,!1,w.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(w){b[w]=new A(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){b[w]=new A(w,3,!1,w.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(w){b[w]=new A(w,3,!0,w,null,!1,!1)}),["capture","download"].forEach(function(w){b[w]=new A(w,4,!1,w,null,!1,!1)}),["cols","rows","size","span"].forEach(function(w){b[w]=new A(w,6,!1,w,null,!1,!1)}),["rowSpan","start"].forEach(function(w){b[w]=new A(w,5,!1,w.toLowerCase(),null,!1,!1)});var k=/[\-:]([a-z])/g;function O(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(k,O);b[N]=new A(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(k,O);b[N]=new A(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(k,O);b[N]=new A(N,1,!1,w,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(w){b[w]=new A(w,1,!1,w.toLowerCase(),null,!1,!1)}),b.xlinkHref=new A("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(w){b[w]=new A(w,1,!1,w.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(w){q.forEach(function(N){N=N+w.charAt(0).toUpperCase()+w.substring(1),H[N]=H[w]})});var G=/["'&<>]/;function Y(w){if(typeof w=="boolean"||typeof w=="number")return""+w;w=""+w;var N=G.exec(w);if(N){var z="",te,Ae=0;for(te=N.index;te<w.length;te++){switch(w.charCodeAt(te)){case 34:N=""";break;case 38:N="&";break;case 39:N="'";break;case 60:N="<";break;case 62:N=">";break;default:continue}Ae!==te&&(z+=w.substring(Ae,te)),Ae=te+1,z+=N}w=Ae!==te?z+w.substring(Ae,te):z}return w}var he=/([A-Z])/g,J=/^ms-/,fe=Array.isArray,P=m("<script>"),re=m("<\/script>"),Q=m('<script src="'),ne=m('<script type="module" src="'),se=m('" async=""><\/script>'),ue=/(<\/|<)(s)(cript)/gi;function ve(w,N,z,te){return""+N+(z==="s"?"\\u0073":"\\u0053")+te}function le(w,N,z,te,Ae){w=w===void 0?"":w,N=N===void 0?P:m('<script nonce="'+Y(N)+'">');var Se=[];if(z!==void 0&&Se.push(N,g((""+z).replace(ue,ve)),re),te!==void 0)for(z=0;z<te.length;z++)Se.push(Q,g(Y(te[z])),se);if(Ae!==void 0)for(te=0;te<Ae.length;te++)Se.push(ne,g(Y(Ae[te])),se);return{bootstrapChunks:Se,startInlineScript:N,placeholderPrefix:m(w+"P:"),segmentPrefix:m(w+"S:"),boundaryPrefix:w+"B:",idPrefix:w,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function me(w,N){return{insertionMode:w,selectedValue:N}}function pe(w){return me(w==="http://www.w3.org/2000/svg"?2:w==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function _e(w,N,z){switch(N){case"select":return me(1,z.value!=null?z.value:z.defaultValue);case"svg":return me(2,null);case"math":return me(3,null);case"foreignObject":return me(1,null);case"table":return me(4,null);case"thead":case"tbody":case"tfoot":return me(5,null);case"colgroup":return me(7,null);case"tr":return me(6,null)}return 4<=w.insertionMode||w.insertionMode===0?me(1,null):w}var De=m("<!-- -->");function Fe(w,N,z,te){return N===""?te:(te&&w.push(De),w.push(g(Y(N))),!0)}var Xe=new Map,we=m(' style="'),it=m(":"),ht=m(";");function Je(w,N,z){if(typeof z!="object")throw Error(e(62));N=!0;for(var te in z)if(T.call(z,te)){var Ae=z[te];if(Ae!=null&&typeof Ae!="boolean"&&Ae!==""){if(te.indexOf("--")===0){var Se=g(Y(te));Ae=g(Y((""+Ae).trim()))}else{Se=te;var Ve=Xe.get(Se);Ve!==void 0||(Ve=m(Y(Se.replace(he,"-$1").toLowerCase().replace(J,"-ms-"))),Xe.set(Se,Ve)),Se=Ve,Ae=typeof Ae=="number"?Ae===0||T.call(H,te)?g(""+Ae):g(Ae+"px"):g(Y((""+Ae).trim()))}N?(N=!1,w.push(we,Se,it,Ae)):w.push(ht,Se,it,Ae)}}N||w.push(ke)}var Ze=m(" "),Le=m('="'),ke=m('"'),Te=m('=""');function Be(w,N,z,te){switch(z){case"style":Je(w,N,te);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<z.length)||z[0]!=="o"&&z[0]!=="O"||z[1]!=="n"&&z[1]!=="N"){if(N=b.hasOwnProperty(z)?b[z]:null,N!==null){switch(typeof te){case"function":case"symbol":return;case"boolean":if(!N.acceptsBooleans)return}switch(z=g(N.attributeName),N.type){case 3:te&&w.push(Ze,z,Te);break;case 4:te===!0?w.push(Ze,z,Te):te!==!1&&w.push(Ze,z,Le,g(Y(te)),ke);break;case 5:isNaN(te)||w.push(Ze,z,Le,g(Y(te)),ke);break;case 6:!isNaN(te)&&1<=te&&w.push(Ze,z,Le,g(Y(te)),ke);break;default:N.sanitizeURL&&(te=""+te),w.push(Ze,z,Le,g(Y(te)),ke)}}else if(D(z)){switch(typeof te){case"function":case"symbol":return;case"boolean":if(N=z.toLowerCase().slice(0,5),N!=="data-"&&N!=="aria-")return}w.push(Ze,g(z),Le,g(Y(te)),ke)}}}var Re=m(">"),Qe=m("/>");function ct(w,N,z){if(N!=null){if(z!=null)throw Error(e(60));if(typeof N!="object"||!("__html"in N))throw Error(e(61));N=N.__html,N!=null&&w.push(g(""+N))}}function kt(w){var N="";return r.Children.forEach(w,function(z){z!=null&&(N+=z)}),N}var At=m(' selected=""');function bt(w,N,z,te){w.push(ot(z));var Ae=z=null,Se;for(Se in N)if(T.call(N,Se)){var Ve=N[Se];if(Ve!=null)switch(Se){case"children":z=Ve;break;case"dangerouslySetInnerHTML":Ae=Ve;break;default:Be(w,te,Se,Ve)}}return w.push(Re),ct(w,Ae,z),typeof z=="string"?(w.push(g(Y(z))),null):z}var Dt=m(`
|
261
|
-
`),Rt=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ut=new Map;function ot(w){var N=ut.get(w);if(N===void 0){if(!Rt.test(w))throw Error(e(65,w));N=m("<"+w),ut.set(w,N)}return N}var wt=m("<!DOCTYPE html>");function Ie(w,N,z,te,Ae){switch(N){case"select":w.push(ot("select"));var Se=null,Ve=null;for(sr in z)if(T.call(z,sr)){var dt=z[sr];if(dt!=null)switch(sr){case"children":Se=dt;break;case"dangerouslySetInnerHTML":Ve=dt;break;case"defaultValue":case"value":break;default:Be(w,te,sr,dt)}}return w.push(Re),ct(w,Ve,Se),Se;case"option":Ve=Ae.selectedValue,w.push(ot("option"));var Wt=dt=null,hr=null,sr=null;for(Se in z)if(T.call(z,Se)){var Gr=z[Se];if(Gr!=null)switch(Se){case"children":dt=Gr;break;case"selected":hr=Gr;break;case"dangerouslySetInnerHTML":sr=Gr;break;case"value":Wt=Gr;default:Be(w,te,Se,Gr)}}if(Ve!=null)if(z=Wt!==null?""+Wt:kt(dt),fe(Ve)){for(te=0;te<Ve.length;te++)if(""+Ve[te]===z){w.push(At);break}}else""+Ve===z&&w.push(At);else hr&&w.push(At);return w.push(Re),ct(w,sr,dt),dt;case"textarea":w.push(ot("textarea")),sr=Ve=Se=null;for(dt in z)if(T.call(z,dt)&&(Wt=z[dt],Wt!=null))switch(dt){case"children":sr=Wt;break;case"value":Se=Wt;break;case"defaultValue":Ve=Wt;break;case"dangerouslySetInnerHTML":throw Error(e(91));default:Be(w,te,dt,Wt)}if(Se===null&&Ve!==null&&(Se=Ve),w.push(Re),sr!=null){if(Se!=null)throw Error(e(92));if(fe(sr)&&1<sr.length)throw Error(e(93));Se=""+sr}return typeof Se=="string"&&Se[0]===`
|
262
|
-
`&&w.push(Dt),Se!==null&&w.push(g(Y(""+Se))),null;case"input":w.push(ot("input")),Wt=sr=dt=Se=null;for(Ve in z)if(T.call(z,Ve)&&(hr=z[Ve],hr!=null))switch(Ve){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,"input"));case"defaultChecked":Wt=hr;break;case"defaultValue":dt=hr;break;case"checked":sr=hr;break;case"value":Se=hr;break;default:Be(w,te,Ve,hr)}return sr!==null?Be(w,te,"checked",sr):Wt!==null&&Be(w,te,"checked",Wt),Se!==null?Be(w,te,"value",Se):dt!==null&&Be(w,te,"value",dt),w.push(Qe),null;case"menuitem":w.push(ot("menuitem"));for(var ti in z)if(T.call(z,ti)&&(Se=z[ti],Se!=null))switch(ti){case"children":case"dangerouslySetInnerHTML":throw Error(e(400));default:Be(w,te,ti,Se)}return w.push(Re),null;case"title":w.push(ot("title")),Se=null;for(Gr in z)if(T.call(z,Gr)&&(Ve=z[Gr],Ve!=null))switch(Gr){case"children":Se=Ve;break;case"dangerouslySetInnerHTML":throw Error(e(434));default:Be(w,te,Gr,Ve)}return w.push(Re),Se;case"listing":case"pre":w.push(ot(N)),Ve=Se=null;for(Wt in z)if(T.call(z,Wt)&&(dt=z[Wt],dt!=null))switch(Wt){case"children":Se=dt;break;case"dangerouslySetInnerHTML":Ve=dt;break;default:Be(w,te,Wt,dt)}if(w.push(Re),Ve!=null){if(Se!=null)throw Error(e(60));if(typeof Ve!="object"||!("__html"in Ve))throw Error(e(61));z=Ve.__html,z!=null&&(typeof z=="string"&&0<z.length&&z[0]===`
|
263
|
-
`?w.push(Dt,g(z)):w.push(g(""+z)))}return typeof Se=="string"&&Se[0]===`
|
264
|
-
`&&w.push(Dt),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(ot(N));for(var wi in z)if(T.call(z,wi)&&(Se=z[wi],Se!=null))switch(wi){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,N));default:Be(w,te,wi,Se)}return w.push(Qe),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 bt(w,z,N,te);case"html":return Ae.insertionMode===0&&w.push(wt),bt(w,z,N,te);default:if(N.indexOf("-")===-1&&typeof z.is!="string")return bt(w,z,N,te);w.push(ot(N)),Ve=Se=null;for(hr in z)if(T.call(z,hr)&&(dt=z[hr],dt!=null))switch(hr){case"children":Se=dt;break;case"dangerouslySetInnerHTML":Ve=dt;break;case"style":Je(w,te,dt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:D(hr)&&typeof dt!="function"&&typeof dt!="symbol"&&w.push(Ze,g(hr),Le,g(Y(dt)),ke)}return w.push(Re),ct(w,Ve,Se),Se}}var pt=m("</"),_t=m(">"),Ot=m('<template id="'),$t=m('"></template>'),Ue=m("<!--$-->"),Tt=m('<!--$?--><template id="'),zt=m('"></template>'),br=m("<!--$!-->"),Or=m("<!--/$-->"),It=m("<template"),ie=m('"'),X=m(' data-dgst="');m(' data-msg="'),m(' data-stck="');var Ee=m("></template>");function je(w,N,z){if(i(w,Tt),z===null)throw Error(e(395));return i(w,z),l(w,zt)}var St=m('<div hidden id="'),ft=m('">'),mt=m("</div>"),Ut=m('<svg aria-hidden="true" style="display:none" id="'),Lt=m('">'),Qt=m("</svg>"),xt=m('<math aria-hidden="true" style="display:none" id="'),Et=m('">'),gt=m("</math>"),Ft=m('<table hidden id="'),ur=m('">'),qe=m("</table>"),vt=m('<table hidden><tbody id="'),at=m('">'),We=m("</tbody></table>"),yt=m('<table hidden><tr id="'),K=m('">'),Ne=m("</tr></table>"),lt=m('<table hidden><colgroup id="'),Bt=m('">'),or=m("</colgroup></table>");function er(w,N,z,te){switch(z.insertionMode){case 0:case 1:return i(w,St),i(w,N.segmentPrefix),i(w,g(te.toString(16))),l(w,ft);case 2:return i(w,Ut),i(w,N.segmentPrefix),i(w,g(te.toString(16))),l(w,Lt);case 3:return i(w,xt),i(w,N.segmentPrefix),i(w,g(te.toString(16))),l(w,Et);case 4:return i(w,Ft),i(w,N.segmentPrefix),i(w,g(te.toString(16))),l(w,ur);case 5:return i(w,vt),i(w,N.segmentPrefix),i(w,g(te.toString(16))),l(w,at);case 6:return i(w,yt),i(w,N.segmentPrefix),i(w,g(te.toString(16))),l(w,K);case 7:return i(w,lt),i(w,N.segmentPrefix),i(w,g(te.toString(16))),l(w,Bt);default:throw Error(e(397))}}function jt(w,N){switch(N.insertionMode){case 0:case 1:return l(w,mt);case 2:return l(w,Qt);case 3:return l(w,gt);case 4:return l(w,qe);case 5:return l(w,We);case 6:return l(w,Ne);case 7:return l(w,or);default:throw Error(e(397))}}var tr=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("'),Mr=m('$RS("'),fr=m('","'),pr=m('")<\/script>'),$r=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("'),vr=m('$RC("'),Gn=m('","'),Sn=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("'),Kr=m('$RX("'),Zn=m('"'),Tn=m(")<\/script>"),Yn=m(","),Kn=/[<\u2028\u2029]/g;function nn(w){return JSON.stringify(w).replace(Kn,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")}})}var On=Object.assign,Cn=Symbol.for("react.element"),di=Symbol.for("react.portal"),_i=Symbol.for("react.fragment"),xi=Symbol.for("react.strict_mode"),En=Symbol.for("react.profiler"),wn=Symbol.for("react.provider"),cn=Symbol.for("react.context"),Xn=Symbol.for("react.forward_ref"),on=Symbol.for("react.suspense"),dn=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),W=Symbol.for("react.scope"),ee=Symbol.for("react.debug_trace_mode"),Ce=Symbol.for("react.legacy_hidden"),be=Symbol.for("react.default_value"),Oe=Symbol.iterator;function et(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 _i:return"Fragment";case di:return"Portal";case En:return"Profiler";case xi:return"StrictMode";case on:return"Suspense";case dn:return"SuspenseList"}if(typeof w=="object")switch(w.$$typeof){case cn:return(w.displayName||"Context")+".Consumer";case wn:return(w._context.displayName||"Context")+".Provider";case Xn:var N=w.render;return w=w.displayName,w||(w=N.displayName||N.name||"",w=w!==""?"ForwardRef("+w+")":"ForwardRef"),w;case x:return N=w.displayName||null,N!==null?N:et(w.type)||"Memo";case j:N=w._payload,w=w._init;try{return et(w(N))}catch{}}return null}var Mt={};function Ht(w,N){if(w=w.contextTypes,!w)return Mt;var z={},te;for(te in w)z[te]=N[te];return z}var qt=null;function xr(w,N){if(w!==N){w.context._currentValue=w.parentValue,w=w.parent;var z=N.parent;if(w===null){if(z!==null)throw Error(e(401))}else{if(z===null)throw Error(e(401));xr(w,z)}N.context._currentValue=N.value}}function Zr(w){w.context._currentValue=w.parentValue,w=w.parent,w!==null&&Zr(w)}function vn(w){var N=w.parent;N!==null&&vn(N),w.context._currentValue=w.value}function yn(w,N){if(w.context._currentValue=w.parentValue,w=w.parent,w===null)throw Error(e(402));w.depth===N.depth?xr(w,N):yn(w,N)}function ai(w,N){var z=N.parent;if(z===null)throw Error(e(402));w.depth===z.depth?xr(w,z):ai(w,z),N.context._currentValue=N.value}function jn(w){var N=qt;N!==w&&(N===null?vn(w):w===null?Zr(N):N.depth===w.depth?xr(N,w):N.depth>w.depth?yn(N,w):ai(N,w),qt=w)}var Si={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 Xr(w,N,z,te){var Ae=w.state!==void 0?w.state:null;w.updater=Si,w.props=z,w.state=Ae;var Se={queue:[],replace:!1};w._reactInternals=Se;var Ve=N.contextType;if(w.context=typeof Ve=="object"&&Ve!==null?Ve._currentValue:te,Ve=N.getDerivedStateFromProps,typeof Ve=="function"&&(Ve=Ve(z,Ae),Ae=Ve==null?Ae:On({},Ae,Ve),w.state=Ae),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&&Si.enqueueReplaceState(w,w.state,null),Se.queue!==null&&0<Se.queue.length)if(N=Se.queue,Ve=Se.replace,Se.queue=null,Se.replace=!1,Ve&&N.length===1)w.state=N[0];else{for(Se=Ve?N[0]:w.state,Ae=!0,Ve=Ve?1:0;Ve<N.length;Ve++){var dt=N[Ve];dt=typeof dt=="function"?dt.call(w,Se,z,te):dt,dt!=null&&(Ae?(Ae=!1,Se=On({},Se,dt)):On(Se,dt))}w.state=Se}else Se.queue=null}var hi={id:1,overflow:""};function Fn(w,N,z){var te=w.id;w=w.overflow;var Ae=32-Jn(te)-1;te&=~(1<<Ae),z+=1;var Se=32-Jn(N)+Ae;if(30<Se){var Ve=Ae-Ae%5;return Se=(te&(1<<Ve)-1).toString(32),te>>=Ve,Ae-=Ve,{id:1<<32-Jn(N)+Ae|z<<Ae|te,overflow:Se+w}}return{id:1<<Se|z<<Ae|te,overflow:w}}var Jn=Math.clz32?Math.clz32:to,yo=Math.log,eo=Math.LN2;function to(w){return w>>>=0,w===0?32:31-(yo(w)/eo|0)|0}function kn(w,N){return w===N&&(w!==0||1/w===1/N)||w!==w&&N!==N}var bo=typeof Object.is=="function"?Object.is:kn,Qn=null,ei=null,Hi=null,Dr=null,Cr=!1,Ir=!1,I=0,V=null,ce=0;function Pe(){if(Qn===null)throw Error(e(321));return Qn}function Kt(){if(0<ce)throw Error(e(312));return{memoizedState:null,queue:null,next:null}}function Vt(){return Dr===null?Hi===null?(Cr=!1,Hi=Dr=Kt()):(Cr=!0,Dr=Hi):Dr.next===null?(Cr=!1,Dr=Dr.next=Kt()):(Cr=!0,Dr=Dr.next),Dr}function gr(){ei=Qn=null,Ir=!1,Hi=null,ce=0,Dr=V=null}function Sr(w,N){return typeof N=="function"?N(w):N}function dr(w,N,z){if(Qn=Pe(),Dr=Vt(),Cr){var te=Dr.queue;if(N=te.dispatch,V!==null&&(z=V.get(te),z!==void 0)){V.delete(te),te=Dr.memoizedState;do te=w(te,z.action),z=z.next;while(z!==null);return Dr.memoizedState=te,[te,N]}return[Dr.memoizedState,N]}return w=w===Sr?typeof N=="function"?N():N:z!==void 0?z(N):N,Dr.memoizedState=w,w=Dr.queue={last:null,dispatch:null},w=w.dispatch=Jr.bind(null,Qn,w),[Dr.memoizedState,w]}function wr(w,N){if(Qn=Pe(),Dr=Vt(),N=N===void 0?null:N,Dr!==null){var z=Dr.memoizedState;if(z!==null&&N!==null){var te=z[1];e:if(te===null)te=!1;else{for(var Ae=0;Ae<te.length&&Ae<N.length;Ae++)if(!bo(N[Ae],te[Ae])){te=!1;break e}te=!0}if(te)return z[0]}}return w=w(),Dr.memoizedState=[w,N],w}function Jr(w,N,z){if(25<=ce)throw Error(e(301));if(w===Qn)if(Ir=!0,w={action:z,next:null},V===null&&(V=new Map),z=V.get(N),z===void 0)V.set(N,w);else{for(N=z;N.next!==null;)N=N.next;N.next=w}}function Rn(){throw Error(e(394))}function Vr(){}var Fr={readContext:function(w){return w._currentValue},useContext:function(w){return Pe(),w._currentValue},useMemo:wr,useReducer:dr,useRef:function(w){Qn=Pe(),Dr=Vt();var N=Dr.memoizedState;return N===null?(w={current:w},Dr.memoizedState=w):N},useState:function(w){return dr(Sr,w)},useInsertionEffect:Vr,useLayoutEffect:function(){},useCallback:function(w,N){return wr(function(){return w},N)},useImperativeHandle:Vr,useEffect:Vr,useDebugValue:Vr,useDeferredValue:function(w){return Pe(),w},useTransition:function(){return Pe(),[!1,Rn]},useId:function(){var w=ei.treeContext,N=w.overflow;w=w.id,w=(w&~(1<<32-Jn(w)-1)).toString(32)+N;var z=Qr;if(z===null)throw Error(e(404));return N=I++,w=":"+z.idPrefix+"R"+w,0<N&&(w+="H"+N.toString(32)),w+":"},useMutableSource:function(w,N){return Pe(),N(w._source)},useSyncExternalStore:function(w,N,z){if(z===void 0)throw Error(e(407));return z()}},Qr=null,li=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function pi(w){return console.error(w),null}function Bn(){}function _o(w,N,z,te,Ae,Se,Ve,dt,Wt){var hr=[],sr=new Set;return N={destination:null,responseState:N,progressiveChunkSize:te===void 0?12800:te,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:sr,pingedTasks:hr,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:Ae===void 0?pi:Ae,onAllReady:Se===void 0?Bn:Se,onShellReady:Ve===void 0?Bn:Ve,onShellError:dt===void 0?Bn:dt,onFatalError:Wt===void 0?Bn:Wt},z=sn(N,0,null,z,!1,!1),z.parentFlushed=!0,w=zi(N,w,null,z,sr,Mt,null,hi),hr.push(w),N}function zi(w,N,z,te,Ae,Se,Ve,dt){w.allPendingTasks++,z===null?w.pendingRootTasks++:z.pendingTasks++;var Wt={node:N,ping:function(){var hr=w.pingedTasks;hr.push(Wt),hr.length===1&&dl(w)},blockedBoundary:z,blockedSegment:te,abortSet:Ae,legacyContext:Se,context:Ve,treeContext:dt};return Ae.add(Wt),Wt}function sn(w,N,z,te,Ae,Se){return{status:0,id:-1,index:N,parentFlushed:!1,chunks:[],children:[],formatContext:te,boundary:z,lastPushedText:Ae,textEmbedded:Se}}function hs(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 qn(w,N){var z=w.onShellError;z(N),z=w.onFatalError,z(N),w.destination!==null?(w.status=2,M(w.destination,N)):(w.status=1,w.fatalError=N)}function cl(w,N,z,te,Ae){for(Qn={},ei=N,I=0,w=z(te,Ae);Ir;)Ir=!1,I=0,ce+=1,Dr=null,w=z(te,Ae);return gr(),w}function wa(w,N,z,te){var Ae=z.render(),Se=te.childContextTypes;if(Se!=null){var Ve=N.legacyContext;if(typeof z.getChildContext!="function")te=Ve;else{z=z.getChildContext();for(var dt in z)if(!(dt in Se))throw Error(e(108,et(te)||"Unknown",dt));te=On({},Ve,z)}N.legacyContext=te,Hn(w,N,Ae),N.legacyContext=Ve}else Hn(w,N,Ae)}function $i(w,N){if(w&&w.defaultProps){N=On({},N),w=w.defaultProps;for(var z in w)N[z]===void 0&&(N[z]=w[z]);return N}return N}function xo(w,N,z,te,Ae){if(typeof z=="function")if(z.prototype&&z.prototype.isReactComponent){Ae=Ht(z,N.legacyContext);var Se=z.contextType;Se=new z(te,typeof Se=="object"&&Se!==null?Se._currentValue:Ae),Xr(Se,z,te,Ae),wa(w,N,Se,z)}else{Se=Ht(z,N.legacyContext),Ae=cl(w,N,z,te,Se);var Ve=I!==0;if(typeof Ae=="object"&&Ae!==null&&typeof Ae.render=="function"&&Ae.$$typeof===void 0)Xr(Ae,z,te,Se),wa(w,N,Ae,z);else if(Ve){te=N.treeContext,N.treeContext=Fn(te,1,0);try{Hn(w,N,Ae)}finally{N.treeContext=te}}else Hn(w,N,Ae)}else if(typeof z=="string"){switch(Ae=N.blockedSegment,Se=Ie(Ae.chunks,z,te,w.responseState,Ae.formatContext),Ae.lastPushedText=!1,Ve=Ae.formatContext,Ae.formatContext=_e(Ve,z,te),Ci(w,N,Se),Ae.formatContext=Ve,z){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:Ae.chunks.push(pt,g(z),_t)}Ae.lastPushedText=!1}else{switch(z){case Ce:case ee:case xi:case En:case _i:Hn(w,N,te.children);return;case dn:Hn(w,N,te.children);return;case W:throw Error(e(343));case on:e:{z=N.blockedBoundary,Ae=N.blockedSegment,Se=te.fallback,te=te.children,Ve=new Set;var dt={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Ve,errorDigest:null},Wt=sn(w,Ae.chunks.length,dt,Ae.formatContext,!1,!1);Ae.children.push(Wt),Ae.lastPushedText=!1;var hr=sn(w,0,null,Ae.formatContext,!1,!1);hr.parentFlushed=!0,N.blockedBoundary=dt,N.blockedSegment=hr;try{if(Ci(w,N,te),hr.lastPushedText&&hr.textEmbedded&&hr.chunks.push(De),hr.status=1,zo(dt,hr),dt.pendingTasks===0)break e}catch(sr){hr.status=4,dt.forceClientRender=!0,dt.errorDigest=hs(w,sr)}finally{N.blockedBoundary=z,N.blockedSegment=Ae}N=zi(w,Se,z,Wt,Ve,N.legacyContext,N.context,N.treeContext),w.pingedTasks.push(N)}return}if(typeof z=="object"&&z!==null)switch(z.$$typeof){case Xn:if(te=cl(w,N,z.render,te,Ae),I!==0){z=N.treeContext,N.treeContext=Fn(z,1,0);try{Hn(w,N,te)}finally{N.treeContext=z}}else Hn(w,N,te);return;case x:z=z.type,te=$i(z,te),xo(w,N,z,te,Ae);return;case wn:if(Ae=te.children,z=z._context,te=te.value,Se=z._currentValue,z._currentValue=te,Ve=qt,qt=te={parent:Ve,depth:Ve===null?0:Ve.depth+1,context:z,parentValue:Se,value:te},N.context=te,Hn(w,N,Ae),w=qt,w===null)throw Error(e(403));te=w.parentValue,w.context._currentValue=te===be?w.context._defaultValue:te,w=qt=w.parent,N.context=w;return;case cn:te=te.children,te=te(z._currentValue),Hn(w,N,te);return;case j:Ae=z._init,z=Ae(z._payload),te=$i(z,te),xo(w,N,z,te,void 0);return}throw Error(e(130,z==null?z:typeof z,""))}}function Hn(w,N,z){if(N.node=z,typeof z=="object"&&z!==null){switch(z.$$typeof){case Cn:xo(w,N,z.type,z.props,z.ref);return;case di:throw Error(e(257));case j:var te=z._init;z=te(z._payload),Hn(w,N,z);return}if(fe(z)){Yr(w,N,z);return}if(z===null||typeof z!="object"?te=null:(te=Oe&&z[Oe]||z["@@iterator"],te=typeof te=="function"?te:null),te&&(te=te.call(z))){if(z=te.next(),!z.done){var Ae=[];do Ae.push(z.value),z=te.next();while(!z.done);Yr(w,N,Ae)}return}throw w=Object.prototype.toString.call(z),Error(e(31,w==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":w))}typeof z=="string"?(te=N.blockedSegment,te.lastPushedText=Fe(N.blockedSegment.chunks,z,w.responseState,te.lastPushedText)):typeof z=="number"&&(te=N.blockedSegment,te.lastPushedText=Fe(N.blockedSegment.chunks,""+z,w.responseState,te.lastPushedText))}function Yr(w,N,z){for(var te=z.length,Ae=0;Ae<te;Ae++){var Se=N.treeContext;N.treeContext=Fn(Se,te,Ae);try{Ci(w,N,z[Ae])}finally{N.treeContext=Se}}}function Ci(w,N,z){var te=N.blockedSegment.formatContext,Ae=N.legacyContext,Se=N.context;try{return Hn(w,N,z)}catch(Wt){if(gr(),typeof Wt=="object"&&Wt!==null&&typeof Wt.then=="function"){z=Wt;var Ve=N.blockedSegment,dt=sn(w,Ve.chunks.length,null,Ve.formatContext,Ve.lastPushedText,!0);Ve.children.push(dt),Ve.lastPushedText=!1,w=zi(w,N.node,N.blockedBoundary,dt,N.abortSet,N.legacyContext,N.context,N.treeContext).ping,z.then(w,w),N.blockedSegment.formatContext=te,N.legacyContext=Ae,N.context=Se,jn(Se)}else throw N.blockedSegment.formatContext=te,N.legacyContext=Ae,N.context=Se,jn(Se),Wt}}function Aa(w){var N=w.blockedBoundary;w=w.blockedSegment,w.status=3,fl(this,N,w)}function ul(w,N,z){var te=w.blockedBoundary;w.blockedSegment.status=3,te===null?(N.allPendingTasks--,N.status!==2&&(N.status=2,N.destination!==null&&N.destination.close())):(te.pendingTasks--,te.forceClientRender||(te.forceClientRender=!0,w=z===void 0?Error(e(432)):z,te.errorDigest=N.onError(w),te.parentFlushed&&N.clientRenderedBoundaries.push(te)),te.fallbackAbortableTasks.forEach(function(Ae){return ul(Ae,N,z)}),te.fallbackAbortableTasks.clear(),N.allPendingTasks--,N.allPendingTasks===0&&(te=N.onAllReady,te()))}function zo(w,N){if(N.chunks.length===0&&N.children.length===1&&N.children[0].boundary===null){var z=N.children[0];z.id=N.id,z.parentFlushed=!0,z.status===1&&zo(w,z)}else w.completedSegments.push(N)}function fl(w,N,z){if(N===null){if(z.parentFlushed){if(w.completedRootSegment!==null)throw Error(e(389));w.completedRootSegment=z}w.pendingRootTasks--,w.pendingRootTasks===0&&(w.onShellError=Bn,N=w.onShellReady,N())}else N.pendingTasks--,N.forceClientRender||(N.pendingTasks===0?(z.parentFlushed&&z.status===1&&zo(N,z),N.parentFlushed&&w.completedBoundaries.push(N),N.fallbackAbortableTasks.forEach(Aa,w),N.fallbackAbortableTasks.clear()):z.parentFlushed&&z.status===1&&(zo(N,z),N.completedSegments.length===1&&N.parentFlushed&&w.partialBoundaries.push(N)));w.allPendingTasks--,w.allPendingTasks===0&&(w=w.onAllReady,w())}function dl(w){if(w.status!==2){var N=qt,z=li.current;li.current=Fr;var te=Qr;Qr=w.responseState;try{var Ae=w.pingedTasks,Se;for(Se=0;Se<Ae.length;Se++){var Ve=Ae[Se],dt=w,Wt=Ve.blockedSegment;if(Wt.status===0){jn(Ve.context);try{Hn(dt,Ve,Ve.node),Wt.lastPushedText&&Wt.textEmbedded&&Wt.chunks.push(De),Ve.abortSet.delete(Ve),Wt.status=1,fl(dt,Ve.blockedBoundary,Wt)}catch(Ai){if(gr(),typeof Ai=="object"&&Ai!==null&&typeof Ai.then=="function"){var hr=Ve.ping;Ai.then(hr,hr)}else{Ve.abortSet.delete(Ve),Wt.status=4;var sr=Ve.blockedBoundary,Gr=Ai,ti=hs(dt,Gr);if(sr===null?qn(dt,Gr):(sr.pendingTasks--,sr.forceClientRender||(sr.forceClientRender=!0,sr.errorDigest=ti,sr.parentFlushed&&dt.clientRenderedBoundaries.push(sr))),dt.allPendingTasks--,dt.allPendingTasks===0){var wi=dt.onAllReady;wi()}}}finally{}}}Ae.splice(0,Se),w.destination!==null&&Gs(w,w.destination)}catch(Ai){hs(w,Ai),qn(w,Ai)}finally{Qr=te,li.current=z,z===Fr&&jn(N)}}}function Vs(w,N,z){switch(z.parentFlushed=!0,z.status){case 0:var te=z.id=w.nextSegmentId++;return z.lastPushedText=!1,z.textEmbedded=!1,w=w.responseState,i(N,Ot),i(N,w.placeholderPrefix),w=g(te.toString(16)),i(N,w),l(N,$t);case 1:z.status=2;var Ae=!0;te=z.chunks;var Se=0;z=z.children;for(var Ve=0;Ve<z.length;Ve++){for(Ae=z[Ve];Se<Ae.index;Se++)i(N,te[Se]);Ae=ps(w,N,Ae)}for(;Se<te.length-1;Se++)i(N,te[Se]);return Se<te.length&&(Ae=l(N,te[Se])),Ae;default:throw Error(e(390))}}function ps(w,N,z){var te=z.boundary;if(te===null)return Vs(w,N,z);if(te.parentFlushed=!0,te.forceClientRender)te=te.errorDigest,l(N,br),i(N,It),te&&(i(N,X),i(N,g(Y(te))),i(N,ie)),l(N,Ee),Vs(w,N,z);else if(0<te.pendingTasks){te.rootSegmentID=w.nextSegmentId++,0<te.completedSegments.length&&w.partialBoundaries.push(te);var Ae=w.responseState,Se=Ae.nextSuspenseID++;Ae=m(Ae.boundaryPrefix+Se.toString(16)),te=te.id=Ae,je(N,w.responseState,te),Vs(w,N,z)}else if(te.byteSize>w.progressiveChunkSize)te.rootSegmentID=w.nextSegmentId++,w.completedBoundaries.push(te),je(N,w.responseState,te.id),Vs(w,N,z);else{if(l(N,Ue),z=te.completedSegments,z.length!==1)throw Error(e(391));ps(w,N,z[0])}return l(N,Or)}function gs(w,N,z){return er(N,w.responseState,z.formatContext,z.id),ps(w,N,z),jt(N,z.formatContext)}function So(w,N,z){for(var te=z.completedSegments,Ae=0;Ae<te.length;Ae++)hl(w,N,z,te[Ae]);if(te.length=0,w=w.responseState,te=z.id,z=z.rootSegmentID,i(N,w.startInlineScript),w.sentCompleteBoundaryFunction?i(N,vr):(w.sentCompleteBoundaryFunction=!0,i(N,$r)),te===null)throw Error(e(395));return z=g(z.toString(16)),i(N,te),i(N,Gn),i(N,w.segmentPrefix),i(N,z),l(N,Sn)}function hl(w,N,z,te){if(te.status===2)return!0;var Ae=te.id;if(Ae===-1){if((te.id=z.rootSegmentID)===-1)throw Error(e(392));return gs(w,N,te)}return gs(w,N,te),w=w.responseState,i(N,w.startInlineScript),w.sentCompleteSegmentFunction?i(N,Mr):(w.sentCompleteSegmentFunction=!0,i(N,tr)),i(N,w.segmentPrefix),Ae=g(Ae.toString(16)),i(N,Ae),i(N,fr),i(N,w.placeholderPrefix),i(N,Ae),l(N,pr)}function Gs(w,N){t=new Uint8Array(512),n=0;try{var z=w.completedRootSegment;if(z!==null&&w.pendingRootTasks===0){ps(w,N,z),w.completedRootSegment=null;var te=w.responseState.bootstrapChunks;for(z=0;z<te.length-1;z++)i(N,te[z]);z<te.length&&l(N,te[z])}var Ae=w.clientRenderedBoundaries,Se;for(Se=0;Se<Ae.length;Se++){var Ve=Ae[Se];te=N;var dt=w.responseState,Wt=Ve.id,hr=Ve.errorDigest,sr=Ve.errorMessage,Gr=Ve.errorComponentStack;if(i(te,dt.startInlineScript),dt.sentClientRenderFunction?i(te,Kr):(dt.sentClientRenderFunction=!0,i(te,Dn)),Wt===null)throw Error(e(395));i(te,Wt),i(te,Zn),(hr||sr||Gr)&&(i(te,Yn),i(te,g(nn(hr||"")))),(sr||Gr)&&(i(te,Yn),i(te,g(nn(sr||"")))),Gr&&(i(te,Yn),i(te,g(nn(Gr)))),l(te,Tn)}Ae.splice(0,Se);var ti=w.completedBoundaries;for(Se=0;Se<ti.length;Se++)So(w,N,ti[Se]);ti.splice(0,Se),u(N),t=new Uint8Array(512),n=0;var wi=w.partialBoundaries;for(Se=0;Se<wi.length;Se++){var Ai=wi[Se];e:{Ae=w,Ve=N;var Zs=Ai.completedSegments;for(dt=0;dt<Zs.length;dt++)if(!hl(Ae,Ve,Ai,Zs[dt])){dt++,Zs.splice(0,dt);var pl=!1;break e}Zs.splice(0,dt),pl=!0}if(!pl){w.destination=null,Se++,wi.splice(0,Se);return}}wi.splice(0,Se);var ms=w.completedBoundaries;for(Se=0;Se<ms.length;Se++)So(w,N,ms[Se]);ms.splice(0,Se)}finally{u(N),w.allPendingTasks===0&&w.pingedTasks.length===0&&w.clientRenderedBoundaries.length===0&&w.completedBoundaries.length===0&&N.close()}}function Ta(w,N){try{var z=w.abortableTasks;z.forEach(function(te){return ul(te,w,N)}),z.clear(),w.destination!==null&&Gs(w,w.destination)}catch(te){hs(w,te),qn(w,te)}}return Fd.renderToReadableStream=function(w,N){return new Promise(function(z,te){var Ae,Se,Ve=new Promise(function(sr,Gr){Se=sr,Ae=Gr}),dt=_o(w,le(N?N.identifierPrefix:void 0,N?N.nonce:void 0,N?N.bootstrapScriptContent:void 0,N?N.bootstrapScripts:void 0,N?N.bootstrapModules:void 0),pe(N?N.namespaceURI:void 0),N?N.progressiveChunkSize:void 0,N?N.onError:void 0,Se,function(){var sr=new ReadableStream({type:"bytes",pull:function(Gr){if(dt.status===1)dt.status=2,M(Gr,dt.fatalError);else if(dt.status!==2&&dt.destination===null){dt.destination=Gr;try{Gs(dt,Gr)}catch(ti){hs(dt,ti),qn(dt,ti)}}},cancel:function(){Ta(dt)}},{highWaterMark:0});sr.allReady=Ve,z(sr)},function(sr){Ve.catch(function(){}),te(sr)},Ae);if(N&&N.signal){var Wt=N.signal,hr=function(){Ta(dt,Wt.reason),Wt.removeEventListener("abort",hr)};Wt.addEventListener("abort",hr)}dl(dt)})},Fd.version="18.2.0",Fd}var $c={};/**
|
265
|
-
* @license React
|
266
|
-
* react-dom-server-legacy.browser.development.js
|
267
|
-
*
|
268
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
269
|
-
*
|
270
|
-
* This source code is licensed under the MIT license found in the
|
271
|
-
* LICENSE file in the root directory of this source tree.
|
272
|
-
*/var ay;function eO(){return ay||(ay=1,process.env.NODE_ENV!=="production"&&function(){var r=R,e="18.2.0",t=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(s){{for(var c=arguments.length,d=new Array(c>1?c-1:0),y=1;y<c;y++)d[y-1]=arguments[y];l("warn",s,d)}}function i(s){{for(var c=arguments.length,d=new Array(c>1?c-1:0),y=1;y<c;y++)d[y-1]=arguments[y];l("error",s,d)}}function l(s,c,d){{var y=t.ReactDebugCurrentFrame,L=y.getStackAddendum();L!==""&&(c+="%s",d=d.concat([L]));var F=d.map(function(U){return String(U)});F.unshift("Warning: "+c),Function.prototype.apply.call(console[s],console,F)}}function u(s){s()}function h(s){}function g(s,c){m(s,c)}function m(s,c){return s.push(c)}function M(s){}function T(s){s.push(null)}function C(s){return s}function _(s){return s}function S(s,c){s.destroy(c)}function D(s){{var c=typeof Symbol=="function"&&Symbol.toStringTag,d=c&&s[Symbol.toStringTag]||s.constructor.name||"Object";return d}}function A(s){try{return b(s),!1}catch{return!0}}function b(s){return""+s}function k(s,c){if(A(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)),b(s)}function O(s,c){if(A(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)),b(s)}function H(s){if(A(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)),b(s)}var q=Object.prototype.hasOwnProperty,G=0,Y=1,he=2,J=3,fe=4,P=5,re=6,Q=":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",ne=Q+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",se=new RegExp("^["+Q+"]["+ne+"]*$"),ue={},ve={};function le(s){return q.call(ve,s)?!0:q.call(ue,s)?!1:se.test(s)?(ve[s]=!0,!0):(ue[s]=!0,i("Invalid attribute name: `%s`",s),!1)}function me(s,c,d,y){if(d!==null&&d.type===G)return!1;switch(typeof c){case"function":case"symbol":return!0;case"boolean":{if(d!==null)return!d.acceptsBooleans;var L=s.toLowerCase().slice(0,5);return L!=="data-"&&L!=="aria-"}default:return!1}}function pe(s){return De.hasOwnProperty(s)?De[s]:null}function _e(s,c,d,y,L,F,U){this.acceptsBooleans=c===he||c===J||c===fe,this.attributeName=y,this.attributeNamespace=L,this.mustUseProperty=d,this.propertyName=s,this.type=c,this.sanitizeURL=F,this.removeEmptyString=U}var De={},Fe=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Fe.forEach(function(s){De[s]=new _e(s,G,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var c=s[0],d=s[1];De[c]=new _e(c,Y,!1,d,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){De[s]=new _e(s,he,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){De[s]=new _e(s,he,!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){De[s]=new _e(s,J,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){De[s]=new _e(s,J,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){De[s]=new _e(s,fe,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){De[s]=new _e(s,re,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){De[s]=new _e(s,P,!1,s.toLowerCase(),null,!1,!1)});var Xe=/[\-\:]([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(Xe,we);De[c]=new _e(c,Y,!1,s,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(s){var c=s.replace(Xe,we);De[c]=new _e(c,Y,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var c=s.replace(Xe,we);De[c]=new _e(c,Y,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){De[s]=new _e(s,Y,!1,s.toLowerCase(),null,!1,!1)});var it="xlinkHref";De[it]=new _e("xlinkHref",Y,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){De[s]=new _e(s,Y,!1,s.toLowerCase(),null,!0,!0)});var ht={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 Je(s,c){return s+c.charAt(0).toUpperCase()+c.substring(1)}var Ze=["Webkit","ms","Moz","O"];Object.keys(ht).forEach(function(s){Ze.forEach(function(c){ht[Je(c,s)]=ht[s]})});var Le={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function ke(s,c){Le[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 Te(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 Be={"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},Re={},Qe=new RegExp("^(aria)-["+ne+"]*$"),ct=new RegExp("^(aria)[A-Z]["+ne+"]*$");function kt(s,c){{if(q.call(Re,c)&&Re[c])return!0;if(ct.test(c)){var d="aria-"+c.slice(4).toLowerCase(),y=Be.hasOwnProperty(d)?d:null;if(y==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",c),Re[c]=!0,!0;if(c!==y)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",c,y),Re[c]=!0,!0}if(Qe.test(c)){var L=c.toLowerCase(),F=Be.hasOwnProperty(L)?L:null;if(F==null)return Re[c]=!0,!1;if(c!==F)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",c,F),Re[c]=!0,!0}}return!0}function At(s,c){{var d=[];for(var y in c){var L=kt(s,y);L||d.push(y)}var F=d.map(function(U){return"`"+U+"`"}).join(", ");d.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",F,s):d.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",F,s)}}function bt(s,c){Te(s,c)||At(s,c)}var Dt=!1;function Rt(s,c){{if(s!=="input"&&s!=="textarea"&&s!=="select")return;c!=null&&c.value===null&&!Dt&&(Dt=!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 ut={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"},ot=function(){};{var wt={},Ie=/^on./,pt=/^on[^A-Z]/,_t=new RegExp("^(aria)-["+ne+"]*$"),Ot=new RegExp("^(aria)[A-Z]["+ne+"]*$");ot=function(s,c,d,y){if(q.call(wt,c)&&wt[c])return!0;var L=c.toLowerCase();if(L==="onfocusin"||L==="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."),wt[c]=!0,!0;if(y!=null){var F=y.registrationNameDependencies,U=y.possibleRegistrationNames;if(F.hasOwnProperty(c))return!0;var oe=U.hasOwnProperty(L)?U[L]:null;if(oe!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",c,oe),wt[c]=!0,!0;if(Ie.test(c))return i("Unknown event handler property `%s`. It will be ignored.",c),wt[c]=!0,!0}else if(Ie.test(c))return pt.test(c)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",c),wt[c]=!0,!0;if(_t.test(c)||Ot.test(c))return!0;if(L==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),wt[c]=!0,!0;if(L==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),wt[c]=!0,!0;if(L==="is"&&d!==null&&d!==void 0&&typeof d!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof d),wt[c]=!0,!0;if(typeof d=="number"&&isNaN(d))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",c),wt[c]=!0,!0;var xe=pe(c),Ge=xe!==null&&xe.type===G;if(ut.hasOwnProperty(L)){var tt=ut[L];if(tt!==c)return i("Invalid DOM property `%s`. Did you mean `%s`?",c,tt),wt[c]=!0,!0}else if(!Ge&&c!==L)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,L),wt[c]=!0,!0;return typeof d=="boolean"&&me(c,d,xe)?(d?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()}.',d,c,c,d,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.',d,c,c,d,c,c,c),wt[c]=!0,!0):Ge?!0:me(c,d,xe)?(wt[c]=!0,!1):((d==="false"||d==="true")&&xe!==null&&xe.type===J&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",d,c,d==="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,d),wt[c]=!0),!0)}}var $t=function(s,c,d){{var y=[];for(var L in c){var F=ot(s,L,c[L],d);F||y.push(L)}var U=y.map(function(oe){return"`"+oe+"`"}).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 ",U,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 ",U,s)}};function Ue(s,c,d){Te(s,c)||$t(s,c,d)}var Tt=function(){};{var zt=/^(?:webkit|moz|o)[A-Z]/,br=/^-ms-/,Or=/-(.)/g,It=/;\s*$/,ie={},X={},Ee=!1,je=!1,St=function(s){return s.replace(Or,function(c,d){return d.toUpperCase()})},ft=function(s){ie.hasOwnProperty(s)&&ie[s]||(ie[s]=!0,i("Unsupported style property %s. Did you mean %s?",s,St(s.replace(br,"ms-"))))},mt=function(s){ie.hasOwnProperty(s)&&ie[s]||(ie[s]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",s,s.charAt(0).toUpperCase()+s.slice(1)))},Ut=function(s,c){X.hasOwnProperty(c)&&X[c]||(X[c]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,s,c.replace(It,"")))},Lt=function(s,c){Ee||(Ee=!0,i("`NaN` is an invalid value for the `%s` css style property.",s))},Qt=function(s,c){je||(je=!0,i("`Infinity` is an invalid value for the `%s` css style property.",s))};Tt=function(s,c){s.indexOf("-")>-1?ft(s):zt.test(s)?mt(s):It.test(c)&&Ut(s,c),typeof c=="number"&&(isNaN(c)?Lt(s,c):isFinite(c)||Qt(s,c))}}var xt=Tt,Et=/["'&<>]/;function gt(s){H(s);var c=""+s,d=Et.exec(c);if(!d)return c;var y,L="",F,U=0;for(F=d.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}U!==F&&(L+=c.substring(U,F)),U=F+1,L+=y}return U!==F?L+c.substring(U,F):L}function Ft(s){return typeof s=="boolean"||typeof s=="number"?""+s:gt(s)}var ur=/([A-Z])/g,qe=/^ms-/;function vt(s){return s.replace(ur,"-$1").toLowerCase().replace(qe,"-ms-")}var at=/^[\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,We=!1;function yt(s){!We&&at.test(s)&&(We=!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 K=Array.isArray;function Ne(s){return K(s)}var lt="<script>";function Bt(s,c,d,y,L){var F=s===void 0?"":s,U=lt,oe=[];return{bootstrapChunks:oe,startInlineScript:U,placeholderPrefix:F+"P:",segmentPrefix:F+"S:",boundaryPrefix:F+"B:",idPrefix:F,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var or=0,er=1,jt=2,tr=3,Mr=4,fr=5,pr=6,$r=7;function vr(s,c){return{insertionMode:s,selectedValue:c}}function Gn(s,c,d){switch(c){case"select":return vr(er,d.value!=null?d.value:d.defaultValue);case"svg":return vr(jt,null);case"math":return vr(tr,null);case"foreignObject":return vr(er,null);case"table":return vr(Mr,null);case"thead":case"tbody":case"tfoot":return vr(fr,null);case"colgroup":return vr($r,null);case"tr":return vr(pr,null)}return s.insertionMode>=Mr||s.insertionMode===or?vr(er,null):s}var Sn=null;function Dn(s){var c=s.nextSuspenseID++;return s.boundaryPrefix+c.toString(16)}function Kr(s,c,d){var y=s.idPrefix,L=":"+y+"R"+c;return d>0&&(L+="H"+d.toString(32)),L+":"}function Zn(s){return Ft(s)}var Tn="<!-- -->";function Yn(s,c,d,y){return c===""?y:(y&&s.push(Tn),s.push(Zn(c)),!0)}function Kn(s,c,d,y){d&&y&&s.push(Tn)}var nn=new Map;function On(s){var c=nn.get(s);if(c!==void 0)return c;var d=Ft(vt(s));return nn.set(s,d),d}var Cn=' style="',di=":",_i=";";function xi(s,c,d){if(typeof d!="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 L in d)if(q.call(d,L)){var F=d[L];if(!(F==null||typeof F=="boolean"||F==="")){var U=void 0,oe=void 0,xe=L.indexOf("--")===0;xe?(U=Ft(L),O(F,L),oe=Ft((""+F).trim())):(xt(L,F),U=On(L),typeof F=="number"?F!==0&&!q.call(ht,L)?oe=F+"px":oe=""+F:(O(F,L),oe=Ft((""+F).trim()))),y?(y=!1,s.push(Cn,U,di,oe)):s.push(_i,U,di,oe)}}y||s.push(cn)}var En=" ",wn='="',cn='"',Xn='=""';function on(s,c,d,y){switch(d){case"style":{xi(s,c,y);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(d.length>2&&(d[0]==="o"||d[0]==="O")&&(d[1]==="n"||d[1]==="N"))){var L=pe(d);if(L!==null){switch(typeof y){case"function":case"symbol":return;case"boolean":if(!L.acceptsBooleans)return}var F=L.attributeName,U=F;switch(L.type){case J:y&&s.push(En,U,Xn);return;case fe:y===!0?s.push(En,U,Xn):y===!1||s.push(En,U,wn,Ft(y),cn);return;case P:isNaN(y)||s.push(En,U,wn,Ft(y),cn);break;case re:!isNaN(y)&&y>=1&&s.push(En,U,wn,Ft(y),cn);break;default:L.sanitizeURL&&(k(y,F),y=""+y,yt(y)),s.push(En,U,wn,Ft(y),cn)}}else if(le(d)){switch(typeof y){case"function":case"symbol":return;case"boolean":{var oe=d.toLowerCase().slice(0,5);if(oe!=="data-"&&oe!=="aria-")return}}s.push(En,d,wn,Ft(y),cn)}}}var dn=">",x="/>";function j(s,c,d){if(c!=null){if(d!=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 W=!1,ee=!1,Ce=!1,be=!1,Oe=!1,et=!1,Mt=!1;function Ht(s,c){{var d=s[c];if(d!=null){var y=Ne(d);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 qt(s,c,d){ke("select",c),Ht(c,"value"),Ht(c,"defaultValue"),c.value!==void 0&&c.defaultValue!==void 0&&!Ce&&(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"),Ce=!0),s.push(kn("select"));var y=null,L=null;for(var F in c)if(q.call(c,F)){var U=c[F];if(U==null)continue;switch(F){case"children":y=U;break;case"dangerouslySetInnerHTML":L=U;break;case"defaultValue":case"value":break;default:on(s,d,F,U);break}}return s.push(dn),j(s,L,y),y}function xr(s){var c="";return r.Children.forEach(s,function(d){d!=null&&(c+=d,!Oe&&typeof d!="string"&&typeof d!="number"&&(Oe=!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,d,y){var L=y.selectedValue;s.push(kn("option"));var F=null,U=null,oe=null,xe=null;for(var Ge in c)if(q.call(c,Ge)){var tt=c[Ge];if(tt==null)continue;switch(Ge){case"children":F=tt;break;case"selected":oe=tt,Mt||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Mt=!0);break;case"dangerouslySetInnerHTML":xe=tt;break;case"value":U=tt;default:on(s,d,Ge,tt);break}}if(L!=null){var Ct;if(U!==null?(k(U,"value"),Ct=""+U):(xe!==null&&(et||(et=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),Ct=xr(F)),Ne(L))for(var nr=0;nr<L.length;nr++){k(L[nr],"value");var Lr=""+L[nr];if(Lr===Ct){s.push(Zr);break}}else k(L,"select.value"),""+L===Ct&&s.push(Zr)}else oe&&s.push(Zr);return s.push(dn),j(s,xe,F),F}function yn(s,c,d){ke("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&&!W&&(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),W=!0),s.push(kn("input"));var y=null,L=null,F=null,U=null;for(var oe in c)if(q.call(c,oe)){var xe=c[oe];if(xe==null)continue;switch(oe){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":U=xe;break;case"defaultValue":L=xe;break;case"checked":F=xe;break;case"value":y=xe;break;default:on(s,d,oe,xe);break}}return F!==null?on(s,d,"checked",F):U!==null&&on(s,d,"checked",U),y!==null?on(s,d,"value",y):L!==null&&on(s,d,"value",L),s.push(x),null}function ai(s,c,d){ke("textarea",c),c.value!==void 0&&c.defaultValue!==void 0&&!be&&(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"),be=!0),s.push(kn("textarea"));var y=null,L=null,F=null;for(var U in c)if(q.call(c,U)){var oe=c[U];if(oe==null)continue;switch(U){case"children":F=oe;break;case"value":y=oe;break;case"defaultValue":L=oe;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:on(s,d,U,oe);break}}if(y===null&&L!==null&&(y=L),s.push(dn),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(Ne(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]===`
|
273
|
-
`&&s.push(Jn),y!==null&&(k(y,"value"),s.push(Zn(""+y))),null}function jn(s,c,d,y){s.push(kn(d));for(var L in c)if(q.call(c,L)){var F=c[L];if(F==null)continue;switch(L){case"children":case"dangerouslySetInnerHTML":throw new Error(d+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:on(s,y,L,F);break}}return s.push(x),null}function Si(s,c,d){s.push(kn("menuitem"));for(var y in c)if(q.call(c,y)){var L=c[y];if(L==null)continue;switch(y){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:on(s,d,y,L);break}}return s.push(dn),null}function Xr(s,c,d){s.push(kn("title"));var y=null;for(var L in c)if(q.call(c,L)){var F=c[L];if(F==null)continue;switch(L){case"children":y=F;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:on(s,d,L,F);break}}s.push(dn);{var U=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"):U!=null&&U.$$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"):U!=null&&typeof U!="string"&&typeof U!="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 hi(s,c,d,y){s.push(kn(d));var L=null,F=null;for(var U in c)if(q.call(c,U)){var oe=c[U];if(oe==null)continue;switch(U){case"children":L=oe;break;case"dangerouslySetInnerHTML":F=oe;break;default:on(s,y,U,oe);break}}return s.push(dn),j(s,F,L),typeof L=="string"?(s.push(Zn(L)),null):L}function Fn(s,c,d,y){s.push(kn(d));var L=null,F=null;for(var U in c)if(q.call(c,U)){var oe=c[U];if(oe==null)continue;switch(U){case"children":L=oe;break;case"dangerouslySetInnerHTML":F=oe;break;case"style":xi(s,y,oe);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:le(U)&&typeof oe!="function"&&typeof oe!="symbol"&&s.push(En,U,wn,Ft(oe),cn);break}}return s.push(dn),j(s,F,L),L}var Jn=`
|
274
|
-
`;function yo(s,c,d,y){s.push(kn(d));var L=null,F=null;for(var U in c)if(q.call(c,U)){var oe=c[U];if(oe==null)continue;switch(U){case"children":L=oe;break;case"dangerouslySetInnerHTML":F=oe;break;default:on(s,y,U,oe);break}}if(s.push(dn),F!=null){if(L!=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 xe=F.__html;xe!=null&&(typeof xe=="string"&&xe.length>0&&xe[0]===`
|
275
|
-
`?s.push(Jn,xe):(H(xe),s.push(""+xe)))}return typeof L=="string"&&L[0]===`
|
276
|
-
`&&s.push(Jn),L}var eo=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,to=new Map;function kn(s){var c=to.get(s);if(c===void 0){if(!eo.test(s))throw new Error("Invalid tag: "+s);c="<"+s,to.set(s,c)}return c}var bo="<!DOCTYPE html>";function Qn(s,c,d,y,L){switch(bt(c,d),Rt(c,d),Ue(c,d,null),!d.suppressContentEditableWarning&&d.contentEditable&&d.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."),L.insertionMode!==jt&&L.insertionMode!==tr&&c.indexOf("-")===-1&&typeof d.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 qt(s,d,y);case"option":return vn(s,d,y,L);case"textarea":return ai(s,d,y);case"input":return yn(s,d,y);case"menuitem":return Si(s,d,y);case"title":return Xr(s,d,y);case"listing":case"pre":return yo(s,d,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 jn(s,d,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 hi(s,d,c,y);case"html":return L.insertionMode===or&&s.push(bo),hi(s,d,c,y);default:return c.indexOf("-")===-1&&typeof d.is!="string"?hi(s,d,c,y):Fn(s,d,c,y)}}var ei="</",Hi=">";function Dr(s,c,d){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(ei,c,Hi)}}function Cr(s,c){for(var d=c.bootstrapChunks,y=0;y<d.length-1;y++)g(s,d[y]);return y<d.length?m(s,d[y]):!0}var Ir='<template id="',I='"></template>';function V(s,c,d){g(s,Ir),g(s,c.placeholderPrefix);var y=d.toString(16);return g(s,y),m(s,I)}var ce="<!--$-->",Pe='<!--$?--><template id="',Kt='"></template>',Vt="<!--$!-->",gr="<!--/$-->",Sr="<template",dr='"',wr=' data-dgst="',Jr=' data-msg="',Rn=' data-stck="',Vr="></template>";function Fr(s,c){return m(s,ce)}function Qr(s,c,d){if(g(s,Pe),d===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return g(s,d),m(s,Kt)}function li(s,c,d,y,L){var F;return F=m(s,Vt),g(s,Sr),d&&(g(s,wr),g(s,Ft(d)),g(s,dr)),y&&(g(s,Jr),g(s,Ft(y)),g(s,dr)),L&&(g(s,Rn),g(s,Ft(L)),g(s,dr)),F=m(s,Vr),F}function pi(s,c){return m(s,gr)}function Bn(s,c){return m(s,gr)}function _o(s,c){return m(s,gr)}var zi='<div hidden id="',sn='">',hs="</div>",qn='<svg aria-hidden="true" style="display:none" id="',cl='">',wa="</svg>",$i='<math aria-hidden="true" style="display:none" id="',xo='">',Hn="</math>",Yr='<table hidden id="',Ci='">',Aa="</table>",ul='<table hidden><tbody id="',zo='">',fl="</tbody></table>",dl='<table hidden><tr id="',Vs='">',ps="</tr></table>",gs='<table hidden><colgroup id="',So='">',hl="</colgroup></table>";function Gs(s,c,d,y){switch(d.insertionMode){case or:case er:return g(s,zi),g(s,c.segmentPrefix),g(s,y.toString(16)),m(s,sn);case jt:return g(s,qn),g(s,c.segmentPrefix),g(s,y.toString(16)),m(s,cl);case tr:return g(s,$i),g(s,c.segmentPrefix),g(s,y.toString(16)),m(s,xo);case Mr:return g(s,Yr),g(s,c.segmentPrefix),g(s,y.toString(16)),m(s,Ci);case fr:return g(s,ul),g(s,c.segmentPrefix),g(s,y.toString(16)),m(s,zo);case pr:return g(s,dl),g(s,c.segmentPrefix),g(s,y.toString(16)),m(s,Vs);case $r:return g(s,gs),g(s,c.segmentPrefix),g(s,y.toString(16)),m(s,So);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function Ta(s,c){switch(c.insertionMode){case or:case er:return m(s,hs);case jt:return m(s,wa);case tr:return m(s,Hn);case Mr:return m(s,Aa);case fr:return m(s,fl);case pr:return m(s,ps);case $r:return m(s,hl);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var w="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)}",N='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()}}',z='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=w+';$RS("',Ae='$RS("',Se='","',Ve='")<\/script>';function dt(s,c,d){g(s,c.startInlineScript),c.sentCompleteSegmentFunction?g(s,Ae):(c.sentCompleteSegmentFunction=!0,g(s,te)),g(s,c.segmentPrefix);var y=d.toString(16);return g(s,y),g(s,Se),g(s,c.placeholderPrefix),g(s,y),m(s,Ve)}var Wt=N+';$RC("',hr='$RC("',sr='","',Gr='")<\/script>';function ti(s,c,d,y){if(g(s,c.startInlineScript),c.sentCompleteBoundaryFunction?g(s,hr):(c.sentCompleteBoundaryFunction=!0,g(s,Wt)),d===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var L=y.toString(16);return g(s,d),g(s,sr),g(s,c.segmentPrefix),g(s,L),m(s,Gr)}var wi=z+';$RX("',Ai='$RX("',Zs='"',pl=")<\/script>",ms=",";function Ys(s,c,d,y,L,F){if(g(s,c.startInlineScript),c.sentClientRenderFunction?g(s,Ai):(c.sentClientRenderFunction=!0,g(s,wi)),d===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return g(s,d),g(s,Zs),(y||L||F)&&(g(s,ms),g(s,nc(y||""))),(L||F)&&(g(s,ms),g(s,nc(L||""))),F&&(g(s,ms),g(s,nc(F))),m(s,pl)}var tf=/[<\u2028\u2029]/g;function nc(s){var c=JSON.stringify(s);return c.replace(tf,function(d){switch(d){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 ic(s,c){var d=Bt(c);return{bootstrapChunks:d.bootstrapChunks,startInlineScript:d.startInlineScript,placeholderPrefix:d.placeholderPrefix,segmentPrefix:d.segmentPrefix,boundaryPrefix:d.boundaryPrefix,idPrefix:d.idPrefix,nextSuspenseID:d.nextSuspenseID,sentCompleteSegmentFunction:d.sentCompleteSegmentFunction,sentCompleteBoundaryFunction:d.sentCompleteBoundaryFunction,sentClientRenderFunction:d.sentClientRenderFunction,generateStaticMarkup:s}}function nu(){return{insertionMode:er,selectedValue:null}}function Co(s,c,d,y){return d.generateStaticMarkup?(s.push(Ft(c)),!1):Yn(s,c,d,y)}function Ea(s,c,d,y){if(!c.generateStaticMarkup)return Kn(s,c,d,y)}function rf(s,c){return c.generateStaticMarkup?!0:Fr(s)}function nf(s,c,d,y,L){return c.generateStaticMarkup?!0:li(s,c,d,y,L)}function of(s,c){return c.generateStaticMarkup?!0:pi(s)}function Ks(s,c){return c.generateStaticMarkup?!0:_o(s)}var un=Object.assign,iu=Symbol.for("react.element"),ou=Symbol.for("react.portal"),gl=Symbol.for("react.fragment"),Ti=Symbol.for("react.strict_mode"),su=Symbol.for("react.profiler"),ml=Symbol.for("react.provider"),wo=Symbol.for("react.context"),ge=Symbol.for("react.forward_ref"),ze=Symbol.for("react.suspense"),Me=Symbol.for("react.suspense_list"),Pt=Symbol.for("react.memo"),ir=Symbol.for("react.lazy"),Pr=Symbol.for("react.scope"),bn=Symbol.for("react.debug_trace_mode"),Ur=Symbol.for("react.legacy_hidden"),Xs=Symbol.for("react.default_value"),au=Symbol.iterator,Ni="@@iterator";function vl(s){if(s===null||typeof s!="object")return null;var c=au&&s[au]||s[Ni];return typeof c=="function"?c:null}function sf(s,c,d){var y=s.displayName;if(y)return y;var L=c.displayName||c.name||"";return L!==""?d+"("+L+")":d}function $o(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 gl:return"Fragment";case ou:return"Portal";case su:return"Profiler";case Ti:return"StrictMode";case ze:return"Suspense";case Me:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case wo:var c=s;return $o(c)+".Consumer";case ml:var d=s;return $o(d._context)+".Provider";case ge:return sf(s,s.render,"ForwardRef");case Pt:var y=s.displayName||null;return y!==null?y:en(s.type)||"Memo";case ir:{var L=s,F=L._payload,U=L._init;try{return en(U(F))}catch{return null}}}return null}var Uo=0,zr,oc,an,Ao,sc,ac,lc;function Js(){}Js.__reactDisabledLog=!0;function To(){{if(Uo===0){zr=console.log,oc=console.info,an=console.warn,Ao=console.error,sc=console.group,ac=console.groupCollapsed,lc=console.groupEnd;var s={configurable:!0,enumerable:!0,value:Js,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}Uo++}}function ka(){{if(Uo--,Uo===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:un({},s,{value:zr}),info:un({},s,{value:oc}),warn:un({},s,{value:an}),error:un({},s,{value:Ao}),group:un({},s,{value:sc}),groupCollapsed:un({},s,{value:ac}),groupEnd:un({},s,{value:lc})})}Uo<0&&i("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ra=t.ReactCurrentDispatcher,vs;function Qs(s,c,d){{if(vs===void 0)try{throw Error()}catch(L){var y=L.stack.trim().match(/\n( *(at )?)/);vs=y&&y[1]||""}return`
|
277
|
-
`+vs+s}}var yl=!1,Eo;{var bl=typeof WeakMap=="function"?WeakMap:Map;Eo=new bl}function Ui(s,c){if(!s||yl)return"";{var d=Eo.get(s);if(d!==void 0)return d}var y;yl=!0;var L=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var F;F=Ra.current,Ra.current=null,To();try{if(c){var U=function(){throw Error()};if(Object.defineProperty(U.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(U,[])}catch($n){y=$n}Reflect.construct(s,[],U)}else{try{U.call()}catch($n){y=$n}s.call(U.prototype)}}else{try{throw Error()}catch($n){y=$n}s()}}catch($n){if($n&&y&&typeof $n.stack=="string"){for(var oe=$n.stack.split(`
|
278
|
-
`),xe=y.stack.split(`
|
279
|
-
`),Ge=oe.length-1,tt=xe.length-1;Ge>=1&&tt>=0&&oe[Ge]!==xe[tt];)tt--;for(;Ge>=1&&tt>=0;Ge--,tt--)if(oe[Ge]!==xe[tt]){if(Ge!==1||tt!==1)do if(Ge--,tt--,tt<0||oe[Ge]!==xe[tt]){var Ct=`
|
280
|
-
`+oe[Ge].replace(" at new "," at ");return s.displayName&&Ct.includes("<anonymous>")&&(Ct=Ct.replace("<anonymous>",s.displayName)),typeof s=="function"&&Eo.set(s,Ct),Ct}while(Ge>=1&&tt>=0);break}}}finally{yl=!1,Ra.current=F,ka(),Error.prepareStackTrace=L}var nr=s?s.displayName||s.name:"",Lr=nr?Qs(nr):"";return typeof s=="function"&&Eo.set(s,Lr),Lr}function ko(s,c,d){return Ui(s,!0)}function Wo(s,c,d){return Ui(s,!1)}function af(s){var c=s.prototype;return!!(c&&c.isReactComponent)}function Ia(s,c,d){if(s==null)return"";if(typeof s=="function")return Ui(s,af(s));if(typeof s=="string")return Qs(s);switch(s){case ze:return Qs("Suspense");case Me:return Qs("SuspenseList")}if(typeof s=="object")switch(s.$$typeof){case ge:return Wo(s.render);case Pt:return Ia(s.type,c,d);case ir:{var y=s,L=y._payload,F=y._init;try{return Ia(F(L),c,d)}catch{}}}return""}var lu={},ea=t.ReactDebugCurrentFrame;function ys(s){if(s){var c=s._owner,d=Ia(s.type,s._source,c?c.type:null);ea.setExtraStackFrame(d)}else ea.setExtraStackFrame(null)}function ta(s,c,d,y,L){{var F=Function.call.bind(q);for(var U in s)if(F(s,U)){var oe=void 0;try{if(typeof s[U]!="function"){var xe=Error((y||"React class")+": "+d+" type `"+U+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[U]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw xe.name="Invariant Violation",xe}oe=s[U](c,U,y,d,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ge){oe=Ge}oe&&!(oe instanceof Error)&&(ys(L),i("%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).",y||"React class",d,U,typeof oe),ys(null)),oe instanceof Error&&!(oe.message in lu)&&(lu[oe.message]=!0,ys(L),i("Failed %s type: %s",d,oe.message),ys(null))}}}var _l;_l={};var ra={};Object.freeze(ra);function La(s,c){{var d=s.contextTypes;if(!d)return ra;var y={};for(var L in d)y[L]=c[L];{var F=en(s)||"Unknown";ta(d,y,"context",F)}return y}}function cu(s,c,d,y){{if(typeof s.getChildContext!="function"){{var L=en(c)||"Unknown";_l[L]||(_l[L]=!0,i("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",L,L))}return d}var F=s.getChildContext();for(var U in F)if(!(U in y))throw new Error((en(c)||"Unknown")+'.getChildContext(): key "'+U+'" is not defined in childContextTypes.');{var oe=en(c)||"Unknown";ta(y,F,"child context",oe)}return un({},d,F)}}var ln;ln={};var In=null,Vo=null;function cc(s){s.context._currentValue2=s.parentValue}function Go(s){s.context._currentValue2=s.value}function xl(s,c){if(s!==c){cc(s);var d=s.parent,y=c.parent;if(d===null){if(y!==null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(y===null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.");xl(d,y)}Go(c)}}function ro(s){cc(s);var c=s.parent;c!==null&&ro(c)}function Zo(s){var c=s.parent;c!==null&&Zo(c),Go(s)}function na(s,c){cc(s);var d=s.parent;if(d===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");d.depth===c.depth?xl(d,c):na(d,c)}function no(s,c){var d=c.parent;if(d===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");s.depth===d.depth?xl(s,d):no(s,d),Go(c)}function Ro(s){var c=Vo,d=s;c!==d&&(c===null?Zo(d):d===null?ro(c):c.depth===d.depth?xl(c,d):c.depth>d.depth?na(c,d):no(c,d),Vo=d)}function ia(s,c){var d;d=s._currentValue2,s._currentValue2=c,s._currentRenderer2!==void 0&&s._currentRenderer2!==null&&s._currentRenderer2!==ln&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),s._currentRenderer2=ln;var y=Vo,L={parent:y,depth:y===null?0:y.depth+1,context:s,parentValue:d,value:c};return Vo=L,L}function Ma(s){var c=Vo;if(c===null)throw new Error("Tried to pop a Context at the root of the app. This is a bug in React.");c.context!==s&&i("The parent context is not the expected context. This is probably a bug in React.");{var d=c.parentValue;d===Xs?c.context._currentValue2=c.context._defaultValue:c.context._currentValue2=d,s._currentRenderer2!==void 0&&s._currentRenderer2!==null&&s._currentRenderer2!==ln&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),s._currentRenderer2=ln}return Vo=c.parent}function bs(){return Vo}function Yo(s){var c=s._currentValue2;return c}function uc(s){return s._reactInternals}function lf(s,c){s._reactInternals=c}var uu={},oa={},Ko,_s,Da,$,Io,Lo,ri,yr,Sl;{Ko=new Set,_s=new Set,Da=new Set,ri=new Set,$=new Set,yr=new Set,Sl=new Set;var Oa=new Set;Lo=function(s,c){if(!(s===null||typeof s=="function")){var d=c+"_"+s;Oa.has(d)||(Oa.add(d),i("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",c,s))}},Io=function(s,c){if(c===void 0){var d=en(s)||"Component";$.has(d)||($.add(d),i("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",d))}}}function Cl(s,c){{var d=s.constructor,y=d&&en(d)||"ReactClass",L=y+"."+c;if(uu[L])return;i(`%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
|
281
|
-
|
282
|
-
Please check the code for the %s component.`,c,c,y),uu[L]=!0}}var io={isMounted:function(s){return!1},enqueueSetState:function(s,c,d){var y=uc(s);y.queue===null?Cl(s,"setState"):(y.queue.push(c),d!=null&&Lo(d,"setState"))},enqueueReplaceState:function(s,c,d){var y=uc(s);y.replace=!0,y.queue=[c],d!=null&&Lo(d,"setState")},enqueueForceUpdate:function(s,c){var d=uc(s);d.queue===null?Cl(s,"forceUpdate"):c!=null&&Lo(c,"setState")}};function fc(s,c,d,y,L){var F=d(L,y);Io(c,F);var U=F==null?y:un({},y,F);return U}function fu(s,c,d){var y=ra,L=s.contextType;if("contextType"in s){var F=L===null||L!==void 0&&L.$$typeof===wo&&L._context===void 0;if(!F&&!Sl.has(s)){Sl.add(s);var U="";L===void 0?U=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof L!="object"?U=" However, it is set to a "+typeof L+".":L.$$typeof===ml?U=" Did you accidentally pass the Context.Provider instead?":L._context!==void 0?U=" Did you accidentally pass the Context.Consumer instead?":U=" However, it is set to an object with keys {"+Object.keys(L).join(", ")+"}.",i("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",en(s)||"Component",U)}}typeof L=="object"&&L!==null?y=Yo(L):y=d;var oe=new s(c,y);{if(typeof s.getDerivedStateFromProps=="function"&&(oe.state===null||oe.state===void 0)){var xe=en(s)||"Component";Ko.has(xe)||(Ko.add(xe),i("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",xe,oe.state===null?"null":"undefined",xe))}if(typeof s.getDerivedStateFromProps=="function"||typeof oe.getSnapshotBeforeUpdate=="function"){var Ge=null,tt=null,Ct=null;if(typeof oe.componentWillMount=="function"&&oe.componentWillMount.__suppressDeprecationWarning!==!0?Ge="componentWillMount":typeof oe.UNSAFE_componentWillMount=="function"&&(Ge="UNSAFE_componentWillMount"),typeof oe.componentWillReceiveProps=="function"&&oe.componentWillReceiveProps.__suppressDeprecationWarning!==!0?tt="componentWillReceiveProps":typeof oe.UNSAFE_componentWillReceiveProps=="function"&&(tt="UNSAFE_componentWillReceiveProps"),typeof oe.componentWillUpdate=="function"&&oe.componentWillUpdate.__suppressDeprecationWarning!==!0?Ct="componentWillUpdate":typeof oe.UNSAFE_componentWillUpdate=="function"&&(Ct="UNSAFE_componentWillUpdate"),Ge!==null||tt!==null||Ct!==null){var nr=en(s)||"Component",Lr=typeof s.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Da.has(nr)||(Da.add(nr),i(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
283
|
-
|
284
|
-
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
285
|
-
|
286
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
287
|
-
https://reactjs.org/link/unsafe-component-lifecycles`,nr,Lr,Ge!==null?`
|
288
|
-
`+Ge:"",tt!==null?`
|
289
|
-
`+tt:"",Ct!==null?`
|
290
|
-
`+Ct:""))}}}return oe}function du(s,c,d){{var y=en(c)||"Component",L=s.render;L||(c.prototype&&typeof c.prototype.render=="function"?i("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",y):i("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",y)),s.getInitialState&&!s.getInitialState.isReactClassApproved&&!s.state&&i("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",y),s.getDefaultProps&&!s.getDefaultProps.isReactClassApproved&&i("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",y),s.propTypes&&i("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",y),s.contextType&&i("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",y),s.contextTypes&&i("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",y),c.contextType&&c.contextTypes&&!yr.has(c)&&(yr.add(c),i("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",y)),typeof s.componentShouldUpdate=="function"&&i("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",y),c.prototype&&c.prototype.isPureReactComponent&&typeof s.shouldComponentUpdate<"u"&&i("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",en(c)||"A pure component"),typeof s.componentDidUnmount=="function"&&i("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",y),typeof s.componentDidReceiveProps=="function"&&i("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",y),typeof s.componentWillRecieveProps=="function"&&i("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",y),typeof s.UNSAFE_componentWillRecieveProps=="function"&&i("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",y);var F=s.props!==d;s.props!==void 0&&F&&i("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",y,y),s.defaultProps&&i("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",y,y),typeof s.getSnapshotBeforeUpdate=="function"&&typeof s.componentDidUpdate!="function"&&!_s.has(c)&&(_s.add(c),i("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",en(c))),typeof s.getDerivedStateFromProps=="function"&&i("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",y),typeof s.getDerivedStateFromError=="function"&&i("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",y),typeof c.getSnapshotBeforeUpdate=="function"&&i("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",y);var U=s.state;U&&(typeof U!="object"||Ne(U))&&i("%s.state: must be set to an object or null",y),typeof s.getChildContext=="function"&&typeof c.childContextTypes!="object"&&i("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",y)}}function hu(s,c){var d=c.state;if(typeof c.componentWillMount=="function"){if(c.componentWillMount.__suppressDeprecationWarning!==!0){var y=en(s)||"Unknown";oa[y]||(n(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
291
|
-
|
292
|
-
* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
|
293
|
-
|
294
|
-
Please update the following components: %s`,y),oa[y]=!0)}c.componentWillMount()}typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),d!==c.state&&(i("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",en(s)||"Component"),io.enqueueReplaceState(c,c.state,null))}function cf(s,c,d,y){if(s.queue!==null&&s.queue.length>0){var L=s.queue,F=s.replace;if(s.queue=null,s.replace=!1,F&&L.length===1)c.state=L[0];else{for(var U=F?L[0]:c.state,oe=!0,xe=F?1:0;xe<L.length;xe++){var Ge=L[xe],tt=typeof Ge=="function"?Ge.call(c,U,d,y):Ge;tt!=null&&(oe?(oe=!1,U=un({},U,tt)):un(U,tt))}c.state=U}}else s.queue=null}function oo(s,c,d,y){du(s,c,d);var L=s.state!==void 0?s.state:null;s.updater=io,s.props=d,s.state=L;var F={queue:[],replace:!1};lf(s,F);var U=c.contextType;if(typeof U=="object"&&U!==null?s.context=Yo(U):s.context=y,s.state===d){var oe=en(c)||"Component";ri.has(oe)||(ri.add(oe),i("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",oe))}var xe=c.getDerivedStateFromProps;typeof xe=="function"&&(s.state=fc(s,c,xe,L,d)),typeof c.getDerivedStateFromProps!="function"&&typeof s.getSnapshotBeforeUpdate!="function"&&(typeof s.UNSAFE_componentWillMount=="function"||typeof s.componentWillMount=="function")&&(hu(c,s),cf(F,s,d,y))}var uf={id:1,overflow:""};function ff(s){var c=s.overflow,d=s.id,y=d&~df(d);return y.toString(32)+c}function dc(s,c,d){var y=s.id,L=s.overflow,F=Pa(y)-1,U=y&~(1<<F),oe=d+1,xe=Pa(c)+F;if(xe>30){var Ge=F-F%5,tt=(1<<Ge)-1,Ct=(U&tt).toString(32),nr=U>>Ge,Lr=F-Ge,$n=Pa(c)+Lr,ns=oe<<Lr,uo=ns|nr,fo=Ct+L;return{id:1<<$n|uo,overflow:fo}}else{var is=oe<<F,_f=is|U,ld=L;return{id:1<<xe|_f,overflow:ld}}}function Pa(s){return 32-Mo(s)}function df(s){return 1<<Pa(s)-1}var Mo=Math.clz32?Math.clz32:hf,hc=Math.log,wl=Math.LN2;function hf(s){var c=s>>>0;return c===0?32:31-(hc(c)/wl|0)|0}function pf(s,c){return s===c&&(s!==0||1/s===1/c)||s!==s&&c!==c}var gf=typeof Object.is=="function"?Object.is:pf,ci=null,pc=null,Al=null,Tr=null,Ei=!1,sa=!1,xs=0,Nr=null,Xo=0,Na=25,gi=!1,ki;function so(){if(ci===null)throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
295
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
296
|
-
2. You might be breaking the Rules of Hooks
|
297
|
-
3. You might have more than one copy of React in the same app
|
298
|
-
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return gi&&i("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks"),ci}function gc(s,c){if(c===null)return i("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",ki),!1;s.length!==c.length&&i(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
299
|
-
|
300
|
-
Previous: %s
|
301
|
-
Incoming: %s`,ki,"["+s.join(", ")+"]","["+c.join(", ")+"]");for(var d=0;d<c.length&&d<s.length;d++)if(!gf(s[d],c[d]))return!1;return!0}function ui(){if(Xo>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function Wi(){return Tr===null?Al===null?(Ei=!1,Al=Tr=ui()):(Ei=!0,Tr=Al):Tr.next===null?(Ei=!1,Tr=Tr.next=ui()):(Ei=!0,Tr=Tr.next),Tr}function Ss(s,c){ci=c,pc=s,gi=!1,xs=0}function pu(s,c,d,y){for(;sa;)sa=!1,xs=0,Xo+=1,Tr=null,d=s(c,y);return Ri(),d}function mc(){var s=xs!==0;return s}function Ri(){gi=!1,ci=null,pc=null,sa=!1,Al=null,Xo=0,Nr=null,Tr=null}function vc(s){return gi&&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 Cs(s){return ki="useContext",so(),Yo(s)}function fi(s,c){return typeof c=="function"?c(s):c}function yc(s){return ki="useState",bc(fi,s)}function bc(s,c,d){if(s!==fi&&(ki="useReducer"),ci=so(),Tr=Wi(),Ei){var y=Tr.queue,L=y.dispatch;if(Nr!==null){var F=Nr.get(y);if(F!==void 0){Nr.delete(y);var U=Tr.memoizedState,oe=F;do{var xe=oe.action;gi=!0,U=s(U,xe),gi=!1,oe=oe.next}while(oe!==null);return Tr.memoizedState=U,[U,L]}}return[Tr.memoizedState,L]}else{gi=!0;var Ge;s===fi?Ge=typeof c=="function"?c():c:Ge=d!==void 0?d(c):c,gi=!1,Tr.memoizedState=Ge;var tt=Tr.queue={last:null,dispatch:null},Ct=tt.dispatch=xc.bind(null,ci,tt);return[Tr.memoizedState,Ct]}}function _c(s,c){ci=so(),Tr=Wi();var d=c===void 0?null:c;if(Tr!==null){var y=Tr.memoizedState;if(y!==null&&d!==null){var L=y[1];if(gc(d,L))return y[0]}}gi=!0;var F=s();return gi=!1,Tr.memoizedState=[F,d],F}function ws(s){ci=so(),Tr=Wi();var c=Tr.memoizedState;if(c===null){var d={current:s};return Object.seal(d),Tr.memoizedState=d,d}else return c}function Jo(s,c){ki="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 xc(s,c,d){if(Xo>=Na)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(s===ci){sa=!0;var y={action:d,next:null};Nr===null&&(Nr=new Map);var L=Nr.get(c);if(L===void 0)Nr.set(c,y);else{for(var F=L;F.next!==null;)F=F.next;F.next=y}}}function gu(s,c){return _c(function(){return s},c)}function Tl(s,c,d){return so(),c(s._source)}function mf(s,c,d){if(d===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return d()}function mu(s){return so(),s}function zn(){throw new Error("startTransition cannot be called during server rendering.")}function Sc(){return so(),[!1,zn]}function vu(){var s=pc,c=ff(s.treeContext),d=aa;if(d===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var y=xs++;return Kr(d,c,y)}function Ii(){}var El={readContext:vc,useContext:Cs,useMemo:_c,useReducer:bc,useRef:ws,useState:yc,useInsertionEffect:Ii,useLayoutEffect:Jo,useCallback:gu,useImperativeHandle:Ii,useEffect:Ii,useDebugValue:Ii,useDeferredValue:mu,useTransition:Sc,useId:vu,useMutableSource:Tl,useSyncExternalStore:mf},aa=null;function Qo(s){aa=s}function ja(s){try{var c="",d=s;do{switch(d.tag){case 0:c+=Qs(d.type,null,null);break;case 1:c+=Wo(d.type,null,null);break;case 2:c+=ko(d.type,null,null);break}d=d.parent}while(d);return c}catch(y){return`
|
302
|
-
Error generating stack: `+y.message+`
|
303
|
-
`+y.stack}}var Pn=t.ReactCurrentDispatcher,As=t.ReactDebugCurrentFrame,kl=0,la=1,Rl=2,ca=3,Il=4,ao=0,Ll=1,Ts=2,yu=12800;function Fa(s){return console.error(s),null}function ua(){}function fa(s,c,d,y,L,F,U,oe,xe){var Ge=[],tt=new Set,Ct={destination:null,responseState:c,progressiveChunkSize:y===void 0?yu:y,status:ao,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:tt,pingedTasks:Ge,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:L===void 0?Fa:L,onAllReady:ua,onShellReady:U===void 0?ua:U,onShellError:ua,onFatalError:ua},nr=Ml(Ct,0,null,d,!1,!1);nr.parentFlushed=!0;var Lr=Es(Ct,s,null,nr,tt,ra,In,uf);return Ge.push(Lr),Ct}function Cc(s,c){var d=s.pingedTasks;d.push(c),d.length===1&&u(function(){return co(s)})}function bu(s,c){return{id:Sn,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:c,errorDigest:null}}function Es(s,c,d,y,L,F,U,oe){s.allPendingTasks++,d===null?s.pendingRootTasks++:d.pendingTasks++;var xe={node:c,ping:function(){return Cc(s,xe)},blockedBoundary:d,blockedSegment:y,abortSet:L,legacyContext:F,context:U,treeContext:oe};return xe.componentStack=null,L.add(xe),xe}function Ml(s,c,d,y,L,F){return{status:kl,id:-1,index:c,parentFlushed:!1,chunks:[],children:[],formatContext:y,boundary:d,lastPushedText:L,textEmbedded:F}}var Do=null;function Dl(){return Do===null||Do.componentStack===null?"":ja(Do.componentStack)}function Oo(s,c){s.componentStack={tag:0,parent:s.componentStack,type:c}}function Ba(s,c){s.componentStack={tag:1,parent:s.componentStack,type:c}}function Vi(s,c){s.componentStack={tag:2,parent:s.componentStack,type:c}}function Gi(s){s.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):s.componentStack=s.componentStack.parent}var lo=null;function qa(s,c){{var d;typeof c=="string"?d=c:c&&typeof c.message=="string"?d=c.message:d=String(c);var y=lo||Dl();lo=null,s.errorMessage=d,s.errorComponentStack=y}}function es(s,c){var d=s.onError(c);if(d!=null&&typeof d!="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 d+'" instead');return d}function Zi(s,c){var d=s.onShellError;d(c);var y=s.onFatalError;y(c),s.destination!==null?(s.status=Ts,S(s.destination,c)):(s.status=Ll,s.fatalError=c)}function da(s,c,d){Oo(c,"Suspense");var y=c.blockedBoundary,L=c.blockedSegment,F=d.fallback,U=d.children,oe=new Set,xe=bu(s,oe),Ge=L.chunks.length,tt=Ml(s,Ge,xe,L.formatContext,!1,!1);L.children.push(tt),L.lastPushedText=!1;var Ct=Ml(s,0,null,L.formatContext,!1,!1);Ct.parentFlushed=!0,c.blockedBoundary=xe,c.blockedSegment=Ct;try{if(ni(s,c,U),Ea(Ct.chunks,s.responseState,Ct.lastPushedText,Ct.textEmbedded),Ct.status=la,ts(xe,Ct),xe.pendingTasks===0){Gi(c);return}}catch(Lr){Ct.status=Il,xe.forceClientRender=!0,xe.errorDigest=es(s,Lr),qa(xe,Lr)}finally{c.blockedBoundary=y,c.blockedSegment=L}var nr=Es(s,F,y,tt,oe,c.legacyContext,c.context,c.treeContext);nr.componentStack=c.componentStack,s.pingedTasks.push(nr),Gi(c)}function Ol(s,c,d,y){Oo(c,d);var L=c.blockedSegment,F=Qn(L.chunks,d,y,s.responseState,L.formatContext);L.lastPushedText=!1;var U=L.formatContext;L.formatContext=Gn(U,d,y),ni(s,c,F),L.formatContext=U,Dr(L.chunks,d),L.lastPushedText=!1,Gi(c)}function Ha(s){return s.prototype&&s.prototype.isReactComponent}function ha(s,c,d,y,L){var F={};Ss(c,F);var U=d(y,L);return pu(d,y,U,L)}function _u(s,c,d,y,L){var F=d.render();d.props!==L&&(mr||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"),mr=!0);{var U=y.childContextTypes;if(U!=null){var oe=c.legacyContext,xe=cu(d,y,oe,U);c.legacyContext=xe,An(s,c,F),c.legacyContext=oe;return}}An(s,c,F)}function wc(s,c,d,y){Vi(c,d);var L=La(d,c.legacyContext),F=fu(d,y,L);oo(F,d,y,L),_u(s,c,F,d,y),Gi(c)}var Ac={},ks={},Tc={},Pl={},mr=!1,za=!1,Ec=!1,Rs=!1;function kc(s,c,d,y){var L;if(L=La(d,c.legacyContext),Ba(c,d),d.prototype&&typeof d.prototype.render=="function"){var F=en(d)||"Unknown";Ac[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),Ac[F]=!0)}var U=ha(s,c,d,y,L),oe=mc();if(typeof U=="object"&&U!==null&&typeof U.render=="function"&&U.$$typeof===void 0){var xe=en(d)||"Unknown";ks[xe]||(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.",xe,xe,xe),ks[xe]=!0)}if(typeof U=="object"&&U!==null&&typeof U.render=="function"&&U.$$typeof===void 0){{var Ge=en(d)||"Unknown";ks[Ge]||(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.",Ge,Ge,Ge),ks[Ge]=!0)}oo(U,d,y,L),_u(s,c,U,d,y)}else if(xu(d),oe){var tt=c.treeContext,Ct=1,nr=0;c.treeContext=dc(tt,Ct,nr);try{An(s,c,U)}finally{c.treeContext=tt}}else An(s,c,U);Gi(c)}function xu(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";Pl[c]||(i("%s: Function components do not support getDerivedStateFromProps.",c),Pl[c]=!0)}if(typeof s.contextType=="object"&&s.contextType!==null){var d=en(s)||"Unknown";Tc[d]||(i("%s: Function components do not support contextType.",d),Tc[d]=!0)}}}function Rc(s,c){if(s&&s.defaultProps){var d=un({},c),y=s.defaultProps;for(var L in y)d[L]===void 0&&(d[L]=y[L]);return d}return c}function Li(s,c,d,y,L){Ba(c,d.render);var F=ha(s,c,d.render,y,L),U=mc();if(U){var oe=c.treeContext,xe=1,Ge=0;c.treeContext=dc(oe,xe,Ge);try{An(s,c,F)}finally{c.treeContext=oe}}else An(s,c,F);Gi(c)}function vf(s,c,d,y,L){var F=d.type,U=Rc(F,y);Fl(s,c,F,U,L)}function Nl(s,c,d,y){d._context===void 0?d!==d.Consumer&&(Rs||(Rs=!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?"))):d=d._context;var L=y.children;typeof L!="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(d),U=L(F);An(s,c,U)}function jl(s,c,d,y){var L=d._context,F=y.value,U=y.children,oe;oe=c.context,c.context=ia(L,F),An(s,c,U),c.context=Ma(L),oe!==c.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Su(s,c,d,y,L){Oo(c,"Lazy");var F=d._payload,U=d._init,oe=U(F),xe=Rc(oe,y);Fl(s,c,oe,xe,L),Gi(c)}function Fl(s,c,d,y,L){if(typeof d=="function")if(Ha(d)){wc(s,c,d,y);return}else{kc(s,c,d,y);return}if(typeof d=="string"){Ol(s,c,d,y);return}switch(d){case Ur:case bn:case Ti:case su:case gl:{An(s,c,y.children);return}case Me:{Oo(c,"SuspenseList"),An(s,c,y.children),Gi(c);return}case Pr:throw new Error("ReactDOMServer does not yet support scope components.");case ze:{da(s,c,y);return}}if(typeof d=="object"&&d!==null)switch(d.$$typeof){case ge:{Li(s,c,d,y,L);return}case Pt:{vf(s,c,d,y,L);return}case ml:{jl(s,c,d,y);return}case wo:{Nl(s,c,d,y);return}case ir:{Su(s,c,d,y);return}}var F="";throw(d===void 0||typeof d=="object"&&d!==null&&Object.keys(d).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: "+(d==null?d:typeof d)+"."+F))}function Mi(s,c){typeof Symbol=="function"&&s[Symbol.toStringTag]==="Generator"&&(za||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."),za=!0),s.entries===c&&(Ec||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ec=!0)}function An(s,c,d){try{return Ic(s,c,d)}catch(y){throw typeof y=="object"&&y!==null&&typeof y.then=="function"||(lo=lo!==null?lo:Dl()),y}}function Ic(s,c,d){if(c.node=d,typeof d=="object"&&d!==null){switch(d.$$typeof){case iu:{var y=d,L=y.type,F=y.props,U=y.ref;Fl(s,c,L,F,U);return}case ou: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 ir:{var oe=d,xe=oe._payload,Ge=oe._init,tt;try{tt=Ge(xe)}catch(is){throw typeof is=="object"&&is!==null&&typeof is.then=="function"&&Oo(c,"Lazy"),is}An(s,c,tt);return}}if(Ne(d)){$a(s,c,d);return}var Ct=vl(d);if(Ct){Mi(d,Ct);var nr=Ct.call(d);if(nr){var Lr=nr.next();if(!Lr.done){var $n=[];do $n.push(Lr.value),Lr=nr.next();while(!Lr.done);$a(s,c,$n);return}return}}var ns=Object.prototype.toString.call(d);throw new Error("Objects are not valid as a React child (found: "+(ns==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":ns)+"). If you meant to render a collection of children, use an array instead.")}if(typeof d=="string"){var uo=c.blockedSegment;uo.lastPushedText=Co(c.blockedSegment.chunks,d,s.responseState,uo.lastPushedText);return}if(typeof d=="number"){var fo=c.blockedSegment;fo.lastPushedText=Co(c.blockedSegment.chunks,""+d,s.responseState,fo.lastPushedText);return}typeof d=="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 $a(s,c,d){for(var y=d.length,L=0;L<y;L++){var F=c.treeContext;c.treeContext=dc(F,y,L);try{ni(s,c,d[L])}finally{c.treeContext=F}}}function Bl(s,c,d){var y=c.blockedSegment,L=y.chunks.length,F=Ml(s,L,null,y.formatContext,y.lastPushedText,!0);y.children.push(F),y.lastPushedText=!1;var U=Es(s,c.node,c.blockedBoundary,F,c.abortSet,c.legacyContext,c.context,c.treeContext);c.componentStack!==null&&(U.componentStack=c.componentStack.parent);var oe=U.ping;d.then(oe,oe)}function ni(s,c,d){var y=c.blockedSegment.formatContext,L=c.legacyContext,F=c.context,U=null;U=c.componentStack;try{return An(s,c,d)}catch(oe){if(Ri(),typeof oe=="object"&&oe!==null&&typeof oe.then=="function"){Bl(s,c,oe),c.blockedSegment.formatContext=y,c.legacyContext=L,c.context=F,Ro(F),c.componentStack=U;return}else throw c.blockedSegment.formatContext=y,c.legacyContext=L,c.context=F,Ro(F),c.componentStack=U,oe}}function Lc(s,c,d,y){var L=es(s,y);if(c===null?Zi(s,y):(c.pendingTasks--,c.forceClientRender||(c.forceClientRender=!0,c.errorDigest=L,qa(c,y),c.parentFlushed&&s.clientRenderedBoundaries.push(c))),s.allPendingTasks--,s.allPendingTasks===0){var F=s.onAllReady;F()}}function Mc(s){var c=this,d=s.blockedBoundary,y=s.blockedSegment;y.status=ca,Po(c,d,y)}function ql(s,c,d){var y=s.blockedBoundary,L=s.blockedSegment;if(L.status=ca,y===null)c.allPendingTasks--,c.status!==Ts&&(c.status=Ts,c.destination!==null&&T(c.destination));else{if(y.pendingTasks--,!y.forceClientRender){y.forceClientRender=!0;var F=d===void 0?new Error("The render was aborted by the server without a reason."):d;y.errorDigest=c.onError(F);{var U="The server did not finish this Suspense boundary: ";F&&typeof F.message=="string"?F=U+F.message:F=U+String(F);var oe=Do;Do=s;try{qa(y,F)}finally{Do=oe}}y.parentFlushed&&c.clientRenderedBoundaries.push(y)}if(y.fallbackAbortableTasks.forEach(function(Ge){return ql(Ge,c,d)}),y.fallbackAbortableTasks.clear(),c.allPendingTasks--,c.allPendingTasks===0){var xe=c.onAllReady;xe()}}}function ts(s,c){if(c.chunks.length===0&&c.children.length===1&&c.children[0].boundary===null){var d=c.children[0];d.id=c.id,d.parentFlushed=!0,d.status===la&&ts(s,d)}else{var y=s.completedSegments;y.push(c)}}function Po(s,c,d){if(c===null){if(d.parentFlushed){if(s.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");s.completedRootSegment=d}if(s.pendingRootTasks--,s.pendingRootTasks===0){s.onShellError=ua;var y=s.onShellReady;y()}}else if(c.pendingTasks--,!c.forceClientRender){if(c.pendingTasks===0)d.parentFlushed&&d.status===la&&ts(c,d),c.parentFlushed&&s.completedBoundaries.push(c),c.fallbackAbortableTasks.forEach(Mc,s),c.fallbackAbortableTasks.clear();else if(d.parentFlushed&&d.status===la){ts(c,d);var L=c.completedSegments;L.length===1&&c.parentFlushed&&s.partialBoundaries.push(c)}}if(s.allPendingTasks--,s.allPendingTasks===0){var F=s.onAllReady;F()}}function yf(s,c){var d=c.blockedSegment;if(d.status===kl){Ro(c.context);var y=null;y=Do,Do=c;try{An(s,c,c.node),Ea(d.chunks,s.responseState,d.lastPushedText,d.textEmbedded),c.abortSet.delete(c),d.status=la,Po(s,c.blockedBoundary,d)}catch(F){if(Ri(),typeof F=="object"&&F!==null&&typeof F.then=="function"){var L=c.ping;F.then(L,L)}else c.abortSet.delete(c),d.status=Il,Lc(s,c.blockedBoundary,d,F)}finally{Do=y}}}function co(s){if(s.status!==Ts){var c=bs(),d=Pn.current;Pn.current=El;var y;y=As.getCurrentStack,As.getCurrentStack=Dl;var L=aa;Qo(s.responseState);try{var F=s.pingedTasks,U;for(U=0;U<F.length;U++){var oe=F[U];yf(s,oe)}F.splice(0,U),s.destination!==null&&Wa(s,s.destination)}catch(xe){es(s,xe),Zi(s,xe)}finally{Qo(L),Pn.current=d,As.getCurrentStack=y,d===El&&Ro(c)}}}function rs(s,c,d){switch(d.parentFlushed=!0,d.status){case kl:{var y=d.id=s.nextSegmentId++;return d.lastPushedText=!1,d.textEmbedded=!1,V(c,s.responseState,y)}case la:{d.status=Rl;for(var L=!0,F=d.chunks,U=0,oe=d.children,xe=0;xe<oe.length;xe++){for(var Ge=oe[xe];U<Ge.index;U++)g(c,F[U]);L=pa(s,c,Ge)}for(;U<F.length-1;U++)g(c,F[U]);return U<F.length&&(L=m(c,F[U])),L}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function pa(s,c,d){var y=d.boundary;if(y===null)return rs(s,c,d);if(y.parentFlushed=!0,y.forceClientRender)return nf(c,s.responseState,y.errorDigest,y.errorMessage,y.errorComponentStack),rs(s,c,d),Ks(c,s.responseState);if(y.pendingTasks>0){y.rootSegmentID=s.nextSegmentId++,y.completedSegments.length>0&&s.partialBoundaries.push(y);var L=y.id=Dn(s.responseState);return Qr(c,s.responseState,L),rs(s,c,d),Bn(c,s.responseState)}else{if(y.byteSize>s.progressiveChunkSize)return y.rootSegmentID=s.nextSegmentId++,s.completedBoundaries.push(y),Qr(c,s.responseState,y.id),rs(s,c,d),Bn(c,s.responseState);rf(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 U=F[0];return pa(s,c,U),of(c,s.responseState)}}function Dc(s,c,d){return Ys(c,s.responseState,d.id,d.errorDigest,d.errorMessage,d.errorComponentStack)}function Oc(s,c,d){return Gs(c,s.responseState,d.formatContext,d.id),pa(s,c,d),Ta(c,d.formatContext)}function Ua(s,c,d){for(var y=d.completedSegments,L=0;L<y.length;L++){var F=y[L];Pc(s,c,d,F)}return y.length=0,ti(c,s.responseState,d.id,d.rootSegmentID)}function Hl(s,c,d){for(var y=d.completedSegments,L=0;L<y.length;L++){var F=y[L];if(!Pc(s,c,d,F))return L++,y.splice(0,L),!1}return y.splice(0,L),!0}function Pc(s,c,d,y){if(y.status===Rl)return!0;var L=y.id;if(L===-1){var F=y.id=d.rootSegmentID;if(F===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return Oc(s,c,y)}else return Oc(s,c,y),dt(c,s.responseState,L)}function Wa(s,c){try{var d=s.completedRootSegment;d!==null&&s.pendingRootTasks===0&&(pa(s,c,d),s.completedRootSegment=null,Cr(c,s.responseState));var y=s.clientRenderedBoundaries,L;for(L=0;L<y.length;L++){var F=y[L];if(!Dc(s,c,F)){s.destination=null,L++,y.splice(0,L);return}}y.splice(0,L);var U=s.completedBoundaries;for(L=0;L<U.length;L++){var oe=U[L];if(!Ua(s,c,oe)){s.destination=null,L++,U.splice(0,L);return}}U.splice(0,L);var xe=s.partialBoundaries;for(L=0;L<xe.length;L++){var Ge=xe[L];if(!Hl(s,c,Ge)){s.destination=null,L++,xe.splice(0,L);return}}xe.splice(0,L);var tt=s.completedBoundaries;for(L=0;L<tt.length;L++){var Ct=tt[L];if(!Ua(s,c,Ct)){s.destination=null,L++,tt.splice(0,L);return}}tt.splice(0,L)}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."),T(c))}}function Cu(s){u(function(){return co(s)})}function wu(s,c){if(s.status===Ll){s.status=Ts,S(c,s.fatalError);return}if(s.status!==Ts&&s.destination===null){s.destination=c;try{Wa(s,c)}catch(d){es(s,d),Zi(s,d)}}}function Nc(s,c){try{var d=s.abortableTasks;d.forEach(function(y){return ql(y,s,c)}),d.clear(),s.destination!==null&&Wa(s,s.destination)}catch(y){es(s,y),Zi(s,y)}}function ii(){}function Yi(s,c,d,y){var L=!1,F=null,U="",oe={push:function(Ct){return Ct!==null&&(U+=Ct),!0},destroy:function(Ct){L=!0,F=Ct}},xe=!1;function Ge(){xe=!0}var tt=fa(s,ic(d,c?c.identifierPrefix:void 0),nu(),1/0,ii,void 0,Ge);if(Cu(tt),Nc(tt,y),wu(tt,oe),L)throw F;if(!xe)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 U}function bf(s,c){return Yi(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 Au(s,c){return Yi(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 zl(){throw new Error("ReactDOMServer.renderToNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToString() instead.")}function f(){throw new Error("ReactDOMServer.renderToStaticNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToStaticMarkup() instead.")}$c.renderToNodeStream=zl,$c.renderToStaticMarkup=Au,$c.renderToStaticNodeStream=f,$c.renderToString=bf,$c.version=e}()),$c}var Bd={};/**
|
304
|
-
* @license React
|
305
|
-
* react-dom-server.browser.development.js
|
306
|
-
*
|
307
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
308
|
-
*
|
309
|
-
* This source code is licensed under the MIT license found in the
|
310
|
-
* LICENSE file in the root directory of this source tree.
|
311
|
-
*/var ly;function tO(){return ly||(ly=1,process.env.NODE_ENV!=="production"&&function(){var r=R,e="18.2.0",t=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(f){{for(var s=arguments.length,c=new Array(s>1?s-1:0),d=1;d<s;d++)c[d-1]=arguments[d];l("warn",f,c)}}function i(f){{for(var s=arguments.length,c=new Array(s>1?s-1:0),d=1;d<s;d++)c[d-1]=arguments[d];l("error",f,c)}}function l(f,s,c){{var d=t.ReactDebugCurrentFrame,y=d.getStackAddendum();y!==""&&(s+="%s",c=c.concat([y]));var L=c.map(function(F){return String(F)});L.unshift("Warning: "+s),Function.prototype.apply.call(console[f],console,L)}}function u(f){f()}var h=512,g=null,m=0;function M(f){g=new Uint8Array(h),m=0}function T(f,s){if(s.length!==0){if(s.length>h){m>0&&(f.enqueue(new Uint8Array(g.buffer,0,m)),g=new Uint8Array(h),m=0),f.enqueue(s);return}var c=s,d=g.length-m;d<c.length&&(d===0?f.enqueue(g):(g.set(c.subarray(0,d),m),f.enqueue(g),c=c.subarray(d)),g=new Uint8Array(h),m=0),g.set(c,m),m+=c.length}}function C(f,s){return T(f,s),!0}function _(f){g&&m>0&&(f.enqueue(new Uint8Array(g.buffer,0,m)),g=null,m=0)}function S(f){f.close()}var D=new TextEncoder;function A(f){return D.encode(f)}function b(f){return D.encode(f)}function k(f,s){typeof f.error=="function"?f.error(s):f.close()}function O(f){{var s=typeof Symbol=="function"&&Symbol.toStringTag,c=s&&f[Symbol.toStringTag]||f.constructor.name||"Object";return c}}function H(f){try{return q(f),!1}catch{return!0}}function q(f){return""+f}function G(f,s){if(H(f))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(f)),q(f)}function Y(f,s){if(H(f))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(f)),q(f)}function he(f){if(H(f))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(f)),q(f)}var J=Object.prototype.hasOwnProperty,fe=0,P=1,re=2,Q=3,ne=4,se=5,ue=6,ve=":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",le=ve+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",me=new RegExp("^["+ve+"]["+le+"]*$"),pe={},_e={};function De(f){return J.call(_e,f)?!0:J.call(pe,f)?!1:me.test(f)?(_e[f]=!0,!0):(pe[f]=!0,i("Invalid attribute name: `%s`",f),!1)}function Fe(f,s,c,d){if(c!==null&&c.type===fe)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":{if(c!==null)return!c.acceptsBooleans;var y=f.toLowerCase().slice(0,5);return y!=="data-"&&y!=="aria-"}default:return!1}}function Xe(f){return it.hasOwnProperty(f)?it[f]:null}function we(f,s,c,d,y,L,F){this.acceptsBooleans=s===re||s===Q||s===ne,this.attributeName=d,this.attributeNamespace=y,this.mustUseProperty=c,this.propertyName=f,this.type=s,this.sanitizeURL=L,this.removeEmptyString=F}var it={},ht=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];ht.forEach(function(f){it[f]=new we(f,fe,!1,f,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(f){var s=f[0],c=f[1];it[s]=new we(s,P,!1,c,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(f){it[f]=new we(f,re,!1,f.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(f){it[f]=new we(f,re,!1,f,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(f){it[f]=new we(f,Q,!1,f.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(f){it[f]=new we(f,Q,!0,f,null,!1,!1)}),["capture","download"].forEach(function(f){it[f]=new we(f,ne,!1,f,null,!1,!1)}),["cols","rows","size","span"].forEach(function(f){it[f]=new we(f,ue,!1,f,null,!1,!1)}),["rowSpan","start"].forEach(function(f){it[f]=new we(f,se,!1,f.toLowerCase(),null,!1,!1)});var Je=/[\-\:]([a-z])/g,Ze=function(f){return f[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(f){var s=f.replace(Je,Ze);it[s]=new we(s,P,!1,f,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(f){var s=f.replace(Je,Ze);it[s]=new we(s,P,!1,f,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(f){var s=f.replace(Je,Ze);it[s]=new we(s,P,!1,f,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(f){it[f]=new we(f,P,!1,f.toLowerCase(),null,!1,!1)});var Le="xlinkHref";it[Le]=new we("xlinkHref",P,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(f){it[f]=new we(f,P,!1,f.toLowerCase(),null,!0,!0)});var ke={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 Te(f,s){return f+s.charAt(0).toUpperCase()+s.substring(1)}var Be=["Webkit","ms","Moz","O"];Object.keys(ke).forEach(function(f){Be.forEach(function(s){ke[Te(s,f)]=ke[f]})});var Re={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Qe(f,s){Re[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 ct(f,s){if(f.indexOf("-")===-1)return typeof s.is=="string";switch(f){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 kt={"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},At={},bt=new RegExp("^(aria)-["+le+"]*$"),Dt=new RegExp("^(aria)[A-Z]["+le+"]*$");function Rt(f,s){{if(J.call(At,s)&&At[s])return!0;if(Dt.test(s)){var c="aria-"+s.slice(4).toLowerCase(),d=kt.hasOwnProperty(c)?c:null;if(d==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",s),At[s]=!0,!0;if(s!==d)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",s,d),At[s]=!0,!0}if(bt.test(s)){var y=s.toLowerCase(),L=kt.hasOwnProperty(y)?y:null;if(L==null)return At[s]=!0,!1;if(s!==L)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",s,L),At[s]=!0,!0}}return!0}function ut(f,s){{var c=[];for(var d in s){var y=Rt(f,d);y||c.push(d)}var L=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",L,f):c.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",L,f)}}function ot(f,s){ct(f,s)||ut(f,s)}var wt=!1;function Ie(f,s){{if(f!=="input"&&f!=="textarea"&&f!=="select")return;s!=null&&s.value===null&&!wt&&(wt=!0,f==="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.",f):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",f))}}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"},_t=function(){};{var Ot={},$t=/^on./,Ue=/^on[^A-Z]/,Tt=new RegExp("^(aria)-["+le+"]*$"),zt=new RegExp("^(aria)[A-Z]["+le+"]*$");_t=function(f,s,c,d){if(J.call(Ot,s)&&Ot[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."),Ot[s]=!0,!0;if(d!=null){var L=d.registrationNameDependencies,F=d.possibleRegistrationNames;if(L.hasOwnProperty(s))return!0;var U=F.hasOwnProperty(y)?F[y]:null;if(U!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",s,U),Ot[s]=!0,!0;if($t.test(s))return i("Unknown event handler property `%s`. It will be ignored.",s),Ot[s]=!0,!0}else if($t.test(s))return Ue.test(s)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",s),Ot[s]=!0,!0;if(Tt.test(s)||zt.test(s))return!0;if(y==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Ot[s]=!0,!0;if(y==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Ot[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),Ot[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),Ot[s]=!0,!0;var oe=Xe(s),xe=oe!==null&&oe.type===fe;if(pt.hasOwnProperty(y)){var Ge=pt[y];if(Ge!==s)return i("Invalid DOM property `%s`. Did you mean `%s`?",s,Ge),Ot[s]=!0,!0}else if(!xe&&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),Ot[s]=!0,!0;return typeof c=="boolean"&&Fe(s,c,oe)?(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),Ot[s]=!0,!0):xe?!0:Fe(s,c,oe)?(Ot[s]=!0,!1):((c==="false"||c==="true")&&oe!==null&&oe.type===Q&&(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),Ot[s]=!0),!0)}}var br=function(f,s,c){{var d=[];for(var y in s){var L=_t(f,y,s[y],c);L||d.push(y)}var F=d.map(function(U){return"`"+U+"`"}).join(", ");d.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,f):d.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,f)}};function Or(f,s,c){ct(f,s)||br(f,s,c)}var It=function(){};{var ie=/^(?:webkit|moz|o)[A-Z]/,X=/^-ms-/,Ee=/-(.)/g,je=/;\s*$/,St={},ft={},mt=!1,Ut=!1,Lt=function(f){return f.replace(Ee,function(s,c){return c.toUpperCase()})},Qt=function(f){St.hasOwnProperty(f)&&St[f]||(St[f]=!0,i("Unsupported style property %s. Did you mean %s?",f,Lt(f.replace(X,"ms-"))))},xt=function(f){St.hasOwnProperty(f)&&St[f]||(St[f]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",f,f.charAt(0).toUpperCase()+f.slice(1)))},Et=function(f,s){ft.hasOwnProperty(s)&&ft[s]||(ft[s]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,f,s.replace(je,"")))},gt=function(f,s){mt||(mt=!0,i("`NaN` is an invalid value for the `%s` css style property.",f))},Ft=function(f,s){Ut||(Ut=!0,i("`Infinity` is an invalid value for the `%s` css style property.",f))};It=function(f,s){f.indexOf("-")>-1?Qt(f):ie.test(f)?xt(f):je.test(s)&&Et(f,s),typeof s=="number"&&(isNaN(s)?gt(f,s):isFinite(s)||Ft(f,s))}}var ur=It,qe=/["'&<>]/;function vt(f){he(f);var s=""+f,c=qe.exec(s);if(!c)return s;var d,y="",L,F=0;for(L=c.index;L<s.length;L++){switch(s.charCodeAt(L)){case 34:d=""";break;case 38:d="&";break;case 39:d="'";break;case 60:d="<";break;case 62:d=">";break;default:continue}F!==L&&(y+=s.substring(F,L)),F=L+1,y+=d}return F!==L?y+s.substring(F,L):y}function at(f){return typeof f=="boolean"||typeof f=="number"?""+f:vt(f)}var We=/([A-Z])/g,yt=/^ms-/;function K(f){return f.replace(We,"-$1").toLowerCase().replace(yt,"-ms-")}var Ne=/^[\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 Bt(f){!lt&&Ne.test(f)&&(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(f)))}var or=Array.isArray;function er(f){return or(f)}var jt=b("<script>"),tr=b("<\/script>"),Mr=b('<script src="'),fr=b('<script type="module" src="'),pr=b('" async=""><\/script>');function $r(f){return he(f),(""+f).replace(vr,Gn)}var vr=/(<\/|<)(s)(cript)/gi,Gn=function(f,s,c,d){return""+s+(c==="s"?"\\u0073":"\\u0053")+d};function Sn(f,s,c,d,y){var L=f===void 0?"":f,F=s===void 0?jt:b('<script nonce="'+at(s)+'">'),U=[];if(c!==void 0&&U.push(F,A($r(c)),tr),d!==void 0)for(var oe=0;oe<d.length;oe++)U.push(Mr,A(at(d[oe])),pr);if(y!==void 0)for(var xe=0;xe<y.length;xe++)U.push(fr,A(at(y[xe])),pr);return{bootstrapChunks:U,startInlineScript:F,placeholderPrefix:b(L+"P:"),segmentPrefix:b(L+"S:"),boundaryPrefix:L+"B:",idPrefix:L,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var Dn=0,Kr=1,Zn=2,Tn=3,Yn=4,Kn=5,nn=6,On=7;function Cn(f,s){return{insertionMode:f,selectedValue:s}}function di(f){var s=f==="http://www.w3.org/2000/svg"?Zn:f==="http://www.w3.org/1998/Math/MathML"?Tn:Dn;return Cn(s,null)}function _i(f,s,c){switch(s){case"select":return Cn(Kr,c.value!=null?c.value:c.defaultValue);case"svg":return Cn(Zn,null);case"math":return Cn(Tn,null);case"foreignObject":return Cn(Kr,null);case"table":return Cn(Yn,null);case"thead":case"tbody":case"tfoot":return Cn(Kn,null);case"colgroup":return Cn(On,null);case"tr":return Cn(nn,null)}return f.insertionMode>=Yn||f.insertionMode===Dn?Cn(Kr,null):f}var xi=null;function En(f){var s=f.nextSuspenseID++;return b(f.boundaryPrefix+s.toString(16))}function wn(f,s,c){var d=f.idPrefix,y=":"+d+"R"+s;return c>0&&(y+="H"+c.toString(32)),y+":"}function cn(f){return at(f)}var Xn=b("<!-- -->");function on(f,s,c,d){return s===""?d:(d&&f.push(Xn),f.push(A(cn(s))),!0)}function dn(f,s,c,d){c&&d&&f.push(Xn)}var x=new Map;function j(f){var s=x.get(f);if(s!==void 0)return s;var c=b(at(K(f)));return x.set(f,c),c}var W=b(' style="'),ee=b(":"),Ce=b(";");function be(f,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 d=!0;for(var y in c)if(J.call(c,y)){var L=c[y];if(!(L==null||typeof L=="boolean"||L==="")){var F=void 0,U=void 0,oe=y.indexOf("--")===0;oe?(F=A(at(y)),Y(L,y),U=A(at((""+L).trim()))):(ur(y,L),F=j(y),typeof L=="number"?L!==0&&!J.call(ke,y)?U=A(L+"px"):U=A(""+L):(Y(L,y),U=A(at((""+L).trim())))),d?(d=!1,f.push(W,F,ee,U)):f.push(Ce,F,ee,U)}}d||f.push(Mt)}var Oe=b(" "),et=b('="'),Mt=b('"'),Ht=b('=""');function qt(f,s,c,d){switch(c){case"style":{be(f,s,d);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=Xe(c);if(y!==null){switch(typeof d){case"function":case"symbol":return;case"boolean":if(!y.acceptsBooleans)return}var L=y.attributeName,F=A(L);switch(y.type){case Q:d&&f.push(Oe,F,Ht);return;case ne:d===!0?f.push(Oe,F,Ht):d===!1||f.push(Oe,F,et,A(at(d)),Mt);return;case se:isNaN(d)||f.push(Oe,F,et,A(at(d)),Mt);break;case ue:!isNaN(d)&&d>=1&&f.push(Oe,F,et,A(at(d)),Mt);break;default:y.sanitizeURL&&(G(d,L),d=""+d,Bt(d)),f.push(Oe,F,et,A(at(d)),Mt)}}else if(De(c)){switch(typeof d){case"function":case"symbol":return;case"boolean":{var U=c.toLowerCase().slice(0,5);if(U!=="data-"&&U!=="aria-")return}}f.push(Oe,A(c),et,A(at(d)),Mt)}}}var xr=b(">"),Zr=b("/>");function vn(f,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 d=s.__html;d!=null&&(he(d),f.push(A(""+d)))}}var yn=!1,ai=!1,jn=!1,Si=!1,Xr=!1,hi=!1,Fn=!1;function Jn(f,s){{var c=f[s];if(c!=null){var d=er(c);f.multiple&&!d?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",s):!f.multiple&&d&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",s)}}}function yo(f,s,c){Qe("select",s),Jn(s,"value"),Jn(s,"defaultValue"),s.value!==void 0&&s.defaultValue!==void 0&&!jn&&(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"),jn=!0),f.push(Kt("select"));var d=null,y=null;for(var L in s)if(J.call(s,L)){var F=s[L];if(F==null)continue;switch(L){case"children":d=F;break;case"dangerouslySetInnerHTML":y=F;break;case"defaultValue":case"value":break;default:qt(f,c,L,F);break}}return f.push(xr),vn(f,y,d),d}function eo(f){var s="";return r.Children.forEach(f,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 to=b(' selected=""');function kn(f,s,c,d){var y=d.selectedValue;f.push(Kt("option"));var L=null,F=null,U=null,oe=null;for(var xe in s)if(J.call(s,xe)){var Ge=s[xe];if(Ge==null)continue;switch(xe){case"children":L=Ge;break;case"selected":U=Ge,Fn||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Fn=!0);break;case"dangerouslySetInnerHTML":oe=Ge;break;case"value":F=Ge;default:qt(f,c,xe,Ge);break}}if(y!=null){var tt;if(F!==null?(G(F,"value"),tt=""+F):(oe!==null&&(hi||(hi=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),tt=eo(L)),er(y))for(var Ct=0;Ct<y.length;Ct++){G(y[Ct],"value");var nr=""+y[Ct];if(nr===tt){f.push(to);break}}else G(y,"select.value"),""+y===tt&&f.push(to)}else U&&f.push(to);return f.push(xr),vn(f,oe,L),L}function bo(f,s,c){Qe("input",s),s.checked!==void 0&&s.defaultChecked!==void 0&&!ai&&(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),ai=!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),f.push(Kt("input"));var d=null,y=null,L=null,F=null;for(var U in s)if(J.call(s,U)){var oe=s[U];if(oe==null)continue;switch(U){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":F=oe;break;case"defaultValue":y=oe;break;case"checked":L=oe;break;case"value":d=oe;break;default:qt(f,c,U,oe);break}}return L!==null?qt(f,c,"checked",L):F!==null&&qt(f,c,"checked",F),d!==null?qt(f,c,"value",d):y!==null&&qt(f,c,"value",y),f.push(Zr),null}function Qn(f,s,c){Qe("textarea",s),s.value!==void 0&&s.defaultValue!==void 0&&!Si&&(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"),Si=!0),f.push(Kt("textarea"));var d=null,y=null,L=null;for(var F in s)if(J.call(s,F)){var U=s[F];if(U==null)continue;switch(F){case"children":L=U;break;case"value":d=U;break;case"defaultValue":y=U;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:qt(f,c,F,U);break}}if(d===null&&y!==null&&(d=y),f.push(xr),L!=null){if(i("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),d!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(er(L)){if(L.length>1)throw new Error("<textarea> can only have at most one child.");he(L[0]),d=""+L[0]}he(L),d=""+L}return typeof d=="string"&&d[0]===`
|
312
|
-
`&&f.push(I),d!==null&&(G(d,"value"),f.push(A(cn(""+d)))),null}function ei(f,s,c,d){f.push(Kt(c));for(var y in s)if(J.call(s,y)){var L=s[y];if(L==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:qt(f,d,y,L);break}}return f.push(Zr),null}function Hi(f,s,c){f.push(Kt("menuitem"));for(var d in s)if(J.call(s,d)){var y=s[d];if(y==null)continue;switch(d){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:qt(f,c,d,y);break}}return f.push(xr),null}function Dr(f,s,c){f.push(Kt("title"));var d=null;for(var y in s)if(J.call(s,y)){var L=s[y];if(L==null)continue;switch(y){case"children":d=L;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:qt(f,c,y,L);break}}f.push(xr);{var F=Array.isArray(d)&&d.length<2?d[0]||null:d;Array.isArray(d)&&d.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 d}function Cr(f,s,c,d){f.push(Kt(c));var y=null,L=null;for(var F in s)if(J.call(s,F)){var U=s[F];if(U==null)continue;switch(F){case"children":y=U;break;case"dangerouslySetInnerHTML":L=U;break;default:qt(f,d,F,U);break}}return f.push(xr),vn(f,L,y),typeof y=="string"?(f.push(A(cn(y))),null):y}function Ir(f,s,c,d){f.push(Kt(c));var y=null,L=null;for(var F in s)if(J.call(s,F)){var U=s[F];if(U==null)continue;switch(F){case"children":y=U;break;case"dangerouslySetInnerHTML":L=U;break;case"style":be(f,d,U);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:De(F)&&typeof U!="function"&&typeof U!="symbol"&&f.push(Oe,A(F),et,A(at(U)),Mt);break}}return f.push(xr),vn(f,L,y),y}var I=b(`
|
313
|
-
`);function V(f,s,c,d){f.push(Kt(c));var y=null,L=null;for(var F in s)if(J.call(s,F)){var U=s[F];if(U==null)continue;switch(F){case"children":y=U;break;case"dangerouslySetInnerHTML":L=U;break;default:qt(f,d,F,U);break}}if(f.push(xr),L!=null){if(y!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof L!="object"||!("__html"in L))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 oe=L.__html;oe!=null&&(typeof oe=="string"&&oe.length>0&&oe[0]===`
|
314
|
-
`?f.push(I,A(oe)):(he(oe),f.push(A(""+oe))))}return typeof y=="string"&&y[0]===`
|
315
|
-
`&&f.push(I),y}var ce=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Pe=new Map;function Kt(f){var s=Pe.get(f);if(s===void 0){if(!ce.test(f))throw new Error("Invalid tag: "+f);s=b("<"+f),Pe.set(f,s)}return s}var Vt=b("<!DOCTYPE html>");function gr(f,s,c,d,y){switch(ot(s,c),Ie(s,c),Or(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!==Zn&&y.insertionMode!==Tn&&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 yo(f,c,d);case"option":return kn(f,c,d,y);case"textarea":return Qn(f,c,d);case"input":return bo(f,c,d);case"menuitem":return Hi(f,c,d);case"title":return Dr(f,c,d);case"listing":case"pre":return V(f,c,s,d);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 ei(f,c,s,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 Cr(f,c,s,d);case"html":return y.insertionMode===Dn&&f.push(Vt),Cr(f,c,s,d);default:return s.indexOf("-")===-1&&typeof c.is!="string"?Cr(f,c,s,d):Ir(f,c,s,d)}}var Sr=b("</"),dr=b(">");function wr(f,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:f.push(Sr,A(s),dr)}}function Jr(f,s){for(var c=s.bootstrapChunks,d=0;d<c.length-1;d++)T(f,c[d]);return d<c.length?C(f,c[d]):!0}var Rn=b('<template id="'),Vr=b('"></template>');function Fr(f,s,c){T(f,Rn),T(f,s.placeholderPrefix);var d=A(c.toString(16));return T(f,d),C(f,Vr)}var Qr=b("<!--$-->"),li=b('<!--$?--><template id="'),pi=b('"></template>'),Bn=b("<!--$!-->"),_o=b("<!--/$-->"),zi=b("<template"),sn=b('"'),hs=b(' data-dgst="'),qn=b(' data-msg="'),cl=b(' data-stck="'),wa=b("></template>");function $i(f,s){return C(f,Qr)}function xo(f,s,c){if(T(f,li),c===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return T(f,c),C(f,pi)}function Hn(f,s,c,d,y){var L;return L=C(f,Bn),T(f,zi),c&&(T(f,hs),T(f,A(at(c))),T(f,sn)),d&&(T(f,qn),T(f,A(at(d))),T(f,sn)),y&&(T(f,cl),T(f,A(at(y))),T(f,sn)),L=C(f,wa),L}function Yr(f,s){return C(f,_o)}function Ci(f,s){return C(f,_o)}function Aa(f,s){return C(f,_o)}var ul=b('<div hidden id="'),zo=b('">'),fl=b("</div>"),dl=b('<svg aria-hidden="true" style="display:none" id="'),Vs=b('">'),ps=b("</svg>"),gs=b('<math aria-hidden="true" style="display:none" id="'),So=b('">'),hl=b("</math>"),Gs=b('<table hidden id="'),Ta=b('">'),w=b("</table>"),N=b('<table hidden><tbody id="'),z=b('">'),te=b("</tbody></table>"),Ae=b('<table hidden><tr id="'),Se=b('">'),Ve=b("</tr></table>"),dt=b('<table hidden><colgroup id="'),Wt=b('">'),hr=b("</colgroup></table>");function sr(f,s,c,d){switch(c.insertionMode){case Dn:case Kr:return T(f,ul),T(f,s.segmentPrefix),T(f,A(d.toString(16))),C(f,zo);case Zn:return T(f,dl),T(f,s.segmentPrefix),T(f,A(d.toString(16))),C(f,Vs);case Tn:return T(f,gs),T(f,s.segmentPrefix),T(f,A(d.toString(16))),C(f,So);case Yn:return T(f,Gs),T(f,s.segmentPrefix),T(f,A(d.toString(16))),C(f,Ta);case Kn:return T(f,N),T(f,s.segmentPrefix),T(f,A(d.toString(16))),C(f,z);case nn:return T(f,Ae),T(f,s.segmentPrefix),T(f,A(d.toString(16))),C(f,Se);case On:return T(f,dt),T(f,s.segmentPrefix),T(f,A(d.toString(16))),C(f,Wt);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function Gr(f,s){switch(s.insertionMode){case Dn:case Kr:return C(f,fl);case Zn:return C(f,ps);case Tn:return C(f,hl);case Yn:return C(f,w);case Kn:return C(f,te);case nn:return C(f,Ve);case On:return C(f,hr);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var ti="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)}",wi='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()}}',Ai='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())}',Zs=b(ti+';$RS("'),pl=b('$RS("'),ms=b('","'),Ys=b('")<\/script>');function tf(f,s,c){T(f,s.startInlineScript),s.sentCompleteSegmentFunction?T(f,pl):(s.sentCompleteSegmentFunction=!0,T(f,Zs)),T(f,s.segmentPrefix);var d=A(c.toString(16));return T(f,d),T(f,ms),T(f,s.placeholderPrefix),T(f,d),C(f,Ys)}var nc=b(wi+';$RC("'),ic=b('$RC("'),nu=b('","'),Co=b('")<\/script>');function Ea(f,s,c,d){if(T(f,s.startInlineScript),s.sentCompleteBoundaryFunction?T(f,ic):(s.sentCompleteBoundaryFunction=!0,T(f,nc)),c===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var y=A(d.toString(16));return T(f,c),T(f,nu),T(f,s.segmentPrefix),T(f,y),C(f,Co)}var rf=b(Ai+';$RX("'),nf=b('$RX("'),of=b('"'),Ks=b(")<\/script>"),un=b(",");function iu(f,s,c,d,y,L){if(T(f,s.startInlineScript),s.sentClientRenderFunction?T(f,nf):(s.sentClientRenderFunction=!0,T(f,rf)),c===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return T(f,c),T(f,of),(d||y||L)&&(T(f,un),T(f,A(gl(d||"")))),(y||L)&&(T(f,un),T(f,A(gl(y||"")))),L&&(T(f,un),T(f,A(gl(L)))),C(f,Ks)}var ou=/[<\u2028\u2029]/g;function gl(f){var s=JSON.stringify(f);return s.replace(ou,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 Ti=Object.assign,su=Symbol.for("react.element"),ml=Symbol.for("react.portal"),wo=Symbol.for("react.fragment"),ge=Symbol.for("react.strict_mode"),ze=Symbol.for("react.profiler"),Me=Symbol.for("react.provider"),Pt=Symbol.for("react.context"),ir=Symbol.for("react.forward_ref"),Pr=Symbol.for("react.suspense"),bn=Symbol.for("react.suspense_list"),Ur=Symbol.for("react.memo"),Xs=Symbol.for("react.lazy"),au=Symbol.for("react.scope"),Ni=Symbol.for("react.debug_trace_mode"),vl=Symbol.for("react.legacy_hidden"),sf=Symbol.for("react.default_value"),$o=Symbol.iterator,en="@@iterator";function Uo(f){if(f===null||typeof f!="object")return null;var s=$o&&f[$o]||f[en];return typeof s=="function"?s:null}function zr(f,s,c){var d=f.displayName;if(d)return d;var y=s.displayName||s.name||"";return y!==""?c+"("+y+")":c}function oc(f){return f.displayName||"Context"}function an(f){if(f==null)return null;if(typeof f.tag=="number"&&i("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case wo:return"Fragment";case ml:return"Portal";case ze:return"Profiler";case ge:return"StrictMode";case Pr:return"Suspense";case bn:return"SuspenseList"}if(typeof f=="object")switch(f.$$typeof){case Pt:var s=f;return oc(s)+".Consumer";case Me:var c=f;return oc(c._context)+".Provider";case ir:return zr(f,f.render,"ForwardRef");case Ur:var d=f.displayName||null;return d!==null?d:an(f.type)||"Memo";case Xs:{var y=f,L=y._payload,F=y._init;try{return an(F(L))}catch{return null}}}return null}var Ao=0,sc,ac,lc,Js,To,ka,Ra;function vs(){}vs.__reactDisabledLog=!0;function Qs(){{if(Ao===0){sc=console.log,ac=console.info,lc=console.warn,Js=console.error,To=console.group,ka=console.groupCollapsed,Ra=console.groupEnd;var f={configurable:!0,enumerable:!0,value:vs,writable:!0};Object.defineProperties(console,{info:f,log:f,warn:f,error:f,group:f,groupCollapsed:f,groupEnd:f})}Ao++}}function yl(){{if(Ao--,Ao===0){var f={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ti({},f,{value:sc}),info:Ti({},f,{value:ac}),warn:Ti({},f,{value:lc}),error:Ti({},f,{value:Js}),group:Ti({},f,{value:To}),groupCollapsed:Ti({},f,{value:ka}),groupEnd:Ti({},f,{value:Ra})})}Ao<0&&i("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Eo=t.ReactCurrentDispatcher,bl;function Ui(f,s,c){{if(bl===void 0)try{throw Error()}catch(y){var d=y.stack.trim().match(/\n( *(at )?)/);bl=d&&d[1]||""}return`
|
316
|
-
`+bl+f}}var ko=!1,Wo;{var af=typeof WeakMap=="function"?WeakMap:Map;Wo=new af}function Ia(f,s){if(!f||ko)return"";{var c=Wo.get(f);if(c!==void 0)return c}var d;ko=!0;var y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var L;L=Eo.current,Eo.current=null,Qs();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(Lr){d=Lr}Reflect.construct(f,[],F)}else{try{F.call()}catch(Lr){d=Lr}f.call(F.prototype)}}else{try{throw Error()}catch(Lr){d=Lr}f()}}catch(Lr){if(Lr&&d&&typeof Lr.stack=="string"){for(var U=Lr.stack.split(`
|
317
|
-
`),oe=d.stack.split(`
|
318
|
-
`),xe=U.length-1,Ge=oe.length-1;xe>=1&&Ge>=0&&U[xe]!==oe[Ge];)Ge--;for(;xe>=1&&Ge>=0;xe--,Ge--)if(U[xe]!==oe[Ge]){if(xe!==1||Ge!==1)do if(xe--,Ge--,Ge<0||U[xe]!==oe[Ge]){var tt=`
|
319
|
-
`+U[xe].replace(" at new "," at ");return f.displayName&&tt.includes("<anonymous>")&&(tt=tt.replace("<anonymous>",f.displayName)),typeof f=="function"&&Wo.set(f,tt),tt}while(xe>=1&&Ge>=0);break}}}finally{ko=!1,Eo.current=L,yl(),Error.prepareStackTrace=y}var Ct=f?f.displayName||f.name:"",nr=Ct?Ui(Ct):"";return typeof f=="function"&&Wo.set(f,nr),nr}function lu(f,s,c){return Ia(f,!0)}function ea(f,s,c){return Ia(f,!1)}function ys(f){var s=f.prototype;return!!(s&&s.isReactComponent)}function ta(f,s,c){if(f==null)return"";if(typeof f=="function")return Ia(f,ys(f));if(typeof f=="string")return Ui(f);switch(f){case Pr:return Ui("Suspense");case bn:return Ui("SuspenseList")}if(typeof f=="object")switch(f.$$typeof){case ir:return ea(f.render);case Ur:return ta(f.type,s,c);case Xs:{var d=f,y=d._payload,L=d._init;try{return ta(L(y),s,c)}catch{}}}return""}var _l={},ra=t.ReactDebugCurrentFrame;function La(f){if(f){var s=f._owner,c=ta(f.type,f._source,s?s.type:null);ra.setExtraStackFrame(c)}else ra.setExtraStackFrame(null)}function cu(f,s,c,d,y){{var L=Function.call.bind(J);for(var F in f)if(L(f,F)){var U=void 0;try{if(typeof f[F]!="function"){var oe=Error((d||"React class")+": "+c+" type `"+F+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof f[F]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw oe.name="Invariant Violation",oe}U=f[F](s,F,d,c,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(xe){U=xe}U&&!(U instanceof Error)&&(La(y),i("%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).",d||"React class",c,F,typeof U),La(null)),U instanceof Error&&!(U.message in _l)&&(_l[U.message]=!0,La(y),i("Failed %s type: %s",c,U.message),La(null))}}}var ln;ln={};var In={};Object.freeze(In);function Vo(f,s){{var c=f.contextTypes;if(!c)return In;var d={};for(var y in c)d[y]=s[y];{var L=an(f)||"Unknown";cu(c,d,"context",L)}return d}}function cc(f,s,c,d){{if(typeof f.getChildContext!="function"){{var y=an(s)||"Unknown";ln[y]||(ln[y]=!0,i("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",y,y))}return c}var L=f.getChildContext();for(var F in L)if(!(F in d))throw new Error((an(s)||"Unknown")+'.getChildContext(): key "'+F+'" is not defined in childContextTypes.');{var U=an(s)||"Unknown";cu(d,L,"child context",U)}return Ti({},c,L)}}var Go;Go={};var xl=null,ro=null;function Zo(f){f.context._currentValue=f.parentValue}function na(f){f.context._currentValue=f.value}function no(f,s){if(f!==s){Zo(f);var c=f.parent,d=s.parent;if(c===null){if(d!==null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(d===null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.");no(c,d)}na(s)}}function Ro(f){Zo(f);var s=f.parent;s!==null&&Ro(s)}function ia(f){var s=f.parent;s!==null&&ia(s),na(f)}function Ma(f,s){Zo(f);var c=f.parent;if(c===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");c.depth===s.depth?no(c,s):Ma(c,s)}function bs(f,s){var c=s.parent;if(c===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");f.depth===c.depth?no(f,c):bs(f,c),na(s)}function Yo(f){var s=ro,c=f;s!==c&&(s===null?ia(c):c===null?Ro(s):s.depth===c.depth?no(s,c):s.depth>c.depth?Ma(s,c):bs(s,c),ro=c)}function uc(f,s){var c;c=f._currentValue,f._currentValue=s,f._currentRenderer!==void 0&&f._currentRenderer!==null&&f._currentRenderer!==Go&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),f._currentRenderer=Go;var d=ro,y={parent:d,depth:d===null?0:d.depth+1,context:f,parentValue:c,value:s};return ro=y,y}function lf(f){var s=ro;if(s===null)throw new Error("Tried to pop a Context at the root of the app. This is a bug in React.");s.context!==f&&i("The parent context is not the expected context. This is probably a bug in React.");{var c=s.parentValue;c===sf?s.context._currentValue=s.context._defaultValue:s.context._currentValue=c,f._currentRenderer!==void 0&&f._currentRenderer!==null&&f._currentRenderer!==Go&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),f._currentRenderer=Go}return ro=s.parent}function uu(){return ro}function oa(f){var s=f._currentValue;return s}function Ko(f){return f._reactInternals}function _s(f,s){f._reactInternals=s}var Da={},$={},Io,Lo,ri,yr,Sl,Oa,Cl,io,fc;{Io=new Set,Lo=new Set,ri=new Set,Cl=new Set,yr=new Set,io=new Set,fc=new Set;var fu=new Set;Oa=function(f,s){if(!(f===null||typeof f=="function")){var c=s+"_"+f;fu.has(c)||(fu.add(c),i("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",s,f))}},Sl=function(f,s){if(s===void 0){var c=an(f)||"Component";yr.has(c)||(yr.add(c),i("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",c))}}}function du(f,s){{var c=f.constructor,d=c&&an(c)||"ReactClass",y=d+"."+s;if(Da[y])return;i(`%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
|
320
|
-
|
321
|
-
Please check the code for the %s component.`,s,s,d),Da[y]=!0}}var hu={isMounted:function(f){return!1},enqueueSetState:function(f,s,c){var d=Ko(f);d.queue===null?du(f,"setState"):(d.queue.push(s),c!=null&&Oa(c,"setState"))},enqueueReplaceState:function(f,s,c){var d=Ko(f);d.replace=!0,d.queue=[s],c!=null&&Oa(c,"setState")},enqueueForceUpdate:function(f,s){var c=Ko(f);c.queue===null?du(f,"forceUpdate"):s!=null&&Oa(s,"setState")}};function cf(f,s,c,d,y){var L=c(y,d);Sl(s,L);var F=L==null?d:Ti({},d,L);return F}function oo(f,s,c){var d=In,y=f.contextType;if("contextType"in f){var L=y===null||y!==void 0&&y.$$typeof===Pt&&y._context===void 0;if(!L&&!fc.has(f)){fc.add(f);var F="";y===void 0?F=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof y!="object"?F=" However, it is set to a "+typeof y+".":y.$$typeof===Me?F=" Did you accidentally pass the Context.Provider instead?":y._context!==void 0?F=" Did you accidentally pass the Context.Consumer instead?":F=" However, it is set to an object with keys {"+Object.keys(y).join(", ")+"}.",i("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",an(f)||"Component",F)}}typeof y=="object"&&y!==null?d=oa(y):d=c;var U=new f(s,d);{if(typeof f.getDerivedStateFromProps=="function"&&(U.state===null||U.state===void 0)){var oe=an(f)||"Component";Io.has(oe)||(Io.add(oe),i("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",oe,U.state===null?"null":"undefined",oe))}if(typeof f.getDerivedStateFromProps=="function"||typeof U.getSnapshotBeforeUpdate=="function"){var xe=null,Ge=null,tt=null;if(typeof U.componentWillMount=="function"&&U.componentWillMount.__suppressDeprecationWarning!==!0?xe="componentWillMount":typeof U.UNSAFE_componentWillMount=="function"&&(xe="UNSAFE_componentWillMount"),typeof U.componentWillReceiveProps=="function"&&U.componentWillReceiveProps.__suppressDeprecationWarning!==!0?Ge="componentWillReceiveProps":typeof U.UNSAFE_componentWillReceiveProps=="function"&&(Ge="UNSAFE_componentWillReceiveProps"),typeof U.componentWillUpdate=="function"&&U.componentWillUpdate.__suppressDeprecationWarning!==!0?tt="componentWillUpdate":typeof U.UNSAFE_componentWillUpdate=="function"&&(tt="UNSAFE_componentWillUpdate"),xe!==null||Ge!==null||tt!==null){var Ct=an(f)||"Component",nr=typeof f.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";ri.has(Ct)||(ri.add(Ct),i(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
322
|
-
|
323
|
-
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
324
|
-
|
325
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
326
|
-
https://reactjs.org/link/unsafe-component-lifecycles`,Ct,nr,xe!==null?`
|
327
|
-
`+xe:"",Ge!==null?`
|
328
|
-
`+Ge:"",tt!==null?`
|
329
|
-
`+tt:""))}}}return U}function uf(f,s,c){{var d=an(s)||"Component",y=f.render;y||(s.prototype&&typeof s.prototype.render=="function"?i("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",d):i("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",d)),f.getInitialState&&!f.getInitialState.isReactClassApproved&&!f.state&&i("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",d),f.getDefaultProps&&!f.getDefaultProps.isReactClassApproved&&i("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",d),f.propTypes&&i("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",d),f.contextType&&i("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",d),f.contextTypes&&i("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",d),s.contextType&&s.contextTypes&&!io.has(s)&&(io.add(s),i("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",d)),typeof f.componentShouldUpdate=="function"&&i("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",d),s.prototype&&s.prototype.isPureReactComponent&&typeof f.shouldComponentUpdate<"u"&&i("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",an(s)||"A pure component"),typeof f.componentDidUnmount=="function"&&i("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",d),typeof f.componentDidReceiveProps=="function"&&i("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",d),typeof f.componentWillRecieveProps=="function"&&i("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",d),typeof f.UNSAFE_componentWillRecieveProps=="function"&&i("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",d);var L=f.props!==c;f.props!==void 0&&L&&i("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",d,d),f.defaultProps&&i("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",d,d),typeof f.getSnapshotBeforeUpdate=="function"&&typeof f.componentDidUpdate!="function"&&!Lo.has(s)&&(Lo.add(s),i("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",an(s))),typeof f.getDerivedStateFromProps=="function"&&i("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",d),typeof f.getDerivedStateFromError=="function"&&i("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",d),typeof s.getSnapshotBeforeUpdate=="function"&&i("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",d);var F=f.state;F&&(typeof F!="object"||er(F))&&i("%s.state: must be set to an object or null",d),typeof f.getChildContext=="function"&&typeof s.childContextTypes!="object"&&i("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",d)}}function ff(f,s){var c=s.state;if(typeof s.componentWillMount=="function"){if(s.componentWillMount.__suppressDeprecationWarning!==!0){var d=an(f)||"Unknown";$[d]||(n(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
330
|
-
|
331
|
-
* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
|
332
|
-
|
333
|
-
Please update the following components: %s`,d),$[d]=!0)}s.componentWillMount()}typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),c!==s.state&&(i("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",an(f)||"Component"),hu.enqueueReplaceState(s,s.state,null))}function dc(f,s,c,d){if(f.queue!==null&&f.queue.length>0){var y=f.queue,L=f.replace;if(f.queue=null,f.replace=!1,L&&y.length===1)s.state=y[0];else{for(var F=L?y[0]:s.state,U=!0,oe=L?1:0;oe<y.length;oe++){var xe=y[oe],Ge=typeof xe=="function"?xe.call(s,F,c,d):xe;Ge!=null&&(U?(U=!1,F=Ti({},F,Ge)):Ti(F,Ge))}s.state=F}}else f.queue=null}function Pa(f,s,c,d){uf(f,s,c);var y=f.state!==void 0?f.state:null;f.updater=hu,f.props=c,f.state=y;var L={queue:[],replace:!1};_s(f,L);var F=s.contextType;if(typeof F=="object"&&F!==null?f.context=oa(F):f.context=d,f.state===c){var U=an(s)||"Component";Cl.has(U)||(Cl.add(U),i("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",U))}var oe=s.getDerivedStateFromProps;typeof oe=="function"&&(f.state=cf(f,s,oe,y,c)),typeof s.getDerivedStateFromProps!="function"&&typeof f.getSnapshotBeforeUpdate!="function"&&(typeof f.UNSAFE_componentWillMount=="function"||typeof f.componentWillMount=="function")&&(ff(s,f),dc(L,f,c,d))}var df={id:1,overflow:""};function Mo(f){var s=f.overflow,c=f.id,d=c&~hf(c);return d.toString(32)+s}function hc(f,s,c){var d=f.id,y=f.overflow,L=wl(d)-1,F=d&~(1<<L),U=c+1,oe=wl(s)+L;if(oe>30){var xe=L-L%5,Ge=(1<<xe)-1,tt=(F&Ge).toString(32),Ct=F>>xe,nr=L-xe,Lr=wl(s)+nr,$n=U<<nr,ns=$n|Ct,uo=tt+y;return{id:1<<Lr|ns,overflow:uo}}else{var fo=U<<L,is=fo|F,_f=y;return{id:1<<oe|is,overflow:_f}}}function wl(f){return 32-pf(f)}function hf(f){return 1<<wl(f)-1}var pf=Math.clz32?Math.clz32:pc,gf=Math.log,ci=Math.LN2;function pc(f){var s=f>>>0;return s===0?32:31-(gf(s)/ci|0)|0}function Al(f,s){return f===s&&(f!==0||1/f===1/s)||f!==f&&s!==s}var Tr=typeof Object.is=="function"?Object.is:Al,Ei=null,sa=null,xs=null,Nr=null,Xo=!1,Na=!1,gi=0,ki=null,so=0,gc=25,ui=!1,Wi;function Ss(){if(Ei===null)throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
334
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
335
|
-
2. You might be breaking the Rules of Hooks
|
336
|
-
3. You might have more than one copy of React in the same app
|
337
|
-
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return ui&&i("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks"),Ei}function pu(f,s){if(s===null)return i("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Wi),!1;f.length!==s.length&&i(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
338
|
-
|
339
|
-
Previous: %s
|
340
|
-
Incoming: %s`,Wi,"["+f.join(", ")+"]","["+s.join(", ")+"]");for(var c=0;c<s.length&&c<f.length;c++)if(!Tr(f[c],s[c]))return!1;return!0}function mc(){if(so>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function Ri(){return Nr===null?xs===null?(Xo=!1,xs=Nr=mc()):(Xo=!0,Nr=xs):Nr.next===null?(Xo=!1,Nr=Nr.next=mc()):(Xo=!0,Nr=Nr.next),Nr}function vc(f,s){Ei=s,sa=f,ui=!1,gi=0}function Cs(f,s,c,d){for(;Na;)Na=!1,gi=0,so+=1,Nr=null,c=f(s,d);return yc(),c}function fi(){var f=gi!==0;return f}function yc(){ui=!1,Ei=null,sa=null,Na=!1,xs=null,so=0,ki=null,Nr=null}function bc(f){return ui&&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()."),oa(f)}function _c(f){return Wi="useContext",Ss(),oa(f)}function ws(f,s){return typeof s=="function"?s(f):s}function Jo(f){return Wi="useState",xc(ws,f)}function xc(f,s,c){if(f!==ws&&(Wi="useReducer"),Ei=Ss(),Nr=Ri(),Xo){var d=Nr.queue,y=d.dispatch;if(ki!==null){var L=ki.get(d);if(L!==void 0){ki.delete(d);var F=Nr.memoizedState,U=L;do{var oe=U.action;ui=!0,F=f(F,oe),ui=!1,U=U.next}while(U!==null);return Nr.memoizedState=F,[F,y]}}return[Nr.memoizedState,y]}else{ui=!0;var xe;f===ws?xe=typeof s=="function"?s():s:xe=c!==void 0?c(s):s,ui=!1,Nr.memoizedState=xe;var Ge=Nr.queue={last:null,dispatch:null},tt=Ge.dispatch=mu.bind(null,Ei,Ge);return[Nr.memoizedState,tt]}}function gu(f,s){Ei=Ss(),Nr=Ri();var c=s===void 0?null:s;if(Nr!==null){var d=Nr.memoizedState;if(d!==null&&c!==null){var y=d[1];if(pu(c,y))return d[0]}}ui=!0;var L=f();return ui=!1,Nr.memoizedState=[L,c],L}function Tl(f){Ei=Ss(),Nr=Ri();var s=Nr.memoizedState;if(s===null){var c={current:f};return Object.seal(c),Nr.memoizedState=c,c}else return s}function mf(f,s){Wi="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 mu(f,s,c){if(so>=gc)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(f===Ei){Na=!0;var d={action:c,next:null};ki===null&&(ki=new Map);var y=ki.get(s);if(y===void 0)ki.set(s,d);else{for(var L=y;L.next!==null;)L=L.next;L.next=d}}}function zn(f,s){return gu(function(){return f},s)}function Sc(f,s,c){return Ss(),s(f._source)}function vu(f,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 Ii(f){return Ss(),f}function El(){throw new Error("startTransition cannot be called during server rendering.")}function aa(){return Ss(),[!1,El]}function Qo(){var f=sa,s=Mo(f.treeContext),c=As;if(c===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var d=gi++;return wn(c,s,d)}function ja(){}var Pn={readContext:bc,useContext:_c,useMemo:gu,useReducer:xc,useRef:Tl,useState:Jo,useInsertionEffect:ja,useLayoutEffect:mf,useCallback:zn,useImperativeHandle:ja,useEffect:ja,useDebugValue:ja,useDeferredValue:Ii,useTransition:aa,useId:Qo,useMutableSource:Sc,useSyncExternalStore:vu},As=null;function kl(f){As=f}function la(f){try{var s="",c=f;do{switch(c.tag){case 0:s+=Ui(c.type,null,null);break;case 1:s+=ea(c.type,null,null);break;case 2:s+=lu(c.type,null,null);break}c=c.parent}while(c);return s}catch(d){return`
|
341
|
-
Error generating stack: `+d.message+`
|
342
|
-
`+d.stack}}var Rl=t.ReactCurrentDispatcher,ca=t.ReactDebugCurrentFrame,Il=0,ao=1,Ll=2,Ts=3,yu=4,Fa=0,ua=1,fa=2,Cc=12800;function bu(f){return console.error(f),null}function Es(){}function Ml(f,s,c,d,y,L,F,U,oe){var xe=[],Ge=new Set,tt={destination:null,responseState:s,progressiveChunkSize:d===void 0?Cc:d,status:Fa,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Ge,pingedTasks:xe,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:y===void 0?bu:y,onAllReady:L===void 0?Es:L,onShellReady:F===void 0?Es:F,onShellError:U===void 0?Es:U,onFatalError:oe===void 0?Es:oe},Ct=Ba(tt,0,null,c,!1,!1);Ct.parentFlushed=!0;var nr=Oo(tt,f,null,Ct,Ge,In,xl,df);return xe.push(nr),tt}function Do(f,s){var c=f.pingedTasks;c.push(s),c.length===1&&u(function(){return Oc(f)})}function Dl(f,s){return{id:xi,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:s,errorDigest:null}}function Oo(f,s,c,d,y,L,F,U){f.allPendingTasks++,c===null?f.pendingRootTasks++:c.pendingTasks++;var oe={node:s,ping:function(){return Do(f,oe)},blockedBoundary:c,blockedSegment:d,abortSet:y,legacyContext:L,context:F,treeContext:U};return oe.componentStack=null,y.add(oe),oe}function Ba(f,s,c,d,y,L){return{status:Il,id:-1,index:s,parentFlushed:!1,chunks:[],children:[],formatContext:d,boundary:c,lastPushedText:y,textEmbedded:L}}var Vi=null;function Gi(){return Vi===null||Vi.componentStack===null?"":la(Vi.componentStack)}function lo(f,s){f.componentStack={tag:0,parent:f.componentStack,type:s}}function qa(f,s){f.componentStack={tag:1,parent:f.componentStack,type:s}}function es(f,s){f.componentStack={tag:2,parent:f.componentStack,type:s}}function Zi(f){f.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):f.componentStack=f.componentStack.parent}var da=null;function Ol(f,s){{var c;typeof s=="string"?c=s:s&&typeof s.message=="string"?c=s.message:c=String(s);var d=da||Gi();da=null,f.errorMessage=c,f.errorComponentStack=d}}function Ha(f,s){var c=f.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 ha(f,s){var c=f.onShellError;c(s);var d=f.onFatalError;d(s),f.destination!==null?(f.status=fa,k(f.destination,s)):(f.status=ua,f.fatalError=s)}function _u(f,s,c){lo(s,"Suspense");var d=s.blockedBoundary,y=s.blockedSegment,L=c.fallback,F=c.children,U=new Set,oe=Dl(f,U),xe=y.chunks.length,Ge=Ba(f,xe,oe,y.formatContext,!1,!1);y.children.push(Ge),y.lastPushedText=!1;var tt=Ba(f,0,null,y.formatContext,!1,!1);tt.parentFlushed=!0,s.blockedBoundary=oe,s.blockedSegment=tt;try{if(ts(f,s,F),dn(tt.chunks,f.responseState,tt.lastPushedText,tt.textEmbedded),tt.status=ao,rs(oe,tt),oe.pendingTasks===0){Zi(s);return}}catch(nr){tt.status=yu,oe.forceClientRender=!0,oe.errorDigest=Ha(f,nr),Ol(oe,nr)}finally{s.blockedBoundary=d,s.blockedSegment=y}var Ct=Oo(f,L,d,Ge,U,s.legacyContext,s.context,s.treeContext);Ct.componentStack=s.componentStack,f.pingedTasks.push(Ct),Zi(s)}function wc(f,s,c,d){lo(s,c);var y=s.blockedSegment,L=gr(y.chunks,c,d,f.responseState,y.formatContext);y.lastPushedText=!1;var F=y.formatContext;y.formatContext=_i(F,c,d),ts(f,s,L),y.formatContext=F,wr(y.chunks,c),y.lastPushedText=!1,Zi(s)}function Ac(f){return f.prototype&&f.prototype.isReactComponent}function ks(f,s,c,d,y){var L={};vc(s,L);var F=c(d,y);return Cs(c,d,F,y)}function Tc(f,s,c,d,y){var L=c.render();c.props!==y&&(kc||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",an(d)||"a component"),kc=!0);{var F=d.childContextTypes;if(F!=null){var U=s.legacyContext,oe=cc(c,d,U,F);s.legacyContext=oe,ni(f,s,L),s.legacyContext=U;return}}ni(f,s,L)}function Pl(f,s,c,d){es(s,c);var y=Vo(c,s.legacyContext),L=oo(c,d,y);Pa(L,c,d,y),Tc(f,s,L,c,d),Zi(s)}var mr={},za={},Ec={},Rs={},kc=!1,xu=!1,Rc=!1,Li=!1;function vf(f,s,c,d){var y;if(y=Vo(c,s.legacyContext),qa(s,c),c.prototype&&typeof c.prototype.render=="function"){var L=an(c)||"Unknown";mr[L]||(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.",L,L),mr[L]=!0)}var F=ks(f,s,c,d,y),U=fi();if(typeof F=="object"&&F!==null&&typeof F.render=="function"&&F.$$typeof===void 0){var oe=an(c)||"Unknown";za[oe]||(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.",oe,oe,oe),za[oe]=!0)}if(typeof F=="object"&&F!==null&&typeof F.render=="function"&&F.$$typeof===void 0){{var xe=an(c)||"Unknown";za[xe]||(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.",xe,xe,xe),za[xe]=!0)}Pa(F,c,d,y),Tc(f,s,F,c,d)}else if(Nl(c),U){var Ge=s.treeContext,tt=1,Ct=0;s.treeContext=hc(Ge,tt,Ct);try{ni(f,s,F)}finally{s.treeContext=Ge}}else ni(f,s,F);Zi(s)}function Nl(f){{if(f&&f.childContextTypes&&i("%s(...): childContextTypes cannot be defined on a function component.",f.displayName||f.name||"Component"),typeof f.getDerivedStateFromProps=="function"){var s=an(f)||"Unknown";Rs[s]||(i("%s: Function components do not support getDerivedStateFromProps.",s),Rs[s]=!0)}if(typeof f.contextType=="object"&&f.contextType!==null){var c=an(f)||"Unknown";Ec[c]||(i("%s: Function components do not support contextType.",c),Ec[c]=!0)}}}function jl(f,s){if(f&&f.defaultProps){var c=Ti({},s),d=f.defaultProps;for(var y in d)c[y]===void 0&&(c[y]=d[y]);return c}return s}function Su(f,s,c,d,y){qa(s,c.render);var L=ks(f,s,c.render,d,y),F=fi();if(F){var U=s.treeContext,oe=1,xe=0;s.treeContext=hc(U,oe,xe);try{ni(f,s,L)}finally{s.treeContext=U}}else ni(f,s,L);Zi(s)}function Fl(f,s,c,d,y){var L=c.type,F=jl(L,d);$a(f,s,L,F,y)}function Mi(f,s,c,d){c._context===void 0?c!==c.Consumer&&(Li||(Li=!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=d.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 L=oa(c),F=y(L);ni(f,s,F)}function An(f,s,c,d){var y=c._context,L=d.value,F=d.children,U;U=s.context,s.context=uc(y,L),ni(f,s,F),s.context=lf(y),U!==s.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Ic(f,s,c,d,y){lo(s,"Lazy");var L=c._payload,F=c._init,U=F(L),oe=jl(U,d);$a(f,s,U,oe,y),Zi(s)}function $a(f,s,c,d,y){if(typeof c=="function")if(Ac(c)){Pl(f,s,c,d);return}else{vf(f,s,c,d);return}if(typeof c=="string"){wc(f,s,c,d);return}switch(c){case vl:case Ni:case ge:case ze:case wo:{ni(f,s,d.children);return}case bn:{lo(s,"SuspenseList"),ni(f,s,d.children),Zi(s);return}case au:throw new Error("ReactDOMServer does not yet support scope components.");case Pr:{_u(f,s,d);return}}if(typeof c=="object"&&c!==null)switch(c.$$typeof){case ir:{Su(f,s,c,d,y);return}case Ur:{Fl(f,s,c,d,y);return}case Me:{An(f,s,c,d);return}case Pt:{Mi(f,s,c,d);return}case Xs:{Ic(f,s,c,d);return}}var L="";throw(c===void 0||typeof c=="object"&&c!==null&&Object.keys(c).length===0)&&(L+=" 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)+"."+L))}function Bl(f,s){typeof Symbol=="function"&&f[Symbol.toStringTag]==="Generator"&&(xu||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."),xu=!0),f.entries===s&&(Rc||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Rc=!0)}function ni(f,s,c){try{return Lc(f,s,c)}catch(d){throw typeof d=="object"&&d!==null&&typeof d.then=="function"||(da=da!==null?da:Gi()),d}}function Lc(f,s,c){if(s.node=c,typeof c=="object"&&c!==null){switch(c.$$typeof){case su:{var d=c,y=d.type,L=d.props,F=d.ref;$a(f,s,y,L,F);return}case ml: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 Xs:{var U=c,oe=U._payload,xe=U._init,Ge;try{Ge=xe(oe)}catch(fo){throw typeof fo=="object"&&fo!==null&&typeof fo.then=="function"&&lo(s,"Lazy"),fo}ni(f,s,Ge);return}}if(er(c)){Mc(f,s,c);return}var tt=Uo(c);if(tt){Bl(c,tt);var Ct=tt.call(c);if(Ct){var nr=Ct.next();if(!nr.done){var Lr=[];do Lr.push(nr.value),nr=Ct.next();while(!nr.done);Mc(f,s,Lr);return}return}}var $n=Object.prototype.toString.call(c);throw new Error("Objects are not valid as a React child (found: "+($n==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":$n)+"). If you meant to render a collection of children, use an array instead.")}if(typeof c=="string"){var ns=s.blockedSegment;ns.lastPushedText=on(s.blockedSegment.chunks,c,f.responseState,ns.lastPushedText);return}if(typeof c=="number"){var uo=s.blockedSegment;uo.lastPushedText=on(s.blockedSegment.chunks,""+c,f.responseState,uo.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 Mc(f,s,c){for(var d=c.length,y=0;y<d;y++){var L=s.treeContext;s.treeContext=hc(L,d,y);try{ts(f,s,c[y])}finally{s.treeContext=L}}}function ql(f,s,c){var d=s.blockedSegment,y=d.chunks.length,L=Ba(f,y,null,d.formatContext,d.lastPushedText,!0);d.children.push(L),d.lastPushedText=!1;var F=Oo(f,s.node,s.blockedBoundary,L,s.abortSet,s.legacyContext,s.context,s.treeContext);s.componentStack!==null&&(F.componentStack=s.componentStack.parent);var U=F.ping;c.then(U,U)}function ts(f,s,c){var d=s.blockedSegment.formatContext,y=s.legacyContext,L=s.context,F=null;F=s.componentStack;try{return ni(f,s,c)}catch(U){if(yc(),typeof U=="object"&&U!==null&&typeof U.then=="function"){ql(f,s,U),s.blockedSegment.formatContext=d,s.legacyContext=y,s.context=L,Yo(L),s.componentStack=F;return}else throw s.blockedSegment.formatContext=d,s.legacyContext=y,s.context=L,Yo(L),s.componentStack=F,U}}function Po(f,s,c,d){var y=Ha(f,d);if(s===null?ha(f,d):(s.pendingTasks--,s.forceClientRender||(s.forceClientRender=!0,s.errorDigest=y,Ol(s,d),s.parentFlushed&&f.clientRenderedBoundaries.push(s))),f.allPendingTasks--,f.allPendingTasks===0){var L=f.onAllReady;L()}}function yf(f){var s=this,c=f.blockedBoundary,d=f.blockedSegment;d.status=Ts,pa(s,c,d)}function co(f,s,c){var d=f.blockedBoundary,y=f.blockedSegment;if(y.status=Ts,d===null)s.allPendingTasks--,s.status!==fa&&(s.status=fa,s.destination!==null&&S(s.destination));else{if(d.pendingTasks--,!d.forceClientRender){d.forceClientRender=!0;var L=c===void 0?new Error("The render was aborted by the server without a reason."):c;d.errorDigest=s.onError(L);{var F="The server did not finish this Suspense boundary: ";L&&typeof L.message=="string"?L=F+L.message:L=F+String(L);var U=Vi;Vi=f;try{Ol(d,L)}finally{Vi=U}}d.parentFlushed&&s.clientRenderedBoundaries.push(d)}if(d.fallbackAbortableTasks.forEach(function(xe){return co(xe,s,c)}),d.fallbackAbortableTasks.clear(),s.allPendingTasks--,s.allPendingTasks===0){var oe=s.onAllReady;oe()}}}function rs(f,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===ao&&rs(f,c)}else{var d=f.completedSegments;d.push(s)}}function pa(f,s,c){if(s===null){if(c.parentFlushed){if(f.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");f.completedRootSegment=c}if(f.pendingRootTasks--,f.pendingRootTasks===0){f.onShellError=Es;var d=f.onShellReady;d()}}else if(s.pendingTasks--,!s.forceClientRender){if(s.pendingTasks===0)c.parentFlushed&&c.status===ao&&rs(s,c),s.parentFlushed&&f.completedBoundaries.push(s),s.fallbackAbortableTasks.forEach(yf,f),s.fallbackAbortableTasks.clear();else if(c.parentFlushed&&c.status===ao){rs(s,c);var y=s.completedSegments;y.length===1&&s.parentFlushed&&f.partialBoundaries.push(s)}}if(f.allPendingTasks--,f.allPendingTasks===0){var L=f.onAllReady;L()}}function Dc(f,s){var c=s.blockedSegment;if(c.status===Il){Yo(s.context);var d=null;d=Vi,Vi=s;try{ni(f,s,s.node),dn(c.chunks,f.responseState,c.lastPushedText,c.textEmbedded),s.abortSet.delete(s),c.status=ao,pa(f,s.blockedBoundary,c)}catch(L){if(yc(),typeof L=="object"&&L!==null&&typeof L.then=="function"){var y=s.ping;L.then(y,y)}else s.abortSet.delete(s),c.status=yu,Po(f,s.blockedBoundary,c,L)}finally{Vi=d}}}function Oc(f){if(f.status!==fa){var s=uu(),c=Rl.current;Rl.current=Pn;var d;d=ca.getCurrentStack,ca.getCurrentStack=Gi;var y=As;kl(f.responseState);try{var L=f.pingedTasks,F;for(F=0;F<L.length;F++){var U=L[F];Dc(f,U)}L.splice(0,F),f.destination!==null&&ii(f,f.destination)}catch(oe){Ha(f,oe),ha(f,oe)}finally{kl(y),Rl.current=c,ca.getCurrentStack=d,c===Pn&&Yo(s)}}}function Ua(f,s,c){switch(c.parentFlushed=!0,c.status){case Il:{var d=c.id=f.nextSegmentId++;return c.lastPushedText=!1,c.textEmbedded=!1,Fr(s,f.responseState,d)}case ao:{c.status=Ll;for(var y=!0,L=c.chunks,F=0,U=c.children,oe=0;oe<U.length;oe++){for(var xe=U[oe];F<xe.index;F++)T(s,L[F]);y=Hl(f,s,xe)}for(;F<L.length-1;F++)T(s,L[F]);return F<L.length&&(y=C(s,L[F])),y}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function Hl(f,s,c){var d=c.boundary;if(d===null)return Ua(f,s,c);if(d.parentFlushed=!0,d.forceClientRender)return Hn(s,f.responseState,d.errorDigest,d.errorMessage,d.errorComponentStack),Ua(f,s,c),Aa(s,f.responseState);if(d.pendingTasks>0){d.rootSegmentID=f.nextSegmentId++,d.completedSegments.length>0&&f.partialBoundaries.push(d);var y=d.id=En(f.responseState);return xo(s,f.responseState,y),Ua(f,s,c),Ci(s,f.responseState)}else{if(d.byteSize>f.progressiveChunkSize)return d.rootSegmentID=f.nextSegmentId++,f.completedBoundaries.push(d),xo(s,f.responseState,d.id),Ua(f,s,c),Ci(s,f.responseState);$i(s,f.responseState);var L=d.completedSegments;if(L.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var F=L[0];return Hl(f,s,F),Yr(s,f.responseState)}}function Pc(f,s,c){return iu(s,f.responseState,c.id,c.errorDigest,c.errorMessage,c.errorComponentStack)}function Wa(f,s,c){return sr(s,f.responseState,c.formatContext,c.id),Hl(f,s,c),Gr(s,c.formatContext)}function Cu(f,s,c){for(var d=c.completedSegments,y=0;y<d.length;y++){var L=d[y];Nc(f,s,c,L)}return d.length=0,Ea(s,f.responseState,c.id,c.rootSegmentID)}function wu(f,s,c){for(var d=c.completedSegments,y=0;y<d.length;y++){var L=d[y];if(!Nc(f,s,c,L))return y++,d.splice(0,y),!1}return d.splice(0,y),!0}function Nc(f,s,c,d){if(d.status===Ll)return!0;var y=d.id;if(y===-1){var L=d.id=c.rootSegmentID;if(L===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return Wa(f,s,d)}else return Wa(f,s,d),tf(s,f.responseState,y)}function ii(f,s){M();try{var c=f.completedRootSegment;c!==null&&f.pendingRootTasks===0&&(Hl(f,s,c),f.completedRootSegment=null,Jr(s,f.responseState));var d=f.clientRenderedBoundaries,y;for(y=0;y<d.length;y++){var L=d[y];Pc(f,s,L)}d.splice(0,y);var F=f.completedBoundaries;for(y=0;y<F.length;y++){var U=F[y];Cu(f,s,U)}F.splice(0,y),_(s),M(s);var oe=f.partialBoundaries;for(y=0;y<oe.length;y++){var xe=oe[y];if(!wu(f,s,xe)){f.destination=null,y++,oe.splice(0,y);return}}oe.splice(0,y);var Ge=f.completedBoundaries;for(y=0;y<Ge.length;y++){var tt=Ge[y];Cu(f,s,tt)}Ge.splice(0,y)}finally{_(s),f.allPendingTasks===0&&f.pingedTasks.length===0&&f.clientRenderedBoundaries.length===0&&f.completedBoundaries.length===0&&(f.abortableTasks.size!==0&&i("There was still abortable task at the root when we closed. This is a bug in React."),S(s))}}function Yi(f){u(function(){return Oc(f)})}function bf(f,s){if(f.status===ua){f.status=fa,k(s,f.fatalError);return}if(f.status!==fa&&f.destination===null){f.destination=s;try{ii(f,s)}catch(c){Ha(f,c),ha(f,c)}}}function Au(f,s){try{var c=f.abortableTasks;c.forEach(function(d){return co(d,f,s)}),c.clear(),f.destination!==null&&ii(f,f.destination)}catch(d){Ha(f,d),ha(f,d)}}function zl(f,s){return new Promise(function(c,d){var y,L,F=new Promise(function(Ct,nr){L=Ct,y=nr});function U(){var Ct=new ReadableStream({type:"bytes",pull:function(nr){bf(xe,nr)},cancel:function(nr){Au(xe)}},{highWaterMark:0});Ct.allReady=F,c(Ct)}function oe(Ct){F.catch(function(){}),d(Ct)}var xe=Ml(f,Sn(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),di(s?s.namespaceURI:void 0),s?s.progressiveChunkSize:void 0,s?s.onError:void 0,L,U,oe,y);if(s&&s.signal){var Ge=s.signal,tt=function(){Au(xe,Ge.reason),Ge.removeEventListener("abort",tt)};Ge.addEventListener("abort",tt)}Yi(xe)})}Bd.renderToReadableStream=zl,Bd.version=e}()),Bd}var cy;function rO(){if(cy)return Vl;cy=1;var r,e;return process.env.NODE_ENV==="production"?(r=JD(),e=QD()):(r=eO(),e=tO()),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 nO=rO();const Ps=ol(nO);var fp,uy;function iO(){if(uy)return fp;uy=1;function r(){this.__data__=[],this.size=0}return fp=r,fp}var dp,fy;function Qx(){if(fy)return dp;fy=1;function r(e,t){return e===t||e!==e&&t!==t}return dp=r,dp}var hp,dy;function ph(){if(dy)return hp;dy=1;var r=Qx();function e(t,n){for(var i=t.length;i--;)if(r(t[i][0],n))return i;return-1}return hp=e,hp}var pp,hy;function oO(){if(hy)return pp;hy=1;var r=ph(),e=Array.prototype,t=e.splice;function n(i){var l=this.__data__,u=r(l,i);if(u<0)return!1;var h=l.length-1;return u==h?l.pop():t.call(l,u,1),--this.size,!0}return pp=n,pp}var gp,py;function sO(){if(py)return gp;py=1;var r=ph();function e(t){var n=this.__data__,i=r(n,t);return i<0?void 0:n[i][1]}return gp=e,gp}var mp,gy;function aO(){if(gy)return mp;gy=1;var r=ph();function e(t){return r(this.__data__,t)>-1}return mp=e,mp}var vp,my;function lO(){if(my)return vp;my=1;var r=ph();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 vp=e,vp}var yp,vy;function gh(){if(vy)return yp;vy=1;var r=iO(),e=oO(),t=sO(),n=aO(),i=lO();function l(u){var h=-1,g=u==null?0:u.length;for(this.clear();++h<g;){var m=u[h];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,yp=l,yp}var bp,yy;function cO(){if(yy)return bp;yy=1;var r=gh();function e(){this.__data__=new r,this.size=0}return bp=e,bp}var _p,by;function uO(){if(by)return _p;by=1;function r(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}return _p=r,_p}var xp,_y;function fO(){if(_y)return xp;_y=1;function r(e){return this.__data__.get(e)}return xp=r,xp}var Sp,xy;function dO(){if(xy)return Sp;xy=1;function r(e){return this.__data__.has(e)}return Sp=r,Sp}var Cp,Sy;function eS(){if(Sy)return Cp;Sy=1;var r=typeof yi=="object"&&yi&&yi.Object===Object&&yi;return Cp=r,Cp}var wp,Cy;function ll(){if(Cy)return wp;Cy=1;var r=eS(),e=typeof self=="object"&&self&&self.Object===Object&&self,t=r||e||Function("return this")();return wp=t,wp}var Ap,wy;function jm(){if(wy)return Ap;wy=1;var r=ll(),e=r.Symbol;return Ap=e,Ap}var Tp,Ay;function hO(){if(Ay)return Tp;Ay=1;var r=jm(),e=Object.prototype,t=e.hasOwnProperty,n=e.toString,i=r?r.toStringTag:void 0;function l(u){var h=t.call(u,i),g=u[i];try{u[i]=void 0;var m=!0}catch{}var M=n.call(u);return m&&(h?u[i]=g:delete u[i]),M}return Tp=l,Tp}var Ep,Ty;function pO(){if(Ty)return Ep;Ty=1;var r=Object.prototype,e=r.toString;function t(n){return e.call(n)}return Ep=t,Ep}var kp,Ey;function mh(){if(Ey)return kp;Ey=1;var r=jm(),e=hO(),t=pO(),n="[object Null]",i="[object Undefined]",l=r?r.toStringTag:void 0;function u(h){return h==null?h===void 0?i:n:l&&l in Object(h)?e(h):t(h)}return kp=u,kp}var Rp,ky;function tS(){if(ky)return Rp;ky=1;function r(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}return Rp=r,Rp}var Ip,Ry;function rS(){if(Ry)return Ip;Ry=1;var r=mh(),e=tS(),t="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",l="[object Proxy]";function u(h){if(!e(h))return!1;var g=r(h);return g==n||g==i||g==t||g==l}return Ip=u,Ip}var Lp,Iy;function gO(){if(Iy)return Lp;Iy=1;var r=ll(),e=r["__core-js_shared__"];return Lp=e,Lp}var Mp,Ly;function mO(){if(Ly)return Mp;Ly=1;var r=gO(),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 Mp=t,Mp}var Dp,My;function nS(){if(My)return Dp;My=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 Dp=t,Dp}var Op,Dy;function vO(){if(Dy)return Op;Dy=1;var r=rS(),e=mO(),t=tS(),n=nS(),i=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,u=Function.prototype,h=Object.prototype,g=u.toString,m=h.hasOwnProperty,M=RegExp("^"+g.call(m).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function T(C){if(!t(C)||e(C))return!1;var _=r(C)?M:l;return _.test(n(C))}return Op=T,Op}var Pp,Oy;function yO(){if(Oy)return Pp;Oy=1;function r(e,t){return e==null?void 0:e[t]}return Pp=r,Pp}var Np,Py;function Qu(){if(Py)return Np;Py=1;var r=vO(),e=yO();function t(n,i){var l=e(n,i);return r(l)?l:void 0}return Np=t,Np}var jp,Ny;function Fm(){if(Ny)return jp;Ny=1;var r=Qu(),e=ll(),t=r(e,"Map");return jp=t,jp}var Fp,jy;function vh(){if(jy)return Fp;jy=1;var r=Qu(),e=r(Object,"create");return Fp=e,Fp}var Bp,Fy;function bO(){if(Fy)return Bp;Fy=1;var r=vh();function e(){this.__data__=r?r(null):{},this.size=0}return Bp=e,Bp}var qp,By;function _O(){if(By)return qp;By=1;function r(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}return qp=r,qp}var Hp,qy;function xO(){if(qy)return Hp;qy=1;var r=vh(),e="__lodash_hash_undefined__",t=Object.prototype,n=t.hasOwnProperty;function i(l){var u=this.__data__;if(r){var h=u[l];return h===e?void 0:h}return n.call(u,l)?u[l]:void 0}return Hp=i,Hp}var zp,Hy;function SO(){if(Hy)return zp;Hy=1;var r=vh(),e=Object.prototype,t=e.hasOwnProperty;function n(i){var l=this.__data__;return r?l[i]!==void 0:t.call(l,i)}return zp=n,zp}var $p,zy;function CO(){if(zy)return $p;zy=1;var r=vh(),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 $p=t,$p}var Up,$y;function wO(){if($y)return Up;$y=1;var r=bO(),e=_O(),t=xO(),n=SO(),i=CO();function l(u){var h=-1,g=u==null?0:u.length;for(this.clear();++h<g;){var m=u[h];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,Up=l,Up}var Wp,Uy;function AO(){if(Uy)return Wp;Uy=1;var r=wO(),e=gh(),t=Fm();function n(){this.size=0,this.__data__={hash:new r,map:new(t||e),string:new r}}return Wp=n,Wp}var Vp,Wy;function TO(){if(Wy)return Vp;Wy=1;function r(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}return Vp=r,Vp}var Gp,Vy;function yh(){if(Vy)return Gp;Vy=1;var r=TO();function e(t,n){var i=t.__data__;return r(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Gp=e,Gp}var Zp,Gy;function EO(){if(Gy)return Zp;Gy=1;var r=yh();function e(t){var n=r(this,t).delete(t);return this.size-=n?1:0,n}return Zp=e,Zp}var Yp,Zy;function kO(){if(Zy)return Yp;Zy=1;var r=yh();function e(t){return r(this,t).get(t)}return Yp=e,Yp}var Kp,Yy;function RO(){if(Yy)return Kp;Yy=1;var r=yh();function e(t){return r(this,t).has(t)}return Kp=e,Kp}var Xp,Ky;function IO(){if(Ky)return Xp;Ky=1;var r=yh();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 Xp=e,Xp}var Jp,Xy;function iS(){if(Xy)return Jp;Xy=1;var r=AO(),e=EO(),t=kO(),n=RO(),i=IO();function l(u){var h=-1,g=u==null?0:u.length;for(this.clear();++h<g;){var m=u[h];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,Jp=l,Jp}var Qp,Jy;function LO(){if(Jy)return Qp;Jy=1;var r=gh(),e=Fm(),t=iS(),n=200;function i(l,u){var h=this.__data__;if(h instanceof r){var g=h.__data__;if(!e||g.length<n-1)return g.push([l,u]),this.size=++h.size,this;h=this.__data__=new t(g)}return h.set(l,u),this.size=h.size,this}return Qp=i,Qp}var eg,Qy;function MO(){if(Qy)return eg;Qy=1;var r=gh(),e=cO(),t=uO(),n=fO(),i=dO(),l=LO();function u(h){var g=this.__data__=new r(h);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,eg=u,eg}var tg,eb;function DO(){if(eb)return tg;eb=1;var r="__lodash_hash_undefined__";function e(t){return this.__data__.set(t,r),this}return tg=e,tg}var rg,tb;function OO(){if(tb)return rg;tb=1;function r(e){return this.__data__.has(e)}return rg=r,rg}var ng,rb;function PO(){if(rb)return ng;rb=1;var r=iS(),e=DO(),t=OO();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,ng=n,ng}var ig,nb;function NO(){if(nb)return ig;nb=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 ig=r,ig}var og,ib;function jO(){if(ib)return og;ib=1;function r(e,t){return e.has(t)}return og=r,og}var sg,ob;function oS(){if(ob)return sg;ob=1;var r=PO(),e=NO(),t=jO(),n=1,i=2;function l(u,h,g,m,M,T){var C=g&n,_=u.length,S=h.length;if(_!=S&&!(C&&S>_))return!1;var D=T.get(u),A=T.get(h);if(D&&A)return D==h&&A==u;var b=-1,k=!0,O=g&i?new r:void 0;for(T.set(u,h),T.set(h,u);++b<_;){var H=u[b],q=h[b];if(m)var G=C?m(q,H,b,h,u,T):m(H,q,b,u,h,T);if(G!==void 0){if(G)continue;k=!1;break}if(O){if(!e(h,function(Y,he){if(!t(O,he)&&(H===Y||M(H,Y,g,m,T)))return O.push(he)})){k=!1;break}}else if(!(H===q||M(H,q,g,m,T))){k=!1;break}}return T.delete(u),T.delete(h),k}return sg=l,sg}var ag,sb;function FO(){if(sb)return ag;sb=1;var r=ll(),e=r.Uint8Array;return ag=e,ag}var lg,ab;function BO(){if(ab)return lg;ab=1;function r(e){var t=-1,n=Array(e.size);return e.forEach(function(i,l){n[++t]=[l,i]}),n}return lg=r,lg}var cg,lb;function qO(){if(lb)return cg;lb=1;function r(e){var t=-1,n=Array(e.size);return e.forEach(function(i){n[++t]=i}),n}return cg=r,cg}var ug,cb;function HO(){if(cb)return ug;cb=1;var r=jm(),e=FO(),t=Qx(),n=oS(),i=BO(),l=qO(),u=1,h=2,g="[object Boolean]",m="[object Date]",M="[object Error]",T="[object Map]",C="[object Number]",_="[object RegExp]",S="[object Set]",D="[object String]",A="[object Symbol]",b="[object ArrayBuffer]",k="[object DataView]",O=r?r.prototype:void 0,H=O?O.valueOf:void 0;function q(G,Y,he,J,fe,P,re){switch(he){case k:if(G.byteLength!=Y.byteLength||G.byteOffset!=Y.byteOffset)return!1;G=G.buffer,Y=Y.buffer;case b:return!(G.byteLength!=Y.byteLength||!P(new e(G),new e(Y)));case g:case m:case C:return t(+G,+Y);case M:return G.name==Y.name&&G.message==Y.message;case _:case D:return G==Y+"";case T:var Q=i;case S:var ne=J&u;if(Q||(Q=l),G.size!=Y.size&&!ne)return!1;var se=re.get(G);if(se)return se==Y;J|=h,re.set(G,Y);var ue=n(Q(G),Q(Y),J,fe,P,re);return re.delete(G),ue;case A:if(H)return H.call(G)==H.call(Y)}return!1}return ug=q,ug}var fg,ub;function zO(){if(ub)return fg;ub=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 fg=r,fg}var dg,fb;function Bm(){if(fb)return dg;fb=1;var r=Array.isArray;return dg=r,dg}var hg,db;function $O(){if(db)return hg;db=1;var r=zO(),e=Bm();function t(n,i,l){var u=i(n);return e(n)?u:r(u,l(n))}return hg=t,hg}var pg,hb;function UO(){if(hb)return pg;hb=1;function r(e,t){for(var n=-1,i=e==null?0:e.length,l=0,u=[];++n<i;){var h=e[n];t(h,n,e)&&(u[l++]=h)}return u}return pg=r,pg}var gg,pb;function WO(){if(pb)return gg;pb=1;function r(){return[]}return gg=r,gg}var mg,gb;function VO(){if(gb)return mg;gb=1;var r=UO(),e=WO(),t=Object.prototype,n=t.propertyIsEnumerable,i=Object.getOwnPropertySymbols,l=i?function(u){return u==null?[]:(u=Object(u),r(i(u),function(h){return n.call(u,h)}))}:e;return mg=l,mg}var vg,mb;function GO(){if(mb)return vg;mb=1;function r(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}return vg=r,vg}var yg,vb;function bh(){if(vb)return yg;vb=1;function r(e){return e!=null&&typeof e=="object"}return yg=r,yg}var bg,yb;function ZO(){if(yb)return bg;yb=1;var r=mh(),e=bh(),t="[object Arguments]";function n(i){return e(i)&&r(i)==t}return bg=n,bg}var _g,bb;function YO(){if(bb)return _g;bb=1;var r=ZO(),e=bh(),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 _g=l,_g}var Ff={exports:{}},xg,_b;function KO(){if(_b)return xg;_b=1;function r(){return!1}return xg=r,xg}Ff.exports;var xb;function sS(){return xb||(xb=1,function(r,e){var t=ll(),n=KO(),i=e&&!e.nodeType&&e,l=i&&!0&&r&&!r.nodeType&&r,u=l&&l.exports===i,h=u?t.Buffer:void 0,g=h?h.isBuffer:void 0,m=g||n;r.exports=m}(Ff,Ff.exports)),Ff.exports}var Sg,Sb;function XO(){if(Sb)return Sg;Sb=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 Sg=t,Sg}var Cg,Cb;function aS(){if(Cb)return Cg;Cb=1;var r=9007199254740991;function e(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=r}return Cg=e,Cg}var wg,wb;function JO(){if(wb)return wg;wb=1;var r=mh(),e=aS(),t=bh(),n="[object Arguments]",i="[object Array]",l="[object Boolean]",u="[object Date]",h="[object Error]",g="[object Function]",m="[object Map]",M="[object Number]",T="[object Object]",C="[object RegExp]",_="[object Set]",S="[object String]",D="[object WeakMap]",A="[object ArrayBuffer]",b="[object DataView]",k="[object Float32Array]",O="[object Float64Array]",H="[object Int8Array]",q="[object Int16Array]",G="[object Int32Array]",Y="[object Uint8Array]",he="[object Uint8ClampedArray]",J="[object Uint16Array]",fe="[object Uint32Array]",P={};P[k]=P[O]=P[H]=P[q]=P[G]=P[Y]=P[he]=P[J]=P[fe]=!0,P[n]=P[i]=P[A]=P[l]=P[b]=P[u]=P[h]=P[g]=P[m]=P[M]=P[T]=P[C]=P[_]=P[S]=P[D]=!1;function re(Q){return t(Q)&&e(Q.length)&&!!P[r(Q)]}return wg=re,wg}var Ag,Ab;function QO(){if(Ab)return Ag;Ab=1;function r(e){return function(t){return e(t)}}return Ag=r,Ag}var Bf={exports:{}};Bf.exports;var Tb;function eP(){return Tb||(Tb=1,function(r,e){var t=eS(),n=e&&!e.nodeType&&e,i=n&&!0&&r&&!r.nodeType&&r,l=i&&i.exports===n,u=l&&t.process,h=function(){try{var g=i&&i.require&&i.require("util").types;return g||u&&u.binding&&u.binding("util")}catch{}}();r.exports=h}(Bf,Bf.exports)),Bf.exports}var Tg,Eb;function lS(){if(Eb)return Tg;Eb=1;var r=JO(),e=QO(),t=eP(),n=t&&t.isTypedArray,i=n?e(n):r;return Tg=i,Tg}var Eg,kb;function tP(){if(kb)return Eg;kb=1;var r=GO(),e=YO(),t=Bm(),n=sS(),i=XO(),l=lS(),u=Object.prototype,h=u.hasOwnProperty;function g(m,M){var T=t(m),C=!T&&e(m),_=!T&&!C&&n(m),S=!T&&!C&&!_&&l(m),D=T||C||_||S,A=D?r(m.length,String):[],b=A.length;for(var k in m)(M||h.call(m,k))&&!(D&&(k=="length"||_&&(k=="offset"||k=="parent")||S&&(k=="buffer"||k=="byteLength"||k=="byteOffset")||i(k,b)))&&A.push(k);return A}return Eg=g,Eg}var kg,Rb;function rP(){if(Rb)return kg;Rb=1;var r=Object.prototype;function e(t){var n=t&&t.constructor,i=typeof n=="function"&&n.prototype||r;return t===i}return kg=e,kg}var Rg,Ib;function nP(){if(Ib)return Rg;Ib=1;function r(e,t){return function(n){return e(t(n))}}return Rg=r,Rg}var Ig,Lb;function iP(){if(Lb)return Ig;Lb=1;var r=nP(),e=r(Object.keys,Object);return Ig=e,Ig}var Lg,Mb;function oP(){if(Mb)return Lg;Mb=1;var r=rP(),e=iP(),t=Object.prototype,n=t.hasOwnProperty;function i(l){if(!r(l))return e(l);var u=[];for(var h in Object(l))n.call(l,h)&&h!="constructor"&&u.push(h);return u}return Lg=i,Lg}var Mg,Db;function sP(){if(Db)return Mg;Db=1;var r=rS(),e=aS();function t(n){return n!=null&&e(n.length)&&!r(n)}return Mg=t,Mg}var Dg,Ob;function aP(){if(Ob)return Dg;Ob=1;var r=tP(),e=oP(),t=sP();function n(i){return t(i)?r(i):e(i)}return Dg=n,Dg}var Og,Pb;function lP(){if(Pb)return Og;Pb=1;var r=$O(),e=VO(),t=aP();function n(i){return r(i,t,e)}return Og=n,Og}var Pg,Nb;function cP(){if(Nb)return Pg;Nb=1;var r=lP(),e=1,t=Object.prototype,n=t.hasOwnProperty;function i(l,u,h,g,m,M){var T=h&e,C=r(l),_=C.length,S=r(u),D=S.length;if(_!=D&&!T)return!1;for(var A=_;A--;){var b=C[A];if(!(T?b in u:n.call(u,b)))return!1}var k=M.get(l),O=M.get(u);if(k&&O)return k==u&&O==l;var H=!0;M.set(l,u),M.set(u,l);for(var q=T;++A<_;){b=C[A];var G=l[b],Y=u[b];if(g)var he=T?g(Y,G,b,u,l,M):g(G,Y,b,l,u,M);if(!(he===void 0?G===Y||m(G,Y,h,g,M):he)){H=!1;break}q||(q=b=="constructor")}if(H&&!q){var J=l.constructor,fe=u.constructor;J!=fe&&"constructor"in l&&"constructor"in u&&!(typeof J=="function"&&J instanceof J&&typeof fe=="function"&&fe instanceof fe)&&(H=!1)}return M.delete(l),M.delete(u),H}return Pg=i,Pg}var Ng,jb;function uP(){if(jb)return Ng;jb=1;var r=Qu(),e=ll(),t=r(e,"DataView");return Ng=t,Ng}var jg,Fb;function fP(){if(Fb)return jg;Fb=1;var r=Qu(),e=ll(),t=r(e,"Promise");return jg=t,jg}var Fg,Bb;function dP(){if(Bb)return Fg;Bb=1;var r=Qu(),e=ll(),t=r(e,"Set");return Fg=t,Fg}var Bg,qb;function hP(){if(qb)return Bg;qb=1;var r=Qu(),e=ll(),t=r(e,"WeakMap");return Bg=t,Bg}var qg,Hb;function pP(){if(Hb)return qg;Hb=1;var r=uP(),e=Fm(),t=fP(),n=dP(),i=hP(),l=mh(),u=nS(),h="[object Map]",g="[object Object]",m="[object Promise]",M="[object Set]",T="[object WeakMap]",C="[object DataView]",_=u(r),S=u(e),D=u(t),A=u(n),b=u(i),k=l;return(r&&k(new r(new ArrayBuffer(1)))!=C||e&&k(new e)!=h||t&&k(t.resolve())!=m||n&&k(new n)!=M||i&&k(new i)!=T)&&(k=function(O){var H=l(O),q=H==g?O.constructor:void 0,G=q?u(q):"";if(G)switch(G){case _:return C;case S:return h;case D:return m;case A:return M;case b:return T}return H}),qg=k,qg}var Hg,zb;function gP(){if(zb)return Hg;zb=1;var r=MO(),e=oS(),t=HO(),n=cP(),i=pP(),l=Bm(),u=sS(),h=lS(),g=1,m="[object Arguments]",M="[object Array]",T="[object Object]",C=Object.prototype,_=C.hasOwnProperty;function S(D,A,b,k,O,H){var q=l(D),G=l(A),Y=q?M:i(D),he=G?M:i(A);Y=Y==m?T:Y,he=he==m?T:he;var J=Y==T,fe=he==T,P=Y==he;if(P&&u(D)){if(!u(A))return!1;q=!0,J=!1}if(P&&!J)return H||(H=new r),q||h(D)?e(D,A,b,k,O,H):t(D,A,Y,b,k,O,H);if(!(b&g)){var re=J&&_.call(D,"__wrapped__"),Q=fe&&_.call(A,"__wrapped__");if(re||Q){var ne=re?D.value():D,se=Q?A.value():A;return H||(H=new r),O(ne,se,b,k,H)}}return P?(H||(H=new r),n(D,A,b,k,O,H)):!1}return Hg=S,Hg}var zg,$b;function mP(){if($b)return zg;$b=1;var r=gP(),e=bh();function t(n,i,l,u,h){return n===i?!0:n==null||i==null||!e(n)&&!e(i)?n!==n&&i!==i:r(n,i,l,u,t,h)}return zg=t,zg}var $g,Ub;function vP(){if(Ub)return $g;Ub=1;var r=mP();function e(t,n){return r(t,n)}return $g=e,$g}var yP=vP();const Lf=ol(yP);class _h extends R.Component{constructor(e){super(e),this.editingAreaRef=R.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 h,g;n==="text-change"?(h=this.onEditorChangeText)==null||h.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(R.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(R.Children.count(e.children)){const t=R.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=>!Lf(e[n],this.props[n]))}shouldComponentRegenerate(e){return this.dirtyProps.some(t=>!Lf(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),Wb(()=>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 $e(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)?Lf(e.ops,t.ops):Lf(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),Wb(()=>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 R.Children.count(e)?R.cloneElement(R.Children.only(e),i):t?R.createElement("pre",{...i}):R.createElement("div",{...i})}render(){return R.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,h;if(!this.editor)return;const l=this.isDelta(this.value)?i.getContents():i.getHTML();l!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=l,(h=(u=this.props).onChange)==null||h.call(u,e,t,n,i))}onEditorChangeSelection(e,t,n){var h,g,m,M,T,C;if(!this.editor)return;const i=this.getEditorSelection(),l=!i&&e,u=i&&!e;Lf(e,i)||(this.selection=e,(g=(h=this.props).onChangeSelection)==null||g.call(h,e,t,n),l?(M=(m=this.props).onFocus)==null||M.call(m,e,t,n):u&&((C=(T=this.props).onBlur)==null||C.call(T,i,t,n)))}focus(){this.editor&&this.editor.focus()}blur(){this.editor&&(this.selection=null,this.editor.blur())}}_h.displayName="React Quill";_h.Quill=$e;_h.defaultProps={theme:"snow",modules:{},readOnly:!1};function Wb(r){Promise.resolve().then(r)}const bP="_AEditorWrapper_ouq3r_1",_P="_AEditorContainer_ouq3r_7",xP="_EditorLoading_ouq3r_13",SP="_AEditor_ouq3r_1",CP="_Primary_ouq3r_435",wP="_ReadOnly_ouq3r_505",AP="_Raw_ouq3r_652",TP="_LimitContainer_ouq3r_666",EP="_Limit_ouq3r_666",kP="_Indicator_ouq3r_682",RP="_Resizer_ouq3r_688",IP="_NoLineBreak_ouq3r_848",Mn={AEditorWrapper:bP,AEditorContainer:_P,EditorLoading:xP,AEditor:SP,Primary:CP,ReadOnly:wP,Error:"_Error_ouq3r_582",Raw:AP,LimitContainer:TP,Limit:EP,Indicator:kP,Resizer:RP,"ql-tablepicker-row":"_ql-tablepicker-row_ouq3r_723","ql-tablepicker-cell":"_ql-tablepicker-cell_ouq3r_726","ql-tablepicker-grid":"_ql-tablepicker-grid_ouq3r_734","ql-tablepicker-inner-cell":"_ql-tablepicker-inner-cell_ouq3r_738","ql-tablepicker-options":"_ql-tablepicker-options_ouq3r_747","ql-tablepicker-tooltip":"_ql-tablepicker-tooltip_ouq3r_758","ql-tableui-options":"_ql-tableui-options_ouq3r_777","ql-tableui-options__item":"_ql-tableui-options__item_ouq3r_789","ql-tableui-options__item-icon":"_ql-tableui-options__item-icon_ouq3r_808","ql-tableui-options__item-text":"_ql-tableui-options__item-text_ouq3r_813","ql-tableui-helper":"_ql-tableui-helper_ouq3r_817","ql-tableui-helper__icon":"_ql-tableui-helper__icon_ouq3r_829","ql-tableui-helper__text":"_ql-tableui-helper__text_ouq3r_839",NoLineBreak:IP};class LP{constructor(e){nt(this,"quill");nt(this,"picker",null);nt(this,"tooltip",null);nt(this,"toolbar",null);nt(this,"tableButton",null);nt(this,"CONSTANTS",{MAX_ROWS:10,MAX_COLS:10,CELL_SIZE:18,SPACING:5,PICKER_PADDING:20});nt(this,"CLASSNAMES",{tooltip:Mn["ql-tablepicker-tooltip"],grid:Mn["ql-tablepicker-grid"],row:Mn["ql-tablepicker-row"],cell:Mn["ql-tablepicker-cell"],innerCell:Mn["ql-tablepicker-inner-cell"],options:Mn["ql-tablepicker-options"]});nt(this,"COLORS",{highlight:"var(--AEditor_Addon_hover_color)",normal:"var(--AEditor_Addon_Primary_background-color)",border:"1px solid var(--AEditor_Addon_Primary_color)"});nt(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 h=0;h<i;h++){const g=this.createElement(this.CLASSNAMES.cell),m=this.createElement(this.CLASSNAMES.innerCell);g.setAttribute("data-row",l.toString()),g.setAttribute("data-col",h.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 h=i.top-l.height-n,g=i.left;return h<0&&(h=i.bottom+n),g+l.width>u.width&&(g=u.width-l.width-n),{top:h,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(),h=this.getViewportMetrics(),g=t*n+l,m=t*i+l,M=this.isElementInViewport(u),{top:T,left:C}=this.calculatePickerPosition(u,M,{pickerWidth:m,pickerHeight:g,viewport:h});this.picker.style.top=`${T}px`,this.picker.style.left=`${C}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:h,height:g,scrollTop:m,scrollLeft:M}=u;let T,C;if(t)T=e.bottom+m,C=e.left+M;else{const _=this.quill.getSelection();if(_){const S=this.quill.getBounds(_.index),D=this.quill.container.getBoundingClientRect();T=D.top+S.bottom+m,C=D.left+S.left+M}else T=(g-l)/2+m,C=(h-i)/2+M}return T+l>g+m&&(T=Math.max(m,T-l-(t?e.height:0))),C+i>h+M&&(C=Math.max(M,h+M-i)),{top:T,left:C}}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 h=n[u],g=h.parentElement;if(!g)continue;const[m,M]=this.getCellCoordinates(g);h.style.backgroundColor=m<e&&M<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 h=u.querySelectorAll("td, th");for(let m=0;m<h.length;m++)h[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,`
|
343
|
-
`,"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,`
|
344
|
-
|
345
|
-
`,"user"),t.index+=2):(this.quill.insertText(t.index,`
|
346
|
-
`,"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 Lu={},Vb;function MP(){if(Vb)return Lu;Vb=1;var r=Bs;if(process.env.NODE_ENV==="production")Lu.createRoot=r.createRoot,Lu.hydrateRoot=r.hydrateRoot;else{var e=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Lu.createRoot=function(t,n){e.usingClientEntryPoint=!0;try{return r.createRoot(t,n)}finally{e.usingClientEntryPoint=!1}},Lu.hydrateRoot=function(t,n,i){e.usingClientEntryPoint=!0;try{return r.hydrateRoot(t,n,i)}finally{e.usingClientEntryPoint=!1}}}return Lu}var DP=MP();const Gb=ol(DP);class OP{constructor(e,t){nt(this,"DEFAULTS",{maxRowCount:-1});nt(this,"quill");nt(this,"options");nt(this,"position",null);nt(this,"table");nt(this,"selectedCell",null);nt(this,"menuRoot",null);nt(this,"helperTextElement",null);nt(this,"scrollTimeout",null);nt(this,"SCROLL_DEBOUNCE_TIME",80);nt(this,"lastSelectedCellRef",null);nt(this,"boundDocClickHandler",this.hideMenu.bind(this));nt(this,"boundEditorChangeHandler",this.editorChangeHandler.bind(this));nt(this,"boundContextMenuHandler",this.contextMenuHandler.bind(this));nt(this,"boundCopyHandler",this.copyHandler.bind(this));nt(this,"boundScrollHandler",this.handleScroll.bind(this));nt(this,"boundPasteHandler",this.pasteHandler.bind(this));nt(this,"menuItems",[]);nt(this,"positionCache",new Map);nt(this,"POSITION_CACHE_LIFETIME",1e3);nt(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:Ps.renderToString(v.jsx(qr,{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:Ps.renderToString(v.jsx(qr,{icon:"AddColLeft"})),title:hn.AEditor["Insert Column Left"]},{handler:()=>{this.table.insertRowAbove()},icon:Ps.renderToString(v.jsx(qr,{icon:"AddRowAbove"})),title:hn.AEditor["Insert Row Top"]},{handler:()=>{this.table.insertRowBelow()},icon:Ps.renderToString(v.jsx(qr,{icon:"AddRowBelow"})),title:hn.AEditor["Insert Row Bottom"]},{handler:()=>{this.table.deleteColumn()},icon:Ps.renderToString(v.jsx(qr,{icon:"RemoveCol"})),title:hn.AEditor["Delete Column"]},{handler:()=>{this.table.deleteRow()},icon:Ps.renderToString(v.jsx(qr,{icon:"RemoveRow"})),title:hn.AEditor["Delete Row"]},{handler:()=>{this.table.deleteTable()},icon:Ps.renderToString(v.jsx(qr,{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=Mn["ql-tableui-helper"];const e=document.createElement("span");e.className=He.clsx("Caption1",Mn["ql-tableui-helper__text"],"NoSelect"),e.textContent=hn.AEditor["Right click to open properties"];const t=document.createElement("span");t.className=Mn["ql-tableui-helper__icon"],t.innerHTML=Ps.renderToString(v.jsx(qr,{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=R.memo(({item:u,index:h})=>v.jsxs("div",{className:Mn["ql-tableui-options__item"],onClick:this.createItemClickHandler(u),children:[v.jsx("span",{className:Mn["ql-tableui-options__item-icon"],dangerouslySetInnerHTML:{__html:u.icon}}),v.jsx("span",{className:Mn["ql-tableui-options__item-text"],children:u.title})]},h)),l=()=>v.jsx("div",{className:Mn["ql-tableui-options"],style:{position:"fixed",visibility:"hidden",zIndex:1e4},children:this.menuItems.map((u,h)=>v.jsx(i,{item:u,index:h},h))});try{Gb.createRoot?(this.reactRoot=Gb.createRoot(this.menuRoot),this.reactRoot.render(v.jsx(l,{}))):Bs.render(v.jsx(l,{}),this.menuRoot)}catch{Bs.render(v.jsx(l,{}),this.menuRoot)}document.addEventListener("click",this.boundDocClickHandler),requestAnimationFrame(()=>{if(!this.menuRoot)return;const u=this.menuRoot.firstElementChild;if(u){const h=u.getBoundingClientRect();let g=e.bottom+window.scrollY,m=e.left+window.scrollX;m+h.width>t&&(m=e.right-h.width+window.scrollX),g+h.height>n+window.scrollY&&(g=e.top-h.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):Bs.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 h=this.quill.container.getBoundingClientRect(),g=i.getBoundingClientRect(),m={bottom:g.bottom-h.top,height:g.height,left:g.left-h.left,right:g.right-h.left,top:g.top-h.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 h=i.top-l.top-20;i.top<l.top&&(h=5),this.helperTextElement.style.display="block",this.helperTextElement.style.left=`${i.left-l.left}px`,this.helperTextElement.style.top=`${h}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 PP=R.lazy(()=>Promise.resolve().then(()=>require("./AEditorLazy--DcMKFAH.cjs")).then(r=>({default:r.AEditorLazy}))),NP=()=>{const r=[1,2,3,!1,4],e=$e.import("ui/icons");e.table=Ps.renderToString(v.jsx(qr,{icon:"Table",strokeWidth:2.5})),e.divider=Ps.renderToString(v.jsx(qr,{icon:"Minus",strokeWidth:2.5}));const t=$e.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 nt(n,"blotName","divider"),nt(n,"tagName","hr"),$e.register({"modules/imageCompress":GD,"modules/resize":XD,"modules/tablePicker":LP,"modules/tableUI":OP,"formats/header":qP(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","blockquote"],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 Ug=null;const jP=()=>(Ug||(Ug=NP()),Ug),as=r=>Array.from(r).length,FP=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 BP(r){return Array.isArray(r)?r.filter(Boolean).length>0:!!r}function qP(r){const e=$e.import("formats/header");return e.whitelist=r,e}const im=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]}`},HP=R.memo(r=>{const{onEnterPress:e,errorMessage:t,type:n="Primary",editorRef:i,useValue:l,useError:u,placeholder:h,tabIndex:g,autoFocus:m,editorProps:M,wrapProps:T,helperText:C,label:_,labelProps:S,wrapType:D,style:A,minHeight:b,maxHeight:k,contentHeight:O,contentMaxHeight:H=1e3,toolbarSize:q="Med",toolbarType:G="Default",readOnly:Y,limitPosition:he="Bottom",maxLength:J,...fe}=r,P=R.useMemo(()=>jP(),[]),re=R.useMemo(()=>n==="ReadOnly"||Y,[n,Y]),Q=R.useMemo(()=>O?20:0,[O]),[ne,se]=R.useState(q==="Med"?40:50),ue=R.useMemo(()=>re?0:ne,[re,ne]),[ve,le]=R.useMemo(()=>[20,6],[]),me=R.useMemo(()=>J||!u?0:he==="Bottom"?ve+le:0,[u,J,he,ve,le]),[pe,_e]=R.useState(O),[De,Fe]=R.useState(!1),[Xe,we]=R.useState(!1),it=R.useRef(null),ht=R.useRef(0),Je=R.useRef(0),Ze=R.useMemo(()=>_?24:0,[_]),Le=R.useMemo(()=>G==="Title"?!0:void 0,[G]),ke=R.useMemo(()=>O||b||Le,[O,b,Le]),Te=R.useMemo(()=>ke?"fit-content":k?k+Ze:`calc(100% - ${Ze}px)`,[ke,k,Ze]),Be=R.useMemo(()=>{if(O){if(pe)switch(n){case"ReadOnly":return pe;case"Raw":return pe+me;default:return pe+ue+me}}else return},[O,pe,n,ue,me]),Re=R.useMemo(()=>{if(!(!k||k<=ue+me))switch(n){case"ReadOnly":return k;case"Raw":return k-me;default:return k-ue-me}},[n,ue,me,k]),Qe=R.useMemo(()=>{if(b&&O){const It=Math.min(b-ue-me,O);return re?It:It+ue+me}else return b||(O?void 0:`calc(100% - ${Ze}px)`)},[b,O,Ze,ue,me,re]),ct=R.useMemo(()=>BP(t)?"Error":n,[t,n]),[kt,At]=pn(l,""),[bt,Dt]=pn(u,!1),[Rt,ut]=R.useState(()=>{if(!kt)return new Gt;const It=document.createElement("div");return It.innerHTML=kt,new $e(It,{readOnly:!0}).getContents()}),ot=R.useCallback(FP,[]),wt=R.useMemo(()=>Math.floor(5e4*.68234)*3,[]),Ie=R.useMemo(()=>u&&!re&&v.jsxs(Jl,{className:Mn.Limit,children:["(",v.jsx("span",{className:bt?Mn.Error:void 0,children:im(ot(Rt))})," / ",im(wt),")"]}),[ot,bt,Rt,re,wt,u]),pt=R.useMemo(()=>({clipboard:{matchVisual:!1,...Le&&{matchers:[["img",()=>!1],["table",()=>!1],["iframe",()=>!1],["video",()=>!1],["h1, h2, h3, h4, h5, h6",()=>({})],["blockquote",()=>({})]]}},keyboard:Le?{bindings:{Enter:{key:"Enter",handler:It=>{if(e&&At){const ie=It.root.innerHTML;e(ie)}return!1}}}}:{bindings:{}},imageCompress:{quality:.5},...!re&&{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}},...!Le&&{table:!0,tablePicker:!0,tableUI:!0},toolbar:{container:Le?P.TOOLBAR_TITLE:P.TOOLBAR_DEFAULT,handlers:{divider:function(){const It=this.quill,ie=It.getSelection(!0);if(!ie||Le)return;const X=It.getModule("table"),Ee=X&&!!X.getTable(ie)[0];Ee||It.insertText(ie.index,`
|
347
|
-
`,$e.sources.USER);const je=Ee?0:1,St=Math.min(ie.index+je,It.getLength()-1);It.insertEmbed(St,"divider",!0,$e.sources.USER),setTimeout(()=>{const ft=Math.min(St+1,It.getLength()-1);It.setSelection(ft,0,$e.sources.SILENT)},0)}}}}}),[re,Le,e,At,P]),_t=R.useCallback(It=>{if(!De||!O)return;const ie=It.clientY-Je.current,X=b?b-ue-me:O,Ee=Math.max(X,0),je=k?k-ue-me:H,St=Math.min(je,Math.max(Ee,ht.current+ie));_e(St),It.preventDefault(),It.stopPropagation()},[De,O,H,b,k,ue,me]),Ot=R.useCallback(It=>{Fe(!1),we(!1),document.removeEventListener("mousemove",_t),document.removeEventListener("mouseup",Ot),It.preventDefault(),It.stopPropagation()},[_t]),$t=R.useCallback(It=>{if(!O)return;if(It.detail===2){_e(O);return}pe===void 0?(_e(O),ht.current=O):ht.current=pe,Fe(!0),we(!0),Je.current=It.clientY;const ie=Ee=>{if(!O)return;const je=Ee.clientY-Je.current,St=b?b-ue-me:O,ft=Math.max(St,0),mt=k?k-ue-me:H,Ut=Math.min(mt,Math.max(ft,ht.current+je));_e(Ut),Ee.preventDefault(),Ee.stopPropagation()},X=Ee=>{Fe(!1),we(!1),document.removeEventListener("mousemove",ie),document.removeEventListener("mouseup",X),Ee.preventDefault(),Ee.stopPropagation()};document.addEventListener("mousemove",ie),document.addEventListener("mouseup",X),It.preventDefault(),It.stopPropagation()},[O,pe,b,k,ue,me,H]),Ue=R.useCallback((It,ie,X,Ee)=>{var mt;if(!At)return;const je=Ee.getContents(),St=Ee.getHTML(),ft=((mt=je.ops)==null?void 0:mt.length)===1&&je.ops[0].insert===`
|
348
|
-
`;Dt&&Dt(ot(je)>wt),At(ft?"":St),ut(je)},[ot,wt,Dt,At]),Tt=R.useMemo(()=>q==="Med"?8:12.5,[q]),zt=R.useCallback(It=>{if(!It)return;const ie=It.getEditor();if(!ie)return;const X=[],Ee={input:xt=>{const Et=xt.target;Et.value=Et.value.replace(/[^0-9]/g,"");const gt=parseInt(Et.value);gt>100&&(Et.value="100"),gt<1&&(Et.value="1")},keyDown:xt=>{if(xt.key!=="Delete"&&xt.key!=="Backspace")return;const Et=ie.getSelection();if(!Et)return;const gt=document.querySelector("#image-resizer"),[Ft]=ie.getLeaf(Et.index);if(Ft&&typeof Ft.value=="object"&&Ft.value!==null&&"image"in Ft.value){xt.preventDefault(),ie.deleteText(Et.index,1,$e.sources.USER),gt&>.style.display!=="none"&&(gt.style.display="none");return}if(!gt||gt.style.display==="none")return;const qe=gt.getBoundingClientRect();if(!qe.width||!qe.height)return;const vt=document.querySelectorAll(".ql-editor img");if(!vt.length)return;const at=Array.from(vt).find(We=>{const yt=We.getBoundingClientRect();return Math.abs(yt.left-qe.left)<10&&Math.abs(yt.top-qe.top)<10&&Math.abs(yt.width-qe.width)<20&&Math.abs(yt.height-qe.height)<20});if(at){gt.style.display="none";try{const We=$e.find(at);if(We){const yt=ie.getIndex(We);ie.deleteText(yt,1,$e.sources.USER),ie.setSelection(yt,0,$e.sources.USER),xt.preventDefault(),xt.stopPropagation()}}catch(We){console.error("이미지 삭제 중 오류 발생:",We)}}},formatExpand:xt=>{const Et=ie.getFormat();xt.forEach(gt=>{if(Et[gt]){const Ft=Et[gt],ur=`.ql-${gt}`,qe=document.querySelector(`${ur} .ql-picker-label`),vt=document.querySelectorAll(`${ur} .ql-picker-item`),at=Array.from(vt).find(We=>We.getAttribute("data-value")===Ft);at&&(at.classList.add("ql-selected"),qe==null||qe.classList.add("ql-active"))}})},resizeToolbar:xt=>{requestAnimationFrame(()=>{for(const Et of xt)se(Et.contentRect.height+Tt*2)})}},je=ie.root,St=document.querySelector(".ql-snow.ql-toolbar"),ft=document.querySelector("#image-resizer .input-wrapper input"),mt=new ResizeObserver(Ee.resizeToolbar),Ut=["header","color"],Lt=[],Qt=xt=>{const Et=xt.target;if(Et.tagName==="IMG")try{const gt=$e.find(Et);if(gt){const Ft=ie.getIndex(gt);setTimeout(()=>{ie.setSelection(Ft,1,$e.sources.USER)},0),xt.preventDefault(),xt.stopPropagation()}}catch(gt){console.error("이미지 선택 중 오류:",gt)}};return je==null||je.addEventListener("keydown",Ee.keyDown),je==null||je.addEventListener("click",Qt),ft==null||ft.addEventListener("input",Ee.input),St&&mt.observe(St),Ut.forEach(xt=>{const Et=document.querySelector(`.ql-${xt} .ql-picker-label`);Et&&(Et.addEventListener("click",()=>Ee.formatExpand(Ut)),Lt.push(Et))}),X.push(()=>{je==null||je.removeEventListener("keydown",Ee.keyDown),je==null||je.removeEventListener("click",Qt),ft==null||ft.removeEventListener("input",Ee.input),St&&mt.disconnect(),Lt.forEach(xt=>xt.removeEventListener("click",()=>Ee.formatExpand(Ut)))}),()=>X.forEach(xt=>xt())},[Tt]),br=R.useCallback(It=>{if(!It||!J)return;const ie=It.getEditor();if(!ie)return;let X=!1,Ee="",je=null;const St=mt=>mt.replace(/[\r\n\u2028\u2029]+/g," ").replace(/\s+/g," "),ft=mt=>{if(mt.key==="Enter")return mt.preventDefault(),e&&e(ie.root.innerHTML),!1};if(Le){const mt=()=>{if(X)return;const xt=ie.getText().slice(0,-1);if(xt!==Ee){X=!0;try{const Et=/[\r\n\u2028\u2029]/.test(xt),gt=as(xt)>J;if(Et||gt){const Ft=ie.getSelection(),ur=ie.getFormat();let qe=xt;if(Et&&(qe=St(qe)),gt&&(qe=Array.from(qe).slice(0,J).join("")),qe!==xt){const vt=new Gt().insert(qe+`
|
349
|
-
`);if(ie.setContents(vt),Object.keys(ur).length>0&&ie.formatText(0,qe.length,ur),Ft){const at=Math.min(Ft.index,qe.length);ie.setSelection(at,0)}}Ee=qe}else Ee=xt}finally{X=!1}}},Ut=xt=>{xt.preventDefault();const Et=xt.clipboardData;if(!Et)return;const gt=ie.getSelection();if(!gt)return;const Ft=ie.getText().slice(0,-1),ur=gt.index>0?Ft.substring(0,gt.index):"",qe=gt.index+gt.length<Ft.length?Ft.substring(gt.index+gt.length):"",vt=St(Et.getData("text/plain")),at=ur+vt+qe;if(as(at)<=J)gt.length>0&&ie.deleteText(gt.index,gt.length),ie.insertText(gt.index,vt),ie.setSelection(gt.index+as(vt),0);else{const yt=J-(as(ur)+as(qe));if(yt<=0)return;const K=Array.from(vt).slice(0,yt).join("");ie.updateContents(new Gt().retain(gt.index).delete(gt.length).insert(K)),ie.setSelection(gt.index+as(K),0)}requestAnimationFrame(()=>{const yt=ie.getText().slice(0,-1);if(/[\r\n\u2028\u2029]/.test(yt)){const K=St(yt),Ne=ie.getFormat();ie.setContents(new Gt().insert(K+`
|
350
|
-
`)),Object.keys(Ne).length>0&&ie.formatText(0,K.length,Ne);const lt=Math.min(gt.index+as(vt),K.length);ie.setSelection(lt,0),Ee=K}else Ee=yt})},Lt=xt=>{(xt.inputType==="insertLineBreak"||xt.inputType==="insertText"&&xt.data&&/[\r\n\u2028\u2029]/.test(xt.data))&&xt.preventDefault()},Qt=()=>{X||(je&&window.cancelAnimationFrame(je),je=window.requestAnimationFrame(mt))};return ie.root.addEventListener("keydown",ft),ie.root.addEventListener("paste",Ut),ie.root.addEventListener("beforeinput",Lt),ie.on("text-change",Qt),requestAnimationFrame(mt),()=>{ie.root.removeEventListener("keydown",ft),ie.root.removeEventListener("paste",Ut),ie.root.removeEventListener("beforeinput",Lt),ie.off("text-change",Qt),je&&window.cancelAnimationFrame(je)}}else{const mt=()=>{if(X)return;const Et=ie.getText();if(!(as(Et)-1<=J)){X=!0;try{const Ft=ie.getSelection(),ur=ie.getContents();let qe=0,vt=0;for(const We of ur.ops||[])if(typeof We.insert=="string"){const yt=Array.from(We.insert);for(const K of yt){if(qe>=J)break;qe++,vt+=K.length}if(qe>=J)break}else We.insert&&(qe+=1);const at=Et.substring(0,vt);if(ie.setText(at),Ft){const We=Math.min(Ft.index,at.length);ie.setSelection(We,0)}}finally{X=!1}}},Ut=(Et,gt)=>{const Ft=ie.getSelection();if(!Ft)return!0;const ur=ie.getText(),qe=as(ur)-1,vt=Ft.length>0?as(ur.substring(Ft.index,Ft.index+Ft.length)):0,at=J-(qe-vt);if(as(gt)<=at)return!0;if(Et.preventDefault(),Et.type==="paste"){const yt=Ft.index,K=Array.from(gt).slice(0,at).join(""),Ne=new Gt;Ft.length?Ne.retain(yt).delete(Ft.length):Ne.retain(yt),Ne.insert(K),ie.updateContents(Ne,$e.sources.USER),requestAnimationFrame(()=>{const lt=yt+as(K);lt<=ie.getLength()&&ie.setSelection(lt,0)})}return!1},Lt=()=>{X||(je&&window.cancelAnimationFrame(je),je=window.requestAnimationFrame(mt))},Qt=Et=>{Et.inputType.startsWith("insert")&&Ut(Et,Et.data||"")},xt=Et=>{const gt=Et.clipboardData;if(gt){const Ft=St(gt.getData("text/plain"));Ut(Et,Ft)}};return ie.on("text-change",Lt),ie.root.addEventListener("beforeinput",Qt,!0),ie.root.addEventListener("paste",xt,!0),()=>{ie.off("text-change",Lt),ie.root.removeEventListener("beforeinput",Qt,!0),ie.root.removeEventListener("paste",xt,!0),je&&window.cancelAnimationFrame(je)}}},[J,Le,e]),Or=R.useCallback(It=>{typeof i=="function"?i(It):i&&(i.current=It),It&&(zt(It),br(It))},[i,zt,br]);return v.jsx(Wc,{helperText:C,wrapType:D,labelProps:{...S,style:{minHeight:20}},errorMessage:t,label:v.jsxs(Vn,{style:{gap:4},children:[_,!J&&he==="Top"&&Ie]}),wrapProps:{...T,className:He.clsx(T==null?void 0:T.className,!ke&&Mn.AEditorWrapper),style:{...T==null?void 0:T.style,height:Te}},children:v.jsxs(Wr,{...fe,className:He.clsx(fe.className,Mn.AEditorContainer),style:{...A,height:Be,minHeight:Qe},children:[v.jsx(R.Suspense,{fallback:v.jsx("div",{className:Mn.EditorLoading,children:"로딩 중..."}),children:v.jsx(PP,{...M,ref:Or,className:He.clsx(M==null?void 0:M.className,Mn.AEditor,Mn[ct]),formats:Le?P.FORMAT_TITLE:P.FORMAT_DEFAULT,modules:pt,placeholder:h,readOnly:re,theme:"snow",value:Rt,style:{maxHeight:Re?Re+ue:void 0,"--icon-size":`${q==="Med"?18:24}px`,"--editor-padding":Le?"8px 12px":"12px","--toolbar-padding":`${Tt}px`,"--content-height":Le?"34px":pe?`${pe}px`:"100%","--content-max-height":Re?`${Re}px`:"100%","--default-text":`'${hn.AEditor.Default}'`,"--arrow-background":`url("data:image/svg+xml,${encodeURIComponent(Ps.renderToString(v.jsx(qr,{icon:"EditorArrow"})))}`,"--title-color-picker-width":Le?"780px":"142px"},onChange:Ue})}),O&&v.jsxs(v.Fragment,{children:[v.jsx("div",{ref:it,className:Mn.Resizer,style:{height:Q,bottom:u&&!re?me-1:-1},onMouseDown:$t}),Xe&&v.jsx("div",{className:He.clsx(Mn.Indicator,"NoSelect","Caption"),style:{bottom:u&&!re?me:0},children:`${Math.round(pe)}px`})]}),v.jsx("div",{className:He.clsx(Mn.LimitContainer,"NoSelect"),style:{marginTop:le,minHeight:ve,display:!J&&he==="Bottom"?"flex":"none"},children:Ie})]})})});function th(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=th(t.children,e);if(n)return n}}function ad(r,e){Array.isArray(r)||(r=[r]);for(const t of r)e(t),!(!t.children||t.children.length<1)&&ad(t.children,e)}function cS(r,e){Array.isArray(r)||(r=[r]);const t=[];return ad(r,(n,i)=>t.push(e(n,i))),t}function uS(r,e){Array.isArray(r)||(r=[r]);for(const t of r){if(!e(t))return!1;if(!(!t.children||t.children.length<1)&&!uS(t.children,e))return!1}return!0}function zP(r,e){Array.isArray(r)||(r=[r]);const t=[];return ad(r,(n,i)=>{e(n,i)&&t.push(n)}),t}function $P(r){Array.isArray(r)||(r=[r]);let e=0;return ad(r,()=>e++),e}function UP(r,e,t,n){if(n(e,t))return null;Array.isArray(r)||(r=[r]);const i=th(r,u=>{var h;return(h=u.children)==null?void 0:h.some(g=>n(g,e))}),l=th(r,u=>{var h;return(h=u.children)==null?void 0:h.some(g=>n(g,t))});if(i===void 0&&l===void 0){const u=r.findIndex(g=>n(g,e)),h=r.findIndex(g=>n(g,t));return r.splice(u,1),r.splice(h,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)),h=i.children.findIndex(g=>n(g,t));return u===void 0||h===void 0?null:(i.children.splice(u,1),i.children.splice(h,0,e),i.children=[...i.children],[...r])}return null}function WP(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 VP(r,e,t){Array.isArray(r)||(r=[r]);const n=cS(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 h=n.find(g=>{var m;return(m=g.children)==null?void 0:m.some(M=>t(M,u))});h&&l.push(h)}return i}const el={find:th,forEach:ad,map:cS,every:uS,filter:zP,length:$P,replace:UP,descendants:WP,ancestors:VP},GP="_AWrap_f5le3_1",ZP="_AContainer_f5le3_10",YP="_ATree_f5le3_18",KP="_ATreeBody_f5le3_30",XP="_CoverBorder_f5le3_36",JP="_InsertBorder_f5le3_45",QP="_ATreeHeader_f5le3_76",eN="_ATreeBodyHeader_f5le3_82",tN="_ATreeBodyHeaderResources_f5le3_92",rN="_ATreeItem_f5le3_98",nN="_IsSelectUsed_f5le3_114",iN="_IsSelected_f5le3_117",oN="_IsSearchSelected_f5le3_122",sN="_IsHovered_f5le3_133",aN="_CheckBox_f5le3_137",lN="_Indents_f5le3_149",cN="_ExpandIcon_f5le3_156",uN="_Content_f5le3_168",fN="_RightSticky_f5le3_177",dN="_SearchInputWrap_f5le3_188",hN="_SearchInput_f5le3_188",pN="_RightAddon_f5le3_200",gN="_RightAddonIcon_f5le3_211",mN="_Loader_f5le3_218",fn={AWrap:GP,AContainer:ZP,ATree:YP,ATreeBody:KP,CoverBorder:XP,InsertBorder:JP,ATreeHeader:QP,ATreeBodyHeader:eN,ATreeBodyHeaderResources:tN,ATreeItem:rN,IsSelectUsed:nN,IsSelected:iN,IsSearchSelected:oN,IsHovered:sN,CheckBox:aN,Indents:lN,ExpandIcon:cN,Content:uN,RightSticky:fN,SearchInputWrap:dN,SearchInput:hN,RightAddon:pN,RightAddonIcon:gN,Loader:mN},vN=r=>{const{isEqual:e,item:t,selectDisabled:n,selectUnused:i,isParentDisabled:l,indents:u,extIndents:h,useExpand:g,useSelect:m,useSearch:M,onDragStart:T,onDragOver:C,onDragEnd:_,showCheckbox:S,icons:D,iconWidth:A,isSelectMulti:b,isDraggable:k,isParentCheckHovered:O,hoverdItem:H,onMouseOver:q,onMouseLeave:G,ContentRenderer:Y,TreeItemRenderer:he,RightStickyAddon:J,resources:fe,containerRef:P,TreeItemStyle:re,TreeItemClassName:Q,searchItemStyle:ne,searchItemClassName:se,height:ue}=r,{children:ve}=R.useMemo(()=>t,[t]),[le,me]=R.useMemo(()=>g,[g]),[pe,_e]=R.useMemo(()=>m,[m]),[De,Fe]=R.useMemo(()=>M,[M]),Xe=R.useMemo(()=>i?i(t):!1,[i,t]),we=R.useMemo(()=>!n||l?l:n(t),[n,l,t]),it=R.useMemo(()=>le.some(Ue=>e(Ue,t)),[le,e,t]),ht=R.useMemo(()=>!ve||ve.length<1?"noChild":it?"expanded":"collapsed",[ve,it]),Je=R.useMemo(()=>{const Ue=D[ht];return lm.includes(Ue)?v.jsx(qr,{style:{width:A,height:A},icon:Ue}):Ue},[D,A,ht]),Ze=R.useCallback(Ue=>{!me||ht==="noChild"||(me(it?le.filter(Tt=>!e(Tt,t)):[...le,t]),Ue.stopPropagation())},[me,le,it,t,e,ht]),Le=R.useMemo(()=>pe.some(Ue=>e(Ue,t)),[pe,e,t]),ke=R.useCallback(()=>{!_e||we||(_e(b?Le?pe.filter(Ue=>!e(Ue,t)):[...pe,t]:[t]),De&&Fe&&De.items.some(Ue=>e(Ue,t))&&Fe({...De,item:t}))},[b,we,Le,De,Fe,_e,e,pe,t]),Te=R.useMemo(()=>De==null?void 0:De.items.some(Ue=>e(Ue,t)),[De,e,t]),Be=R.useMemo(()=>Te&&(De==null?void 0:De.item)&&e(De.item,t),[Te,De,e,t]),Re=R.useRef(null);R.useEffect(()=>{setTimeout(()=>{if(Be&&Re.current&&P.current){const{top:Ue,bottom:Tt}=Re.current.getBoundingClientRect(),{top:zt,bottom:br}=P.current.getBoundingClientRect();(Ue<zt||Tt>br)&&Re.current.scrollIntoView({behavior:"smooth",block:"center"})}},10)},[P,Be]);const[Qe,ct]=R.useState(!1),kt=R.useCallback(()=>!we&&ct(!0),[we]),At=R.useCallback(()=>!we&&ct(!1),[we]),bt=R.useMemo(()=>el.map(t,Ue=>Ue).filter(Ue=>!(n!=null&&n(Ue))&&!(i!=null&&i(Ue))),[n,i,t]),Dt=R.useMemo(()=>!S||!b?!1:Le&&bt.some(Ue=>pe.some(Tt=>e(Ue,Tt)))&&bt.some(Ue=>!pe.some(Tt=>e(Ue,Tt))),[S,b,Le,bt,e,pe]),Rt=R.useMemo(()=>S?b?bt.every(Ue=>pe.some(Tt=>e(Ue,Tt))):pe.some(Ue=>e(Ue,t)):!1,[S,b,bt,t,e,pe]),ut=R.useCallback(()=>{if(!(!_e||we))if(b)if(Le){const Ue=pe.filter(Tt=>!(i!=null&&i(Tt))&&!(n!=null&&n(Tt))&&bt.some(zt=>e(zt,Tt)));Ue.length>0&&_e(pe.filter(Tt=>!Ue.some(zt=>e(Tt,zt))))}else{const Ue=bt.filter(Tt=>!(i!=null&&i(Tt))&&!(n!=null&&n(Tt))&&!pe.some(zt=>e(zt,Tt)));Ue.length>0&&_e([...pe,...Ue])}else _e([t])},[we,n,i,b,_e,e,Le,pe,bt,t]),ot=R.useCallback(Ue=>{we||ut(),Ue.stopPropagation()},[we,ut]),wt=R.useMemo(()=>{if(!S||!b||we)return"";if(Le){const Tt=pe.filter(zt=>!(i!=null&&i(zt))&&!(n!=null&&n(zt))&&bt.some(br=>e(br,zt)));if(Tt.length>0)return fe["deselect n"](Tt.length)}const Ue=bt.filter(Tt=>!(i!=null&&i(Tt))&&!(n!=null&&n(Tt))&&!pe.some(zt=>e(zt,Tt)));return fe["select n"](Ue.length)},[n,i,fe,we,S,b,Le,bt,e,pe]),Ie=R.useMemo(()=>Rr.getContent(J,r),[J,r]),pt=R.useMemo(()=>Rr.getContent(re,r),[r,re]),_t=R.useMemo(()=>Rr.getContent(Q,r),[r,Q]),Ot=R.useMemo(()=>Rr.getContent(se,r),[r,se]),$t=R.useMemo(()=>Rr.getContent(ne,r),[r,ne]);return v.jsxs(R.Fragment,{children:[v.jsxs(Wr,{className:He.clsx(fn.ATreeItem,Le&&fn.IsSelected,!we&&(Qe||O)&&fn.IsHovered,Te&&fn.IsSearched,Be&&(Ot||fn.IsSearchSelected),!Xe&&fn.IsSelectUsed,"NoSelect",_t),style:{...pt,...Be&&$t,"--ATreeItem_height":`${ue}px`},draggable:k,onDragStart:()=>T==null?void 0:T(t),onDragEnter:Ue=>C==null?void 0:C(Ue,t),onDragEnd:Ue=>_==null?void 0:_(Ue,t),onClick:ke,abaseRef:Re,isDisabled:we,onMouseOver:Ue=>q==null?void 0:q(Ue,t),onMouseLeave:Ue=>G==null?void 0:G(Ue,t),children:[S&&v.jsx(Wu,{style:{visibility:we||Xe?"hidden":"visible",zIndex:we||Xe?0:2},className:fn.CheckBox,useCheck:[+Rt,ut],onClick:ot,isIndeterminate:Dt,onMouseOver:kt,onMouseOut:At,tooltip:wt,isDisabled:we}),v.jsx("div",{className:fn.Indents,style:{paddingLeft:S?0:r.icons.noChild?12:0},children:u.map((Ue,Tt)=>{const zt=Tt===u.length-1;return v.jsx(L2,{value:Ue,map:{Collapsed:h?h({iconWidth:A}).collapsed:v.jsx(bN,{iconWidth:A}),Expanded:h?h({iconWidth:A,isLast:zt}).expanded:v.jsx(yN,{iconWidth:A,isLast:zt}),IsLast:h?h({iconWidth:A}).isLast:v.jsx(_N,{iconWidth:A})}},Tt)})}),Je&&v.jsx("div",{className:fn.ExpandIcon,style:{width:A,minWidth:A,maxWidth:A},onClick:Ze,children:Je}),v.jsx("div",{className:He.clsx(fn.Content,"NoSelect"),children:v.jsx(Y,{isEqual:e,item:t,indents:u,extIndents:h,useExpand:g,useSelect:m,useSearch:M,onDragStart:T,onDragOver:C,onDragEnd:_,showCheckbox:S,icons:D,iconWidth:A,isSelectMulti:b,isDraggable:k,isParentCheckHovered:b&&(Qe||O),hoverdItem:H,onMouseOver:q,onMouseLeave:G,ContentRenderer:Y,TreeItemRenderer:he,RightStickyAddon:J,resources:fe,containerRef:P,TreeItemStyle:re,TreeItemClassName:Q,searchItemClassName:Ot,searchItemStyle:ne,height:ue})}),Ie&&v.jsx("div",{className:fn.RightSticky,children:Ie})]}),it&&(ve==null?void 0:ve.map((Ue,Tt)=>v.jsx(he,{isEqual:e,item:Ue,selectDisabled:n,selectUnused:i,indents:[...u.map(zt=>zt==="IsLast"?"Collapsed":zt),Tt===ve.length-1?"IsLast":"Expanded"],extIndents:h,ContentRenderer:Y,useExpand:g,useSelect:m,useSearch:M,onDragStart:T,onDragOver:C,onDragEnd:_,showCheckbox:S,icons:D,iconWidth:A,isSelectMulti:b,isDraggable:k,isParentCheckHovered:b&&(Qe||O),hoverdItem:H,onMouseOver:q,onMouseLeave:G,TreeItemRenderer:he,RightStickyAddon:J,resources:fe,containerRef:P,TreeItemStyle:re,TreeItemClassName:Q,searchItemClassName:Ot,searchItemStyle:ne,height:ue},Tt)))]})},yN=({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)"}})}),bN=({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)"}}),xN=r=>{const{isEqual:e,searchResult:t,initSearch:n,searchUp:i,searchDown:l,searchEnter:u,isDisabled:h,isLoading:g,resources:m,maxLength:M,autoFocus:T}=r,C=R.useCallback(D=>{D.key==="Enter"?u():D.key==="ArrowDown"?l():D.key==="ArrowUp"&&i(),D.preventDefault(),D.stopPropagation()},[l,u,i]),_=R.useCallback(D=>{n(D)},[n]),S=R.useMemo(()=>h||g?-1:void 0,[h,g]);return v.jsx(Ql,{className:fn.SearchInput,wrapProps:{className:fn.SearchInputWrap},isDisabled:h,tabIndex:S,useValue:[(t==null?void 0:t.keyword)??"",_],onKeyDown:C,placeholder:m["Search(Placeholder)"],RightAddon:v.jsx(SN,{isEqual:e,searchResult:t,searchUp:i,searchDown:l,searchEnter:u,resources:m}),maxLength:M,autoFocus:T})},SN=r=>{const{isEqual:e,searchResult:t,searchUp:n,searchDown:i,searchEnter:l,resources:u}=r,h=R.useMemo(()=>!t||t.items.length<1?0:t.items.findIndex(S=>t.item&&e(S,t.item))+1,[t,e]),g=R.useMemo(()=>!t||t.items.length<1?0:t.items.length,[t]),m=R.useMemo(()=>h<2,[h]),M=R.useMemo(()=>h>=g,[h,g]),T=R.useCallback(S=>{S.stopPropagation(),!m&&n()},[n,m]),C=R.useCallback(S=>{S.stopPropagation(),!M&&i()},[i,M]),_=R.useCallback(S=>{S.stopPropagation(),l()},[l]);return v.jsx("div",{className:He.clsx(fn.RightAddon,"NoSelect"),children:t?v.jsxs(v.Fragment,{children:[h,"/",g,v.jsx(Wr,{onClick:T,isDisabled:m,children:v.jsx(qr,{className:fn.RightAddonIcon,icon:"ArrowUp",mask:""})}),v.jsx(Wr,{onClick:C,isDisabled:M,children:v.jsx(qr,{className:fn.RightAddonIcon,icon:"ArrowDown"})})]}):v.jsx(vo,{type:"Raw",className:fn.RightAddonIcon,style:{marginRight:4},icon:"Search",onClick:_,tooltip:u["Search(Button)"]})})},CN=r=>{var ur;const{pk:e,selectDisabled:t,selectUnused:n,useItems:i,useExpand:l,useSelect:u,useSearch:h,showCheckbox:g,iconWidth:m=24,icons:M={noChild:"Folder",collapsed:"FolderCopy",expanded:"FolderOpen"},indents:T,isSelectMulti:C=!1,noSearch:_=!1,isDraggable:S,noSyncSearchSelect:D=!1,actionRef:A,placeholder:b,searchPredicate:k=AN,isDisabled:O,isLoading:H,ContentRenderer:q=wN,TreeItemRenderer:G=vN,RightStickyAddon:Y,TopRightAddon:he,TreeTopAddon:J,resources:fe,maxLength:P,autoFocus:re,TreeItemStyle:Q,TreeItemClassName:ne,OverflowPadding:se,insertBorder:ue,width:ve,searchItemClassName:le,searchItemStyle:me,height:pe=40,..._e}=r,De=R.useMemo(()=>({...hn.ATree,...fe}),[fe]),Fe=R.useCallback((qe,vt)=>e!==void 0?Array.isArray(e)?e.every(at=>tl.isEqual(qe[at],vt[at])):tl.isEqual(qe[e],vt[e]):tl.isEqual(qe,vt),[e]),Xe=R.useRef(null),[we,it]=pn(i,[]),ht=R.useMemo(()=>el.map(we,qe=>qe),[we]),[Je,Ze]=pn(l,[]),[Le,ke]=pn(u,[]),[Te,Be]=pn(h,void 0),Re=R.useCallback(qe=>{if(O||!Ze||Je.some(We=>Fe(We,qe)))return;const vt=[];let at=qe;for(;at;){const We=at;Je.find(yt=>Fe(yt,We))||vt.push(We),at=ht.find(yt=>{var K;return(K=yt.children)==null?void 0:K.some(Ne=>Fe(Ne,We))})}Ze([...Je,...vt])},[Je,O,Fe,Ze,ht]),Qe=R.useCallback(()=>{!Ze||O||Ze([...ht])},[ht,O,Ze]),ct=R.useCallback(()=>{!Ze||O||Ze([])},[Ze,O]),kt=R.useCallback(qe=>{!ke||O||n!=null&&n(qe)||(ke([qe]),Re(qe))},[ke,O,n,Re]),At=R.useCallback(qe=>{if(!Be||O)return;if(!qe||_){Be(void 0),D||ke==null||ke([]);return}const vt=el.filter(we,We=>k(qe,We));let at;if(vt.find(We=>(Te==null?void 0:Te.item)&&Fe(We,Te.item))?at=Te==null?void 0:Te.item:vt.length>0&&(at=vt[0]),Be({keyword:qe,items:vt,item:at}),at&&Re(at),ke&&!D)if(C)ke(vt);else{const We=vt.find(yt=>at&&Fe(yt,at));ke(We?[We]:[])}},[we,O,Fe,k,Be,ke,Re,D,_,C,Te]),bt=R.useRef(!1);R.useEffect(()=>{bt.current=!0},[we]),R.useEffect(()=>{Te&&bt.current&&(At(Te.keyword),bt.current=!1)},[At,Te]);const Dt=R.useCallback(()=>{if(!Te||!Be||O)return;let qe=Te.items.findIndex(vt=>Te.item&&Fe(vt,Te.item))-1;qe<0||(Be({...Te,item:Te.items[qe]}),Re(Te.items[qe]),D||kt(Te.items[qe]))},[Te,Re,Be,O,kt,Fe,D]),Rt=R.useCallback(()=>{if(!Te||!Be||O)return;let qe=Te.items.findIndex(vt=>Te.item&&Fe(vt,Te.item))+1;qe>=Te.items.length||(Be({...Te,item:Te.items[qe]}),Re(Te.items[qe]),D||kt(Te.items[qe]))},[Te,Re,O,Be,kt,Fe,D]),ut=R.useCallback(()=>{if(!Te||!Be||O)return;let qe=Te.items.findIndex(at=>Te.item&&Fe(at,Te.item));if(!D||n!=null&&n(Te.items[qe])){Rt();return}if(Le.some(at=>Te.item&&Fe(at,Te.item))){let at=qe+1;const We=Te.items[at];if(at>=Te.items.length)return;Be({...Te,item:We}),kt(We)}else kt(Te.items[qe])},[Te,Be,O,Le,D,Rt,Fe,kt,n]),[ot,wt]=R.useState(!1),Ie=R.useCallback(()=>wt(!0),[]),pt=R.useCallback(()=>wt(!1),[]),_t=R.useMemo(()=>n?el.map(we,qe=>qe).filter(qe=>!n(qe)):t?el.map(we,qe=>qe).filter(qe=>!t(qe)):el.map(we,qe=>qe),[n,t,we]),Ot=R.useMemo(()=>!g||!C?!1:Le.length>0&&_t.length>Le.length,[g,C,Le,_t]),$t=R.useMemo(()=>!g||!C?!1:Le.length>0&&_t.length===Le.length,[g,C,Le,_t]),Ue=R.useCallback(()=>{if(!ke||!C||O)return;const qe=Le.filter(vt=>!(n!=null&&n(vt))&&!(t!=null&&t(vt))&&_t.some(at=>Fe(at,vt)));if(qe.length>0)ke(Le.filter(vt=>!qe.some(at=>Fe(vt,at))));else{const vt=_t.filter(at=>!(n!=null&&n(at))&&!(t!=null&&t(at))&&!Le.some(We=>Fe(We,at)));vt.length>0&&ke([...Le,...vt])}},[C,O,n,t,ke,Le,_t,Fe]),Tt=R.useMemo(()=>{if(!g||!C||O)return"";const qe=Le.filter(vt=>!(n!=null&&n(vt))&&!(t!=null&&t(vt))&&_t.some(at=>Fe(at,vt)));if(qe.length>0)return De["deselect n"](qe.length);{const vt=_t.filter(at=>!(n!=null&&n(at))&&!(t!=null&&t(at))&&!Le.some(We=>Fe(We,at)));return De["select n"](vt.length)}},[n,t,O,De,g,C,_t,Le,Fe]),[zt,br]=R.useState(null),[Or,It]=R.useState(null),ie=R.useCallback(qe=>{!S||O||br(qe)},[O,S]),X=R.useCallback((qe,vt)=>{if(!S||O||!zt||(qe.preventDefault(),qe.stopPropagation(),It(vt),!it))return;const at=el.replace(we,zt,vt,Fe);at&&it(at)},[S,we,zt,O,it,Fe]),Ee=R.useCallback(()=>{if(!S||O||!zt||!Or||!it||Fe(zt,Or))return;const qe=el.replace(we,zt,Or,Fe);qe&&(it(qe),br(null))},[S,it,we,zt,Or,Fe,O]);R.useEffect(()=>{var qe;g||(qe=Xe.current)==null||qe.scrollTo(0,0)},[g,Xe]),R.useEffect(()=>{!C&&Le.length>1&&(ke==null||ke([Le[Le.length-1]]))},[C,ke,Le]),R.useEffect(()=>{A&&(A.current={expandAll:Qe,collapseAll:ct})},[A,Qe,ct]),R.useEffect(()=>{if(!t||!ke)return;const qe=Le.filter(vt=>!t(vt));Le.length!==qe.length&&ke(qe)},[t,Le,ke]),R.useEffect(()=>{if(!n||!ke)return;const qe=Le.filter(vt=>!n(vt));Le.length!==qe.length&&ke(qe)},[n,Le,ke]),R.useEffect(()=>{Be&&Be(void 0)},[Be]);const[je,St]=R.useState(!1);R.useEffect(()=>{St(qe=>!qe)},[we]);const[ft,mt]=R.useState(null),Ut=R.useCallback((qe,vt)=>{O||(qe.stopPropagation(),qe.preventDefault(),mt(vt))},[O]),Lt=R.useCallback((qe,vt)=>{ft===null||O||Fe(vt,ft)&&(qe.stopPropagation(),qe.preventDefault(),mt(null))},[ft,O,Fe]),Qt=R.useRef(null),[xt,Et]=R.useState(!1),[gt,Ft]=R.useState((ur=Qt.current)==null?void 0:ur.scrollHeight);return R.useEffect(()=>{if(Je.length<0)return;const qe=Xe.current,vt=Qt.current,at=qe.clientHeight<vt.clientHeight;Ft(at?vt.scrollHeight:qe.clientHeight),Et(at)},[Je]),v.jsxs(Wr,{..._e,isDisabled:O,className:He.clsx(_e.className,fn.AWrap),children:[(!_||he)&&v.jsxs(Vn,{className:fn.ATreeHeader,children:[!_&&v.jsx(xN,{isEqual:Fe,searchResult:Te,initSearch:At,searchUp:Dt,searchDown:Rt,searchEnter:ut,isLoading:H,isDisabled:O,resources:De,maxLength:P,autoFocus:re}),!_&&he&&v.jsx(mn,{w:8}),he]}),(!_||he||g&&C||S)&&v.jsx(pm,{isLoading:H&&we.length!==0}),(g&&C||S)&&v.jsxs("div",{className:He.clsx(fn.ATreeBodyHeader,"NoSelect"),children:[g&&v.jsx(Wu,{className:fn.CheckBox,useCheck:[+$t,()=>Ue()],isIndeterminate:Ot,onMouseOver:Ie,onMouseOut:pt,isDisabled:O,tooltip:Tt}),De.Items,v.jsx(Kc,{}),v.jsxs("div",{className:He.clsx(fn.ATreeBodyHeaderResources,"NoSelect"),style:{marginRight:xt?8:0},children:[v.jsx("span",{children:g&&De["*Click row for single select"]}),v.jsx("span",{children:S&&De["*Change order to row drag"]})]})]}),v.jsx("div",{ref:Xe,className:He.clsx(_e.className,fn.AContainer),children:v.jsxs("div",{className:fn.ATree,style:{minWidth:ve||"fit-content",marginRight:se&&xt?8:0},children:[v.jsxs("div",{ref:Qt,className:fn.ATreeBody,children:[we.length===0?H?v.jsx(TN,{text:De["Loading Contents..."]}):b:J,we.map((qe,vt)=>v.jsx(G,{isEqual:Fe,indents:[],extIndents:T,item:qe,selectDisabled:t,selectUnused:n,isParentDisabled:O,useExpand:[Je,Ze],useSelect:[Le,ke],useSearch:[Te,Be],onDragStart:ie,onDragOver:X,onDragEnd:Ee,showCheckbox:g,icons:M,iconWidth:m,isSelectMulti:C,isDraggable:S,isParentCheckHovered:C&&ot,ContentRenderer:q,TreeItemRenderer:G,RightStickyAddon:Y,resources:De,containerRef:Xe,TreeItemStyle:Q,TreeItemClassName:ne,hoverdItem:ft,onMouseOver:Ut,onMouseLeave:Lt,searchItemClassName:le,searchItemStyle:me,height:pe},`${vt}${je}`))]}),ue&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:fn.CoverBorder}),v.jsx("div",{className:fn.InsertBorder,style:{"--InsertBorder_height":`${pe}px`,height:xt?gt:"100%"}})]})]})})]})},wN=r=>{const{item:e}=r,t={};return rr.keys(e).forEach(n=>{n!=="children"&&(t[n]=e[n])}),JSON.stringify(t)};function AN(r,e){return rr.some(e,(t,n)=>{var i;return(i=rr.stringify(n))==null?void 0:i.toLowerCase().includes(r.toLowerCase())})}const TN=r=>{const{text:e}=r;return v.jsxs(Vn,{className:He.clsx(fn.Loader,"NoSelect"),children:[v.jsx(qr,{icon:"Spinner",style:{height:40},height:40,width:40}),v.jsx($2,{text:e})]})};var Wg,Zb;function ef(){return Zb||(Zb=1,Wg=TypeError),Wg}const EN={},kN=Object.freeze(Object.defineProperty({__proto__:null,default:EN},Symbol.toStringTag,{value:"Module"})),RN=e4(kN);var Vg,Yb;function xh(){if(Yb)return Vg;Yb=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,h=i&&Set.prototype.forEach,g=typeof WeakMap=="function"&&WeakMap.prototype,m=g?WeakMap.prototype.has:null,M=typeof WeakSet=="function"&&WeakSet.prototype,T=M?WeakSet.prototype.has:null,C=typeof WeakRef=="function"&&WeakRef.prototype,_=C?WeakRef.prototype.deref:null,S=Boolean.prototype.valueOf,D=Object.prototype.toString,A=Function.prototype.toString,b=String.prototype.match,k=String.prototype.slice,O=String.prototype.replace,H=String.prototype.toUpperCase,q=String.prototype.toLowerCase,G=RegExp.prototype.test,Y=Array.prototype.concat,he=Array.prototype.join,J=Array.prototype.slice,fe=Math.floor,P=typeof BigInt=="function"?BigInt.prototype.valueOf:null,re=Object.getOwnPropertySymbols,Q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ne=typeof Symbol=="function"&&typeof Symbol.iterator=="object",se=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ne||!0)?Symbol.toStringTag:null,ue=Object.prototype.propertyIsEnumerable,ve=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ie){return ie.__proto__}:null);function le(ie,X){if(ie===1/0||ie===-1/0||ie!==ie||ie&&ie>-1e3&&ie<1e3||G.call(/e/,X))return X;var Ee=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ie=="number"){var je=ie<0?-fe(-ie):fe(ie);if(je!==ie){var St=String(je),ft=k.call(X,St.length+1);return O.call(St,Ee,"$&_")+"."+O.call(O.call(ft,/([0-9]{3})/g,"$&_"),/_$/,"")}}return O.call(X,Ee,"$&_")}var me=RN,pe=me.custom,_e=Re(pe)?pe:null,De={__proto__:null,double:'"',single:"'"},Fe={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Vg=function ie(X,Ee,je,St){var ft=Ee||{};if(kt(ft,"quoteStyle")&&!kt(De,ft.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(kt(ft,"maxStringLength")&&(typeof ft.maxStringLength=="number"?ft.maxStringLength<0&&ft.maxStringLength!==1/0:ft.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var mt=kt(ft,"customInspect")?ft.customInspect:!0;if(typeof mt!="boolean"&&mt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(kt(ft,"indent")&&ft.indent!==null&&ft.indent!==" "&&!(parseInt(ft.indent,10)===ft.indent&&ft.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(kt(ft,"numericSeparator")&&typeof ft.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Ut=ft.numericSeparator;if(typeof X>"u")return"undefined";if(X===null)return"null";if(typeof X=="boolean")return X?"true":"false";if(typeof X=="string")return _t(X,ft);if(typeof X=="number"){if(X===0)return 1/0/X>0?"0":"-0";var Lt=String(X);return Ut?le(X,Lt):Lt}if(typeof X=="bigint"){var Qt=String(X)+"n";return Ut?le(X,Qt):Qt}var xt=typeof ft.depth>"u"?5:ft.depth;if(typeof je>"u"&&(je=0),je>=xt&&xt>0&&typeof X=="object")return ht(X)?"[Array]":"[Object]";var Et=br(ft,je);if(typeof St>"u")St=[];else if(Dt(St,X)>=0)return"[Circular]";function gt(fr,pr,$r){if(pr&&(St=J.call(St),St.push(pr)),$r){var vr={depth:ft.depth};return kt(ft,"quoteStyle")&&(vr.quoteStyle=ft.quoteStyle),ie(fr,vr,je+1,St)}return ie(fr,ft,je+1,St)}if(typeof X=="function"&&!Ze(X)){var Ft=bt(X),ur=It(X,gt);return"[Function"+(Ft?": "+Ft:" (anonymous)")+"]"+(ur.length>0?" { "+he.call(ur,", ")+" }":"")}if(Re(X)){var qe=ne?O.call(String(X),/^(Symbol\(.*\))_[^)]*$/,"$1"):Q.call(X);return typeof X=="object"&&!ne?$t(qe):qe}if(pt(X)){for(var vt="<"+q.call(String(X.nodeName)),at=X.attributes||[],We=0;We<at.length;We++)vt+=" "+at[We].name+"="+Xe(we(at[We].value),"double",ft);return vt+=">",X.childNodes&&X.childNodes.length&&(vt+="..."),vt+="</"+q.call(String(X.nodeName))+">",vt}if(ht(X)){if(X.length===0)return"[]";var yt=It(X,gt);return Et&&!zt(yt)?"["+Or(yt,Et)+"]":"[ "+he.call(yt,", ")+" ]"}if(Le(X)){var K=It(X,gt);return!("cause"in Error.prototype)&&"cause"in X&&!ue.call(X,"cause")?"{ ["+String(X)+"] "+he.call(Y.call("[cause]: "+gt(X.cause),K),", ")+" }":K.length===0?"["+String(X)+"]":"{ ["+String(X)+"] "+he.call(K,", ")+" }"}if(typeof X=="object"&&mt){if(_e&&typeof X[_e]=="function"&&me)return me(X,{depth:xt-je});if(mt!=="symbol"&&typeof X.inspect=="function")return X.inspect()}if(Rt(X)){var Ne=[];return n&&n.call(X,function(fr,pr){Ne.push(gt(pr,X,!0)+" => "+gt(fr,X))}),Tt("Map",t.call(X),Ne,Et)}if(wt(X)){var lt=[];return h&&h.call(X,function(fr){lt.push(gt(fr,X))}),Tt("Set",u.call(X),lt,Et)}if(ut(X))return Ue("WeakMap");if(Ie(X))return Ue("WeakSet");if(ot(X))return Ue("WeakRef");if(Te(X))return $t(gt(Number(X)));if(Qe(X))return $t(gt(P.call(X)));if(Be(X))return $t(S.call(X));if(ke(X))return $t(gt(String(X)));if(typeof window<"u"&&X===window)return"{ [object Window] }";if(typeof globalThis<"u"&&X===globalThis||typeof yi<"u"&&X===yi)return"{ [object globalThis] }";if(!Je(X)&&!Ze(X)){var Bt=It(X,gt),or=ve?ve(X)===Object.prototype:X instanceof Object||X.constructor===Object,er=X instanceof Object?"":"null prototype",jt=!or&&se&&Object(X)===X&&se in X?k.call(At(X),8,-1):er?"Object":"",tr=or||typeof X.constructor!="function"?"":X.constructor.name?X.constructor.name+" ":"",Mr=tr+(jt||er?"["+he.call(Y.call([],jt||[],er||[]),": ")+"] ":"");return Bt.length===0?Mr+"{}":Et?Mr+"{"+Or(Bt,Et)+"}":Mr+"{ "+he.call(Bt,", ")+" }"}return String(X)};function Xe(ie,X,Ee){var je=Ee.quoteStyle||X,St=De[je];return St+ie+St}function we(ie){return O.call(String(ie),/"/g,""")}function it(ie){return!se||!(typeof ie=="object"&&(se in ie||typeof ie[se]<"u"))}function ht(ie){return At(ie)==="[object Array]"&&it(ie)}function Je(ie){return At(ie)==="[object Date]"&&it(ie)}function Ze(ie){return At(ie)==="[object RegExp]"&&it(ie)}function Le(ie){return At(ie)==="[object Error]"&&it(ie)}function ke(ie){return At(ie)==="[object String]"&&it(ie)}function Te(ie){return At(ie)==="[object Number]"&&it(ie)}function Be(ie){return At(ie)==="[object Boolean]"&&it(ie)}function Re(ie){if(ne)return ie&&typeof ie=="object"&&ie instanceof Symbol;if(typeof ie=="symbol")return!0;if(!ie||typeof ie!="object"||!Q)return!1;try{return Q.call(ie),!0}catch{}return!1}function Qe(ie){if(!ie||typeof ie!="object"||!P)return!1;try{return P.call(ie),!0}catch{}return!1}var ct=Object.prototype.hasOwnProperty||function(ie){return ie in this};function kt(ie,X){return ct.call(ie,X)}function At(ie){return D.call(ie)}function bt(ie){if(ie.name)return ie.name;var X=b.call(A.call(ie),/^function\s*([\w$]+)/);return X?X[1]:null}function Dt(ie,X){if(ie.indexOf)return ie.indexOf(X);for(var Ee=0,je=ie.length;Ee<je;Ee++)if(ie[Ee]===X)return Ee;return-1}function Rt(ie){if(!t||!ie||typeof ie!="object")return!1;try{t.call(ie);try{u.call(ie)}catch{return!0}return ie instanceof Map}catch{}return!1}function ut(ie){if(!m||!ie||typeof ie!="object")return!1;try{m.call(ie,m);try{T.call(ie,T)}catch{return!0}return ie instanceof WeakMap}catch{}return!1}function ot(ie){if(!_||!ie||typeof ie!="object")return!1;try{return _.call(ie),!0}catch{}return!1}function wt(ie){if(!u||!ie||typeof ie!="object")return!1;try{u.call(ie);try{t.call(ie)}catch{return!0}return ie instanceof Set}catch{}return!1}function Ie(ie){if(!T||!ie||typeof ie!="object")return!1;try{T.call(ie,T);try{m.call(ie,m)}catch{return!0}return ie instanceof WeakSet}catch{}return!1}function pt(ie){return!ie||typeof ie!="object"?!1:typeof HTMLElement<"u"&&ie instanceof HTMLElement?!0:typeof ie.nodeName=="string"&&typeof ie.getAttribute=="function"}function _t(ie,X){if(ie.length>X.maxStringLength){var Ee=ie.length-X.maxStringLength,je="... "+Ee+" more character"+(Ee>1?"s":"");return _t(k.call(ie,0,X.maxStringLength),X)+je}var St=Fe[X.quoteStyle||"single"];St.lastIndex=0;var ft=O.call(O.call(ie,St,"\\$1"),/[\x00-\x1f]/g,Ot);return Xe(ft,"single",X)}function Ot(ie){var X=ie.charCodeAt(0),Ee={8:"b",9:"t",10:"n",12:"f",13:"r"}[X];return Ee?"\\"+Ee:"\\x"+(X<16?"0":"")+H.call(X.toString(16))}function $t(ie){return"Object("+ie+")"}function Ue(ie){return ie+" { ? }"}function Tt(ie,X,Ee,je){var St=je?Or(Ee,je):he.call(Ee,", ");return ie+" ("+X+") {"+St+"}"}function zt(ie){for(var X=0;X<ie.length;X++)if(Dt(ie[X],`
|
351
|
-
`)>=0)return!1;return!0}function br(ie,X){var Ee;if(ie.indent===" ")Ee=" ";else if(typeof ie.indent=="number"&&ie.indent>0)Ee=he.call(Array(ie.indent+1)," ");else return null;return{base:Ee,prev:he.call(Array(X+1),Ee)}}function Or(ie,X){if(ie.length===0)return"";var Ee=`
|
352
|
-
`+X.prev+X.base;return Ee+he.call(ie,","+Ee)+`
|
353
|
-
`+X.prev}function It(ie,X){var Ee=ht(ie),je=[];if(Ee){je.length=ie.length;for(var St=0;St<ie.length;St++)je[St]=kt(ie,St)?X(ie[St],ie):""}var ft=typeof re=="function"?re(ie):[],mt;if(ne){mt={};for(var Ut=0;Ut<ft.length;Ut++)mt["$"+ft[Ut]]=ft[Ut]}for(var Lt in ie)kt(ie,Lt)&&(Ee&&String(Number(Lt))===Lt&&Lt<ie.length||ne&&mt["$"+Lt]instanceof Symbol||(G.call(/[^\w$]/,Lt)?je.push(X(Lt,ie)+": "+X(ie[Lt],ie)):je.push(Lt+": "+X(ie[Lt],ie))));if(typeof re=="function")for(var Qt=0;Qt<ft.length;Qt++)ue.call(ie,ft[Qt])&&je.push("["+X(ft[Qt])+"]: "+X(ie[ft[Qt]],ie));return je}return Vg}var Gg,Kb;function IN(){if(Kb)return Gg;Kb=1;var r=xh(),e=ef(),t=function(h,g,m){for(var M=h,T;(T=M.next)!=null;M=T)if(T.key===g)return M.next=T.next,m||(T.next=h.next,h.next=T),T},n=function(h,g){if(h){var m=t(h,g);return m&&m.value}},i=function(h,g,m){var M=t(h,g);M?M.value=m:h.next={key:g,next:h.next,value:m}},l=function(h,g){return h?!!t(h,g):!1},u=function(h,g){if(h)return t(h,g,!0)};return Gg=function(){var g,m={assert:function(M){if(!m.has(M))throw new e("Side channel does not contain "+r(M))},delete:function(M){var T=g&&g.next,C=u(g,M);return C&&T&&T===C&&(g=void 0),!!C},get:function(M){return n(g,M)},has:function(M){return l(g,M)},set:function(M,T){g||(g={next:void 0}),i(g,M,T)}};return m},Gg}var Zg,Xb;function fS(){return Xb||(Xb=1,Zg=Object),Zg}var Yg,Jb;function LN(){return Jb||(Jb=1,Yg=Error),Yg}var Kg,Qb;function MN(){return Qb||(Qb=1,Kg=EvalError),Kg}var Xg,e_;function DN(){return e_||(e_=1,Xg=RangeError),Xg}var Jg,t_;function ON(){return t_||(t_=1,Jg=ReferenceError),Jg}var Qg,r_;function PN(){return r_||(r_=1,Qg=SyntaxError),Qg}var e1,n_;function NN(){return n_||(n_=1,e1=URIError),e1}var t1,i_;function jN(){return i_||(i_=1,t1=Math.abs),t1}var r1,o_;function FN(){return o_||(o_=1,r1=Math.floor),r1}var n1,s_;function BN(){return s_||(s_=1,n1=Math.max),n1}var i1,a_;function qN(){return a_||(a_=1,i1=Math.min),i1}var o1,l_;function HN(){return l_||(l_=1,o1=Math.pow),o1}var s1,c_;function zN(){return c_||(c_=1,s1=Math.round),s1}var a1,u_;function $N(){return u_||(u_=1,a1=Number.isNaN||function(e){return e!==e}),a1}var l1,f_;function UN(){if(f_)return l1;f_=1;var r=$N();return l1=function(t){return r(t)||t===0?t:t<0?-1:1},l1}var c1,d_;function WN(){return d_||(d_=1,c1=Object.getOwnPropertyDescriptor),c1}var u1,h_;function dS(){if(h_)return u1;h_=1;var r=WN();if(r)try{r([],"length")}catch{r=null}return u1=r,u1}var f1,p_;function VN(){if(p_)return f1;p_=1;var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return f1=r,f1}var d1,g_;function GN(){return g_||(g_=1,d1=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 h=Object.getOwnPropertyDescriptor(e,t);if(h.value!==i||h.enumerable!==!0)return!1}return!0}),d1}var h1,m_;function ZN(){if(m_)return h1;m_=1;var r=typeof Symbol<"u"&&Symbol,e=GN();return h1=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},h1}var p1,v_;function hS(){return v_||(v_=1,p1=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),p1}var g1,y_;function pS(){if(y_)return g1;y_=1;var r=fS();return g1=r.getPrototypeOf||null,g1}var m1,b_;function YN(){if(b_)return m1;b_=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 M=[],T=0;T<g.length;T+=1)M[T]=g[T];for(var C=0;C<m.length;C+=1)M[C+g.length]=m[C];return M},l=function(g,m){for(var M=[],T=m,C=0;T<g.length;T+=1,C+=1)M[C]=g[T];return M},u=function(h,g){for(var m="",M=0;M<h.length;M+=1)m+=h[M],M+1<h.length&&(m+=g);return m};return m1=function(g){var m=this;if(typeof m!="function"||e.apply(m)!==n)throw new TypeError(r+m);for(var M=l(arguments,1),T,C=function(){if(this instanceof T){var b=m.apply(this,i(M,arguments));return Object(b)===b?b:this}return m.apply(g,i(M,arguments))},_=t(0,m.length-M.length),S=[],D=0;D<_;D++)S[D]="$"+D;if(T=Function("binder","return function ("+u(S,",")+"){ return binder.apply(this,arguments); }")(C),m.prototype){var A=function(){};A.prototype=m.prototype,T.prototype=new A,A.prototype=null}return T},m1}var v1,__;function Sh(){if(__)return v1;__=1;var r=YN();return v1=Function.prototype.bind||r,v1}var y1,x_;function qm(){return x_||(x_=1,y1=Function.prototype.call),y1}var b1,S_;function gS(){return S_||(S_=1,b1=Function.prototype.apply),b1}var _1,C_;function KN(){return C_||(C_=1,_1=typeof Reflect<"u"&&Reflect&&Reflect.apply),_1}var x1,w_;function XN(){if(w_)return x1;w_=1;var r=Sh(),e=gS(),t=qm(),n=KN();return x1=n||r.call(t,e),x1}var S1,A_;function mS(){if(A_)return S1;A_=1;var r=Sh(),e=ef(),t=qm(),n=XN();return S1=function(l){if(l.length<1||typeof l[0]!="function")throw new e("a function is required");return n(r,t,l)},S1}var C1,T_;function JN(){if(T_)return C1;T_=1;var r=mS(),e=dS(),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 C1=n&&typeof n.get=="function"?r([n.get]):typeof l=="function"?function(h){return l(h==null?h:i(h))}:!1,C1}var w1,E_;function QN(){if(E_)return w1;E_=1;var r=hS(),e=pS(),t=JN();return w1=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,w1}var A1,k_;function ej(){if(k_)return A1;k_=1;var r=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=Sh();return A1=t.call(r,e),A1}var T1,R_;function Hm(){if(R_)return T1;R_=1;var r,e=fS(),t=LN(),n=MN(),i=DN(),l=ON(),u=PN(),h=ef(),g=NN(),m=jN(),M=FN(),T=BN(),C=qN(),_=HN(),S=zN(),D=UN(),A=Function,b=function(Ze){try{return A('"use strict"; return ('+Ze+").constructor;")()}catch{}},k=dS(),O=VN(),H=function(){throw new h},q=k?function(){try{return arguments.callee,H}catch{try{return k(arguments,"callee").get}catch{return H}}}():H,G=ZN()(),Y=QN(),he=pS(),J=hS(),fe=gS(),P=qm(),re={},Q=typeof Uint8Array>"u"||!Y?r:Y(Uint8Array),ne={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":G&&Y?Y([][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%":A,"%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%":G&&Y?Y(Y([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!G||!Y?r:Y(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":k,"%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"||!G||!Y?r:Y(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":G&&Y?Y(""[Symbol.iterator]()):r,"%Symbol%":G?Symbol:r,"%SyntaxError%":u,"%ThrowTypeError%":q,"%TypedArray%":Q,"%TypeError%":h,"%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%":P,"%Function.prototype.apply%":fe,"%Object.defineProperty%":O,"%Object.getPrototypeOf%":he,"%Math.abs%":m,"%Math.floor%":M,"%Math.max%":T,"%Math.min%":C,"%Math.pow%":_,"%Math.round%":S,"%Math.sign%":D,"%Reflect.getPrototypeOf%":J};if(Y)try{null.error}catch(Ze){var se=Y(Y(Ze));ne["%Error.prototype%"]=se}var ue=function Ze(Le){var ke;if(Le==="%AsyncFunction%")ke=b("async function () {}");else if(Le==="%GeneratorFunction%")ke=b("function* () {}");else if(Le==="%AsyncGeneratorFunction%")ke=b("async function* () {}");else if(Le==="%AsyncGenerator%"){var Te=Ze("%AsyncGeneratorFunction%");Te&&(ke=Te.prototype)}else if(Le==="%AsyncIteratorPrototype%"){var Be=Ze("%AsyncGenerator%");Be&&Y&&(ke=Y(Be.prototype))}return ne[Le]=ke,ke},ve={__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"]},le=Sh(),me=ej(),pe=le.call(P,Array.prototype.concat),_e=le.call(fe,Array.prototype.splice),De=le.call(P,String.prototype.replace),Fe=le.call(P,String.prototype.slice),Xe=le.call(P,RegExp.prototype.exec),we=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,it=/\\(\\)?/g,ht=function(Le){var ke=Fe(Le,0,1),Te=Fe(Le,-1);if(ke==="%"&&Te!=="%")throw new u("invalid intrinsic syntax, expected closing `%`");if(Te==="%"&&ke!=="%")throw new u("invalid intrinsic syntax, expected opening `%`");var Be=[];return De(Le,we,function(Re,Qe,ct,kt){Be[Be.length]=ct?De(kt,it,"$1"):Qe||Re}),Be},Je=function(Le,ke){var Te=Le,Be;if(me(ve,Te)&&(Be=ve[Te],Te="%"+Be[0]+"%"),me(ne,Te)){var Re=ne[Te];if(Re===re&&(Re=ue(Te)),typeof Re>"u"&&!ke)throw new h("intrinsic "+Le+" exists, but is not available. Please file an issue!");return{alias:Be,name:Te,value:Re}}throw new u("intrinsic "+Le+" does not exist!")};return T1=function(Le,ke){if(typeof Le!="string"||Le.length===0)throw new h("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ke!="boolean")throw new h('"allowMissing" argument must be a boolean');if(Xe(/^%?[^%]*%?$/,Le)===null)throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Te=ht(Le),Be=Te.length>0?Te[0]:"",Re=Je("%"+Be+"%",ke),Qe=Re.name,ct=Re.value,kt=!1,At=Re.alias;At&&(Be=At[0],_e(Te,pe([0,1],At)));for(var bt=1,Dt=!0;bt<Te.length;bt+=1){var Rt=Te[bt],ut=Fe(Rt,0,1),ot=Fe(Rt,-1);if((ut==='"'||ut==="'"||ut==="`"||ot==='"'||ot==="'"||ot==="`")&&ut!==ot)throw new u("property names with quotes must have matching quotes");if((Rt==="constructor"||!Dt)&&(kt=!0),Be+="."+Rt,Qe="%"+Be+"%",me(ne,Qe))ct=ne[Qe];else if(ct!=null){if(!(Rt in ct)){if(!ke)throw new h("base intrinsic for "+Le+" exists, but the property is not available.");return}if(k&&bt+1>=Te.length){var wt=k(ct,Rt);Dt=!!wt,Dt&&"get"in wt&&!("originalValue"in wt.get)?ct=wt.get:ct=ct[Rt]}else Dt=me(ct,Rt),ct=ct[Rt];Dt&&!kt&&(ne[Qe]=ct)}}return ct},T1}var E1,I_;function vS(){if(I_)return E1;I_=1;var r=Hm(),e=mS(),t=e([r("%String.prototype.indexOf%")]);return E1=function(i,l){var u=r(i,!!l);return typeof u=="function"&&t(i,".prototype.")>-1?e([u]):u},E1}var k1,L_;function yS(){if(L_)return k1;L_=1;var r=Hm(),e=vS(),t=xh(),n=ef(),i=r("%Map%",!0),l=e("Map.prototype.get",!0),u=e("Map.prototype.set",!0),h=e("Map.prototype.has",!0),g=e("Map.prototype.delete",!0),m=e("Map.prototype.size",!0);return k1=!!i&&function(){var T,C={assert:function(_){if(!C.has(_))throw new n("Side channel does not contain "+t(_))},delete:function(_){if(T){var S=g(T,_);return m(T)===0&&(T=void 0),S}return!1},get:function(_){if(T)return l(T,_)},has:function(_){return T?h(T,_):!1},set:function(_,S){T||(T=new i),u(T,_,S)}};return C},k1}var R1,M_;function tj(){if(M_)return R1;M_=1;var r=Hm(),e=vS(),t=xh(),n=yS(),i=ef(),l=r("%WeakMap%",!0),u=e("WeakMap.prototype.get",!0),h=e("WeakMap.prototype.set",!0),g=e("WeakMap.prototype.has",!0),m=e("WeakMap.prototype.delete",!0);return R1=l?function(){var T,C,_={assert:function(S){if(!_.has(S))throw new i("Side channel does not contain "+t(S))},delete:function(S){if(l&&S&&(typeof S=="object"||typeof S=="function")){if(T)return m(T,S)}else if(n&&C)return C.delete(S);return!1},get:function(S){return l&&S&&(typeof S=="object"||typeof S=="function")&&T?u(T,S):C&&C.get(S)},has:function(S){return l&&S&&(typeof S=="object"||typeof S=="function")&&T?g(T,S):!!C&&C.has(S)},set:function(S,D){l&&S&&(typeof S=="object"||typeof S=="function")?(T||(T=new l),h(T,S,D)):n&&(C||(C=n()),C.set(S,D))}};return _}:n,R1}var I1,D_;function rj(){if(D_)return I1;D_=1;var r=ef(),e=xh(),t=IN(),n=yS(),i=tj(),l=i||n||t;return I1=function(){var h,g={assert:function(m){if(!g.has(m))throw new r("Side channel does not contain "+e(m))},delete:function(m){return!!h&&h.delete(m)},get:function(m){return h&&h.get(m)},has:function(m){return!!h&&h.has(m)},set:function(m,M){h||(h=l()),h.set(m,M)}};return g},I1}var L1,O_;function zm(){if(O_)return L1;O_=1;var r=String.prototype.replace,e=/%20/g,t={RFC1738:"RFC1738",RFC3986:"RFC3986"};return L1={default:t.RFC3986,formatters:{RFC1738:function(n){return r.call(n,e,"+")},RFC3986:function(n){return String(n)}},RFC1738:t.RFC1738,RFC3986:t.RFC3986},L1}var M1,P_;function bS(){if(P_)return M1;P_=1;var r=zm(),e=Object.prototype.hasOwnProperty,t=Array.isArray,n=function(){for(var A=[],b=0;b<256;++b)A.push("%"+((b<16?"0":"")+b.toString(16)).toUpperCase());return A}(),i=function(b){for(;b.length>1;){var k=b.pop(),O=k.obj[k.prop];if(t(O)){for(var H=[],q=0;q<O.length;++q)typeof O[q]<"u"&&H.push(O[q]);k.obj[k.prop]=H}}},l=function(b,k){for(var O=k&&k.plainObjects?{__proto__:null}:{},H=0;H<b.length;++H)typeof b[H]<"u"&&(O[H]=b[H]);return O},u=function A(b,k,O){if(!k)return b;if(typeof k!="object"&&typeof k!="function"){if(t(b))b.push(k);else if(b&&typeof b=="object")(O&&(O.plainObjects||O.allowPrototypes)||!e.call(Object.prototype,k))&&(b[k]=!0);else return[b,k];return b}if(!b||typeof b!="object")return[b].concat(k);var H=b;return t(b)&&!t(k)&&(H=l(b,O)),t(b)&&t(k)?(k.forEach(function(q,G){if(e.call(b,G)){var Y=b[G];Y&&typeof Y=="object"&&q&&typeof q=="object"?b[G]=A(Y,q,O):b.push(q)}else b[G]=q}),b):Object.keys(k).reduce(function(q,G){var Y=k[G];return e.call(q,G)?q[G]=A(q[G],Y,O):q[G]=Y,q},H)},h=function(b,k){return Object.keys(k).reduce(function(O,H){return O[H]=k[H],O},b)},g=function(A,b,k){var O=A.replace(/\+/g," ");if(k==="iso-8859-1")return O.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(O)}catch{return O}},m=1024,M=function(b,k,O,H,q){if(b.length===0)return b;var G=b;if(typeof b=="symbol"?G=Symbol.prototype.toString.call(b):typeof b!="string"&&(G=String(b)),O==="iso-8859-1")return escape(G).replace(/%u[0-9a-f]{4}/gi,function(Q){return"%26%23"+parseInt(Q.slice(2),16)+"%3B"});for(var Y="",he=0;he<G.length;he+=m){for(var J=G.length>=m?G.slice(he,he+m):G,fe=[],P=0;P<J.length;++P){var re=J.charCodeAt(P);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)){fe[fe.length]=J.charAt(P);continue}if(re<128){fe[fe.length]=n[re];continue}if(re<2048){fe[fe.length]=n[192|re>>6]+n[128|re&63];continue}if(re<55296||re>=57344){fe[fe.length]=n[224|re>>12]+n[128|re>>6&63]+n[128|re&63];continue}P+=1,re=65536+((re&1023)<<10|J.charCodeAt(P)&1023),fe[fe.length]=n[240|re>>18]+n[128|re>>12&63]+n[128|re>>6&63]+n[128|re&63]}Y+=fe.join("")}return Y},T=function(b){for(var k=[{obj:{o:b},prop:"o"}],O=[],H=0;H<k.length;++H)for(var q=k[H],G=q.obj[q.prop],Y=Object.keys(G),he=0;he<Y.length;++he){var J=Y[he],fe=G[J];typeof fe=="object"&&fe!==null&&O.indexOf(fe)===-1&&(k.push({obj:G,prop:J}),O.push(fe))}return i(k),b},C=function(b){return Object.prototype.toString.call(b)==="[object RegExp]"},_=function(b){return!b||typeof b!="object"?!1:!!(b.constructor&&b.constructor.isBuffer&&b.constructor.isBuffer(b))},S=function(b,k){return[].concat(b,k)},D=function(b,k){if(t(b)){for(var O=[],H=0;H<b.length;H+=1)O.push(k(b[H]));return O}return k(b)};return M1={arrayToObject:l,assign:h,combine:S,compact:T,decode:g,encode:M,isBuffer:_,isRegExp:C,maybeMap:D,merge:u},M1}var D1,N_;function nj(){if(N_)return D1;N_=1;var r=rj(),e=bS(),t=zm(),n=Object.prototype.hasOwnProperty,i={brackets:function(A){return A+"[]"},comma:"comma",indices:function(A,b){return A+"["+b+"]"},repeat:function(A){return A}},l=Array.isArray,u=Array.prototype.push,h=function(D,A){u.apply(D,l(A)?A:[A])},g=Date.prototype.toISOString,m=t.default,M={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(A){return g.call(A)},skipNulls:!1,strictNullHandling:!1},T=function(A){return typeof A=="string"||typeof A=="number"||typeof A=="boolean"||typeof A=="symbol"||typeof A=="bigint"},C={},_=function D(A,b,k,O,H,q,G,Y,he,J,fe,P,re,Q,ne,se,ue,ve){for(var le=A,me=ve,pe=0,_e=!1;(me=me.get(C))!==void 0&&!_e;){var De=me.get(A);if(pe+=1,typeof De<"u"){if(De===pe)throw new RangeError("Cyclic object value");_e=!0}typeof me.get(C)>"u"&&(pe=0)}if(typeof J=="function"?le=J(b,le):le instanceof Date?le=re(le):k==="comma"&&l(le)&&(le=e.maybeMap(le,function(Qe){return Qe instanceof Date?re(Qe):Qe})),le===null){if(q)return he&&!se?he(b,M.encoder,ue,"key",Q):b;le=""}if(T(le)||e.isBuffer(le)){if(he){var Fe=se?b:he(b,M.encoder,ue,"key",Q);return[ne(Fe)+"="+ne(he(le,M.encoder,ue,"value",Q))]}return[ne(b)+"="+ne(String(le))]}var Xe=[];if(typeof le>"u")return Xe;var we;if(k==="comma"&&l(le))se&&he&&(le=e.maybeMap(le,he)),we=[{value:le.length>0?le.join(",")||null:void 0}];else if(l(J))we=J;else{var it=Object.keys(le);we=fe?it.sort(fe):it}var ht=Y?String(b).replace(/\./g,"%2E"):String(b),Je=O&&l(le)&&le.length===1?ht+"[]":ht;if(H&&l(le)&&le.length===0)return Je+"[]";for(var Ze=0;Ze<we.length;++Ze){var Le=we[Ze],ke=typeof Le=="object"&&Le&&typeof Le.value<"u"?Le.value:le[Le];if(!(G&&ke===null)){var Te=P&&Y?String(Le).replace(/\./g,"%2E"):String(Le),Be=l(le)?typeof k=="function"?k(Je,Te):Je:Je+(P?"."+Te:"["+Te+"]");ve.set(A,pe);var Re=r();Re.set(C,ve),h(Xe,D(ke,Be,k,O,H,q,G,Y,k==="comma"&&se&&l(le)?null:he,J,fe,P,re,Q,ne,se,ue,Re))}}return Xe},S=function(A){if(!A)return M;if(typeof A.allowEmptyArrays<"u"&&typeof A.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof A.encodeDotInKeys<"u"&&typeof A.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(A.encoder!==null&&typeof A.encoder<"u"&&typeof A.encoder!="function")throw new TypeError("Encoder has to be a function.");var b=A.charset||M.charset;if(typeof A.charset<"u"&&A.charset!=="utf-8"&&A.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var k=t.default;if(typeof A.format<"u"){if(!n.call(t.formatters,A.format))throw new TypeError("Unknown format option provided.");k=A.format}var O=t.formatters[k],H=M.filter;(typeof A.filter=="function"||l(A.filter))&&(H=A.filter);var q;if(A.arrayFormat in i?q=A.arrayFormat:"indices"in A?q=A.indices?"indices":"repeat":q=M.arrayFormat,"commaRoundTrip"in A&&typeof A.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var G=typeof A.allowDots>"u"?A.encodeDotInKeys===!0?!0:M.allowDots:!!A.allowDots;return{addQueryPrefix:typeof A.addQueryPrefix=="boolean"?A.addQueryPrefix:M.addQueryPrefix,allowDots:G,allowEmptyArrays:typeof A.allowEmptyArrays=="boolean"?!!A.allowEmptyArrays:M.allowEmptyArrays,arrayFormat:q,charset:b,charsetSentinel:typeof A.charsetSentinel=="boolean"?A.charsetSentinel:M.charsetSentinel,commaRoundTrip:!!A.commaRoundTrip,delimiter:typeof A.delimiter>"u"?M.delimiter:A.delimiter,encode:typeof A.encode=="boolean"?A.encode:M.encode,encodeDotInKeys:typeof A.encodeDotInKeys=="boolean"?A.encodeDotInKeys:M.encodeDotInKeys,encoder:typeof A.encoder=="function"?A.encoder:M.encoder,encodeValuesOnly:typeof A.encodeValuesOnly=="boolean"?A.encodeValuesOnly:M.encodeValuesOnly,filter:H,format:k,formatter:O,serializeDate:typeof A.serializeDate=="function"?A.serializeDate:M.serializeDate,skipNulls:typeof A.skipNulls=="boolean"?A.skipNulls:M.skipNulls,sort:typeof A.sort=="function"?A.sort:null,strictNullHandling:typeof A.strictNullHandling=="boolean"?A.strictNullHandling:M.strictNullHandling}};return D1=function(D,A){var b=D,k=S(A),O,H;typeof k.filter=="function"?(H=k.filter,b=H("",b)):l(k.filter)&&(H=k.filter,O=H);var q=[];if(typeof b!="object"||b===null)return"";var G=i[k.arrayFormat],Y=G==="comma"&&k.commaRoundTrip;O||(O=Object.keys(b)),k.sort&&O.sort(k.sort);for(var he=r(),J=0;J<O.length;++J){var fe=O[J],P=b[fe];k.skipNulls&&P===null||h(q,_(P,fe,G,Y,k.allowEmptyArrays,k.strictNullHandling,k.skipNulls,k.encodeDotInKeys,k.encode?k.encoder:null,k.filter,k.sort,k.allowDots,k.serializeDate,k.format,k.formatter,k.encodeValuesOnly,k.charset,he))}var re=q.join(k.delimiter),Q=k.addQueryPrefix===!0?"?":"";return k.charsetSentinel&&(k.charset==="iso-8859-1"?Q+="utf8=%26%2310003%3B&":Q+="utf8=%E2%9C%93&"),re.length>0?Q+re:""},D1}var O1,j_;function ij(){if(j_)return O1;j_=1;var r=bS(),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(C){return C.replace(/&#(\d+);/g,function(_,S){return String.fromCharCode(parseInt(S,10))})},l=function(C,_,S){if(C&&typeof C=="string"&&_.comma&&C.indexOf(",")>-1)return C.split(",");if(_.throwOnLimitExceeded&&S>=_.arrayLimit)throw new RangeError("Array limit exceeded. Only "+_.arrayLimit+" element"+(_.arrayLimit===1?"":"s")+" allowed in an array.");return C},u="utf8=%26%2310003%3B",h="utf8=%E2%9C%93",g=function(_,S){var D={__proto__:null},A=S.ignoreQueryPrefix?_.replace(/^\?/,""):_;A=A.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var b=S.parameterLimit===1/0?void 0:S.parameterLimit,k=A.split(S.delimiter,S.throwOnLimitExceeded?b+1:b);if(S.throwOnLimitExceeded&&k.length>b)throw new RangeError("Parameter limit exceeded. Only "+b+" parameter"+(b===1?"":"s")+" allowed.");var O=-1,H,q=S.charset;if(S.charsetSentinel)for(H=0;H<k.length;++H)k[H].indexOf("utf8=")===0&&(k[H]===h?q="utf-8":k[H]===u&&(q="iso-8859-1"),O=H,H=k.length);for(H=0;H<k.length;++H)if(H!==O){var G=k[H],Y=G.indexOf("]="),he=Y===-1?G.indexOf("="):Y+1,J,fe;he===-1?(J=S.decoder(G,n.decoder,q,"key"),fe=S.strictNullHandling?null:""):(J=S.decoder(G.slice(0,he),n.decoder,q,"key"),fe=r.maybeMap(l(G.slice(he+1),S,t(D[J])?D[J].length:0),function(re){return S.decoder(re,n.decoder,q,"value")})),fe&&S.interpretNumericEntities&&q==="iso-8859-1"&&(fe=i(String(fe))),G.indexOf("[]=")>-1&&(fe=t(fe)?[fe]:fe);var P=e.call(D,J);P&&S.duplicates==="combine"?D[J]=r.combine(D[J],fe):(!P||S.duplicates==="last")&&(D[J]=fe)}return D},m=function(C,_,S,D){var A=0;if(C.length>0&&C[C.length-1]==="[]"){var b=C.slice(0,-1).join("");A=Array.isArray(_)&&_[b]?_[b].length:0}for(var k=D?_:l(_,S,A),O=C.length-1;O>=0;--O){var H,q=C[O];if(q==="[]"&&S.parseArrays)H=S.allowEmptyArrays&&(k===""||S.strictNullHandling&&k===null)?[]:r.combine([],k);else{H=S.plainObjects?{__proto__:null}:{};var G=q.charAt(0)==="["&&q.charAt(q.length-1)==="]"?q.slice(1,-1):q,Y=S.decodeDotInKeys?G.replace(/%2E/g,"."):G,he=parseInt(Y,10);!S.parseArrays&&Y===""?H={0:k}:!isNaN(he)&&q!==Y&&String(he)===Y&&he>=0&&S.parseArrays&&he<=S.arrayLimit?(H=[],H[he]=k):Y!=="__proto__"&&(H[Y]=k)}k=H}return k},M=function(_,S,D,A){if(_){var b=D.allowDots?_.replace(/\.([^.[]+)/g,"[$1]"):_,k=/(\[[^[\]]*])/,O=/(\[[^[\]]*])/g,H=D.depth>0&&k.exec(b),q=H?b.slice(0,H.index):b,G=[];if(q){if(!D.plainObjects&&e.call(Object.prototype,q)&&!D.allowPrototypes)return;G.push(q)}for(var Y=0;D.depth>0&&(H=O.exec(b))!==null&&Y<D.depth;){if(Y+=1,!D.plainObjects&&e.call(Object.prototype,H[1].slice(1,-1))&&!D.allowPrototypes)return;G.push(H[1])}if(H){if(D.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+D.depth+" and strictDepth is true");G.push("["+b.slice(H.index)+"]")}return m(G,S,D,A)}},T=function(_){if(!_)return n;if(typeof _.allowEmptyArrays<"u"&&typeof _.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof _.decodeDotInKeys<"u"&&typeof _.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(_.decoder!==null&&typeof _.decoder<"u"&&typeof _.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof _.charset<"u"&&_.charset!=="utf-8"&&_.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof _.throwOnLimitExceeded<"u"&&typeof _.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var S=typeof _.charset>"u"?n.charset:_.charset,D=typeof _.duplicates>"u"?n.duplicates:_.duplicates;if(D!=="combine"&&D!=="first"&&D!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var A=typeof _.allowDots>"u"?_.decodeDotInKeys===!0?!0:n.allowDots:!!_.allowDots;return{allowDots:A,allowEmptyArrays:typeof _.allowEmptyArrays=="boolean"?!!_.allowEmptyArrays:n.allowEmptyArrays,allowPrototypes:typeof _.allowPrototypes=="boolean"?_.allowPrototypes:n.allowPrototypes,allowSparse:typeof _.allowSparse=="boolean"?_.allowSparse:n.allowSparse,arrayLimit:typeof _.arrayLimit=="number"?_.arrayLimit:n.arrayLimit,charset:S,charsetSentinel:typeof _.charsetSentinel=="boolean"?_.charsetSentinel:n.charsetSentinel,comma:typeof _.comma=="boolean"?_.comma:n.comma,decodeDotInKeys:typeof _.decodeDotInKeys=="boolean"?_.decodeDotInKeys:n.decodeDotInKeys,decoder:typeof _.decoder=="function"?_.decoder:n.decoder,delimiter:typeof _.delimiter=="string"||r.isRegExp(_.delimiter)?_.delimiter:n.delimiter,depth:typeof _.depth=="number"||_.depth===!1?+_.depth:n.depth,duplicates:D,ignoreQueryPrefix:_.ignoreQueryPrefix===!0,interpretNumericEntities:typeof _.interpretNumericEntities=="boolean"?_.interpretNumericEntities:n.interpretNumericEntities,parameterLimit:typeof _.parameterLimit=="number"?_.parameterLimit:n.parameterLimit,parseArrays:_.parseArrays!==!1,plainObjects:typeof _.plainObjects=="boolean"?_.plainObjects:n.plainObjects,strictDepth:typeof _.strictDepth=="boolean"?!!_.strictDepth:n.strictDepth,strictNullHandling:typeof _.strictNullHandling=="boolean"?_.strictNullHandling:n.strictNullHandling,throwOnLimitExceeded:typeof _.throwOnLimitExceeded=="boolean"?_.throwOnLimitExceeded:!1}};return O1=function(C,_){var S=T(_);if(C===""||C===null||typeof C>"u")return S.plainObjects?{__proto__:null}:{};for(var D=typeof C=="string"?g(C,S):C,A=S.plainObjects?{__proto__:null}:{},b=Object.keys(D),k=0;k<b.length;++k){var O=b[k],H=M(O,D[O],S,typeof C=="string");A=r.merge(A,H,S)}return S.allowSparse===!0?A:r.compact(A)},O1}var P1,F_;function oj(){if(F_)return P1;F_=1;var r=nj(),e=ij(),t=zm();return P1={formats:t,parse:e,stringify:r},P1}var sj=oj();const aj=ol(sj),om={StoredContexts:{},defaultHandler:()=>{}},_S={Init:()=>{},Create:r=>{const e=r.method+r.url;return om.StoredContexts[e]=r,lj(r)},FetchBaseUrl:()=>window.location.href,useDefaultHandler:r=>{om.defaultHandler=r}};function lj(r){const e=`[${r.method}] ${r.url}`;return{Call:async n=>{let{url:i,method:l,stream:u,paramType:h}=r;const{po:g,onStream:m,onStreamEnd:M,noDefaultHandle:T=[]}=n??{};(h==="query"||l==="GET")&&g!==void 0&&(i+="?"+aj.stringify(g,{arrayFormat:"comma"}));const C={method:l,headers:{Accept:"application/json;charset=UTF-8","X-Requested-With":"XMLHttpRequest","Cache-Control":"no-cache",Pragma:"no-cache",crossDomain:"true"}};if(h==="form"){const D=new FormData;if(g!==void 0)for(const A in g){const b=g[A];D.append(A,b)}C.body=D}else(h==="body"||h===void 0&&r.method!=="GET")&&(C.body=JSON.stringify(g),C.headers["Content-Type"]="application/json;charset=UTF-8");let _={errorCode:0,message:""};const S=Date.now();i=_S.FetchBaseUrl()+i;try{let D=await fetch(i,C);if(D.ok===!1)return _.errorCode=D.status,_.message=D.statusText,_;{const A=new TextDecoder("utf-8");if(u){if(D.body){let b=D.body.getReader(),k="";for(;;){const O=await b.read();if(O.done)break;const H=A.decode(O.value).trim();k+=H;let q=null;try{const G=H.split("\0");let Y=G[G.length-1];for(let he=G.length-2;he>=0;he--)if(G[he].trim().length!==0){Y=G[he];break}q=await JSON.parse(Y)}catch{try{const Y=k.split("\0");let he=Y[Y.length-1];for(let J=Y.length-2;J>=0;J--)if(Y[J].trim().length!==0){he=Y[J];break}q=await JSON.parse(he)}catch{}}if(q!=null&&(Object.keys(q).includes("err_code")?_.errorCode=q.err_code:(_.errorCode=0,_.data=q,k="",O.done?M==null||M(_.data):m==null||m(_.data))),O.done)break}}}else if(D.body){const k=await D.body.getReader().read(),O=A.decode(k.value);if(O==="null")return _;{let H=await JSON.parse(O.replaceAll("\0",""));Object.keys(H).includes("err_code")?(_.errorCode=H.err_code,_.message=H.err_msg):_.data=H}}}}catch(D){console.warn(D),_.errorCode=-1,_.message=D.message}return console.debug(`${e} ${Date.now()-S}ms`),T!==!0&&await om.defaultHandler(_,T),_}}}async function cj(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 uj(r,e){var h,g;const t=r.split(","),n=(g=(h=t[0])==null?void 0:h.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 fj={toBase64:cj,toFile:uj};exports.ABase=Wr;exports.ABaseStyleKeys=n2;exports.AButton=Bi;exports.AButtonStyleKeys=o2;exports.AButtonTypes=t5;exports.ACheckBox=Wu;exports.ACheckBoxStyleKeys=c2;exports.AChip=M2;exports.AChipKeys=k2;exports.AChips=mT;exports.AClock=RT;exports.AColFrame=I2;exports.ADatePicker=hm;exports.ADatePickerStyleKeys=b2;exports.ADatePickerTypes=r6;exports.ADateRangePicker=fm;exports.ADateRangePickerStyleKeys=_2;exports.ADialog=f6;exports.ADialogStyleKeys=u2;exports.ADialogTypes=u6;exports.ADivideFrame=iT;exports.AEditor=HP;exports.AEditorStyleKeys=l2;exports.AFileBox=S6;exports.AFileBoxStyleKeys=m2;exports.AFloatMenu=P2;exports.AFloatMenuKeys=w2;exports.AFrameStyleKeys=C2;exports.AGrow=Kc;exports.AIcon=qr;exports.AIconButton=vo;exports.AIconButtonStyleKeys=x2;exports.AIconButtonTypes=r5;exports.AIconHOC=j4;exports.AIcons=lm;exports.AInput=Ql;exports.AInputStyleKeys=s2;exports.AInputTypes=zT;exports.AListView=O6;exports.AListViewStyleKeys=v2;exports.ALoadingBorder=pm;exports.ALoadingBorderKeys=A2;exports.AMultiSelect=lk;exports.AMultiSelectStyleKeys=d2;exports.ANumInput=R6;exports.AOverflowFrame=Jl;exports.ARadioSelect=G6;exports.ARadioSelectKeys=E2;exports.ARowFrame=Vn;exports.ASelect=Vc;exports.ASelectStyleKeys=f2;exports.ASelectTypes=nE;exports.ASpace=mn;exports.AStepper=Ck;exports.AStepperStyleKeys=y2;exports.ASwitch=K_;exports.ASwitchFrame=L2;exports.ASwitchStyleKeys=p2;exports.ATab=F2;exports.ATabStyleKeys=g2;exports.ATabTypes=Pk;exports.ATable=z8;exports.ATableStyleKeys=S2;exports.AText=$2;exports.ATextArea=Q8;exports.ATextAreaStyleKeys=a2;exports.ATextAreaTypes=J8;exports.AThemeButton=q5;exports.AThemes=Of;exports.ATooltip=Y_;exports.ATooltipStyleKeys=i2;exports.ATree=CN;exports.ATreeStyleKeys=h2;exports.AWrap=Wc;exports.AWrapKeys=T2;exports.AWrapTypes=_5;exports.ApiContext=_S;exports.BodyStyleKeys=r2;exports.CreateADC=v6;exports.DefaultOptionRenderer=j2;exports.EDir12=Xu;exports.EDir4=vi;exports.FileSizeTrans=im;exports.Icons=rh;exports.IsCursorPointer=$_;exports.IsFixedShape=z_;exports.IsInteractive=U_;exports.NoSelect=H_;exports.ReactQuill=_h;exports.Resources=hn;exports.SetResources=p5;exports.alphanumericRegex=yT;exports.bound=Df;exports.cbF=Rr;exports.changeSemanticMode=um;exports.componentStyleKeys=M5;exports.createEvent=Uc;exports.dateF=Yt;exports.defaultPredicate=q2;exports.dlgF=y6;exports.emailIdRegex=_T;exports.emailRegex=bT;exports.fileF=fj;exports.getMonthsOptions=Vf;exports.getYearsOptions=dm;exports.hangulRegex=ST;exports.hexRegex=xT;exports.jsxRuntimeExports=v;exports.noHanguljamoRegex=wT;exports.noSpaceRegex=CT;exports.numF=N2;exports.objF=rr;exports.paletteKeys=X_;exports.paletteModes=nh;exports.passwordRegex=TT;exports.refinedDesignTokens=bi;exports.sF=He;exports.semanticKeys=e2;exports.semanticModes=Uu;exports.setDir12Style=cm;exports.setDir12StyleElem=G_;exports.specialCharRegex=AT;exports.strF=O2;exports.tableF=Qa;exports.treeF=el;exports.useADialogCore=g6;exports.useADialogCores=p6;exports.useEvent=z2;exports.useInit=B2;exports.useValues=pn;exports.uuidRegex=ET;
|