ados-rcm 1.1.546 → 1.1.547
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +18 -18
- package/dist/index.es.js +179 -177
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
@@ -19,11 +19,11 @@
|
|
19
19
|
`+Le+te}}var Ve=!1,we;{var _e=typeof WeakMap=="function"?WeakMap:Map;we=new _e}function Ae(te,ye){if(!te||Ve)return"";{var Be=we.get(te);if(Be!==void 0)return Be}var At;Ve=!0;var Ft=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ot;Ot=Se.current,Se.current=null,Me();try{if(ye){var er=function(){throw Error()};if(Object.defineProperty(er.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(er,[])}catch(lr){At=lr}Reflect.construct(te,[],er)}else{try{er.call()}catch(lr){At=lr}te.call(er.prototype)}}else{try{throw Error()}catch(lr){At=lr}te()}}catch(lr){if(lr&&At&&typeof lr.stack=="string"){for(var Qt=lr.stack.split(`
|
20
20
|
`),kt=At.stack.split(`
|
21
21
|
`),be=Qt.length-1,nt=kt.length-1;be>=1&&nt>=0&&Qt[be]!==kt[nt];)nt--;for(;be>=1&&nt>=0;be--,nt--)if(Qt[be]!==kt[nt]){if(be!==1||nt!==1)do if(be--,nt--,nt<0||Qt[be]!==kt[nt]){var yt=`
|
22
|
-
`+Qt[be].replace(" at new "," at ");return te.displayName&&yt.includes("<anonymous>")&&(yt=yt.replace("<anonymous>",te.displayName)),typeof te=="function"&&we.set(te,yt),yt}while(be>=1&&nt>=0);break}}}finally{Ve=!1,Se.current=Ot,oe(),Error.prepareStackTrace=Ft}var yr=te?te.displayName||te.name:"",Br=yr?We(yr):"";return typeof te=="function"&&we.set(te,Br),Br}function Ie(te,ye,Be){return Ae(te,!1)}function je(te){var ye=te.prototype;return!!(ye&&ye.isReactComponent)}function it(te,ye,Be){if(te==null)return"";if(typeof te=="function")return Ae(te,je(te));if(typeof te=="string")return We(te);switch(te){case h:return We("Suspense");case g:return We("SuspenseList")}if(typeof te=="object")switch(te.$$typeof){case d:return Ie(te.render);case m:return it(te.type,ye,Be);case p:{var At=te,Ft=At._payload,Ot=At._init;try{return it(Ot(Ft),ye,Be)}catch{}}}return""}var Ue=Object.prototype.hasOwnProperty,tt={},lt=A.ReactDebugCurrentFrame;function bt(te){if(te){var ye=te._owner,Be=it(te.type,te._source,ye?ye.type:null);lt.setExtraStackFrame(Be)}else lt.setExtraStackFrame(null)}function Mt(te,ye,Be,At,Ft){{var Ot=Function.call.bind(Ue);for(var er in te)if(Ot(te,er)){var Qt=void 0;try{if(typeof te[er]!="function"){var kt=Error((At||"React class")+": "+Be+" type `"+er+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof te[er]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw kt.name="Invariant Violation",kt}Qt=te[er](ye,er,At,Be,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(be){Qt=be}Qt&&!(Qt instanceof Error)&&(bt(Ft),R("%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).",At||"React class",Be,er,typeof Qt),bt(null)),Qt instanceof Error&&!(Qt.message in tt)&&(tt[Qt.message]=!0,bt(Ft),R("Failed %s type: %s",Be,Qt.message),bt(null))}}}var Qe=Array.isArray;function Xe(te){return Qe(te)}function ht(te){{var ye=typeof Symbol=="function"&&Symbol.toStringTag,Be=ye&&te[Symbol.toStringTag]||te.constructor.name||"Object";return Be}}function ft(te){try{return Oe(te),!1}catch{return!0}}function Oe(te){return""+te}function Je(te){if(ft(te))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ht(te)),Oe(te)}var gt=A.ReactCurrentOwner,It={key:!0,ref:!0,__self:!0,__source:!0},Et,Dt;function Xt(te){if(Ue.call(te,"ref")){var ye=Object.getOwnPropertyDescriptor(te,"ref").get;if(ye&&ye.isReactWarning)return!1}return te.ref!==void 0}function Wt(te){if(Ue.call(te,"key")){var ye=Object.getOwnPropertyDescriptor(te,"key").get;if(ye&&ye.isReactWarning)return!1}return te.key!==void 0}function hr(te,ye){typeof te.ref=="string"&>.current}function dr(te,ye){{var Be=function(){Et||(Et=!0,R("%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)",ye))};Be.isReactWarning=!0,Object.defineProperty(te,"key",{get:Be,configurable:!0})}}function cr(te,ye){{var Be=function(){Dt||(Dt=!0,R("%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)",ye))};Be.isReactWarning=!0,Object.defineProperty(te,"ref",{get:Be,configurable:!0})}}var Te=function(te,ye,Be,At,Ft,Ot,er){var Qt={$$typeof:e,type:te,key:ye,ref:Be,props:er,_owner:Ot};return Qt._store={},Object.defineProperty(Qt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Qt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:At}),Object.defineProperty(Qt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ft}),Object.freeze&&(Object.freeze(Qt.props),Object.freeze(Qt)),Qt};function ue(te,ye,Be,At,Ft){{var Ot,er={},Qt=null,kt=null;Be!==void 0&&(Je(Be),Qt=""+Be),Wt(ye)&&(Je(ye.key),Qt=""+ye.key),Xt(ye)&&(kt=ye.ref,hr(ye,Ft));for(Ot in ye)Ue.call(ye,Ot)&&!It.hasOwnProperty(Ot)&&(er[Ot]=ye[Ot]);if(te&&te.defaultProps){var be=te.defaultProps;for(Ot in be)er[Ot]===void 0&&(er[Ot]=be[Ot])}if(Qt||kt){var nt=typeof te=="function"?te.displayName||te.name||"Unknown":te;Qt&&dr(er,nt),kt&&cr(er,nt)}return Te(te,Qt,kt,Ft,At,gt.current,er)}}var
|
22
|
+
`+Qt[be].replace(" at new "," at ");return te.displayName&&yt.includes("<anonymous>")&&(yt=yt.replace("<anonymous>",te.displayName)),typeof te=="function"&&we.set(te,yt),yt}while(be>=1&&nt>=0);break}}}finally{Ve=!1,Se.current=Ot,oe(),Error.prepareStackTrace=Ft}var yr=te?te.displayName||te.name:"",Br=yr?We(yr):"";return typeof te=="function"&&we.set(te,Br),Br}function Ie(te,ye,Be){return Ae(te,!1)}function je(te){var ye=te.prototype;return!!(ye&&ye.isReactComponent)}function it(te,ye,Be){if(te==null)return"";if(typeof te=="function")return Ae(te,je(te));if(typeof te=="string")return We(te);switch(te){case h:return We("Suspense");case g:return We("SuspenseList")}if(typeof te=="object")switch(te.$$typeof){case d:return Ie(te.render);case m:return it(te.type,ye,Be);case p:{var At=te,Ft=At._payload,Ot=At._init;try{return it(Ot(Ft),ye,Be)}catch{}}}return""}var Ue=Object.prototype.hasOwnProperty,tt={},lt=A.ReactDebugCurrentFrame;function bt(te){if(te){var ye=te._owner,Be=it(te.type,te._source,ye?ye.type:null);lt.setExtraStackFrame(Be)}else lt.setExtraStackFrame(null)}function Mt(te,ye,Be,At,Ft){{var Ot=Function.call.bind(Ue);for(var er in te)if(Ot(te,er)){var Qt=void 0;try{if(typeof te[er]!="function"){var kt=Error((At||"React class")+": "+Be+" type `"+er+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof te[er]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw kt.name="Invariant Violation",kt}Qt=te[er](ye,er,At,Be,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(be){Qt=be}Qt&&!(Qt instanceof Error)&&(bt(Ft),R("%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).",At||"React class",Be,er,typeof Qt),bt(null)),Qt instanceof Error&&!(Qt.message in tt)&&(tt[Qt.message]=!0,bt(Ft),R("Failed %s type: %s",Be,Qt.message),bt(null))}}}var Qe=Array.isArray;function Xe(te){return Qe(te)}function ht(te){{var ye=typeof Symbol=="function"&&Symbol.toStringTag,Be=ye&&te[Symbol.toStringTag]||te.constructor.name||"Object";return Be}}function ft(te){try{return Oe(te),!1}catch{return!0}}function Oe(te){return""+te}function Je(te){if(ft(te))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ht(te)),Oe(te)}var gt=A.ReactCurrentOwner,It={key:!0,ref:!0,__self:!0,__source:!0},Et,Dt;function Xt(te){if(Ue.call(te,"ref")){var ye=Object.getOwnPropertyDescriptor(te,"ref").get;if(ye&&ye.isReactWarning)return!1}return te.ref!==void 0}function Wt(te){if(Ue.call(te,"key")){var ye=Object.getOwnPropertyDescriptor(te,"key").get;if(ye&&ye.isReactWarning)return!1}return te.key!==void 0}function hr(te,ye){typeof te.ref=="string"&>.current}function dr(te,ye){{var Be=function(){Et||(Et=!0,R("%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)",ye))};Be.isReactWarning=!0,Object.defineProperty(te,"key",{get:Be,configurable:!0})}}function cr(te,ye){{var Be=function(){Dt||(Dt=!0,R("%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)",ye))};Be.isReactWarning=!0,Object.defineProperty(te,"ref",{get:Be,configurable:!0})}}var Te=function(te,ye,Be,At,Ft,Ot,er){var Qt={$$typeof:e,type:te,key:ye,ref:Be,props:er,_owner:Ot};return Qt._store={},Object.defineProperty(Qt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Qt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:At}),Object.defineProperty(Qt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ft}),Object.freeze&&(Object.freeze(Qt.props),Object.freeze(Qt)),Qt};function ue(te,ye,Be,At,Ft){{var Ot,er={},Qt=null,kt=null;Be!==void 0&&(Je(Be),Qt=""+Be),Wt(ye)&&(Je(ye.key),Qt=""+ye.key),Xt(ye)&&(kt=ye.ref,hr(ye,Ft));for(Ot in ye)Ue.call(ye,Ot)&&!It.hasOwnProperty(Ot)&&(er[Ot]=ye[Ot]);if(te&&te.defaultProps){var be=te.defaultProps;for(Ot in be)er[Ot]===void 0&&(er[Ot]=be[Ot])}if(Qt||kt){var nt=typeof te=="function"?te.displayName||te.name||"Unknown":te;Qt&&dr(er,nt),kt&&cr(er,nt)}return Te(te,Qt,kt,Ft,At,gt.current,er)}}var at=A.ReactCurrentOwner,ze=A.ReactDebugCurrentFrame;function vt(te){if(te){var ye=te._owner,Be=it(te.type,te._source,ye?ye.type:null);ze.setExtraStackFrame(Be)}else ze.setExtraStackFrame(null)}var _t;_t=!1;function Tt(te){return typeof te=="object"&&te!==null&&te.$$typeof===e}function Ut(){{if(at.current){var te=V(at.current.type);if(te)return`
|
23
23
|
|
24
|
-
Check the render method of \``+te+"`."}return""}}function Ge(te){return""}var
|
24
|
+
Check the render method of \``+te+"`."}return""}}function Ge(te){return""}var st={};function ct(te){{var ye=Ut();if(!ye){var Be=typeof te=="string"?te:te.displayName||te.name;Be&&(ye=`
|
25
25
|
|
26
|
-
Check the top-level render call using <`+Be+">.")}return ye}}function xt(te,ye){{if(!te._store||te._store.validated||te.key!=null)return;te._store.validated=!0;var Be=ct(ye);if(
|
26
|
+
Check the top-level render call using <`+Be+">.")}return ye}}function xt(te,ye){{if(!te._store||te._store.validated||te.key!=null)return;te._store.validated=!0;var Be=ct(ye);if(st[Be])return;st[Be]=!0;var At="";te&&te._owner&&te._owner!==at.current&&(At=" It was passed a child from "+V(te._owner.type)+"."),vt(te),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Be,At),vt(null)}}function Nt(te,ye){{if(typeof te!="object")return;if(Xe(te))for(var Be=0;Be<te.length;Be++){var At=te[Be];Tt(At)&&xt(At,ye)}else if(Tt(te))te._store&&(te._store.validated=!0);else if(te){var Ft=_(te);if(typeof Ft=="function"&&Ft!==te.entries)for(var Ot=Ft.call(te),er;!(er=Ot.next()).done;)Tt(er.value)&&xt(er.value,ye)}}}function Bt(te){{var ye=te.type;if(ye==null||typeof ye=="string")return;var Be;if(typeof ye=="function")Be=ye.propTypes;else if(typeof ye=="object"&&(ye.$$typeof===d||ye.$$typeof===m))Be=ye.propTypes;else return;if(Be){var At=V(ye);Mt(Be,te.props,"prop",At,te)}else if(ye.PropTypes!==void 0&&!_t){_t=!0;var Ft=V(ye);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ft||"Unknown")}typeof ye.getDefaultProps=="function"&&!ye.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function qt(te){{for(var ye=Object.keys(te.props),Be=0;Be<ye.length;Be++){var At=ye[Be];if(At!=="children"&&At!=="key"){vt(te),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",At),vt(null);break}}te.ref!==null&&(vt(te),R("Invalid attribute `ref` supplied to `React.Fragment`."),vt(null))}}var Yt={};function ir(te,ye,Be,At,Ft,Ot){{var er=ge(te);if(!er){var Qt="";(te===void 0||typeof te=="object"&&te!==null&&Object.keys(te).length===0)&&(Qt+=" 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 kt=Ge();kt?Qt+=kt:Qt+=Ut();var be;te===null?be="null":Xe(te)?be="array":te!==void 0&&te.$$typeof===e?(be="<"+(V(te.type)||"Unknown")+" />",Qt=" Did you accidentally export a JSX literal instead of a component?"):be=typeof te,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",be,Qt)}var nt=ue(te,ye,Be,Ft,Ot);if(nt==null)return nt;if(er){var yt=ye.children;if(yt!==void 0)if(At)if(Xe(yt)){for(var yr=0;yr<yt.length;yr++)Nt(yt[yr],te);Object.freeze&&Object.freeze(yt)}else R("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 Nt(yt,te)}if(Ue.call(ye,"key")){var Br=V(te),lr=Object.keys(ye).filter(function(on){return on!=="key"}),br=lr.length>0?"{key: someKey, "+lr.join(": ..., ")+": ...}":"{key: someKey}";if(!Yt[Br+br]){var en=lr.length>0?"{"+lr.join(": ..., ")+": ...}":"{}";R(`A props object containing a "key" prop is being spread into JSX:
|
27
27
|
let props = %s;
|
28
28
|
<%s {...props} />
|
29
29
|
React keys must be passed directly to JSX without using spread:
|
@@ -35,7 +35,7 @@ React keys must be passed directly to JSX without using spread:
|
|
35
35
|
* Released under MIT license <https://lodash.com/license>
|
36
36
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
37
37
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
38
|
-
*/var tT=Qf.exports,Y0;function rT(){return Y0||(Y0=1,function(r,e){(function(){var t,n="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",c="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",h=500,g="__lodash_placeholder__",m=1,p=2,v=4,w=1,T=2,_=1,A=2,R=4,D=8,I=16,F=32,B=64,H=128,j=256,G=512,ge=30,P="...",q=800,V=16,Q=1,ie=2,se=3,ae=1/0,le=9007199254740991,fe=17976931348623157e292,ee=NaN,ne=4294967295,ce=ne-1,xe=ne>>>1,Me=[["ary",H],["bind",_],["bindKey",A],["curry",D],["curryRight",I],["flip",G],["partial",F],["partialRight",B],["rearg",j]],oe="[object Arguments]",Se="[object Array]",Le="[object AsyncFunction]",We="[object Boolean]",Ve="[object Date]",we="[object DOMException]",_e="[object Error]",Ae="[object Function]",Ie="[object GeneratorFunction]",je="[object Map]",it="[object Number]",Ue="[object Null]",tt="[object Object]",lt="[object Promise]",bt="[object Proxy]",Mt="[object RegExp]",Qe="[object Set]",Xe="[object String]",ht="[object Symbol]",ft="[object Undefined]",Oe="[object WeakMap]",Je="[object WeakSet]",gt="[object ArrayBuffer]",It="[object DataView]",Et="[object Float32Array]",Dt="[object Float64Array]",Xt="[object Int8Array]",Wt="[object Int16Array]",hr="[object Int32Array]",dr="[object Uint8Array]",cr="[object Uint8ClampedArray]",Te="[object Uint16Array]",ue="[object Uint32Array]",st=/\b__p \+= '';/g,ze=/\b(__p \+=) '' \+/g,vt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,_t=/&(?:amp|lt|gt|quot|#39);/g,Tt=/[&<>"']/g,Ut=RegExp(_t.source),Ge=RegExp(Tt.source),at=/<%-([\s\S]+?)%>/g,ct=/<%([\s\S]+?)%>/g,xt=/<%=([\s\S]+?)%>/g,Nt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bt=/^\w*$/,qt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Yt=/[\\^$.*+?()[\]{}|]/g,ir=RegExp(Yt.source),jt=/^\s+/,xr=/\s/,jr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ze=/\{\n\/\* \[wrapped with (.+)\] \*/,te=/,? & /,ye=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Be=/[()=,{}\[\]\/\s]/,At=/\\(\\)?/g,Ft=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ot=/\w*$/,er=/^[-+]0x[0-9a-f]+$/i,Qt=/^0b[01]+$/i,kt=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,nt=/^(?:0|[1-9]\d*)$/,yt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,yr=/($^)/,Br=/['\n\r\u2028\u2029\\]/g,lr="\\ud800-\\udfff",br="\\u0300-\\u036f",en="\\ufe20-\\ufe2f",on="\\u20d0-\\u20ff",Pn=br+en+on,zr="\\u2700-\\u27bf",tn="a-z\\xdf-\\xf6\\xf8-\\xff",Tn="\\xac\\xb1\\xd7\\xf7",Bn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ao="\\u2000-\\u206f",No=" \\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",Po="A-Z\\xc0-\\xd6\\xd8-\\xde",jn="\\ufe0e\\ufe0f",Fn=Tn+Bn+Ao+No,Cn="['’]",oo="["+lr+"]",mn="["+Fn+"]",_n="["+Pn+"]",k="\\d+",$="["+zr+"]",X="["+tn+"]",he="[^"+lr+Fn+k+zr+tn+Po+"]",He="\\ud83c[\\udffb-\\udfff]",Ne="(?:"+_n+"|"+He+")",et="[^"+lr+"]",St="(?:\\ud83c[\\udde6-\\uddff]){2}",Ht="[\\ud800-\\udbff][\\udc00-\\udfff]",Gt="["+Po+"]",Vt="\\u200d",Rr="(?:"+X+"|"+he+")",sn="(?:"+Gt+"|"+he+")",Rn="(?:"+Cn+"(?:d|ll|m|re|s|t|ve))?",kn="(?:"+Cn+"(?:D|LL|M|RE|S|T|VE))?",ho=Ne+"?",Zn="["+jn+"]?",Bo="(?:"+Vt+"(?:"+[et,St,Ht].join("|")+")"+Zn+ho+")*",un="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Eo="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Kn=Zn+ho+Bo,io="(?:"+[$,St,Ht].join("|")+")"+Kn,Fi="(?:"+[et+_n+"?",_n,St,Ht,oo].join("|")+")",wi=RegExp(Cn,"g"),Ci=RegExp(_n,"g"),Hn=RegExp(He+"(?="+He+")|"+Fi+Kn,"g"),ji=RegExp([Gt+"?"+X+"+"+Rn+"(?="+[mn,Gt,"$"].join("|")+")",sn+"+"+kn+"(?="+[mn,Gt+Rr,"$"].join("|")+")",Gt+"?"+Rr+"+"+Rn,Gt+"+"+kn,Eo,un,k,io].join("|"),"g"),so=RegExp("["+Vt+lr+Pn+jn+"]"),ao=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,oi=["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"],Hr=-1,Ir={};Ir[Et]=Ir[Dt]=Ir[Xt]=Ir[Wt]=Ir[hr]=Ir[dr]=Ir[cr]=Ir[Te]=Ir[ue]=!0,Ir[oe]=Ir[Se]=Ir[gt]=Ir[We]=Ir[It]=Ir[Ve]=Ir[_e]=Ir[Ae]=Ir[je]=Ir[it]=Ir[tt]=Ir[Mt]=Ir[Qe]=Ir[Xe]=Ir[Oe]=!1;var Fr={};Fr[oe]=Fr[Se]=Fr[gt]=Fr[It]=Fr[We]=Fr[Ve]=Fr[Et]=Fr[Dt]=Fr[Xt]=Fr[Wt]=Fr[hr]=Fr[je]=Fr[it]=Fr[tt]=Fr[Mt]=Fr[Qe]=Fr[Xe]=Fr[ht]=Fr[dr]=Fr[cr]=Fr[Te]=Fr[ue]=!0,Fr[_e]=Fr[Ae]=Fr[Oe]=!1;var O={À:"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"},J={"&":"&","<":"<",">":">",'"':""","'":"'"},Ce={"&":"&","<":"<",">":">",""":'"',"'":"'"},rt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},or=parseFloat,Kt=parseInt,_r=typeof Pi=="object"&&Pi&&Pi.Object===Object&&Pi,kr=typeof self=="object"&&self&&self.Object===Object&&self,Cr=_r||kr||Function("return this")(),Mr=e&&!e.nodeType&&e,dn=Mr&&!0&&r&&!r.nodeType&&r,zn=dn&&dn.exports===Mr,rn=zn&&_r.process,Vr=function(){try{var Re=dn&&dn.require&&dn.require("util").types;return Re||rn&&rn.binding&&rn.binding("util")}catch{}}(),fn=Vr&&Vr.isArrayBuffer,po=Vr&&Vr.isDate,To=Vr&&Vr.isMap,Xn=Vr&&Vr.isRegExp,Hi=Vr&&Vr.isSet,ii=Vr&&Vr.isTypedArray;function vn(Re,ot,Ke){switch(Ke.length){case 0:return Re.call(ot);case 1:return Re.call(ot,Ke[0]);case 2:return Re.call(ot,Ke[0],Ke[1]);case 3:return Re.call(ot,Ke[0],Ke[1],Ke[2])}return Re.apply(ot,Ke)}function Ns(Re,ot,Ke,zt){for(var fr=-1,$r=Re==null?0:Re.length;++fr<$r;){var In=Re[fr];ot(zt,In,Ke(In),Re)}return zt}function Jn(Re,ot){for(var Ke=-1,zt=Re==null?0:Re.length;++Ke<zt&&ot(Re[Ke],Ke,Re)!==!1;);return Re}function Gl(Re,ot){for(var Ke=Re==null?0:Re.length;Ke--&&ot(Re[Ke],Ke,Re)!==!1;);return Re}function ll(Re,ot){for(var Ke=-1,zt=Re==null?0:Re.length;++Ke<zt;)if(!ot(Re[Ke],Ke,Re))return!1;return!0}function si(Re,ot){for(var Ke=-1,zt=Re==null?0:Re.length,fr=0,$r=[];++Ke<zt;){var In=Re[Ke];ot(In,Ke,Re)&&($r[fr++]=In)}return $r}function zi(Re,ot){var Ke=Re==null?0:Re.length;return!!Ke&&$i(Re,ot,0)>-1}function Qn(Re,ot,Ke){for(var zt=-1,fr=Re==null?0:Re.length;++zt<fr;)if(Ke(ot,Re[zt]))return!0;return!1}function an(Re,ot){for(var Ke=-1,zt=Re==null?0:Re.length,fr=Array(zt);++Ke<zt;)fr[Ke]=ot(Re[Ke],Ke,Re);return fr}function Fo(Re,ot){for(var Ke=-1,zt=ot.length,fr=Re.length;++Ke<zt;)Re[fr+Ke]=ot[Ke];return Re}function cl(Re,ot,Ke,zt){var fr=-1,$r=Re==null?0:Re.length;for(zt&&$r&&(Ke=Re[++fr]);++fr<$r;)Ke=ot(Ke,Re[fr],fr,Re);return Ke}function Yl(Re,ot,Ke,zt){var fr=Re==null?0:Re.length;for(zt&&fr&&(Ke=Re[--fr]);fr--;)Ke=ot(Ke,Re[fr],fr,Re);return Ke}function ls(Re,ot){for(var Ke=-1,zt=Re==null?0:Re.length;++Ke<zt;)if(ot(Re[Ke],Ke,Re))return!0;return!1}var Zl=M("length");function Kl(Re){return Re.split("")}function Ca(Re){return Re.match(ye)||[]}function Ps(Re,ot,Ke){var zt;return Ke(Re,function(fr,$r,In){if(ot(fr,$r,In))return zt=$r,!1}),zt}function Bs(Re,ot,Ke,zt){for(var fr=Re.length,$r=Ke+(zt?1:-1);zt?$r--:++$r<fr;)if(ot(Re[$r],$r,Re))return $r;return-1}function $i(Re,ot,Ke){return ot===ot?Sf(Re,ot,Ke):Bs(Re,Sa,Ke)}function Xl(Re,ot,Ke,zt){for(var fr=Ke-1,$r=Re.length;++fr<$r;)if(zt(Re[fr],ot))return fr;return-1}function Sa(Re){return Re!==Re}function ul(Re,ot){var Ke=Re==null?0:Re.length;return Ke?qe(Re,ot)/Ke:ee}function M(Re){return function(ot){return ot==null?t:ot[Re]}}function z(Re){return function(ot){return Re==null?t:Re[ot]}}function Y(Re,ot,Ke,zt,fr){return fr(Re,function($r,In,Qr){Ke=zt?(zt=!1,$r):ot(Ke,$r,In,Qr)}),Ke}function pe(Re,ot){var Ke=Re.length;for(Re.sort(ot);Ke--;)Re[Ke]=Re[Ke].value;return Re}function qe(Re,ot){for(var Ke,zt=-1,fr=Re.length;++zt<fr;){var $r=ot(Re[zt]);$r!==t&&(Ke=Ke===t?$r:Ke+$r)}return Ke}function Fe(Re,ot){for(var Ke=-1,zt=Array(Re);++Ke<Re;)zt[Ke]=ot(Ke);return zt}function ut(Re,ot){return an(ot,function(Ke){return[Ke,Re[Ke]]})}function Lt(Re){return Re&&Re.slice(0,nd(Re)+1).replace(jt,"")}function Zt(Re){return function(ot){return Re(ot)}}function Sr(Re,ot){return an(ot,function(Ke){return Re[Ke]})}function pr(Re,ot){return Re.has(ot)}function nn(Re,ot){for(var Ke=-1,zt=Re.length;++Ke<zt&&$i(ot,Re[Ke],0)>-1;);return Ke}function lo(Re,ot){for(var Ke=Re.length;Ke--&&$i(ot,Re[Ke],0)>-1;);return Ke}function jo(Re,ot){for(var Ke=Re.length,zt=0;Ke--;)Re[Ke]===ot&&++zt;return zt}var Ho=z(O),_a=z(J);function Jl(Re){return"\\"+rt[Re]}function Fs(Re,ot){return Re==null?t:Re[ot]}function Aa(Re){return so.test(Re)}function wf(Re){return ao.test(Re)}function eu(Re){for(var ot,Ke=[];!(ot=Re.next()).done;)Ke.push(ot.value);return Ke}function tu(Re){var ot=-1,Ke=Array(Re.size);return Re.forEach(function(zt,fr){Ke[++ot]=[fr,zt]}),Ke}function rd(Re,ot){return function(Ke){return Re(ot(Ke))}}function Ui(Re,ot){for(var Ke=-1,zt=Re.length,fr=0,$r=[];++Ke<zt;){var In=Re[Ke];(In===ot||In===g)&&(Re[Ke]=g,$r[fr++]=Ke)}return $r}function dl(Re){var ot=-1,Ke=Array(Re.size);return Re.forEach(function(zt){Ke[++ot]=zt}),Ke}function Cf(Re){var ot=-1,Ke=Array(Re.size);return Re.forEach(function(zt){Ke[++ot]=[zt,zt]}),Ke}function Sf(Re,ot,Ke){for(var zt=Ke-1,fr=Re.length;++zt<fr;)if(Re[zt]===ot)return zt;return-1}function _f(Re,ot,Ke){for(var zt=Ke+1;zt--;)if(Re[zt]===ot)return zt;return zt}function Ea(Re){return Aa(Re)?Ql(Re):Zl(Re)}function Sn(Re){return Aa(Re)?zo(Re):Kl(Re)}function nd(Re){for(var ot=Re.length;ot--&&xr.test(Re.charAt(ot)););return ot}var od=z(Ce);function Ql(Re){for(var ot=Hn.lastIndex=0;Hn.test(Re);)++ot;return ot}function zo(Re){return Re.match(Hn)||[]}function id(Re){return Re.match(ji)||[]}var ec=function Re(ot){ot=ot==null?Cr:qi.defaults(Cr.Object(),ot,qi.pick(Cr,oi));var Ke=ot.Array,zt=ot.Date,fr=ot.Error,$r=ot.Function,In=ot.Math,Qr=ot.Object,Ta=ot.RegExp,sd=ot.String,Xo=ot.TypeError,tc=Ke.prototype,Af=$r.prototype,cs=Qr.prototype,ln=ot["__core-js_shared__"],us=Af.toString,Kr=cs.hasOwnProperty,ru=0,hn=function(){var s=/[^.]+$/.exec(ln&&ln.keys&&ln.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Wi=cs.toString,nu=us.call(Qr),ou=Cr._,iu=Ta("^"+us.call(Kr).replace(Yt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ra=zn?ot.Buffer:t,Vi=ot.Symbol,fl=ot.Uint8Array,hl=Ra?Ra.allocUnsafe:t,js=rd(Qr.getPrototypeOf,Qr),ka=Qr.create,rc=cs.propertyIsEnumerable,Gi=tc.splice,nc=Vi?Vi.isConcatSpreadable:t,ai=Vi?Vi.iterator:t,Yi=Vi?Vi.toStringTag:t,ds=function(){try{var s=Iu(Qr,"defineProperty");return s({},"",{}),s}catch{}}(),Ef=ot.clearTimeout!==Cr.clearTimeout&&ot.clearTimeout,pl=zt&&zt.now!==Cr.Date.now&&zt.now,ad=ot.setTimeout!==Cr.setTimeout&&ot.setTimeout,Ia=In.ceil,Hs=In.floor,Ma=Qr.getOwnPropertySymbols,oc=Ra?Ra.isBuffer:t,La=ot.isFinite,gl=tc.join,ld=rd(Qr.keys,Qr),yn=In.max,$n=In.min,fs=zt.now,su=ot.parseInt,hs=In.random,ic=tc.reverse,Si=Iu(ot,"DataView"),ps=Iu(ot,"Map"),Da=Iu(ot,"Promise"),_i=Iu(ot,"Set"),Zi=Iu(ot,"WeakMap"),Oa=Iu(Qr,"create"),ml=Zi&&new Zi,zs={},gs=Mu(Si),au=Mu(ps),Tf=Mu(Da),cd=Mu(_i),Na=Mu(Zi),ms=Vi?Vi.prototype:t,$s=ms?ms.valueOf:t,vl=ms?ms.toString:t;function Z(s){if(Gn(s)&&!Tr(s)&&!(s instanceof Er)){if(s instanceof co)return s;if(Kr.call(s,"__wrapped__"))return u0(s)}return new co(s)}var Ki=function(){function s(){}return function(u){if(!Un(u))return{};if(ka)return ka(u);s.prototype=u;var x=new s;return s.prototype=t,x}}();function Xi(){}function co(s,u){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=t}Z.templateSettings={escape:at,evaluate:ct,interpolate:xt,variable:"",imports:{_:Z}},Z.prototype=Xi.prototype,Z.prototype.constructor=Z,co.prototype=Ki(Xi.prototype),co.prototype.constructor=co;function Er(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ne,this.__views__=[]}function sc(){var s=new Er(this.__wrapped__);return s.__actions__=xo(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=xo(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=xo(this.__views__),s}function yl(){if(this.__filtered__){var s=new Er(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function ac(){var s=this.__wrapped__.value(),u=this.__dir__,x=Tr(s),L=u<0,W=x?s.length:0,re=CS(0,W,this.__views__),ve=re.start,Ee=re.end,De=Ee-ve,pt=L?Ee:ve-1,mt=this.__iteratees__,Rt=mt.length,$t=0,sr=$n(De,this.__takeCount__);if(!x||!L&&W==De&&sr==De)return Ad(s,this.__actions__);var mr=[];e:for(;De--&&$t<sr;){pt+=u;for(var Nr=-1,vr=s[pt];++Nr<Rt;){var qr=mt[Nr],Yr=qr.iteratee,rs=qr.type,pi=Yr(vr);if(rs==ie)vr=pi;else if(!pi){if(rs==Q)continue e;break e}}mr[$t++]=vr}return mr}Er.prototype=Ki(Xi.prototype),Er.prototype.constructor=Er;function Ai(s){var u=-1,x=s==null?0:s.length;for(this.clear();++u<x;){var L=s[u];this.set(L[0],L[1])}}function lu(){this.__data__=Oa?Oa(null):{},this.size=0}function ud(s){var u=this.has(s)&&delete this.__data__[s];return this.size-=u?1:0,u}function dd(s){var u=this.__data__;if(Oa){var x=u[s];return x===d?t:x}return Kr.call(u,s)?u[s]:t}function fd(s){var u=this.__data__;return Oa?u[s]!==t:Kr.call(u,s)}function Rf(s,u){var x=this.__data__;return this.size+=this.has(s)?0:1,x[s]=Oa&&u===t?d:u,this}Ai.prototype.clear=lu,Ai.prototype.delete=ud,Ai.prototype.get=dd,Ai.prototype.has=fd,Ai.prototype.set=Rf;function Ei(s){var u=-1,x=s==null?0:s.length;for(this.clear();++u<x;){var L=s[u];this.set(L[0],L[1])}}function kf(){this.__data__=[],this.size=0}function If(s){var u=this.__data__,x=li(u,s);if(x<0)return!1;var L=u.length-1;return x==L?u.pop():Gi.call(u,x,1),--this.size,!0}function cu(s){var u=this.__data__,x=li(u,s);return x<0?t:u[x][1]}function bl(s){return li(this.__data__,s)>-1}function Mf(s,u){var x=this.__data__,L=li(x,s);return L<0?(++this.size,x.push([s,u])):x[L][1]=u,this}Ei.prototype.clear=kf,Ei.prototype.delete=If,Ei.prototype.get=cu,Ei.prototype.has=bl,Ei.prototype.set=Mf;function Ji(s){var u=-1,x=s==null?0:s.length;for(this.clear();++u<x;){var L=s[u];this.set(L[0],L[1])}}function uu(){this.size=0,this.__data__={hash:new Ai,map:new(ps||Ei),string:new Ai}}function lc(s){var u=zh(this,s).delete(s);return this.size-=u?1:0,u}function Lf(s){return zh(this,s).get(s)}function Df(s){return zh(this,s).has(s)}function Of(s,u){var x=zh(this,s),L=x.size;return x.set(s,u),this.size+=x.size==L?0:1,this}Ji.prototype.clear=uu,Ji.prototype.delete=lc,Ji.prototype.get=Lf,Ji.prototype.has=Df,Ji.prototype.set=Of;function go(s){var u=-1,x=s==null?0:s.length;for(this.__data__=new Ji;++u<x;)this.add(s[u])}function du(s){return this.__data__.set(s,d),this}function cc(s){return this.__data__.has(s)}go.prototype.add=go.prototype.push=du,go.prototype.has=cc;function Or(s){var u=this.__data__=new Ei(s);this.size=u.size}function $o(){this.__data__=new Ei,this.size=0}function Pa(s){var u=this.__data__,x=u.delete(s);return this.size=u.size,x}function Us(s){return this.__data__.get(s)}function Ur(s){return this.__data__.has(s)}function vs(s,u){var x=this.__data__;if(x instanceof Ei){var L=x.__data__;if(!ps||L.length<o-1)return L.push([s,u]),this.size=++x.size,this;x=this.__data__=new Ji(L)}return x.set(s,u),this.size=x.size,this}Or.prototype.clear=$o,Or.prototype.delete=Pa,Or.prototype.get=Us,Or.prototype.has=Ur,Or.prototype.set=vs;function xl(s,u){var x=Tr(s),L=!x&&Lu(s),W=!x&&!L&&Ec(s),re=!x&&!L&&!W&&Ld(s),ve=x||L||W||re,Ee=ve?Fe(s.length,sd):[],De=Ee.length;for(var pt in s)(u||Kr.call(s,pt))&&!(ve&&(pt=="length"||W&&(pt=="offset"||pt=="parent")||re&&(pt=="buffer"||pt=="byteLength"||pt=="byteOffset")||Ml(pt,De)))&&Ee.push(pt);return Ee}function Ro(s){var u=s.length;return u?s[Ks(0,u-1)]:t}function Uo(s,u){return $h(xo(s),Ws(u,0,s.length))}function Ti(s){return $h(xo(s))}function fu(s,u,x){(x!==t&&!ta(s[u],x)||x===t&&!(u in s))&&qo(s,u,x)}function mo(s,u,x){var L=s[u];(!(Kr.call(s,u)&&ta(L,x))||x===t&&!(u in s))&&qo(s,u,x)}function li(s,u){for(var x=s.length;x--;)if(ta(s[x][0],u))return x;return-1}function qs(s,u,x,L){return ys(s,function(W,re,ve){u(L,W,x(W),ve)}),L}function hd(s,u){return s&&Jo(u,Io(u),s)}function hu(s,u){return s&&Jo(u,Li(u),s)}function qo(s,u,x){u=="__proto__"&&ds?ds(s,u,{configurable:!0,enumerable:!0,value:x,writable:!0}):s[u]=x}function pu(s,u){for(var x=-1,L=u.length,W=Ke(L),re=s==null;++x<L;)W[x]=re?t:zg(s,u[x]);return W}function Ws(s,u,x){return s===s&&(x!==t&&(s=s<=x?s:x),u!==t&&(s=s>=u?s:u)),s}function vo(s,u,x,L,W,re){var ve,Ee=u&m,De=u&p,pt=u&v;if(x&&(ve=W?x(s,L,W,re):x(s)),ve!==t)return ve;if(!Un(s))return s;var mt=Tr(s);if(mt){if(ve=_S(s),!Ee)return xo(s,ve)}else{var Rt=Qo(s),$t=Rt==Ae||Rt==Ie;if(Ec(s))return Ss(s,Ee);if(Rt==tt||Rt==oe||$t&&!W){if(ve=De||$t?{}:t0(s),!Ee)return De?Bf(s,hu(ve,s)):kd(s,hd(ve,s))}else{if(!Fr[Rt])return W?s:{};ve=AS(s,Rt,Ee)}}re||(re=new Or);var sr=re.get(s);if(sr)return sr;re.set(s,ve),I0(s)?s.forEach(function(vr){ve.add(vo(vr,u,x,vr,s,re))}):R0(s)&&s.forEach(function(vr,qr){ve.set(qr,vo(vr,u,x,qr,s,re))});var mr=pt?De?Tg:Eg:De?Li:Io,Nr=mt?t:mr(s);return Jn(Nr||s,function(vr,qr){Nr&&(qr=vr,vr=s[qr]),mo(ve,qr,vo(vr,u,x,qr,s,re))}),ve}function gu(s){var u=Io(s);return function(x){return mu(x,s,u)}}function mu(s,u,x){var L=x.length;if(s==null)return!L;for(s=Qr(s);L--;){var W=x[L],re=u[W],ve=s[W];if(ve===t&&!(W in s)||!re(ve))return!1}return!0}function vu(s,u,x){if(typeof s!="function")throw new Xo(a);return jf(function(){s.apply(t,x)},u)}function Vs(s,u,x,L){var W=-1,re=zi,ve=!0,Ee=s.length,De=[],pt=u.length;if(!Ee)return De;x&&(u=an(u,Zt(x))),L?(re=Qn,ve=!1):u.length>=o&&(re=pr,ve=!1,u=new go(u));e:for(;++W<Ee;){var mt=s[W],Rt=x==null?mt:x(mt);if(mt=L||mt!==0?mt:0,ve&&Rt===Rt){for(var $t=pt;$t--;)if(u[$t]===Rt)continue e;De.push(mt)}else re(u,Rt,L)||De.push(mt)}return De}var ys=b(Wo),yu=b(dc,!0);function pd(s,u){var x=!0;return ys(s,function(L,W,re){return x=!!u(L,W,re),x}),x}function uc(s,u,x){for(var L=-1,W=s.length;++L<W;){var re=s[L],ve=u(re);if(ve!=null&&(Ee===t?ve===ve&&!ts(ve):x(ve,Ee)))var Ee=ve,De=re}return De}function Nf(s,u,x,L){var W=s.length;for(x=Lr(x),x<0&&(x=-x>W?0:W+x),L=L===t||L>W?W:Lr(L),L<0&&(L+=W),L=x>L?0:L0(L);x<L;)s[x++]=u;return s}function gd(s,u){var x=[];return ys(s,function(L,W,re){u(L,W,re)&&x.push(L)}),x}function eo(s,u,x,L,W){var re=-1,ve=s.length;for(x||(x=TS),W||(W=[]);++re<ve;){var Ee=s[re];u>0&&x(Ee)?u>1?eo(Ee,u-1,x,L,W):Fo(W,Ee):L||(W[W.length]=Ee)}return W}var bu=l(),md=l(!0);function Wo(s,u){return s&&bu(s,u,Io)}function dc(s,u){return s&&md(s,u,Io)}function Ba(s,u){return si(u,function(x){return Ll(s[x])})}function bs(s,u){u=Vo(u,s);for(var x=0,L=u.length;s!=null&&x<L;)s=s[Va(u[x++])];return x&&x==L?s:t}function wl(s,u,x){var L=u(s);return Tr(s)?L:Fo(L,x(s))}function Wn(s){return s==null?s===t?ft:Ue:Yi&&Yi in Qr(s)?wS(s):OS(s)}function Gs(s,u){return s>u}function fc(s,u){return s!=null&&Kr.call(s,u)}function Fa(s,u){return s!=null&&u in Qr(s)}function hc(s,u,x){return s>=$n(u,x)&&s<yn(u,x)}function ja(s,u,x){for(var L=x?Qn:zi,W=s[0].length,re=s.length,ve=re,Ee=Ke(re),De=1/0,pt=[];ve--;){var mt=s[ve];ve&&u&&(mt=an(mt,Zt(u))),De=$n(mt.length,De),Ee[ve]=!x&&(u||W>=120&&mt.length>=120)?new go(ve&&mt):t}mt=s[0];var Rt=-1,$t=Ee[0];e:for(;++Rt<W&&pt.length<De;){var sr=mt[Rt],mr=u?u(sr):sr;if(sr=x||sr!==0?sr:0,!($t?pr($t,mr):L(pt,mr,x))){for(ve=re;--ve;){var Nr=Ee[ve];if(!(Nr?pr(Nr,mr):L(s[ve],mr,x)))continue e}$t&&$t.push(mr),pt.push(sr)}}return pt}function pc(s,u,x,L){return Wo(s,function(W,re,ve){u(L,x(W),re,ve)}),L}function Ri(s,u,x){u=Vo(u,s),s=i0(s,u);var L=s==null?s:s[Va(As(u))];return L==null?t:vn(L,s,x)}function gc(s){return Gn(s)&&Wn(s)==oe}function Ys(s){return Gn(s)&&Wn(s)==gt}function vd(s){return Gn(s)&&Wn(s)==Ve}function Cl(s,u,x,L,W){return s===u?!0:s==null||u==null||!Gn(s)&&!Gn(u)?s!==s&&u!==u:Ha(s,u,x,L,Cl,W)}function Ha(s,u,x,L,W,re){var ve=Tr(s),Ee=Tr(u),De=ve?Se:Qo(s),pt=Ee?Se:Qo(u);De=De==oe?tt:De,pt=pt==oe?tt:pt;var mt=De==tt,Rt=pt==tt,$t=De==pt;if($t&&Ec(s)){if(!Ec(u))return!1;ve=!0,mt=!1}if($t&&!mt)return re||(re=new Or),ve||Ld(s)?Jv(s,u,x,L,W,re):bS(s,u,De,x,L,W,re);if(!(x&w)){var sr=mt&&Kr.call(s,"__wrapped__"),mr=Rt&&Kr.call(u,"__wrapped__");if(sr||mr){var Nr=sr?s.value():s,vr=mr?u.value():u;return re||(re=new Or),W(Nr,vr,x,L,re)}}return $t?(re||(re=new Or),xS(s,u,x,L,W,re)):!1}function za(s){return Gn(s)&&Qo(s)==je}function xu(s,u,x,L){var W=x.length,re=W,ve=!L;if(s==null)return!re;for(s=Qr(s);W--;){var Ee=x[W];if(ve&&Ee[2]?Ee[1]!==s[Ee[0]]:!(Ee[0]in s))return!1}for(;++W<re;){Ee=x[W];var De=Ee[0],pt=s[De],mt=Ee[1];if(ve&&Ee[2]){if(pt===t&&!(De in s))return!1}else{var Rt=new Or;if(L)var $t=L(pt,mt,De,s,u,Rt);if(!($t===t?Cl(mt,pt,w|T,L,Rt):$t))return!1}}return!0}function yd(s){if(!Un(s)||kS(s))return!1;var u=Ll(s)?iu:kt;return u.test(Mu(s))}function Zs(s){return Gn(s)&&Wn(s)==Mt}function mc(s){return Gn(s)&&Qo(s)==Qe}function Qi(s){return Gn(s)&&Yh(s.length)&&!!Ir[Wn(s)]}function vc(s){return typeof s=="function"?s:s==null?Di:typeof s=="object"?Tr(s)?_l(s[0],s[1]):ki(s):U0(s)}function es(s){if(!Ff(s))return ld(s);var u=[];for(var x in Qr(s))Kr.call(s,x)&&x!="constructor"&&u.push(x);return u}function Sl(s){if(!Un(s))return DS(s);var u=Ff(s),x=[];for(var L in s)L=="constructor"&&(u||!Kr.call(s,L))||x.push(L);return x}function ci(s,u){return s<u}function ui(s,u){var x=-1,L=Mi(s)?Ke(s.length):[];return ys(s,function(W,re,ve){L[++x]=u(W,re,ve)}),L}function ki(s){var u=kg(s);return u.length==1&&u[0][2]?n0(u[0][0],u[0][1]):function(x){return x===s||xu(x,s,u)}}function _l(s,u){return Mg(s)&&r0(u)?n0(Va(s),u):function(x){var L=zg(x,s);return L===t&&L===u?$g(x,s):Cl(u,L,w|T)}}function xs(s,u,x,L,W){s!==u&&bu(u,function(re,ve){if(W||(W=new Or),Un(re))di(s,u,ve,x,xs,L,W);else{var Ee=L?L(Dg(s,ve),re,ve+"",s,u,W):t;Ee===t&&(Ee=re),fu(s,ve,Ee)}},Li)}function di(s,u,x,L,W,re,ve){var Ee=Dg(s,x),De=Dg(u,x),pt=ve.get(De);if(pt){fu(s,x,pt);return}var mt=re?re(Ee,De,x+"",s,u,ve):t,Rt=mt===t;if(Rt){var $t=Tr(De),sr=!$t&&Ec(De),mr=!$t&&!sr&&Ld(De);mt=De,$t||sr||mr?Tr(Ee)?mt=Ee:ro(Ee)?mt=xo(Ee):sr?(Rt=!1,mt=Ss(De,!0)):mr?(Rt=!1,mt=Rl(De,!0)):mt=[]:Hf(De)||Lu(De)?(mt=Ee,Lu(Ee)?mt=D0(Ee):(!Un(Ee)||Ll(Ee))&&(mt=t0(De))):Rt=!1}Rt&&(ve.set(De,mt),W(mt,De,L,re,ve),ve.delete(De)),fu(s,x,mt)}function $a(s,u){var x=s.length;if(x)return u+=u<0?x:0,Ml(u,x)?s[u]:t}function yc(s,u,x){u.length?u=an(u,function(re){return Tr(re)?function(ve){return bs(ve,re.length===1?re[0]:re)}:re}):u=[Di];var L=-1;u=an(u,Zt(gr()));var W=ui(s,function(re,ve,Ee){var De=an(u,function(pt){return pt(re)});return{criteria:De,index:++L,value:re}});return pe(W,function(re,ve){return Ac(re,ve,x)})}function Al(s,u){return Ua(s,u,function(x,L){return $g(s,L)})}function Ua(s,u,x){for(var L=-1,W=u.length,re={};++L<W;){var ve=u[L],Ee=bs(s,ve);x(Ee,ve)&&Xs(re,Vo(ve,s),Ee)}return re}function bd(s){return function(u){return bs(u,s)}}function wu(s,u,x,L){var W=L?Xl:$i,re=-1,ve=u.length,Ee=s;for(s===u&&(u=xo(u)),x&&(Ee=an(s,Zt(x)));++re<ve;)for(var De=0,pt=u[re],mt=x?x(pt):pt;(De=W(Ee,mt,De,L))>-1;)Ee!==s&&Gi.call(Ee,De,1),Gi.call(s,De,1);return s}function Cu(s,u){for(var x=s?u.length:0,L=x-1;x--;){var W=u[x];if(x==L||W!==re){var re=W;Ml(W)?Gi.call(s,W,1):bo(s,W)}}return s}function Ks(s,u){return s+Hs(hs()*(u-s+1))}function Su(s,u,x,L){for(var W=-1,re=yn(Ia((u-s)/(x||1)),0),ve=Ke(re);re--;)ve[L?re:++W]=s,s+=x;return ve}function bc(s,u){var x="";if(!s||u<1||u>le)return x;do u%2&&(x+=s),u=Hs(u/2),u&&(s+=s);while(u);return x}function Ar(s,u){return Og(o0(s,u,Di),s+"")}function El(s){return Ro(Dd(s))}function _u(s,u){var x=Dd(s);return $h(x,Ws(u,0,x.length))}function Xs(s,u,x,L){if(!Un(s))return s;u=Vo(u,s);for(var W=-1,re=u.length,ve=re-1,Ee=s;Ee!=null&&++W<re;){var De=Va(u[W]),pt=x;if(De==="__proto__"||De==="constructor"||De==="prototype")return s;if(W!=ve){var mt=Ee[De];pt=L?L(mt,De,Ee):t,pt===t&&(pt=Un(mt)?mt:Ml(u[W+1])?[]:{})}mo(Ee,De,pt),Ee=Ee[De]}return s}var xc=ml?function(s,u){return ml.set(s,u),s}:Di,xd=ds?function(s,u){return ds(s,"toString",{configurable:!0,enumerable:!1,value:qg(u),writable:!0})}:Di;function wd(s){return $h(Dd(s))}function ko(s,u,x){var L=-1,W=s.length;u<0&&(u=-u>W?0:W+u),x=x>W?W:x,x<0&&(x+=W),W=u>x?0:x-u>>>0,u>>>=0;for(var re=Ke(W);++L<W;)re[L]=s[L+u];return re}function Cd(s,u){var x;return ys(s,function(L,W,re){return x=u(L,W,re),!x}),!!x}function wc(s,u,x){var L=0,W=s==null?L:s.length;if(typeof u=="number"&&u===u&&W<=xe){for(;L<W;){var re=L+W>>>1,ve=s[re];ve!==null&&!ts(ve)&&(x?ve<=u:ve<u)?L=re+1:W=re}return W}return Au(s,u,Di,x)}function Au(s,u,x,L){var W=0,re=s==null?0:s.length;if(re===0)return 0;u=x(u);for(var ve=u!==u,Ee=u===null,De=ts(u),pt=u===t;W<re;){var mt=Hs((W+re)/2),Rt=x(s[mt]),$t=Rt!==t,sr=Rt===null,mr=Rt===Rt,Nr=ts(Rt);if(ve)var vr=L||mr;else pt?vr=mr&&(L||$t):Ee?vr=mr&&$t&&(L||!sr):De?vr=mr&&$t&&!sr&&(L||!Nr):sr||Nr?vr=!1:vr=L?Rt<=u:Rt<u;vr?W=mt+1:re=mt}return $n(re,ce)}function Eu(s,u){for(var x=-1,L=s.length,W=0,re=[];++x<L;){var ve=s[x],Ee=u?u(ve):ve;if(!x||!ta(Ee,De)){var De=Ee;re[W++]=ve===0?0:ve}}return re}function Sd(s){return typeof s=="number"?s:ts(s)?ee:+s}function yo(s){if(typeof s=="string")return s;if(Tr(s))return an(s,yo)+"";if(ts(s))return vl?vl.call(s):"";var u=s+"";return u=="0"&&1/s==-1/0?"-0":u}function ws(s,u,x){var L=-1,W=zi,re=s.length,ve=!0,Ee=[],De=Ee;if(x)ve=!1,W=Qn;else if(re>=o){var pt=u?null:Wa(s);if(pt)return dl(pt);ve=!1,W=pr,De=new go}else De=u?[]:Ee;e:for(;++L<re;){var mt=s[L],Rt=u?u(mt):mt;if(mt=x||mt!==0?mt:0,ve&&Rt===Rt){for(var $t=De.length;$t--;)if(De[$t]===Rt)continue e;u&&De.push(Rt),Ee.push(mt)}else W(De,Rt,x)||(De!==Ee&&De.push(Rt),Ee.push(mt))}return Ee}function bo(s,u){return u=Vo(u,s),s=i0(s,u),s==null||delete s[Va(As(u))]}function _d(s,u,x,L){return Xs(s,u,x(bs(s,u)),L)}function Js(s,u,x,L){for(var W=s.length,re=L?W:-1;(L?re--:++re<W)&&u(s[re],re,s););return x?ko(s,L?0:re,L?re+1:W):ko(s,L?re+1:0,L?W:re)}function Ad(s,u){var x=s;return x instanceof Er&&(x=x.value()),cl(u,function(L,W){return W.func.apply(W.thisArg,Fo([L],W.args))},x)}function to(s,u,x){var L=s.length;if(L<2)return L?ws(s[0]):[];for(var W=-1,re=Ke(L);++W<L;)for(var ve=s[W],Ee=-1;++Ee<L;)Ee!=W&&(re[W]=Vs(re[W]||ve,s[Ee],u,x));return ws(eo(re,1),u,x)}function Ed(s,u,x){for(var L=-1,W=s.length,re=u.length,ve={};++L<W;){var Ee=L<re?u[L]:t;x(ve,s[L],Ee)}return ve}function Cc(s){return ro(s)?s:[]}function Sc(s){return typeof s=="function"?s:Di}function Vo(s,u){return Tr(s)?s:Mg(s,u)?[s]:c0(pn(s))}var Td=Ar;function Cs(s,u,x){var L=s.length;return x=x===t?L:x,!u&&x>=L?s:ko(s,u,x)}var _c=Ef||function(s){return Cr.clearTimeout(s)};function Ss(s,u){if(u)return s.slice();var x=s.length,L=hl?hl(x):new s.constructor(x);return s.copy(L),L}function Qs(s){var u=new s.constructor(s.byteLength);return new fl(u).set(new fl(s)),u}function Pf(s,u){var x=u?Qs(s.buffer):s.buffer;return new s.constructor(x,s.byteOffset,s.byteLength)}function Tu(s){var u=new s.constructor(s.source,Ot.exec(s));return u.lastIndex=s.lastIndex,u}function Tl(s){return $s?Qr($s.call(s)):{}}function Rl(s,u){var x=u?Qs(s.buffer):s.buffer;return new s.constructor(x,s.byteOffset,s.length)}function Ru(s,u){if(s!==u){var x=s!==t,L=s===null,W=s===s,re=ts(s),ve=u!==t,Ee=u===null,De=u===u,pt=ts(u);if(!Ee&&!pt&&!re&&s>u||re&&ve&&De&&!Ee&&!pt||L&&ve&&De||!x&&De||!W)return 1;if(!L&&!re&&!pt&&s<u||pt&&x&&W&&!L&&!re||Ee&&x&&W||!ve&&W||!De)return-1}return 0}function Ac(s,u,x){for(var L=-1,W=s.criteria,re=u.criteria,ve=W.length,Ee=x.length;++L<ve;){var De=Ru(W[L],re[L]);if(De){if(L>=Ee)return De;var pt=x[L];return De*(pt=="desc"?-1:1)}}return s.index-u.index}function ku(s,u,x,L){for(var W=-1,re=s.length,ve=x.length,Ee=-1,De=u.length,pt=yn(re-ve,0),mt=Ke(De+pt),Rt=!L;++Ee<De;)mt[Ee]=u[Ee];for(;++W<ve;)(Rt||W<re)&&(mt[x[W]]=s[W]);for(;pt--;)mt[Ee++]=s[W++];return mt}function Rd(s,u,x,L){for(var W=-1,re=s.length,ve=-1,Ee=x.length,De=-1,pt=u.length,mt=yn(re-Ee,0),Rt=Ke(mt+pt),$t=!L;++W<mt;)Rt[W]=s[W];for(var sr=W;++De<pt;)Rt[sr+De]=u[De];for(;++ve<Ee;)($t||W<re)&&(Rt[sr+x[ve]]=s[W++]);return Rt}function xo(s,u){var x=-1,L=s.length;for(u||(u=Ke(L));++x<L;)u[x]=s[x];return u}function Jo(s,u,x,L){var W=!x;x||(x={});for(var re=-1,ve=u.length;++re<ve;){var Ee=u[re],De=L?L(x[Ee],s[Ee],Ee,x,s):t;De===t&&(De=s[Ee]),W?qo(x,Ee,De):mo(x,Ee,De)}return x}function kd(s,u){return Jo(s,Ig(s),u)}function Bf(s,u){return Jo(s,Qv(s),u)}function kl(s,u){return function(x,L){var W=Tr(x)?Ns:qs,re=u?u():{};return W(x,s,gr(L,2),re)}}function qa(s){return Ar(function(u,x){var L=-1,W=x.length,re=W>1?x[W-1]:t,ve=W>2?x[2]:t;for(re=s.length>3&&typeof re=="function"?(W--,re):t,ve&&hi(x[0],x[1],ve)&&(re=W<3?t:re,W=1),u=Qr(u);++L<W;){var Ee=x[L];Ee&&s(u,Ee,L,re)}return u})}function b(s,u){return function(x,L){if(x==null)return x;if(!Mi(x))return s(x,L);for(var W=x.length,re=u?W:-1,ve=Qr(x);(u?re--:++re<W)&&L(ve[re],re,ve)!==!1;);return x}}function l(s){return function(u,x,L){for(var W=-1,re=Qr(u),ve=L(u),Ee=ve.length;Ee--;){var De=ve[s?Ee:++W];if(x(re[De],De,re)===!1)break}return u}}function f(s,u,x){var L=u&_,W=N(s);function re(){var ve=this&&this!==Cr&&this instanceof re?W:s;return ve.apply(L?x:this,arguments)}return re}function y(s){return function(u){u=pn(u);var x=Aa(u)?Sn(u):t,L=x?x[0]:u.charAt(0),W=x?Cs(x,1).join(""):u.slice(1);return L[s]()+W}}function E(s){return function(u){return cl(z0(H0(u).replace(wi,"")),s,"")}}function N(s){return function(){var u=arguments;switch(u.length){case 0:return new s;case 1:return new s(u[0]);case 2:return new s(u[0],u[1]);case 3:return new s(u[0],u[1],u[2]);case 4:return new s(u[0],u[1],u[2],u[3]);case 5:return new s(u[0],u[1],u[2],u[3],u[4]);case 6:return new s(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new s(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var x=Ki(s.prototype),L=s.apply(x,u);return Un(L)?L:x}}function U(s,u,x){var L=N(s);function W(){for(var re=arguments.length,ve=Ke(re),Ee=re,De=Md(W);Ee--;)ve[Ee]=arguments[Ee];var pt=re<3&&ve[0]!==De&&ve[re-1]!==De?[]:Ui(ve,De);if(re-=pt.length,re<x)return _s(s,u,Pe,W.placeholder,t,ve,pt,t,t,x-re);var mt=this&&this!==Cr&&this instanceof W?L:s;return vn(mt,this,ve)}return W}function K(s){return function(u,x,L){var W=Qr(u);if(!Mi(u)){var re=gr(x,3);u=Io(u),x=function(Ee){return re(W[Ee],Ee,W)}}var ve=s(u,x,L);return ve>-1?W[re?u[ve]:ve]:t}}function me(s){return Il(function(u){var x=u.length,L=x,W=co.prototype.thru;for(s&&u.reverse();L--;){var re=u[L];if(typeof re!="function")throw new Xo(a);if(W&&!ve&&Hh(re)=="wrapper")var ve=new co([],!0)}for(L=ve?L:x;++L<x;){re=u[L];var Ee=Hh(re),De=Ee=="wrapper"?Rg(re):t;De&&Lg(De[0])&&De[1]==(H|D|F|j)&&!De[4].length&&De[9]==1?ve=ve[Hh(De[0])].apply(ve,De[3]):ve=re.length==1&&Lg(re)?ve[Ee]():ve.thru(re)}return function(){var pt=arguments,mt=pt[0];if(ve&&pt.length==1&&Tr(mt))return ve.plant(mt).value();for(var Rt=0,$t=x?u[Rt].apply(this,pt):mt;++Rt<x;)$t=u[Rt].call(this,$t);return $t}})}function Pe(s,u,x,L,W,re,ve,Ee,De,pt){var mt=u&H,Rt=u&_,$t=u&A,sr=u&(D|I),mr=u&G,Nr=$t?t:N(s);function vr(){for(var qr=arguments.length,Yr=Ke(qr),rs=qr;rs--;)Yr[rs]=arguments[rs];if(sr)var pi=Md(vr),ns=jo(Yr,pi);if(L&&(Yr=ku(Yr,L,W,sr)),re&&(Yr=Rd(Yr,re,ve,sr)),qr-=ns,sr&&qr<pt){var no=Ui(Yr,pi);return _s(s,u,Pe,vr.placeholder,x,Yr,no,Ee,De,pt-qr)}var ra=Rt?x:this,Ol=$t?ra[s]:s;return qr=Yr.length,Ee?Yr=NS(Yr,Ee):mr&&qr>1&&Yr.reverse(),mt&&De<qr&&(Yr.length=De),this&&this!==Cr&&this instanceof vr&&(Ol=Nr||N(Ol)),Ol.apply(ra,Yr)}return vr}function dt(s,u){return function(x,L){return pc(x,s,u(L),{})}}function Ct(s,u){return function(x,L){var W;if(x===t&&L===t)return u;if(x!==t&&(W=x),L!==t){if(W===t)return L;typeof x=="string"||typeof L=="string"?(x=yo(x),L=yo(L)):(x=Sd(x),L=Sd(L)),W=s(x,L)}return W}}function Pt(s){return Il(function(u){return u=an(u,Zt(gr())),Ar(function(x){var L=this;return s(u,function(W){return vn(W,L,x)})})})}function ur(s,u){u=u===t?" ":yo(u);var x=u.length;if(x<2)return x?bc(u,s):u;var L=bc(u,Ia(s/Ea(u)));return Aa(u)?Cs(Sn(L),0,s).join(""):L.slice(0,s)}function Gr(s,u,x,L){var W=u&_,re=N(s);function ve(){for(var Ee=-1,De=arguments.length,pt=-1,mt=L.length,Rt=Ke(mt+De),$t=this&&this!==Cr&&this instanceof ve?re:s;++pt<mt;)Rt[pt]=L[pt];for(;De--;)Rt[pt++]=arguments[++Ee];return vn($t,W?x:this,Rt)}return ve}function Vn(s){return function(u,x,L){return L&&typeof L!="number"&&hi(u,x,L)&&(x=L=t),u=Dl(u),x===t?(x=u,u=0):x=Dl(x),L=L===t?u<x?1:-1:Dl(L),Su(u,x,L,s)}}function Ii(s){return function(u,x){return typeof u=="string"&&typeof x=="string"||(u=Es(u),x=Es(x)),s(u,x)}}function _s(s,u,x,L,W,re,ve,Ee,De,pt){var mt=u&D,Rt=mt?ve:t,$t=mt?t:ve,sr=mt?re:t,mr=mt?t:re;u|=mt?F:B,u&=~(mt?B:F),u&R||(u&=-4);var Nr=[s,u,W,sr,Rt,mr,$t,Ee,De,pt],vr=x.apply(t,Nr);return Lg(s)&&s0(vr,Nr),vr.placeholder=L,a0(vr,s,u)}function fi(s){var u=In[s];return function(x,L){if(x=Es(x),L=L==null?0:$n(Lr(L),292),L&&La(x)){var W=(pn(x)+"e").split("e"),re=u(W[0]+"e"+(+W[1]+L));return W=(pn(re)+"e").split("e"),+(W[0]+"e"+(+W[1]-L))}return u(x)}}var Wa=_i&&1/dl(new _i([,-0]))[1]==ae?function(s){return new _i(s)}:Gg;function Id(s){return function(u){var x=Qo(u);return x==je?tu(u):x==Qe?Cf(u):ut(u,s(u))}}function ea(s,u,x,L,W,re,ve,Ee){var De=u&A;if(!De&&typeof s!="function")throw new Xo(a);var pt=L?L.length:0;if(pt||(u&=-97,L=W=t),ve=ve===t?ve:yn(Lr(ve),0),Ee=Ee===t?Ee:Lr(Ee),pt-=W?W.length:0,u&B){var mt=L,Rt=W;L=W=t}var $t=De?t:Rg(s),sr=[s,u,x,L,W,mt,Rt,re,ve,Ee];if($t&&LS(sr,$t),s=sr[0],u=sr[1],x=sr[2],L=sr[3],W=sr[4],Ee=sr[9]=sr[9]===t?De?0:s.length:yn(sr[9]-pt,0),!Ee&&u&(D|I)&&(u&=-25),!u||u==_)var mr=f(s,u,x);else u==D||u==I?mr=U(s,u,Ee):(u==F||u==(_|F))&&!W.length?mr=Gr(s,u,x,L):mr=Pe.apply(t,sr);var Nr=$t?xc:s0;return a0(Nr(mr,sr),s,u)}function Kv(s,u,x,L){return s===t||ta(s,cs[x])&&!Kr.call(L,x)?u:s}function Xv(s,u,x,L,W,re){return Un(s)&&Un(u)&&(re.set(u,s),xs(s,u,t,Xv,re),re.delete(u)),s}function yS(s){return Hf(s)?t:s}function Jv(s,u,x,L,W,re){var ve=x&w,Ee=s.length,De=u.length;if(Ee!=De&&!(ve&&De>Ee))return!1;var pt=re.get(s),mt=re.get(u);if(pt&&mt)return pt==u&&mt==s;var Rt=-1,$t=!0,sr=x&T?new go:t;for(re.set(s,u),re.set(u,s);++Rt<Ee;){var mr=s[Rt],Nr=u[Rt];if(L)var vr=ve?L(Nr,mr,Rt,u,s,re):L(mr,Nr,Rt,s,u,re);if(vr!==t){if(vr)continue;$t=!1;break}if(sr){if(!ls(u,function(qr,Yr){if(!pr(sr,Yr)&&(mr===qr||W(mr,qr,x,L,re)))return sr.push(Yr)})){$t=!1;break}}else if(!(mr===Nr||W(mr,Nr,x,L,re))){$t=!1;break}}return re.delete(s),re.delete(u),$t}function bS(s,u,x,L,W,re,ve){switch(x){case It:if(s.byteLength!=u.byteLength||s.byteOffset!=u.byteOffset)return!1;s=s.buffer,u=u.buffer;case gt:return!(s.byteLength!=u.byteLength||!re(new fl(s),new fl(u)));case We:case Ve:case it:return ta(+s,+u);case _e:return s.name==u.name&&s.message==u.message;case Mt:case Xe:return s==u+"";case je:var Ee=tu;case Qe:var De=L&w;if(Ee||(Ee=dl),s.size!=u.size&&!De)return!1;var pt=ve.get(s);if(pt)return pt==u;L|=T,ve.set(s,u);var mt=Jv(Ee(s),Ee(u),L,W,re,ve);return ve.delete(s),mt;case ht:if($s)return $s.call(s)==$s.call(u)}return!1}function xS(s,u,x,L,W,re){var ve=x&w,Ee=Eg(s),De=Ee.length,pt=Eg(u),mt=pt.length;if(De!=mt&&!ve)return!1;for(var Rt=De;Rt--;){var $t=Ee[Rt];if(!(ve?$t in u:Kr.call(u,$t)))return!1}var sr=re.get(s),mr=re.get(u);if(sr&&mr)return sr==u&&mr==s;var Nr=!0;re.set(s,u),re.set(u,s);for(var vr=ve;++Rt<De;){$t=Ee[Rt];var qr=s[$t],Yr=u[$t];if(L)var rs=ve?L(Yr,qr,$t,u,s,re):L(qr,Yr,$t,s,u,re);if(!(rs===t?qr===Yr||W(qr,Yr,x,L,re):rs)){Nr=!1;break}vr||(vr=$t=="constructor")}if(Nr&&!vr){var pi=s.constructor,ns=u.constructor;pi!=ns&&"constructor"in s&&"constructor"in u&&!(typeof pi=="function"&&pi instanceof pi&&typeof ns=="function"&&ns instanceof ns)&&(Nr=!1)}return re.delete(s),re.delete(u),Nr}function Il(s){return Og(o0(s,t,h0),s+"")}function Eg(s){return wl(s,Io,Ig)}function Tg(s){return wl(s,Li,Qv)}var Rg=ml?function(s){return ml.get(s)}:Gg;function Hh(s){for(var u=s.name+"",x=zs[u],L=Kr.call(zs,u)?x.length:0;L--;){var W=x[L],re=W.func;if(re==null||re==s)return W.name}return u}function Md(s){var u=Kr.call(Z,"placeholder")?Z:s;return u.placeholder}function gr(){var s=Z.iteratee||Wg;return s=s===Wg?vc:s,arguments.length?s(arguments[0],arguments[1]):s}function zh(s,u){var x=s.__data__;return RS(u)?x[typeof u=="string"?"string":"hash"]:x.map}function kg(s){for(var u=Io(s),x=u.length;x--;){var L=u[x],W=s[L];u[x]=[L,W,r0(W)]}return u}function Iu(s,u){var x=Fs(s,u);return yd(x)?x:t}function wS(s){var u=Kr.call(s,Yi),x=s[Yi];try{s[Yi]=t;var L=!0}catch{}var W=Wi.call(s);return L&&(u?s[Yi]=x:delete s[Yi]),W}var Ig=Ma?function(s){return s==null?[]:(s=Qr(s),si(Ma(s),function(u){return rc.call(s,u)}))}:Yg,Qv=Ma?function(s){for(var u=[];s;)Fo(u,Ig(s)),s=js(s);return u}:Yg,Qo=Wn;(Si&&Qo(new Si(new ArrayBuffer(1)))!=It||ps&&Qo(new ps)!=je||Da&&Qo(Da.resolve())!=lt||_i&&Qo(new _i)!=Qe||Zi&&Qo(new Zi)!=Oe)&&(Qo=function(s){var u=Wn(s),x=u==tt?s.constructor:t,L=x?Mu(x):"";if(L)switch(L){case gs:return It;case au:return je;case Tf:return lt;case cd:return Qe;case Na:return Oe}return u});function CS(s,u,x){for(var L=-1,W=x.length;++L<W;){var re=x[L],ve=re.size;switch(re.type){case"drop":s+=ve;break;case"dropRight":u-=ve;break;case"take":u=$n(u,s+ve);break;case"takeRight":s=yn(s,u-ve);break}}return{start:s,end:u}}function SS(s){var u=s.match(Ze);return u?u[1].split(te):[]}function e0(s,u,x){u=Vo(u,s);for(var L=-1,W=u.length,re=!1;++L<W;){var ve=Va(u[L]);if(!(re=s!=null&&x(s,ve)))break;s=s[ve]}return re||++L!=W?re:(W=s==null?0:s.length,!!W&&Yh(W)&&Ml(ve,W)&&(Tr(s)||Lu(s)))}function _S(s){var u=s.length,x=new s.constructor(u);return u&&typeof s[0]=="string"&&Kr.call(s,"index")&&(x.index=s.index,x.input=s.input),x}function t0(s){return typeof s.constructor=="function"&&!Ff(s)?Ki(js(s)):{}}function AS(s,u,x){var L=s.constructor;switch(u){case gt:return Qs(s);case We:case Ve:return new L(+s);case It:return Pf(s,x);case Et:case Dt:case Xt:case Wt:case hr:case dr:case cr:case Te:case ue:return Rl(s,x);case je:return new L;case it:case Xe:return new L(s);case Mt:return Tu(s);case Qe:return new L;case ht:return Tl(s)}}function ES(s,u){var x=u.length;if(!x)return s;var L=x-1;return u[L]=(x>1?"& ":"")+u[L],u=u.join(x>2?", ":" "),s.replace(jr,`{
|
38
|
+
*/var tT=Qf.exports,Y0;function rT(){return Y0||(Y0=1,function(r,e){(function(){var t,n="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",c="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",h=500,g="__lodash_placeholder__",m=1,p=2,v=4,w=1,T=2,_=1,A=2,R=4,D=8,I=16,F=32,B=64,H=128,j=256,G=512,ge=30,P="...",q=800,V=16,Q=1,ie=2,se=3,ae=1/0,le=9007199254740991,fe=17976931348623157e292,ee=NaN,ne=4294967295,ce=ne-1,xe=ne>>>1,Me=[["ary",H],["bind",_],["bindKey",A],["curry",D],["curryRight",I],["flip",G],["partial",F],["partialRight",B],["rearg",j]],oe="[object Arguments]",Se="[object Array]",Le="[object AsyncFunction]",We="[object Boolean]",Ve="[object Date]",we="[object DOMException]",_e="[object Error]",Ae="[object Function]",Ie="[object GeneratorFunction]",je="[object Map]",it="[object Number]",Ue="[object Null]",tt="[object Object]",lt="[object Promise]",bt="[object Proxy]",Mt="[object RegExp]",Qe="[object Set]",Xe="[object String]",ht="[object Symbol]",ft="[object Undefined]",Oe="[object WeakMap]",Je="[object WeakSet]",gt="[object ArrayBuffer]",It="[object DataView]",Et="[object Float32Array]",Dt="[object Float64Array]",Xt="[object Int8Array]",Wt="[object Int16Array]",hr="[object Int32Array]",dr="[object Uint8Array]",cr="[object Uint8ClampedArray]",Te="[object Uint16Array]",ue="[object Uint32Array]",at=/\b__p \+= '';/g,ze=/\b(__p \+=) '' \+/g,vt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,_t=/&(?:amp|lt|gt|quot|#39);/g,Tt=/[&<>"']/g,Ut=RegExp(_t.source),Ge=RegExp(Tt.source),st=/<%-([\s\S]+?)%>/g,ct=/<%([\s\S]+?)%>/g,xt=/<%=([\s\S]+?)%>/g,Nt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bt=/^\w*$/,qt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Yt=/[\\^$.*+?()[\]{}|]/g,ir=RegExp(Yt.source),jt=/^\s+/,xr=/\s/,jr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ze=/\{\n\/\* \[wrapped with (.+)\] \*/,te=/,? & /,ye=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Be=/[()=,{}\[\]\/\s]/,At=/\\(\\)?/g,Ft=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ot=/\w*$/,er=/^[-+]0x[0-9a-f]+$/i,Qt=/^0b[01]+$/i,kt=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,nt=/^(?:0|[1-9]\d*)$/,yt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,yr=/($^)/,Br=/['\n\r\u2028\u2029\\]/g,lr="\\ud800-\\udfff",br="\\u0300-\\u036f",en="\\ufe20-\\ufe2f",on="\\u20d0-\\u20ff",Pn=br+en+on,zr="\\u2700-\\u27bf",tn="a-z\\xdf-\\xf6\\xf8-\\xff",Tn="\\xac\\xb1\\xd7\\xf7",Bn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ao="\\u2000-\\u206f",No=" \\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",Po="A-Z\\xc0-\\xd6\\xd8-\\xde",jn="\\ufe0e\\ufe0f",Fn=Tn+Bn+Ao+No,Cn="['’]",oo="["+lr+"]",mn="["+Fn+"]",_n="["+Pn+"]",k="\\d+",$="["+zr+"]",X="["+tn+"]",he="[^"+lr+Fn+k+zr+tn+Po+"]",He="\\ud83c[\\udffb-\\udfff]",Ne="(?:"+_n+"|"+He+")",et="[^"+lr+"]",St="(?:\\ud83c[\\udde6-\\uddff]){2}",Ht="[\\ud800-\\udbff][\\udc00-\\udfff]",Gt="["+Po+"]",Vt="\\u200d",Rr="(?:"+X+"|"+he+")",sn="(?:"+Gt+"|"+he+")",Rn="(?:"+Cn+"(?:d|ll|m|re|s|t|ve))?",kn="(?:"+Cn+"(?:D|LL|M|RE|S|T|VE))?",ho=Ne+"?",Zn="["+jn+"]?",Bo="(?:"+Vt+"(?:"+[et,St,Ht].join("|")+")"+Zn+ho+")*",un="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Eo="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Kn=Zn+ho+Bo,io="(?:"+[$,St,Ht].join("|")+")"+Kn,Fi="(?:"+[et+_n+"?",_n,St,Ht,oo].join("|")+")",wi=RegExp(Cn,"g"),Ci=RegExp(_n,"g"),Hn=RegExp(He+"(?="+He+")|"+Fi+Kn,"g"),ji=RegExp([Gt+"?"+X+"+"+Rn+"(?="+[mn,Gt,"$"].join("|")+")",sn+"+"+kn+"(?="+[mn,Gt+Rr,"$"].join("|")+")",Gt+"?"+Rr+"+"+Rn,Gt+"+"+kn,Eo,un,k,io].join("|"),"g"),so=RegExp("["+Vt+lr+Pn+jn+"]"),ao=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,oi=["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"],Hr=-1,Ir={};Ir[Et]=Ir[Dt]=Ir[Xt]=Ir[Wt]=Ir[hr]=Ir[dr]=Ir[cr]=Ir[Te]=Ir[ue]=!0,Ir[oe]=Ir[Se]=Ir[gt]=Ir[We]=Ir[It]=Ir[Ve]=Ir[_e]=Ir[Ae]=Ir[je]=Ir[it]=Ir[tt]=Ir[Mt]=Ir[Qe]=Ir[Xe]=Ir[Oe]=!1;var Fr={};Fr[oe]=Fr[Se]=Fr[gt]=Fr[It]=Fr[We]=Fr[Ve]=Fr[Et]=Fr[Dt]=Fr[Xt]=Fr[Wt]=Fr[hr]=Fr[je]=Fr[it]=Fr[tt]=Fr[Mt]=Fr[Qe]=Fr[Xe]=Fr[ht]=Fr[dr]=Fr[cr]=Fr[Te]=Fr[ue]=!0,Fr[_e]=Fr[Ae]=Fr[Oe]=!1;var O={À:"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"},J={"&":"&","<":"<",">":">",'"':""","'":"'"},Ce={"&":"&","<":"<",">":">",""":'"',"'":"'"},rt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},or=parseFloat,Kt=parseInt,_r=typeof Pi=="object"&&Pi&&Pi.Object===Object&&Pi,kr=typeof self=="object"&&self&&self.Object===Object&&self,Cr=_r||kr||Function("return this")(),Mr=e&&!e.nodeType&&e,dn=Mr&&!0&&r&&!r.nodeType&&r,zn=dn&&dn.exports===Mr,rn=zn&&_r.process,Vr=function(){try{var Re=dn&&dn.require&&dn.require("util").types;return Re||rn&&rn.binding&&rn.binding("util")}catch{}}(),fn=Vr&&Vr.isArrayBuffer,po=Vr&&Vr.isDate,To=Vr&&Vr.isMap,Xn=Vr&&Vr.isRegExp,Hi=Vr&&Vr.isSet,ii=Vr&&Vr.isTypedArray;function vn(Re,ot,Ke){switch(Ke.length){case 0:return Re.call(ot);case 1:return Re.call(ot,Ke[0]);case 2:return Re.call(ot,Ke[0],Ke[1]);case 3:return Re.call(ot,Ke[0],Ke[1],Ke[2])}return Re.apply(ot,Ke)}function Ns(Re,ot,Ke,zt){for(var fr=-1,$r=Re==null?0:Re.length;++fr<$r;){var In=Re[fr];ot(zt,In,Ke(In),Re)}return zt}function Jn(Re,ot){for(var Ke=-1,zt=Re==null?0:Re.length;++Ke<zt&&ot(Re[Ke],Ke,Re)!==!1;);return Re}function Gl(Re,ot){for(var Ke=Re==null?0:Re.length;Ke--&&ot(Re[Ke],Ke,Re)!==!1;);return Re}function ll(Re,ot){for(var Ke=-1,zt=Re==null?0:Re.length;++Ke<zt;)if(!ot(Re[Ke],Ke,Re))return!1;return!0}function si(Re,ot){for(var Ke=-1,zt=Re==null?0:Re.length,fr=0,$r=[];++Ke<zt;){var In=Re[Ke];ot(In,Ke,Re)&&($r[fr++]=In)}return $r}function zi(Re,ot){var Ke=Re==null?0:Re.length;return!!Ke&&$i(Re,ot,0)>-1}function Qn(Re,ot,Ke){for(var zt=-1,fr=Re==null?0:Re.length;++zt<fr;)if(Ke(ot,Re[zt]))return!0;return!1}function an(Re,ot){for(var Ke=-1,zt=Re==null?0:Re.length,fr=Array(zt);++Ke<zt;)fr[Ke]=ot(Re[Ke],Ke,Re);return fr}function Fo(Re,ot){for(var Ke=-1,zt=ot.length,fr=Re.length;++Ke<zt;)Re[fr+Ke]=ot[Ke];return Re}function cl(Re,ot,Ke,zt){var fr=-1,$r=Re==null?0:Re.length;for(zt&&$r&&(Ke=Re[++fr]);++fr<$r;)Ke=ot(Ke,Re[fr],fr,Re);return Ke}function Yl(Re,ot,Ke,zt){var fr=Re==null?0:Re.length;for(zt&&fr&&(Ke=Re[--fr]);fr--;)Ke=ot(Ke,Re[fr],fr,Re);return Ke}function ls(Re,ot){for(var Ke=-1,zt=Re==null?0:Re.length;++Ke<zt;)if(ot(Re[Ke],Ke,Re))return!0;return!1}var Zl=M("length");function Kl(Re){return Re.split("")}function Ca(Re){return Re.match(ye)||[]}function Ps(Re,ot,Ke){var zt;return Ke(Re,function(fr,$r,In){if(ot(fr,$r,In))return zt=$r,!1}),zt}function Bs(Re,ot,Ke,zt){for(var fr=Re.length,$r=Ke+(zt?1:-1);zt?$r--:++$r<fr;)if(ot(Re[$r],$r,Re))return $r;return-1}function $i(Re,ot,Ke){return ot===ot?Sf(Re,ot,Ke):Bs(Re,Sa,Ke)}function Xl(Re,ot,Ke,zt){for(var fr=Ke-1,$r=Re.length;++fr<$r;)if(zt(Re[fr],ot))return fr;return-1}function Sa(Re){return Re!==Re}function ul(Re,ot){var Ke=Re==null?0:Re.length;return Ke?qe(Re,ot)/Ke:ee}function M(Re){return function(ot){return ot==null?t:ot[Re]}}function z(Re){return function(ot){return Re==null?t:Re[ot]}}function Y(Re,ot,Ke,zt,fr){return fr(Re,function($r,In,Qr){Ke=zt?(zt=!1,$r):ot(Ke,$r,In,Qr)}),Ke}function pe(Re,ot){var Ke=Re.length;for(Re.sort(ot);Ke--;)Re[Ke]=Re[Ke].value;return Re}function qe(Re,ot){for(var Ke,zt=-1,fr=Re.length;++zt<fr;){var $r=ot(Re[zt]);$r!==t&&(Ke=Ke===t?$r:Ke+$r)}return Ke}function Fe(Re,ot){for(var Ke=-1,zt=Array(Re);++Ke<Re;)zt[Ke]=ot(Ke);return zt}function ut(Re,ot){return an(ot,function(Ke){return[Ke,Re[Ke]]})}function Lt(Re){return Re&&Re.slice(0,nd(Re)+1).replace(jt,"")}function Zt(Re){return function(ot){return Re(ot)}}function Sr(Re,ot){return an(ot,function(Ke){return Re[Ke]})}function pr(Re,ot){return Re.has(ot)}function nn(Re,ot){for(var Ke=-1,zt=Re.length;++Ke<zt&&$i(ot,Re[Ke],0)>-1;);return Ke}function lo(Re,ot){for(var Ke=Re.length;Ke--&&$i(ot,Re[Ke],0)>-1;);return Ke}function jo(Re,ot){for(var Ke=Re.length,zt=0;Ke--;)Re[Ke]===ot&&++zt;return zt}var Ho=z(O),_a=z(J);function Jl(Re){return"\\"+rt[Re]}function Fs(Re,ot){return Re==null?t:Re[ot]}function Aa(Re){return so.test(Re)}function wf(Re){return ao.test(Re)}function eu(Re){for(var ot,Ke=[];!(ot=Re.next()).done;)Ke.push(ot.value);return Ke}function tu(Re){var ot=-1,Ke=Array(Re.size);return Re.forEach(function(zt,fr){Ke[++ot]=[fr,zt]}),Ke}function rd(Re,ot){return function(Ke){return Re(ot(Ke))}}function Ui(Re,ot){for(var Ke=-1,zt=Re.length,fr=0,$r=[];++Ke<zt;){var In=Re[Ke];(In===ot||In===g)&&(Re[Ke]=g,$r[fr++]=Ke)}return $r}function dl(Re){var ot=-1,Ke=Array(Re.size);return Re.forEach(function(zt){Ke[++ot]=zt}),Ke}function Cf(Re){var ot=-1,Ke=Array(Re.size);return Re.forEach(function(zt){Ke[++ot]=[zt,zt]}),Ke}function Sf(Re,ot,Ke){for(var zt=Ke-1,fr=Re.length;++zt<fr;)if(Re[zt]===ot)return zt;return-1}function _f(Re,ot,Ke){for(var zt=Ke+1;zt--;)if(Re[zt]===ot)return zt;return zt}function Ea(Re){return Aa(Re)?Ql(Re):Zl(Re)}function Sn(Re){return Aa(Re)?zo(Re):Kl(Re)}function nd(Re){for(var ot=Re.length;ot--&&xr.test(Re.charAt(ot)););return ot}var od=z(Ce);function Ql(Re){for(var ot=Hn.lastIndex=0;Hn.test(Re);)++ot;return ot}function zo(Re){return Re.match(Hn)||[]}function id(Re){return Re.match(ji)||[]}var ec=function Re(ot){ot=ot==null?Cr:qi.defaults(Cr.Object(),ot,qi.pick(Cr,oi));var Ke=ot.Array,zt=ot.Date,fr=ot.Error,$r=ot.Function,In=ot.Math,Qr=ot.Object,Ta=ot.RegExp,sd=ot.String,Xo=ot.TypeError,tc=Ke.prototype,Af=$r.prototype,cs=Qr.prototype,ln=ot["__core-js_shared__"],us=Af.toString,Kr=cs.hasOwnProperty,ru=0,hn=function(){var s=/[^.]+$/.exec(ln&&ln.keys&&ln.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Wi=cs.toString,nu=us.call(Qr),ou=Cr._,iu=Ta("^"+us.call(Kr).replace(Yt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ra=zn?ot.Buffer:t,Vi=ot.Symbol,fl=ot.Uint8Array,hl=Ra?Ra.allocUnsafe:t,js=rd(Qr.getPrototypeOf,Qr),ka=Qr.create,rc=cs.propertyIsEnumerable,Gi=tc.splice,nc=Vi?Vi.isConcatSpreadable:t,ai=Vi?Vi.iterator:t,Yi=Vi?Vi.toStringTag:t,ds=function(){try{var s=Iu(Qr,"defineProperty");return s({},"",{}),s}catch{}}(),Ef=ot.clearTimeout!==Cr.clearTimeout&&ot.clearTimeout,pl=zt&&zt.now!==Cr.Date.now&&zt.now,ad=ot.setTimeout!==Cr.setTimeout&&ot.setTimeout,Ia=In.ceil,Hs=In.floor,Ma=Qr.getOwnPropertySymbols,oc=Ra?Ra.isBuffer:t,La=ot.isFinite,gl=tc.join,ld=rd(Qr.keys,Qr),yn=In.max,$n=In.min,fs=zt.now,su=ot.parseInt,hs=In.random,ic=tc.reverse,Si=Iu(ot,"DataView"),ps=Iu(ot,"Map"),Da=Iu(ot,"Promise"),_i=Iu(ot,"Set"),Zi=Iu(ot,"WeakMap"),Oa=Iu(Qr,"create"),ml=Zi&&new Zi,zs={},gs=Mu(Si),au=Mu(ps),Tf=Mu(Da),cd=Mu(_i),Na=Mu(Zi),ms=Vi?Vi.prototype:t,$s=ms?ms.valueOf:t,vl=ms?ms.toString:t;function Z(s){if(Gn(s)&&!Tr(s)&&!(s instanceof Er)){if(s instanceof co)return s;if(Kr.call(s,"__wrapped__"))return u0(s)}return new co(s)}var Ki=function(){function s(){}return function(u){if(!Un(u))return{};if(ka)return ka(u);s.prototype=u;var x=new s;return s.prototype=t,x}}();function Xi(){}function co(s,u){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=t}Z.templateSettings={escape:st,evaluate:ct,interpolate:xt,variable:"",imports:{_:Z}},Z.prototype=Xi.prototype,Z.prototype.constructor=Z,co.prototype=Ki(Xi.prototype),co.prototype.constructor=co;function Er(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ne,this.__views__=[]}function sc(){var s=new Er(this.__wrapped__);return s.__actions__=xo(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=xo(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=xo(this.__views__),s}function yl(){if(this.__filtered__){var s=new Er(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function ac(){var s=this.__wrapped__.value(),u=this.__dir__,x=Tr(s),L=u<0,W=x?s.length:0,re=CS(0,W,this.__views__),ve=re.start,Ee=re.end,De=Ee-ve,pt=L?Ee:ve-1,mt=this.__iteratees__,Rt=mt.length,$t=0,sr=$n(De,this.__takeCount__);if(!x||!L&&W==De&&sr==De)return Ad(s,this.__actions__);var mr=[];e:for(;De--&&$t<sr;){pt+=u;for(var Nr=-1,vr=s[pt];++Nr<Rt;){var qr=mt[Nr],Yr=qr.iteratee,rs=qr.type,pi=Yr(vr);if(rs==ie)vr=pi;else if(!pi){if(rs==Q)continue e;break e}}mr[$t++]=vr}return mr}Er.prototype=Ki(Xi.prototype),Er.prototype.constructor=Er;function Ai(s){var u=-1,x=s==null?0:s.length;for(this.clear();++u<x;){var L=s[u];this.set(L[0],L[1])}}function lu(){this.__data__=Oa?Oa(null):{},this.size=0}function ud(s){var u=this.has(s)&&delete this.__data__[s];return this.size-=u?1:0,u}function dd(s){var u=this.__data__;if(Oa){var x=u[s];return x===d?t:x}return Kr.call(u,s)?u[s]:t}function fd(s){var u=this.__data__;return Oa?u[s]!==t:Kr.call(u,s)}function Rf(s,u){var x=this.__data__;return this.size+=this.has(s)?0:1,x[s]=Oa&&u===t?d:u,this}Ai.prototype.clear=lu,Ai.prototype.delete=ud,Ai.prototype.get=dd,Ai.prototype.has=fd,Ai.prototype.set=Rf;function Ei(s){var u=-1,x=s==null?0:s.length;for(this.clear();++u<x;){var L=s[u];this.set(L[0],L[1])}}function kf(){this.__data__=[],this.size=0}function If(s){var u=this.__data__,x=li(u,s);if(x<0)return!1;var L=u.length-1;return x==L?u.pop():Gi.call(u,x,1),--this.size,!0}function cu(s){var u=this.__data__,x=li(u,s);return x<0?t:u[x][1]}function bl(s){return li(this.__data__,s)>-1}function Mf(s,u){var x=this.__data__,L=li(x,s);return L<0?(++this.size,x.push([s,u])):x[L][1]=u,this}Ei.prototype.clear=kf,Ei.prototype.delete=If,Ei.prototype.get=cu,Ei.prototype.has=bl,Ei.prototype.set=Mf;function Ji(s){var u=-1,x=s==null?0:s.length;for(this.clear();++u<x;){var L=s[u];this.set(L[0],L[1])}}function uu(){this.size=0,this.__data__={hash:new Ai,map:new(ps||Ei),string:new Ai}}function lc(s){var u=zh(this,s).delete(s);return this.size-=u?1:0,u}function Lf(s){return zh(this,s).get(s)}function Df(s){return zh(this,s).has(s)}function Of(s,u){var x=zh(this,s),L=x.size;return x.set(s,u),this.size+=x.size==L?0:1,this}Ji.prototype.clear=uu,Ji.prototype.delete=lc,Ji.prototype.get=Lf,Ji.prototype.has=Df,Ji.prototype.set=Of;function go(s){var u=-1,x=s==null?0:s.length;for(this.__data__=new Ji;++u<x;)this.add(s[u])}function du(s){return this.__data__.set(s,d),this}function cc(s){return this.__data__.has(s)}go.prototype.add=go.prototype.push=du,go.prototype.has=cc;function Or(s){var u=this.__data__=new Ei(s);this.size=u.size}function $o(){this.__data__=new Ei,this.size=0}function Pa(s){var u=this.__data__,x=u.delete(s);return this.size=u.size,x}function Us(s){return this.__data__.get(s)}function Ur(s){return this.__data__.has(s)}function vs(s,u){var x=this.__data__;if(x instanceof Ei){var L=x.__data__;if(!ps||L.length<o-1)return L.push([s,u]),this.size=++x.size,this;x=this.__data__=new Ji(L)}return x.set(s,u),this.size=x.size,this}Or.prototype.clear=$o,Or.prototype.delete=Pa,Or.prototype.get=Us,Or.prototype.has=Ur,Or.prototype.set=vs;function xl(s,u){var x=Tr(s),L=!x&&Lu(s),W=!x&&!L&&Ec(s),re=!x&&!L&&!W&&Ld(s),ve=x||L||W||re,Ee=ve?Fe(s.length,sd):[],De=Ee.length;for(var pt in s)(u||Kr.call(s,pt))&&!(ve&&(pt=="length"||W&&(pt=="offset"||pt=="parent")||re&&(pt=="buffer"||pt=="byteLength"||pt=="byteOffset")||Ml(pt,De)))&&Ee.push(pt);return Ee}function Ro(s){var u=s.length;return u?s[Ks(0,u-1)]:t}function Uo(s,u){return $h(xo(s),Ws(u,0,s.length))}function Ti(s){return $h(xo(s))}function fu(s,u,x){(x!==t&&!ta(s[u],x)||x===t&&!(u in s))&&qo(s,u,x)}function mo(s,u,x){var L=s[u];(!(Kr.call(s,u)&&ta(L,x))||x===t&&!(u in s))&&qo(s,u,x)}function li(s,u){for(var x=s.length;x--;)if(ta(s[x][0],u))return x;return-1}function qs(s,u,x,L){return ys(s,function(W,re,ve){u(L,W,x(W),ve)}),L}function hd(s,u){return s&&Jo(u,Io(u),s)}function hu(s,u){return s&&Jo(u,Li(u),s)}function qo(s,u,x){u=="__proto__"&&ds?ds(s,u,{configurable:!0,enumerable:!0,value:x,writable:!0}):s[u]=x}function pu(s,u){for(var x=-1,L=u.length,W=Ke(L),re=s==null;++x<L;)W[x]=re?t:zg(s,u[x]);return W}function Ws(s,u,x){return s===s&&(x!==t&&(s=s<=x?s:x),u!==t&&(s=s>=u?s:u)),s}function vo(s,u,x,L,W,re){var ve,Ee=u&m,De=u&p,pt=u&v;if(x&&(ve=W?x(s,L,W,re):x(s)),ve!==t)return ve;if(!Un(s))return s;var mt=Tr(s);if(mt){if(ve=_S(s),!Ee)return xo(s,ve)}else{var Rt=Qo(s),$t=Rt==Ae||Rt==Ie;if(Ec(s))return Ss(s,Ee);if(Rt==tt||Rt==oe||$t&&!W){if(ve=De||$t?{}:t0(s),!Ee)return De?Bf(s,hu(ve,s)):kd(s,hd(ve,s))}else{if(!Fr[Rt])return W?s:{};ve=AS(s,Rt,Ee)}}re||(re=new Or);var sr=re.get(s);if(sr)return sr;re.set(s,ve),I0(s)?s.forEach(function(vr){ve.add(vo(vr,u,x,vr,s,re))}):R0(s)&&s.forEach(function(vr,qr){ve.set(qr,vo(vr,u,x,qr,s,re))});var mr=pt?De?Tg:Eg:De?Li:Io,Nr=mt?t:mr(s);return Jn(Nr||s,function(vr,qr){Nr&&(qr=vr,vr=s[qr]),mo(ve,qr,vo(vr,u,x,qr,s,re))}),ve}function gu(s){var u=Io(s);return function(x){return mu(x,s,u)}}function mu(s,u,x){var L=x.length;if(s==null)return!L;for(s=Qr(s);L--;){var W=x[L],re=u[W],ve=s[W];if(ve===t&&!(W in s)||!re(ve))return!1}return!0}function vu(s,u,x){if(typeof s!="function")throw new Xo(a);return jf(function(){s.apply(t,x)},u)}function Vs(s,u,x,L){var W=-1,re=zi,ve=!0,Ee=s.length,De=[],pt=u.length;if(!Ee)return De;x&&(u=an(u,Zt(x))),L?(re=Qn,ve=!1):u.length>=o&&(re=pr,ve=!1,u=new go(u));e:for(;++W<Ee;){var mt=s[W],Rt=x==null?mt:x(mt);if(mt=L||mt!==0?mt:0,ve&&Rt===Rt){for(var $t=pt;$t--;)if(u[$t]===Rt)continue e;De.push(mt)}else re(u,Rt,L)||De.push(mt)}return De}var ys=b(Wo),yu=b(dc,!0);function pd(s,u){var x=!0;return ys(s,function(L,W,re){return x=!!u(L,W,re),x}),x}function uc(s,u,x){for(var L=-1,W=s.length;++L<W;){var re=s[L],ve=u(re);if(ve!=null&&(Ee===t?ve===ve&&!ts(ve):x(ve,Ee)))var Ee=ve,De=re}return De}function Nf(s,u,x,L){var W=s.length;for(x=Lr(x),x<0&&(x=-x>W?0:W+x),L=L===t||L>W?W:Lr(L),L<0&&(L+=W),L=x>L?0:L0(L);x<L;)s[x++]=u;return s}function gd(s,u){var x=[];return ys(s,function(L,W,re){u(L,W,re)&&x.push(L)}),x}function eo(s,u,x,L,W){var re=-1,ve=s.length;for(x||(x=TS),W||(W=[]);++re<ve;){var Ee=s[re];u>0&&x(Ee)?u>1?eo(Ee,u-1,x,L,W):Fo(W,Ee):L||(W[W.length]=Ee)}return W}var bu=l(),md=l(!0);function Wo(s,u){return s&&bu(s,u,Io)}function dc(s,u){return s&&md(s,u,Io)}function Ba(s,u){return si(u,function(x){return Ll(s[x])})}function bs(s,u){u=Vo(u,s);for(var x=0,L=u.length;s!=null&&x<L;)s=s[Va(u[x++])];return x&&x==L?s:t}function wl(s,u,x){var L=u(s);return Tr(s)?L:Fo(L,x(s))}function Wn(s){return s==null?s===t?ft:Ue:Yi&&Yi in Qr(s)?wS(s):OS(s)}function Gs(s,u){return s>u}function fc(s,u){return s!=null&&Kr.call(s,u)}function Fa(s,u){return s!=null&&u in Qr(s)}function hc(s,u,x){return s>=$n(u,x)&&s<yn(u,x)}function ja(s,u,x){for(var L=x?Qn:zi,W=s[0].length,re=s.length,ve=re,Ee=Ke(re),De=1/0,pt=[];ve--;){var mt=s[ve];ve&&u&&(mt=an(mt,Zt(u))),De=$n(mt.length,De),Ee[ve]=!x&&(u||W>=120&&mt.length>=120)?new go(ve&&mt):t}mt=s[0];var Rt=-1,$t=Ee[0];e:for(;++Rt<W&&pt.length<De;){var sr=mt[Rt],mr=u?u(sr):sr;if(sr=x||sr!==0?sr:0,!($t?pr($t,mr):L(pt,mr,x))){for(ve=re;--ve;){var Nr=Ee[ve];if(!(Nr?pr(Nr,mr):L(s[ve],mr,x)))continue e}$t&&$t.push(mr),pt.push(sr)}}return pt}function pc(s,u,x,L){return Wo(s,function(W,re,ve){u(L,x(W),re,ve)}),L}function Ri(s,u,x){u=Vo(u,s),s=i0(s,u);var L=s==null?s:s[Va(As(u))];return L==null?t:vn(L,s,x)}function gc(s){return Gn(s)&&Wn(s)==oe}function Ys(s){return Gn(s)&&Wn(s)==gt}function vd(s){return Gn(s)&&Wn(s)==Ve}function Cl(s,u,x,L,W){return s===u?!0:s==null||u==null||!Gn(s)&&!Gn(u)?s!==s&&u!==u:Ha(s,u,x,L,Cl,W)}function Ha(s,u,x,L,W,re){var ve=Tr(s),Ee=Tr(u),De=ve?Se:Qo(s),pt=Ee?Se:Qo(u);De=De==oe?tt:De,pt=pt==oe?tt:pt;var mt=De==tt,Rt=pt==tt,$t=De==pt;if($t&&Ec(s)){if(!Ec(u))return!1;ve=!0,mt=!1}if($t&&!mt)return re||(re=new Or),ve||Ld(s)?Jv(s,u,x,L,W,re):bS(s,u,De,x,L,W,re);if(!(x&w)){var sr=mt&&Kr.call(s,"__wrapped__"),mr=Rt&&Kr.call(u,"__wrapped__");if(sr||mr){var Nr=sr?s.value():s,vr=mr?u.value():u;return re||(re=new Or),W(Nr,vr,x,L,re)}}return $t?(re||(re=new Or),xS(s,u,x,L,W,re)):!1}function za(s){return Gn(s)&&Qo(s)==je}function xu(s,u,x,L){var W=x.length,re=W,ve=!L;if(s==null)return!re;for(s=Qr(s);W--;){var Ee=x[W];if(ve&&Ee[2]?Ee[1]!==s[Ee[0]]:!(Ee[0]in s))return!1}for(;++W<re;){Ee=x[W];var De=Ee[0],pt=s[De],mt=Ee[1];if(ve&&Ee[2]){if(pt===t&&!(De in s))return!1}else{var Rt=new Or;if(L)var $t=L(pt,mt,De,s,u,Rt);if(!($t===t?Cl(mt,pt,w|T,L,Rt):$t))return!1}}return!0}function yd(s){if(!Un(s)||kS(s))return!1;var u=Ll(s)?iu:kt;return u.test(Mu(s))}function Zs(s){return Gn(s)&&Wn(s)==Mt}function mc(s){return Gn(s)&&Qo(s)==Qe}function Qi(s){return Gn(s)&&Yh(s.length)&&!!Ir[Wn(s)]}function vc(s){return typeof s=="function"?s:s==null?Di:typeof s=="object"?Tr(s)?_l(s[0],s[1]):ki(s):U0(s)}function es(s){if(!Ff(s))return ld(s);var u=[];for(var x in Qr(s))Kr.call(s,x)&&x!="constructor"&&u.push(x);return u}function Sl(s){if(!Un(s))return DS(s);var u=Ff(s),x=[];for(var L in s)L=="constructor"&&(u||!Kr.call(s,L))||x.push(L);return x}function ci(s,u){return s<u}function ui(s,u){var x=-1,L=Mi(s)?Ke(s.length):[];return ys(s,function(W,re,ve){L[++x]=u(W,re,ve)}),L}function ki(s){var u=kg(s);return u.length==1&&u[0][2]?n0(u[0][0],u[0][1]):function(x){return x===s||xu(x,s,u)}}function _l(s,u){return Mg(s)&&r0(u)?n0(Va(s),u):function(x){var L=zg(x,s);return L===t&&L===u?$g(x,s):Cl(u,L,w|T)}}function xs(s,u,x,L,W){s!==u&&bu(u,function(re,ve){if(W||(W=new Or),Un(re))di(s,u,ve,x,xs,L,W);else{var Ee=L?L(Dg(s,ve),re,ve+"",s,u,W):t;Ee===t&&(Ee=re),fu(s,ve,Ee)}},Li)}function di(s,u,x,L,W,re,ve){var Ee=Dg(s,x),De=Dg(u,x),pt=ve.get(De);if(pt){fu(s,x,pt);return}var mt=re?re(Ee,De,x+"",s,u,ve):t,Rt=mt===t;if(Rt){var $t=Tr(De),sr=!$t&&Ec(De),mr=!$t&&!sr&&Ld(De);mt=De,$t||sr||mr?Tr(Ee)?mt=Ee:ro(Ee)?mt=xo(Ee):sr?(Rt=!1,mt=Ss(De,!0)):mr?(Rt=!1,mt=Rl(De,!0)):mt=[]:Hf(De)||Lu(De)?(mt=Ee,Lu(Ee)?mt=D0(Ee):(!Un(Ee)||Ll(Ee))&&(mt=t0(De))):Rt=!1}Rt&&(ve.set(De,mt),W(mt,De,L,re,ve),ve.delete(De)),fu(s,x,mt)}function $a(s,u){var x=s.length;if(x)return u+=u<0?x:0,Ml(u,x)?s[u]:t}function yc(s,u,x){u.length?u=an(u,function(re){return Tr(re)?function(ve){return bs(ve,re.length===1?re[0]:re)}:re}):u=[Di];var L=-1;u=an(u,Zt(gr()));var W=ui(s,function(re,ve,Ee){var De=an(u,function(pt){return pt(re)});return{criteria:De,index:++L,value:re}});return pe(W,function(re,ve){return Ac(re,ve,x)})}function Al(s,u){return Ua(s,u,function(x,L){return $g(s,L)})}function Ua(s,u,x){for(var L=-1,W=u.length,re={};++L<W;){var ve=u[L],Ee=bs(s,ve);x(Ee,ve)&&Xs(re,Vo(ve,s),Ee)}return re}function bd(s){return function(u){return bs(u,s)}}function wu(s,u,x,L){var W=L?Xl:$i,re=-1,ve=u.length,Ee=s;for(s===u&&(u=xo(u)),x&&(Ee=an(s,Zt(x)));++re<ve;)for(var De=0,pt=u[re],mt=x?x(pt):pt;(De=W(Ee,mt,De,L))>-1;)Ee!==s&&Gi.call(Ee,De,1),Gi.call(s,De,1);return s}function Cu(s,u){for(var x=s?u.length:0,L=x-1;x--;){var W=u[x];if(x==L||W!==re){var re=W;Ml(W)?Gi.call(s,W,1):bo(s,W)}}return s}function Ks(s,u){return s+Hs(hs()*(u-s+1))}function Su(s,u,x,L){for(var W=-1,re=yn(Ia((u-s)/(x||1)),0),ve=Ke(re);re--;)ve[L?re:++W]=s,s+=x;return ve}function bc(s,u){var x="";if(!s||u<1||u>le)return x;do u%2&&(x+=s),u=Hs(u/2),u&&(s+=s);while(u);return x}function Ar(s,u){return Og(o0(s,u,Di),s+"")}function El(s){return Ro(Dd(s))}function _u(s,u){var x=Dd(s);return $h(x,Ws(u,0,x.length))}function Xs(s,u,x,L){if(!Un(s))return s;u=Vo(u,s);for(var W=-1,re=u.length,ve=re-1,Ee=s;Ee!=null&&++W<re;){var De=Va(u[W]),pt=x;if(De==="__proto__"||De==="constructor"||De==="prototype")return s;if(W!=ve){var mt=Ee[De];pt=L?L(mt,De,Ee):t,pt===t&&(pt=Un(mt)?mt:Ml(u[W+1])?[]:{})}mo(Ee,De,pt),Ee=Ee[De]}return s}var xc=ml?function(s,u){return ml.set(s,u),s}:Di,xd=ds?function(s,u){return ds(s,"toString",{configurable:!0,enumerable:!1,value:qg(u),writable:!0})}:Di;function wd(s){return $h(Dd(s))}function ko(s,u,x){var L=-1,W=s.length;u<0&&(u=-u>W?0:W+u),x=x>W?W:x,x<0&&(x+=W),W=u>x?0:x-u>>>0,u>>>=0;for(var re=Ke(W);++L<W;)re[L]=s[L+u];return re}function Cd(s,u){var x;return ys(s,function(L,W,re){return x=u(L,W,re),!x}),!!x}function wc(s,u,x){var L=0,W=s==null?L:s.length;if(typeof u=="number"&&u===u&&W<=xe){for(;L<W;){var re=L+W>>>1,ve=s[re];ve!==null&&!ts(ve)&&(x?ve<=u:ve<u)?L=re+1:W=re}return W}return Au(s,u,Di,x)}function Au(s,u,x,L){var W=0,re=s==null?0:s.length;if(re===0)return 0;u=x(u);for(var ve=u!==u,Ee=u===null,De=ts(u),pt=u===t;W<re;){var mt=Hs((W+re)/2),Rt=x(s[mt]),$t=Rt!==t,sr=Rt===null,mr=Rt===Rt,Nr=ts(Rt);if(ve)var vr=L||mr;else pt?vr=mr&&(L||$t):Ee?vr=mr&&$t&&(L||!sr):De?vr=mr&&$t&&!sr&&(L||!Nr):sr||Nr?vr=!1:vr=L?Rt<=u:Rt<u;vr?W=mt+1:re=mt}return $n(re,ce)}function Eu(s,u){for(var x=-1,L=s.length,W=0,re=[];++x<L;){var ve=s[x],Ee=u?u(ve):ve;if(!x||!ta(Ee,De)){var De=Ee;re[W++]=ve===0?0:ve}}return re}function Sd(s){return typeof s=="number"?s:ts(s)?ee:+s}function yo(s){if(typeof s=="string")return s;if(Tr(s))return an(s,yo)+"";if(ts(s))return vl?vl.call(s):"";var u=s+"";return u=="0"&&1/s==-1/0?"-0":u}function ws(s,u,x){var L=-1,W=zi,re=s.length,ve=!0,Ee=[],De=Ee;if(x)ve=!1,W=Qn;else if(re>=o){var pt=u?null:Wa(s);if(pt)return dl(pt);ve=!1,W=pr,De=new go}else De=u?[]:Ee;e:for(;++L<re;){var mt=s[L],Rt=u?u(mt):mt;if(mt=x||mt!==0?mt:0,ve&&Rt===Rt){for(var $t=De.length;$t--;)if(De[$t]===Rt)continue e;u&&De.push(Rt),Ee.push(mt)}else W(De,Rt,x)||(De!==Ee&&De.push(Rt),Ee.push(mt))}return Ee}function bo(s,u){return u=Vo(u,s),s=i0(s,u),s==null||delete s[Va(As(u))]}function _d(s,u,x,L){return Xs(s,u,x(bs(s,u)),L)}function Js(s,u,x,L){for(var W=s.length,re=L?W:-1;(L?re--:++re<W)&&u(s[re],re,s););return x?ko(s,L?0:re,L?re+1:W):ko(s,L?re+1:0,L?W:re)}function Ad(s,u){var x=s;return x instanceof Er&&(x=x.value()),cl(u,function(L,W){return W.func.apply(W.thisArg,Fo([L],W.args))},x)}function to(s,u,x){var L=s.length;if(L<2)return L?ws(s[0]):[];for(var W=-1,re=Ke(L);++W<L;)for(var ve=s[W],Ee=-1;++Ee<L;)Ee!=W&&(re[W]=Vs(re[W]||ve,s[Ee],u,x));return ws(eo(re,1),u,x)}function Ed(s,u,x){for(var L=-1,W=s.length,re=u.length,ve={};++L<W;){var Ee=L<re?u[L]:t;x(ve,s[L],Ee)}return ve}function Cc(s){return ro(s)?s:[]}function Sc(s){return typeof s=="function"?s:Di}function Vo(s,u){return Tr(s)?s:Mg(s,u)?[s]:c0(pn(s))}var Td=Ar;function Cs(s,u,x){var L=s.length;return x=x===t?L:x,!u&&x>=L?s:ko(s,u,x)}var _c=Ef||function(s){return Cr.clearTimeout(s)};function Ss(s,u){if(u)return s.slice();var x=s.length,L=hl?hl(x):new s.constructor(x);return s.copy(L),L}function Qs(s){var u=new s.constructor(s.byteLength);return new fl(u).set(new fl(s)),u}function Pf(s,u){var x=u?Qs(s.buffer):s.buffer;return new s.constructor(x,s.byteOffset,s.byteLength)}function Tu(s){var u=new s.constructor(s.source,Ot.exec(s));return u.lastIndex=s.lastIndex,u}function Tl(s){return $s?Qr($s.call(s)):{}}function Rl(s,u){var x=u?Qs(s.buffer):s.buffer;return new s.constructor(x,s.byteOffset,s.length)}function Ru(s,u){if(s!==u){var x=s!==t,L=s===null,W=s===s,re=ts(s),ve=u!==t,Ee=u===null,De=u===u,pt=ts(u);if(!Ee&&!pt&&!re&&s>u||re&&ve&&De&&!Ee&&!pt||L&&ve&&De||!x&&De||!W)return 1;if(!L&&!re&&!pt&&s<u||pt&&x&&W&&!L&&!re||Ee&&x&&W||!ve&&W||!De)return-1}return 0}function Ac(s,u,x){for(var L=-1,W=s.criteria,re=u.criteria,ve=W.length,Ee=x.length;++L<ve;){var De=Ru(W[L],re[L]);if(De){if(L>=Ee)return De;var pt=x[L];return De*(pt=="desc"?-1:1)}}return s.index-u.index}function ku(s,u,x,L){for(var W=-1,re=s.length,ve=x.length,Ee=-1,De=u.length,pt=yn(re-ve,0),mt=Ke(De+pt),Rt=!L;++Ee<De;)mt[Ee]=u[Ee];for(;++W<ve;)(Rt||W<re)&&(mt[x[W]]=s[W]);for(;pt--;)mt[Ee++]=s[W++];return mt}function Rd(s,u,x,L){for(var W=-1,re=s.length,ve=-1,Ee=x.length,De=-1,pt=u.length,mt=yn(re-Ee,0),Rt=Ke(mt+pt),$t=!L;++W<mt;)Rt[W]=s[W];for(var sr=W;++De<pt;)Rt[sr+De]=u[De];for(;++ve<Ee;)($t||W<re)&&(Rt[sr+x[ve]]=s[W++]);return Rt}function xo(s,u){var x=-1,L=s.length;for(u||(u=Ke(L));++x<L;)u[x]=s[x];return u}function Jo(s,u,x,L){var W=!x;x||(x={});for(var re=-1,ve=u.length;++re<ve;){var Ee=u[re],De=L?L(x[Ee],s[Ee],Ee,x,s):t;De===t&&(De=s[Ee]),W?qo(x,Ee,De):mo(x,Ee,De)}return x}function kd(s,u){return Jo(s,Ig(s),u)}function Bf(s,u){return Jo(s,Qv(s),u)}function kl(s,u){return function(x,L){var W=Tr(x)?Ns:qs,re=u?u():{};return W(x,s,gr(L,2),re)}}function qa(s){return Ar(function(u,x){var L=-1,W=x.length,re=W>1?x[W-1]:t,ve=W>2?x[2]:t;for(re=s.length>3&&typeof re=="function"?(W--,re):t,ve&&hi(x[0],x[1],ve)&&(re=W<3?t:re,W=1),u=Qr(u);++L<W;){var Ee=x[L];Ee&&s(u,Ee,L,re)}return u})}function b(s,u){return function(x,L){if(x==null)return x;if(!Mi(x))return s(x,L);for(var W=x.length,re=u?W:-1,ve=Qr(x);(u?re--:++re<W)&&L(ve[re],re,ve)!==!1;);return x}}function l(s){return function(u,x,L){for(var W=-1,re=Qr(u),ve=L(u),Ee=ve.length;Ee--;){var De=ve[s?Ee:++W];if(x(re[De],De,re)===!1)break}return u}}function f(s,u,x){var L=u&_,W=N(s);function re(){var ve=this&&this!==Cr&&this instanceof re?W:s;return ve.apply(L?x:this,arguments)}return re}function y(s){return function(u){u=pn(u);var x=Aa(u)?Sn(u):t,L=x?x[0]:u.charAt(0),W=x?Cs(x,1).join(""):u.slice(1);return L[s]()+W}}function E(s){return function(u){return cl(z0(H0(u).replace(wi,"")),s,"")}}function N(s){return function(){var u=arguments;switch(u.length){case 0:return new s;case 1:return new s(u[0]);case 2:return new s(u[0],u[1]);case 3:return new s(u[0],u[1],u[2]);case 4:return new s(u[0],u[1],u[2],u[3]);case 5:return new s(u[0],u[1],u[2],u[3],u[4]);case 6:return new s(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new s(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var x=Ki(s.prototype),L=s.apply(x,u);return Un(L)?L:x}}function U(s,u,x){var L=N(s);function W(){for(var re=arguments.length,ve=Ke(re),Ee=re,De=Md(W);Ee--;)ve[Ee]=arguments[Ee];var pt=re<3&&ve[0]!==De&&ve[re-1]!==De?[]:Ui(ve,De);if(re-=pt.length,re<x)return _s(s,u,Pe,W.placeholder,t,ve,pt,t,t,x-re);var mt=this&&this!==Cr&&this instanceof W?L:s;return vn(mt,this,ve)}return W}function K(s){return function(u,x,L){var W=Qr(u);if(!Mi(u)){var re=gr(x,3);u=Io(u),x=function(Ee){return re(W[Ee],Ee,W)}}var ve=s(u,x,L);return ve>-1?W[re?u[ve]:ve]:t}}function me(s){return Il(function(u){var x=u.length,L=x,W=co.prototype.thru;for(s&&u.reverse();L--;){var re=u[L];if(typeof re!="function")throw new Xo(a);if(W&&!ve&&Hh(re)=="wrapper")var ve=new co([],!0)}for(L=ve?L:x;++L<x;){re=u[L];var Ee=Hh(re),De=Ee=="wrapper"?Rg(re):t;De&&Lg(De[0])&&De[1]==(H|D|F|j)&&!De[4].length&&De[9]==1?ve=ve[Hh(De[0])].apply(ve,De[3]):ve=re.length==1&&Lg(re)?ve[Ee]():ve.thru(re)}return function(){var pt=arguments,mt=pt[0];if(ve&&pt.length==1&&Tr(mt))return ve.plant(mt).value();for(var Rt=0,$t=x?u[Rt].apply(this,pt):mt;++Rt<x;)$t=u[Rt].call(this,$t);return $t}})}function Pe(s,u,x,L,W,re,ve,Ee,De,pt){var mt=u&H,Rt=u&_,$t=u&A,sr=u&(D|I),mr=u&G,Nr=$t?t:N(s);function vr(){for(var qr=arguments.length,Yr=Ke(qr),rs=qr;rs--;)Yr[rs]=arguments[rs];if(sr)var pi=Md(vr),ns=jo(Yr,pi);if(L&&(Yr=ku(Yr,L,W,sr)),re&&(Yr=Rd(Yr,re,ve,sr)),qr-=ns,sr&&qr<pt){var no=Ui(Yr,pi);return _s(s,u,Pe,vr.placeholder,x,Yr,no,Ee,De,pt-qr)}var ra=Rt?x:this,Ol=$t?ra[s]:s;return qr=Yr.length,Ee?Yr=NS(Yr,Ee):mr&&qr>1&&Yr.reverse(),mt&&De<qr&&(Yr.length=De),this&&this!==Cr&&this instanceof vr&&(Ol=Nr||N(Ol)),Ol.apply(ra,Yr)}return vr}function dt(s,u){return function(x,L){return pc(x,s,u(L),{})}}function Ct(s,u){return function(x,L){var W;if(x===t&&L===t)return u;if(x!==t&&(W=x),L!==t){if(W===t)return L;typeof x=="string"||typeof L=="string"?(x=yo(x),L=yo(L)):(x=Sd(x),L=Sd(L)),W=s(x,L)}return W}}function Pt(s){return Il(function(u){return u=an(u,Zt(gr())),Ar(function(x){var L=this;return s(u,function(W){return vn(W,L,x)})})})}function ur(s,u){u=u===t?" ":yo(u);var x=u.length;if(x<2)return x?bc(u,s):u;var L=bc(u,Ia(s/Ea(u)));return Aa(u)?Cs(Sn(L),0,s).join(""):L.slice(0,s)}function Gr(s,u,x,L){var W=u&_,re=N(s);function ve(){for(var Ee=-1,De=arguments.length,pt=-1,mt=L.length,Rt=Ke(mt+De),$t=this&&this!==Cr&&this instanceof ve?re:s;++pt<mt;)Rt[pt]=L[pt];for(;De--;)Rt[pt++]=arguments[++Ee];return vn($t,W?x:this,Rt)}return ve}function Vn(s){return function(u,x,L){return L&&typeof L!="number"&&hi(u,x,L)&&(x=L=t),u=Dl(u),x===t?(x=u,u=0):x=Dl(x),L=L===t?u<x?1:-1:Dl(L),Su(u,x,L,s)}}function Ii(s){return function(u,x){return typeof u=="string"&&typeof x=="string"||(u=Es(u),x=Es(x)),s(u,x)}}function _s(s,u,x,L,W,re,ve,Ee,De,pt){var mt=u&D,Rt=mt?ve:t,$t=mt?t:ve,sr=mt?re:t,mr=mt?t:re;u|=mt?F:B,u&=~(mt?B:F),u&R||(u&=-4);var Nr=[s,u,W,sr,Rt,mr,$t,Ee,De,pt],vr=x.apply(t,Nr);return Lg(s)&&s0(vr,Nr),vr.placeholder=L,a0(vr,s,u)}function fi(s){var u=In[s];return function(x,L){if(x=Es(x),L=L==null?0:$n(Lr(L),292),L&&La(x)){var W=(pn(x)+"e").split("e"),re=u(W[0]+"e"+(+W[1]+L));return W=(pn(re)+"e").split("e"),+(W[0]+"e"+(+W[1]-L))}return u(x)}}var Wa=_i&&1/dl(new _i([,-0]))[1]==ae?function(s){return new _i(s)}:Gg;function Id(s){return function(u){var x=Qo(u);return x==je?tu(u):x==Qe?Cf(u):ut(u,s(u))}}function ea(s,u,x,L,W,re,ve,Ee){var De=u&A;if(!De&&typeof s!="function")throw new Xo(a);var pt=L?L.length:0;if(pt||(u&=-97,L=W=t),ve=ve===t?ve:yn(Lr(ve),0),Ee=Ee===t?Ee:Lr(Ee),pt-=W?W.length:0,u&B){var mt=L,Rt=W;L=W=t}var $t=De?t:Rg(s),sr=[s,u,x,L,W,mt,Rt,re,ve,Ee];if($t&&LS(sr,$t),s=sr[0],u=sr[1],x=sr[2],L=sr[3],W=sr[4],Ee=sr[9]=sr[9]===t?De?0:s.length:yn(sr[9]-pt,0),!Ee&&u&(D|I)&&(u&=-25),!u||u==_)var mr=f(s,u,x);else u==D||u==I?mr=U(s,u,Ee):(u==F||u==(_|F))&&!W.length?mr=Gr(s,u,x,L):mr=Pe.apply(t,sr);var Nr=$t?xc:s0;return a0(Nr(mr,sr),s,u)}function Kv(s,u,x,L){return s===t||ta(s,cs[x])&&!Kr.call(L,x)?u:s}function Xv(s,u,x,L,W,re){return Un(s)&&Un(u)&&(re.set(u,s),xs(s,u,t,Xv,re),re.delete(u)),s}function yS(s){return Hf(s)?t:s}function Jv(s,u,x,L,W,re){var ve=x&w,Ee=s.length,De=u.length;if(Ee!=De&&!(ve&&De>Ee))return!1;var pt=re.get(s),mt=re.get(u);if(pt&&mt)return pt==u&&mt==s;var Rt=-1,$t=!0,sr=x&T?new go:t;for(re.set(s,u),re.set(u,s);++Rt<Ee;){var mr=s[Rt],Nr=u[Rt];if(L)var vr=ve?L(Nr,mr,Rt,u,s,re):L(mr,Nr,Rt,s,u,re);if(vr!==t){if(vr)continue;$t=!1;break}if(sr){if(!ls(u,function(qr,Yr){if(!pr(sr,Yr)&&(mr===qr||W(mr,qr,x,L,re)))return sr.push(Yr)})){$t=!1;break}}else if(!(mr===Nr||W(mr,Nr,x,L,re))){$t=!1;break}}return re.delete(s),re.delete(u),$t}function bS(s,u,x,L,W,re,ve){switch(x){case It:if(s.byteLength!=u.byteLength||s.byteOffset!=u.byteOffset)return!1;s=s.buffer,u=u.buffer;case gt:return!(s.byteLength!=u.byteLength||!re(new fl(s),new fl(u)));case We:case Ve:case it:return ta(+s,+u);case _e:return s.name==u.name&&s.message==u.message;case Mt:case Xe:return s==u+"";case je:var Ee=tu;case Qe:var De=L&w;if(Ee||(Ee=dl),s.size!=u.size&&!De)return!1;var pt=ve.get(s);if(pt)return pt==u;L|=T,ve.set(s,u);var mt=Jv(Ee(s),Ee(u),L,W,re,ve);return ve.delete(s),mt;case ht:if($s)return $s.call(s)==$s.call(u)}return!1}function xS(s,u,x,L,W,re){var ve=x&w,Ee=Eg(s),De=Ee.length,pt=Eg(u),mt=pt.length;if(De!=mt&&!ve)return!1;for(var Rt=De;Rt--;){var $t=Ee[Rt];if(!(ve?$t in u:Kr.call(u,$t)))return!1}var sr=re.get(s),mr=re.get(u);if(sr&&mr)return sr==u&&mr==s;var Nr=!0;re.set(s,u),re.set(u,s);for(var vr=ve;++Rt<De;){$t=Ee[Rt];var qr=s[$t],Yr=u[$t];if(L)var rs=ve?L(Yr,qr,$t,u,s,re):L(qr,Yr,$t,s,u,re);if(!(rs===t?qr===Yr||W(qr,Yr,x,L,re):rs)){Nr=!1;break}vr||(vr=$t=="constructor")}if(Nr&&!vr){var pi=s.constructor,ns=u.constructor;pi!=ns&&"constructor"in s&&"constructor"in u&&!(typeof pi=="function"&&pi instanceof pi&&typeof ns=="function"&&ns instanceof ns)&&(Nr=!1)}return re.delete(s),re.delete(u),Nr}function Il(s){return Og(o0(s,t,h0),s+"")}function Eg(s){return wl(s,Io,Ig)}function Tg(s){return wl(s,Li,Qv)}var Rg=ml?function(s){return ml.get(s)}:Gg;function Hh(s){for(var u=s.name+"",x=zs[u],L=Kr.call(zs,u)?x.length:0;L--;){var W=x[L],re=W.func;if(re==null||re==s)return W.name}return u}function Md(s){var u=Kr.call(Z,"placeholder")?Z:s;return u.placeholder}function gr(){var s=Z.iteratee||Wg;return s=s===Wg?vc:s,arguments.length?s(arguments[0],arguments[1]):s}function zh(s,u){var x=s.__data__;return RS(u)?x[typeof u=="string"?"string":"hash"]:x.map}function kg(s){for(var u=Io(s),x=u.length;x--;){var L=u[x],W=s[L];u[x]=[L,W,r0(W)]}return u}function Iu(s,u){var x=Fs(s,u);return yd(x)?x:t}function wS(s){var u=Kr.call(s,Yi),x=s[Yi];try{s[Yi]=t;var L=!0}catch{}var W=Wi.call(s);return L&&(u?s[Yi]=x:delete s[Yi]),W}var Ig=Ma?function(s){return s==null?[]:(s=Qr(s),si(Ma(s),function(u){return rc.call(s,u)}))}:Yg,Qv=Ma?function(s){for(var u=[];s;)Fo(u,Ig(s)),s=js(s);return u}:Yg,Qo=Wn;(Si&&Qo(new Si(new ArrayBuffer(1)))!=It||ps&&Qo(new ps)!=je||Da&&Qo(Da.resolve())!=lt||_i&&Qo(new _i)!=Qe||Zi&&Qo(new Zi)!=Oe)&&(Qo=function(s){var u=Wn(s),x=u==tt?s.constructor:t,L=x?Mu(x):"";if(L)switch(L){case gs:return It;case au:return je;case Tf:return lt;case cd:return Qe;case Na:return Oe}return u});function CS(s,u,x){for(var L=-1,W=x.length;++L<W;){var re=x[L],ve=re.size;switch(re.type){case"drop":s+=ve;break;case"dropRight":u-=ve;break;case"take":u=$n(u,s+ve);break;case"takeRight":s=yn(s,u-ve);break}}return{start:s,end:u}}function SS(s){var u=s.match(Ze);return u?u[1].split(te):[]}function e0(s,u,x){u=Vo(u,s);for(var L=-1,W=u.length,re=!1;++L<W;){var ve=Va(u[L]);if(!(re=s!=null&&x(s,ve)))break;s=s[ve]}return re||++L!=W?re:(W=s==null?0:s.length,!!W&&Yh(W)&&Ml(ve,W)&&(Tr(s)||Lu(s)))}function _S(s){var u=s.length,x=new s.constructor(u);return u&&typeof s[0]=="string"&&Kr.call(s,"index")&&(x.index=s.index,x.input=s.input),x}function t0(s){return typeof s.constructor=="function"&&!Ff(s)?Ki(js(s)):{}}function AS(s,u,x){var L=s.constructor;switch(u){case gt:return Qs(s);case We:case Ve:return new L(+s);case It:return Pf(s,x);case Et:case Dt:case Xt:case Wt:case hr:case dr:case cr:case Te:case ue:return Rl(s,x);case je:return new L;case it:case Xe:return new L(s);case Mt:return Tu(s);case Qe:return new L;case ht:return Tl(s)}}function ES(s,u){var x=u.length;if(!x)return s;var L=x-1;return u[L]=(x>1?"& ":"")+u[L],u=u.join(x>2?", ":" "),s.replace(jr,`{
|
39
39
|
/* [wrapped with `+u+`] */
|
40
40
|
`)}function TS(s){return Tr(s)||Lu(s)||!!(nc&&s&&s[nc])}function Ml(s,u){var x=typeof s;return u=u??le,!!u&&(x=="number"||x!="symbol"&&nt.test(s))&&s>-1&&s%1==0&&s<u}function hi(s,u,x){if(!Un(x))return!1;var L=typeof u;return(L=="number"?Mi(x)&&Ml(u,x.length):L=="string"&&u in x)?ta(x[u],s):!1}function Mg(s,u){if(Tr(s))return!1;var x=typeof s;return x=="number"||x=="symbol"||x=="boolean"||s==null||ts(s)?!0:Bt.test(s)||!Nt.test(s)||u!=null&&s in Qr(u)}function RS(s){var u=typeof s;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?s!=="__proto__":s===null}function Lg(s){var u=Hh(s),x=Z[u];if(typeof x!="function"||!(u in Er.prototype))return!1;if(s===x)return!0;var L=Rg(x);return!!L&&s===L[0]}function kS(s){return!!hn&&hn in s}var IS=ln?Ll:Zg;function Ff(s){var u=s&&s.constructor,x=typeof u=="function"&&u.prototype||cs;return s===x}function r0(s){return s===s&&!Un(s)}function n0(s,u){return function(x){return x==null?!1:x[s]===u&&(u!==t||s in Qr(x))}}function MS(s){var u=Vh(s,function(L){return x.size===h&&x.clear(),L}),x=u.cache;return u}function LS(s,u){var x=s[1],L=u[1],W=x|L,re=W<(_|A|H),ve=L==H&&x==D||L==H&&x==j&&s[7].length<=u[8]||L==(H|j)&&u[7].length<=u[8]&&x==D;if(!(re||ve))return s;L&_&&(s[2]=u[2],W|=x&_?0:R);var Ee=u[3];if(Ee){var De=s[3];s[3]=De?ku(De,Ee,u[4]):Ee,s[4]=De?Ui(s[3],g):u[4]}return Ee=u[5],Ee&&(De=s[5],s[5]=De?Rd(De,Ee,u[6]):Ee,s[6]=De?Ui(s[5],g):u[6]),Ee=u[7],Ee&&(s[7]=Ee),L&H&&(s[8]=s[8]==null?u[8]:$n(s[8],u[8])),s[9]==null&&(s[9]=u[9]),s[0]=u[0],s[1]=W,s}function DS(s){var u=[];if(s!=null)for(var x in Qr(s))u.push(x);return u}function OS(s){return Wi.call(s)}function o0(s,u,x){return u=yn(u===t?s.length-1:u,0),function(){for(var L=arguments,W=-1,re=yn(L.length-u,0),ve=Ke(re);++W<re;)ve[W]=L[u+W];W=-1;for(var Ee=Ke(u+1);++W<u;)Ee[W]=L[W];return Ee[u]=x(ve),vn(s,this,Ee)}}function i0(s,u){return u.length<2?s:bs(s,ko(u,0,-1))}function NS(s,u){for(var x=s.length,L=$n(u.length,x),W=xo(s);L--;){var re=u[L];s[L]=Ml(re,x)?W[re]:t}return s}function Dg(s,u){if(!(u==="constructor"&&typeof s[u]=="function")&&u!="__proto__")return s[u]}var s0=l0(xc),jf=ad||function(s,u){return Cr.setTimeout(s,u)},Og=l0(xd);function a0(s,u,x){var L=u+"";return Og(s,ES(L,PS(SS(L),x)))}function l0(s){var u=0,x=0;return function(){var L=fs(),W=V-(L-x);if(x=L,W>0){if(++u>=q)return arguments[0]}else u=0;return s.apply(t,arguments)}}function $h(s,u){var x=-1,L=s.length,W=L-1;for(u=u===t?L:u;++x<u;){var re=Ks(x,W),ve=s[re];s[re]=s[x],s[x]=ve}return s.length=u,s}var c0=MS(function(s){var u=[];return s.charCodeAt(0)===46&&u.push(""),s.replace(qt,function(x,L,W,re){u.push(W?re.replace(At,"$1"):L||x)}),u});function Va(s){if(typeof s=="string"||ts(s))return s;var u=s+"";return u=="0"&&1/s==-1/0?"-0":u}function Mu(s){if(s!=null){try{return us.call(s)}catch{}try{return s+""}catch{}}return""}function PS(s,u){return Jn(Me,function(x){var L="_."+x[0];u&x[1]&&!zi(s,L)&&s.push(L)}),s.sort()}function u0(s){if(s instanceof Er)return s.clone();var u=new co(s.__wrapped__,s.__chain__);return u.__actions__=xo(s.__actions__),u.__index__=s.__index__,u.__values__=s.__values__,u}function BS(s,u,x){(x?hi(s,u,x):u===t)?u=1:u=yn(Lr(u),0);var L=s==null?0:s.length;if(!L||u<1)return[];for(var W=0,re=0,ve=Ke(Ia(L/u));W<L;)ve[re++]=ko(s,W,W+=u);return ve}function FS(s){for(var u=-1,x=s==null?0:s.length,L=0,W=[];++u<x;){var re=s[u];re&&(W[L++]=re)}return W}function jS(){var s=arguments.length;if(!s)return[];for(var u=Ke(s-1),x=arguments[0],L=s;L--;)u[L-1]=arguments[L];return Fo(Tr(x)?xo(x):[x],eo(u,1))}var HS=Ar(function(s,u){return ro(s)?Vs(s,eo(u,1,ro,!0)):[]}),zS=Ar(function(s,u){var x=As(u);return ro(x)&&(x=t),ro(s)?Vs(s,eo(u,1,ro,!0),gr(x,2)):[]}),$S=Ar(function(s,u){var x=As(u);return ro(x)&&(x=t),ro(s)?Vs(s,eo(u,1,ro,!0),t,x):[]});function US(s,u,x){var L=s==null?0:s.length;return L?(u=x||u===t?1:Lr(u),ko(s,u<0?0:u,L)):[]}function qS(s,u,x){var L=s==null?0:s.length;return L?(u=x||u===t?1:Lr(u),u=L-u,ko(s,0,u<0?0:u)):[]}function WS(s,u){return s&&s.length?Js(s,gr(u,3),!0,!0):[]}function VS(s,u){return s&&s.length?Js(s,gr(u,3),!0):[]}function GS(s,u,x,L){var W=s==null?0:s.length;return W?(x&&typeof x!="number"&&hi(s,u,x)&&(x=0,L=W),Nf(s,u,x,L)):[]}function d0(s,u,x){var L=s==null?0:s.length;if(!L)return-1;var W=x==null?0:Lr(x);return W<0&&(W=yn(L+W,0)),Bs(s,gr(u,3),W)}function f0(s,u,x){var L=s==null?0:s.length;if(!L)return-1;var W=L-1;return x!==t&&(W=Lr(x),W=x<0?yn(L+W,0):$n(W,L-1)),Bs(s,gr(u,3),W,!0)}function h0(s){var u=s==null?0:s.length;return u?eo(s,1):[]}function YS(s){var u=s==null?0:s.length;return u?eo(s,ae):[]}function ZS(s,u){var x=s==null?0:s.length;return x?(u=u===t?1:Lr(u),eo(s,u)):[]}function KS(s){for(var u=-1,x=s==null?0:s.length,L={};++u<x;){var W=s[u];L[W[0]]=W[1]}return L}function p0(s){return s&&s.length?s[0]:t}function XS(s,u,x){var L=s==null?0:s.length;if(!L)return-1;var W=x==null?0:Lr(x);return W<0&&(W=yn(L+W,0)),$i(s,u,W)}function JS(s){var u=s==null?0:s.length;return u?ko(s,0,-1):[]}var QS=Ar(function(s){var u=an(s,Cc);return u.length&&u[0]===s[0]?ja(u):[]}),e_=Ar(function(s){var u=As(s),x=an(s,Cc);return u===As(x)?u=t:x.pop(),x.length&&x[0]===s[0]?ja(x,gr(u,2)):[]}),t_=Ar(function(s){var u=As(s),x=an(s,Cc);return u=typeof u=="function"?u:t,u&&x.pop(),x.length&&x[0]===s[0]?ja(x,t,u):[]});function r_(s,u){return s==null?"":gl.call(s,u)}function As(s){var u=s==null?0:s.length;return u?s[u-1]:t}function n_(s,u,x){var L=s==null?0:s.length;if(!L)return-1;var W=L;return x!==t&&(W=Lr(x),W=W<0?yn(L+W,0):$n(W,L-1)),u===u?_f(s,u,W):Bs(s,Sa,W,!0)}function o_(s,u){return s&&s.length?$a(s,Lr(u)):t}var i_=Ar(g0);function g0(s,u){return s&&s.length&&u&&u.length?wu(s,u):s}function s_(s,u,x){return s&&s.length&&u&&u.length?wu(s,u,gr(x,2)):s}function a_(s,u,x){return s&&s.length&&u&&u.length?wu(s,u,t,x):s}var l_=Il(function(s,u){var x=s==null?0:s.length,L=pu(s,u);return Cu(s,an(u,function(W){return Ml(W,x)?+W:W}).sort(Ru)),L});function c_(s,u){var x=[];if(!(s&&s.length))return x;var L=-1,W=[],re=s.length;for(u=gr(u,3);++L<re;){var ve=s[L];u(ve,L,s)&&(x.push(ve),W.push(L))}return Cu(s,W),x}function Ng(s){return s==null?s:ic.call(s)}function u_(s,u,x){var L=s==null?0:s.length;return L?(x&&typeof x!="number"&&hi(s,u,x)?(u=0,x=L):(u=u==null?0:Lr(u),x=x===t?L:Lr(x)),ko(s,u,x)):[]}function d_(s,u){return wc(s,u)}function f_(s,u,x){return Au(s,u,gr(x,2))}function h_(s,u){var x=s==null?0:s.length;if(x){var L=wc(s,u);if(L<x&&ta(s[L],u))return L}return-1}function p_(s,u){return wc(s,u,!0)}function g_(s,u,x){return Au(s,u,gr(x,2),!0)}function m_(s,u){var x=s==null?0:s.length;if(x){var L=wc(s,u,!0)-1;if(ta(s[L],u))return L}return-1}function v_(s){return s&&s.length?Eu(s):[]}function y_(s,u){return s&&s.length?Eu(s,gr(u,2)):[]}function b_(s){var u=s==null?0:s.length;return u?ko(s,1,u):[]}function x_(s,u,x){return s&&s.length?(u=x||u===t?1:Lr(u),ko(s,0,u<0?0:u)):[]}function w_(s,u,x){var L=s==null?0:s.length;return L?(u=x||u===t?1:Lr(u),u=L-u,ko(s,u<0?0:u,L)):[]}function C_(s,u){return s&&s.length?Js(s,gr(u,3),!1,!0):[]}function S_(s,u){return s&&s.length?Js(s,gr(u,3)):[]}var __=Ar(function(s){return ws(eo(s,1,ro,!0))}),A_=Ar(function(s){var u=As(s);return ro(u)&&(u=t),ws(eo(s,1,ro,!0),gr(u,2))}),E_=Ar(function(s){var u=As(s);return u=typeof u=="function"?u:t,ws(eo(s,1,ro,!0),t,u)});function T_(s){return s&&s.length?ws(s):[]}function R_(s,u){return s&&s.length?ws(s,gr(u,2)):[]}function k_(s,u){return u=typeof u=="function"?u:t,s&&s.length?ws(s,t,u):[]}function Pg(s){if(!(s&&s.length))return[];var u=0;return s=si(s,function(x){if(ro(x))return u=yn(x.length,u),!0}),Fe(u,function(x){return an(s,M(x))})}function m0(s,u){if(!(s&&s.length))return[];var x=Pg(s);return u==null?x:an(x,function(L){return vn(u,t,L)})}var I_=Ar(function(s,u){return ro(s)?Vs(s,u):[]}),M_=Ar(function(s){return to(si(s,ro))}),L_=Ar(function(s){var u=As(s);return ro(u)&&(u=t),to(si(s,ro),gr(u,2))}),D_=Ar(function(s){var u=As(s);return u=typeof u=="function"?u:t,to(si(s,ro),t,u)}),O_=Ar(Pg);function N_(s,u){return Ed(s||[],u||[],mo)}function P_(s,u){return Ed(s||[],u||[],Xs)}var B_=Ar(function(s){var u=s.length,x=u>1?s[u-1]:t;return x=typeof x=="function"?(s.pop(),x):t,m0(s,x)});function v0(s){var u=Z(s);return u.__chain__=!0,u}function F_(s,u){return u(s),s}function Uh(s,u){return u(s)}var j_=Il(function(s){var u=s.length,x=u?s[0]:0,L=this.__wrapped__,W=function(re){return pu(re,s)};return u>1||this.__actions__.length||!(L instanceof Er)||!Ml(x)?this.thru(W):(L=L.slice(x,+x+(u?1:0)),L.__actions__.push({func:Uh,args:[W],thisArg:t}),new co(L,this.__chain__).thru(function(re){return u&&!re.length&&re.push(t),re}))});function H_(){return v0(this)}function z_(){return new co(this.value(),this.__chain__)}function $_(){this.__values__===t&&(this.__values__=M0(this.value()));var s=this.__index__>=this.__values__.length,u=s?t:this.__values__[this.__index__++];return{done:s,value:u}}function U_(){return this}function q_(s){for(var u,x=this;x instanceof Xi;){var L=u0(x);L.__index__=0,L.__values__=t,u?W.__wrapped__=L:u=L;var W=L;x=x.__wrapped__}return W.__wrapped__=s,u}function W_(){var s=this.__wrapped__;if(s instanceof Er){var u=s;return this.__actions__.length&&(u=new Er(this)),u=u.reverse(),u.__actions__.push({func:Uh,args:[Ng],thisArg:t}),new co(u,this.__chain__)}return this.thru(Ng)}function V_(){return Ad(this.__wrapped__,this.__actions__)}var G_=kl(function(s,u,x){Kr.call(s,x)?++s[x]:qo(s,x,1)});function Y_(s,u,x){var L=Tr(s)?ll:pd;return x&&hi(s,u,x)&&(u=t),L(s,gr(u,3))}function Z_(s,u){var x=Tr(s)?si:gd;return x(s,gr(u,3))}var K_=K(d0),X_=K(f0);function J_(s,u){return eo(qh(s,u),1)}function Q_(s,u){return eo(qh(s,u),ae)}function eA(s,u,x){return x=x===t?1:Lr(x),eo(qh(s,u),x)}function y0(s,u){var x=Tr(s)?Jn:ys;return x(s,gr(u,3))}function b0(s,u){var x=Tr(s)?Gl:yu;return x(s,gr(u,3))}var tA=kl(function(s,u,x){Kr.call(s,x)?s[x].push(u):qo(s,x,[u])});function rA(s,u,x,L){s=Mi(s)?s:Dd(s),x=x&&!L?Lr(x):0;var W=s.length;return x<0&&(x=yn(W+x,0)),Zh(s)?x<=W&&s.indexOf(u,x)>-1:!!W&&$i(s,u,x)>-1}var nA=Ar(function(s,u,x){var L=-1,W=typeof u=="function",re=Mi(s)?Ke(s.length):[];return ys(s,function(ve){re[++L]=W?vn(u,ve,x):Ri(ve,u,x)}),re}),oA=kl(function(s,u,x){qo(s,x,u)});function qh(s,u){var x=Tr(s)?an:ui;return x(s,gr(u,3))}function iA(s,u,x,L){return s==null?[]:(Tr(u)||(u=u==null?[]:[u]),x=L?t:x,Tr(x)||(x=x==null?[]:[x]),yc(s,u,x))}var sA=kl(function(s,u,x){s[x?0:1].push(u)},function(){return[[],[]]});function aA(s,u,x){var L=Tr(s)?cl:Y,W=arguments.length<3;return L(s,gr(u,4),x,W,ys)}function lA(s,u,x){var L=Tr(s)?Yl:Y,W=arguments.length<3;return L(s,gr(u,4),x,W,yu)}function cA(s,u){var x=Tr(s)?si:gd;return x(s,Gh(gr(u,3)))}function uA(s){var u=Tr(s)?Ro:El;return u(s)}function dA(s,u,x){(x?hi(s,u,x):u===t)?u=1:u=Lr(u);var L=Tr(s)?Uo:_u;return L(s,u)}function fA(s){var u=Tr(s)?Ti:wd;return u(s)}function hA(s){if(s==null)return 0;if(Mi(s))return Zh(s)?Ea(s):s.length;var u=Qo(s);return u==je||u==Qe?s.size:es(s).length}function pA(s,u,x){var L=Tr(s)?ls:Cd;return x&&hi(s,u,x)&&(u=t),L(s,gr(u,3))}var gA=Ar(function(s,u){if(s==null)return[];var x=u.length;return x>1&&hi(s,u[0],u[1])?u=[]:x>2&&hi(u[0],u[1],u[2])&&(u=[u[0]]),yc(s,eo(u,1),[])}),Wh=pl||function(){return Cr.Date.now()};function mA(s,u){if(typeof u!="function")throw new Xo(a);return s=Lr(s),function(){if(--s<1)return u.apply(this,arguments)}}function x0(s,u,x){return u=x?t:u,u=s&&u==null?s.length:u,ea(s,H,t,t,t,t,u)}function w0(s,u){var x;if(typeof u!="function")throw new Xo(a);return s=Lr(s),function(){return--s>0&&(x=u.apply(this,arguments)),s<=1&&(u=t),x}}var Bg=Ar(function(s,u,x){var L=_;if(x.length){var W=Ui(x,Md(Bg));L|=F}return ea(s,L,u,x,W)}),C0=Ar(function(s,u,x){var L=_|A;if(x.length){var W=Ui(x,Md(C0));L|=F}return ea(u,L,s,x,W)});function S0(s,u,x){u=x?t:u;var L=ea(s,D,t,t,t,t,t,u);return L.placeholder=S0.placeholder,L}function _0(s,u,x){u=x?t:u;var L=ea(s,I,t,t,t,t,t,u);return L.placeholder=_0.placeholder,L}function A0(s,u,x){var L,W,re,ve,Ee,De,pt=0,mt=!1,Rt=!1,$t=!0;if(typeof s!="function")throw new Xo(a);u=Es(u)||0,Un(x)&&(mt=!!x.leading,Rt="maxWait"in x,re=Rt?yn(Es(x.maxWait)||0,u):re,$t="trailing"in x?!!x.trailing:$t);function sr(no){var ra=L,Ol=W;return L=W=t,pt=no,ve=s.apply(Ol,ra),ve}function mr(no){return pt=no,Ee=jf(qr,u),mt?sr(no):ve}function Nr(no){var ra=no-De,Ol=no-pt,q0=u-ra;return Rt?$n(q0,re-Ol):q0}function vr(no){var ra=no-De,Ol=no-pt;return De===t||ra>=u||ra<0||Rt&&Ol>=re}function qr(){var no=Wh();if(vr(no))return Yr(no);Ee=jf(qr,Nr(no))}function Yr(no){return Ee=t,$t&&L?sr(no):(L=W=t,ve)}function rs(){Ee!==t&&_c(Ee),pt=0,L=De=W=Ee=t}function pi(){return Ee===t?ve:Yr(Wh())}function ns(){var no=Wh(),ra=vr(no);if(L=arguments,W=this,De=no,ra){if(Ee===t)return mr(De);if(Rt)return _c(Ee),Ee=jf(qr,u),sr(De)}return Ee===t&&(Ee=jf(qr,u)),ve}return ns.cancel=rs,ns.flush=pi,ns}var vA=Ar(function(s,u){return vu(s,1,u)}),yA=Ar(function(s,u,x){return vu(s,Es(u)||0,x)});function bA(s){return ea(s,G)}function Vh(s,u){if(typeof s!="function"||u!=null&&typeof u!="function")throw new Xo(a);var x=function(){var L=arguments,W=u?u.apply(this,L):L[0],re=x.cache;if(re.has(W))return re.get(W);var ve=s.apply(this,L);return x.cache=re.set(W,ve)||re,ve};return x.cache=new(Vh.Cache||Ji),x}Vh.Cache=Ji;function Gh(s){if(typeof s!="function")throw new Xo(a);return function(){var u=arguments;switch(u.length){case 0:return!s.call(this);case 1:return!s.call(this,u[0]);case 2:return!s.call(this,u[0],u[1]);case 3:return!s.call(this,u[0],u[1],u[2])}return!s.apply(this,u)}}function xA(s){return w0(2,s)}var wA=Td(function(s,u){u=u.length==1&&Tr(u[0])?an(u[0],Zt(gr())):an(eo(u,1),Zt(gr()));var x=u.length;return Ar(function(L){for(var W=-1,re=$n(L.length,x);++W<re;)L[W]=u[W].call(this,L[W]);return vn(s,this,L)})}),Fg=Ar(function(s,u){var x=Ui(u,Md(Fg));return ea(s,F,t,u,x)}),E0=Ar(function(s,u){var x=Ui(u,Md(E0));return ea(s,B,t,u,x)}),CA=Il(function(s,u){return ea(s,j,t,t,t,u)});function SA(s,u){if(typeof s!="function")throw new Xo(a);return u=u===t?u:Lr(u),Ar(s,u)}function _A(s,u){if(typeof s!="function")throw new Xo(a);return u=u==null?0:yn(Lr(u),0),Ar(function(x){var L=x[u],W=Cs(x,0,u);return L&&Fo(W,L),vn(s,this,W)})}function AA(s,u,x){var L=!0,W=!0;if(typeof s!="function")throw new Xo(a);return Un(x)&&(L="leading"in x?!!x.leading:L,W="trailing"in x?!!x.trailing:W),A0(s,u,{leading:L,maxWait:u,trailing:W})}function EA(s){return x0(s,1)}function TA(s,u){return Fg(Sc(u),s)}function RA(){if(!arguments.length)return[];var s=arguments[0];return Tr(s)?s:[s]}function kA(s){return vo(s,v)}function IA(s,u){return u=typeof u=="function"?u:t,vo(s,v,u)}function MA(s){return vo(s,m|v)}function LA(s,u){return u=typeof u=="function"?u:t,vo(s,m|v,u)}function DA(s,u){return u==null||mu(s,u,Io(u))}function ta(s,u){return s===u||s!==s&&u!==u}var OA=Ii(Gs),NA=Ii(function(s,u){return s>=u}),Lu=gc(function(){return arguments}())?gc:function(s){return Gn(s)&&Kr.call(s,"callee")&&!rc.call(s,"callee")},Tr=Ke.isArray,PA=fn?Zt(fn):Ys;function Mi(s){return s!=null&&Yh(s.length)&&!Ll(s)}function ro(s){return Gn(s)&&Mi(s)}function BA(s){return s===!0||s===!1||Gn(s)&&Wn(s)==We}var Ec=oc||Zg,FA=po?Zt(po):vd;function jA(s){return Gn(s)&&s.nodeType===1&&!Hf(s)}function HA(s){if(s==null)return!0;if(Mi(s)&&(Tr(s)||typeof s=="string"||typeof s.splice=="function"||Ec(s)||Ld(s)||Lu(s)))return!s.length;var u=Qo(s);if(u==je||u==Qe)return!s.size;if(Ff(s))return!es(s).length;for(var x in s)if(Kr.call(s,x))return!1;return!0}function zA(s,u){return Cl(s,u)}function $A(s,u,x){x=typeof x=="function"?x:t;var L=x?x(s,u):t;return L===t?Cl(s,u,t,x):!!L}function jg(s){if(!Gn(s))return!1;var u=Wn(s);return u==_e||u==we||typeof s.message=="string"&&typeof s.name=="string"&&!Hf(s)}function UA(s){return typeof s=="number"&&La(s)}function Ll(s){if(!Un(s))return!1;var u=Wn(s);return u==Ae||u==Ie||u==Le||u==bt}function T0(s){return typeof s=="number"&&s==Lr(s)}function Yh(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=le}function Un(s){var u=typeof s;return s!=null&&(u=="object"||u=="function")}function Gn(s){return s!=null&&typeof s=="object"}var R0=To?Zt(To):za;function qA(s,u){return s===u||xu(s,u,kg(u))}function WA(s,u,x){return x=typeof x=="function"?x:t,xu(s,u,kg(u),x)}function VA(s){return k0(s)&&s!=+s}function GA(s){if(IS(s))throw new fr(i);return yd(s)}function YA(s){return s===null}function ZA(s){return s==null}function k0(s){return typeof s=="number"||Gn(s)&&Wn(s)==it}function Hf(s){if(!Gn(s)||Wn(s)!=tt)return!1;var u=js(s);if(u===null)return!0;var x=Kr.call(u,"constructor")&&u.constructor;return typeof x=="function"&&x instanceof x&&us.call(x)==nu}var Hg=Xn?Zt(Xn):Zs;function KA(s){return T0(s)&&s>=-9007199254740991&&s<=le}var I0=Hi?Zt(Hi):mc;function Zh(s){return typeof s=="string"||!Tr(s)&&Gn(s)&&Wn(s)==Xe}function ts(s){return typeof s=="symbol"||Gn(s)&&Wn(s)==ht}var Ld=ii?Zt(ii):Qi;function XA(s){return s===t}function JA(s){return Gn(s)&&Qo(s)==Oe}function QA(s){return Gn(s)&&Wn(s)==Je}var eE=Ii(ci),tE=Ii(function(s,u){return s<=u});function M0(s){if(!s)return[];if(Mi(s))return Zh(s)?Sn(s):xo(s);if(ai&&s[ai])return eu(s[ai]());var u=Qo(s),x=u==je?tu:u==Qe?dl:Dd;return x(s)}function Dl(s){if(!s)return s===0?s:0;if(s=Es(s),s===ae||s===-1/0){var u=s<0?-1:1;return u*fe}return s===s?s:0}function Lr(s){var u=Dl(s),x=u%1;return u===u?x?u-x:u:0}function L0(s){return s?Ws(Lr(s),0,ne):0}function Es(s){if(typeof s=="number")return s;if(ts(s))return ee;if(Un(s)){var u=typeof s.valueOf=="function"?s.valueOf():s;s=Un(u)?u+"":u}if(typeof s!="string")return s===0?s:+s;s=Lt(s);var x=Qt.test(s);return x||be.test(s)?Kt(s.slice(2),x?2:8):er.test(s)?ee:+s}function D0(s){return Jo(s,Li(s))}function rE(s){return s?Ws(Lr(s),-9007199254740991,le):s===0?s:0}function pn(s){return s==null?"":yo(s)}var nE=qa(function(s,u){if(Ff(u)||Mi(u)){Jo(u,Io(u),s);return}for(var x in u)Kr.call(u,x)&&mo(s,x,u[x])}),O0=qa(function(s,u){Jo(u,Li(u),s)}),Kh=qa(function(s,u,x,L){Jo(u,Li(u),s,L)}),oE=qa(function(s,u,x,L){Jo(u,Io(u),s,L)}),iE=Il(pu);function sE(s,u){var x=Ki(s);return u==null?x:hd(x,u)}var aE=Ar(function(s,u){s=Qr(s);var x=-1,L=u.length,W=L>2?u[2]:t;for(W&&hi(u[0],u[1],W)&&(L=1);++x<L;)for(var re=u[x],ve=Li(re),Ee=-1,De=ve.length;++Ee<De;){var pt=ve[Ee],mt=s[pt];(mt===t||ta(mt,cs[pt])&&!Kr.call(s,pt))&&(s[pt]=re[pt])}return s}),lE=Ar(function(s){return s.push(t,Xv),vn(N0,t,s)});function cE(s,u){return Ps(s,gr(u,3),Wo)}function uE(s,u){return Ps(s,gr(u,3),dc)}function dE(s,u){return s==null?s:bu(s,gr(u,3),Li)}function fE(s,u){return s==null?s:md(s,gr(u,3),Li)}function hE(s,u){return s&&Wo(s,gr(u,3))}function pE(s,u){return s&&dc(s,gr(u,3))}function gE(s){return s==null?[]:Ba(s,Io(s))}function mE(s){return s==null?[]:Ba(s,Li(s))}function zg(s,u,x){var L=s==null?t:bs(s,u);return L===t?x:L}function vE(s,u){return s!=null&&e0(s,u,fc)}function $g(s,u){return s!=null&&e0(s,u,Fa)}var yE=dt(function(s,u,x){u!=null&&typeof u.toString!="function"&&(u=Wi.call(u)),s[u]=x},qg(Di)),bE=dt(function(s,u,x){u!=null&&typeof u.toString!="function"&&(u=Wi.call(u)),Kr.call(s,u)?s[u].push(x):s[u]=[x]},gr),xE=Ar(Ri);function Io(s){return Mi(s)?xl(s):es(s)}function Li(s){return Mi(s)?xl(s,!0):Sl(s)}function wE(s,u){var x={};return u=gr(u,3),Wo(s,function(L,W,re){qo(x,u(L,W,re),L)}),x}function CE(s,u){var x={};return u=gr(u,3),Wo(s,function(L,W,re){qo(x,W,u(L,W,re))}),x}var SE=qa(function(s,u,x){xs(s,u,x)}),N0=qa(function(s,u,x,L){xs(s,u,x,L)}),_E=Il(function(s,u){var x={};if(s==null)return x;var L=!1;u=an(u,function(re){return re=Vo(re,s),L||(L=re.length>1),re}),Jo(s,Tg(s),x),L&&(x=vo(x,m|p|v,yS));for(var W=u.length;W--;)bo(x,u[W]);return x});function AE(s,u){return P0(s,Gh(gr(u)))}var EE=Il(function(s,u){return s==null?{}:Al(s,u)});function P0(s,u){if(s==null)return{};var x=an(Tg(s),function(L){return[L]});return u=gr(u),Ua(s,x,function(L,W){return u(L,W[0])})}function TE(s,u,x){u=Vo(u,s);var L=-1,W=u.length;for(W||(W=1,s=t);++L<W;){var re=s==null?t:s[Va(u[L])];re===t&&(L=W,re=x),s=Ll(re)?re.call(s):re}return s}function RE(s,u,x){return s==null?s:Xs(s,u,x)}function kE(s,u,x,L){return L=typeof L=="function"?L:t,s==null?s:Xs(s,u,x,L)}var B0=Id(Io),F0=Id(Li);function IE(s,u,x){var L=Tr(s),W=L||Ec(s)||Ld(s);if(u=gr(u,4),x==null){var re=s&&s.constructor;W?x=L?new re:[]:Un(s)?x=Ll(re)?Ki(js(s)):{}:x={}}return(W?Jn:Wo)(s,function(ve,Ee,De){return u(x,ve,Ee,De)}),x}function ME(s,u){return s==null?!0:bo(s,u)}function LE(s,u,x){return s==null?s:_d(s,u,Sc(x))}function DE(s,u,x,L){return L=typeof L=="function"?L:t,s==null?s:_d(s,u,Sc(x),L)}function Dd(s){return s==null?[]:Sr(s,Io(s))}function OE(s){return s==null?[]:Sr(s,Li(s))}function NE(s,u,x){return x===t&&(x=u,u=t),x!==t&&(x=Es(x),x=x===x?x:0),u!==t&&(u=Es(u),u=u===u?u:0),Ws(Es(s),u,x)}function PE(s,u,x){return u=Dl(u),x===t?(x=u,u=0):x=Dl(x),s=Es(s),hc(s,u,x)}function BE(s,u,x){if(x&&typeof x!="boolean"&&hi(s,u,x)&&(u=x=t),x===t&&(typeof u=="boolean"?(x=u,u=t):typeof s=="boolean"&&(x=s,s=t)),s===t&&u===t?(s=0,u=1):(s=Dl(s),u===t?(u=s,s=0):u=Dl(u)),s>u){var L=s;s=u,u=L}if(x||s%1||u%1){var W=hs();return $n(s+W*(u-s+or("1e-"+((W+"").length-1))),u)}return Ks(s,u)}var FE=E(function(s,u,x){return u=u.toLowerCase(),s+(x?j0(u):u)});function j0(s){return Ug(pn(s).toLowerCase())}function H0(s){return s=pn(s),s&&s.replace(yt,Ho).replace(Ci,"")}function jE(s,u,x){s=pn(s),u=yo(u);var L=s.length;x=x===t?L:Ws(Lr(x),0,L);var W=x;return x-=u.length,x>=0&&s.slice(x,W)==u}function HE(s){return s=pn(s),s&&Ge.test(s)?s.replace(Tt,_a):s}function zE(s){return s=pn(s),s&&ir.test(s)?s.replace(Yt,"\\$&"):s}var $E=E(function(s,u,x){return s+(x?"-":"")+u.toLowerCase()}),UE=E(function(s,u,x){return s+(x?" ":"")+u.toLowerCase()}),qE=y("toLowerCase");function WE(s,u,x){s=pn(s),u=Lr(u);var L=u?Ea(s):0;if(!u||L>=u)return s;var W=(u-L)/2;return ur(Hs(W),x)+s+ur(Ia(W),x)}function VE(s,u,x){s=pn(s),u=Lr(u);var L=u?Ea(s):0;return u&&L<u?s+ur(u-L,x):s}function GE(s,u,x){s=pn(s),u=Lr(u);var L=u?Ea(s):0;return u&&L<u?ur(u-L,x)+s:s}function YE(s,u,x){return x||u==null?u=0:u&&(u=+u),su(pn(s).replace(jt,""),u||0)}function ZE(s,u,x){return(x?hi(s,u,x):u===t)?u=1:u=Lr(u),bc(pn(s),u)}function KE(){var s=arguments,u=pn(s[0]);return s.length<3?u:u.replace(s[1],s[2])}var XE=E(function(s,u,x){return s+(x?"_":"")+u.toLowerCase()});function JE(s,u,x){return x&&typeof x!="number"&&hi(s,u,x)&&(u=x=t),x=x===t?ne:x>>>0,x?(s=pn(s),s&&(typeof u=="string"||u!=null&&!Hg(u))&&(u=yo(u),!u&&Aa(s))?Cs(Sn(s),0,x):s.split(u,x)):[]}var QE=E(function(s,u,x){return s+(x?" ":"")+Ug(u)});function e3(s,u,x){return s=pn(s),x=x==null?0:Ws(Lr(x),0,s.length),u=yo(u),s.slice(x,x+u.length)==u}function t3(s,u,x){var L=Z.templateSettings;x&&hi(s,u,x)&&(u=t),s=pn(s),u=Kh({},u,L,Kv);var W=Kh({},u.imports,L.imports,Kv),re=Io(W),ve=Sr(W,re),Ee,De,pt=0,mt=u.interpolate||yr,Rt="__p += '",$t=Ta((u.escape||yr).source+"|"+mt.source+"|"+(mt===xt?Ft:yr).source+"|"+(u.evaluate||yr).source+"|$","g"),sr="//# sourceURL="+(Kr.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Hr+"]")+`
|
41
41
|
`;s.replace($t,function(vr,qr,Yr,rs,pi,ns){return Yr||(Yr=rs),Rt+=s.slice(pt,ns).replace(Br,Jl),qr&&(Ee=!0,Rt+=`' +
|
@@ -48,7 +48,7 @@ __p += '`),Yr&&(Rt+=`' +
|
|
48
48
|
`;var mr=Kr.call(u,"variable")&&u.variable;if(!mr)Rt=`with (obj) {
|
49
49
|
`+Rt+`
|
50
50
|
}
|
51
|
-
`;else if(Be.test(mr))throw new fr(c);Rt=(De?Rt.replace(
|
51
|
+
`;else if(Be.test(mr))throw new fr(c);Rt=(De?Rt.replace(at,""):Rt).replace(ze,"$1").replace(vt,"$1;"),Rt="function("+(mr||"obj")+`) {
|
52
52
|
`+(mr?"":`obj || (obj = {});
|
53
53
|
`)+"var __t, __p = ''"+(Ee?", __e = _.escape":"")+(De?`, __j = Array.prototype.join;
|
54
54
|
function print() { __p += __j.call(arguments, '') }
|
@@ -68,7 +68,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
68
68
|
`?k.push(`
|
69
69
|
`,X):k.push(""+X))}return typeof Ne=="string"&&Ne[0]===`
|
70
70
|
`&&k.push(`
|
71
|
-
`),Ne;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":k.push(q($));for(var Rn in X)if(t.call(X,Rn)&&(Ne=X[Rn],Ne!=null))switch(Rn){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,$));default:B(k,he,Rn,Ne)}return k.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 G(k,X,$,he);case"html":return He.insertionMode===0&&k.push("<!DOCTYPE html>"),G(k,X,$,he);default:if($.indexOf("-")===-1&&typeof X.is!="string")return G(k,X,$,he);k.push(q($)),et=Ne=null;for(Gt in X)if(t.call(X,Gt)&&(St=X[Gt],St!=null))switch(Gt){case"children":Ne=St;break;case"dangerouslySetInnerHTML":et=St;break;case"style":F(k,he,St);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:a(Gt)&&typeof St!="function"&&typeof St!="symbol"&&k.push(" ",Gt,'="',w(St),'"')}return k.push(">"),H(k,et,Ne),Ne}}function Q(k,$,X){if(k.push('<!--$?--><template id="'),X===null)throw Error(e(395));return k.push(X),k.push('"></template>')}function ie(k,$,X,he){switch(X.insertionMode){case 0:case 1:return k.push('<div hidden id="'),k.push($.segmentPrefix),$=he.toString(16),k.push($),k.push('">');case 2:return k.push('<svg aria-hidden="true" style="display:none" id="'),k.push($.segmentPrefix),$=he.toString(16),k.push($),k.push('">');case 3:return k.push('<math aria-hidden="true" style="display:none" id="'),k.push($.segmentPrefix),$=he.toString(16),k.push($),k.push('">');case 4:return k.push('<table hidden id="'),k.push($.segmentPrefix),$=he.toString(16),k.push($),k.push('">');case 5:return k.push('<table hidden><tbody id="'),k.push($.segmentPrefix),$=he.toString(16),k.push($),k.push('">');case 6:return k.push('<table hidden><tr id="'),k.push($.segmentPrefix),$=he.toString(16),k.push($),k.push('">');case 7:return k.push('<table hidden><colgroup id="'),k.push($.segmentPrefix),$=he.toString(16),k.push($),k.push('">');default:throw Error(e(397))}}function se(k,$){switch($.insertionMode){case 0:case 1:return k.push("</div>");case 2:return k.push("</svg>");case 3:return k.push("</math>");case 4:return k.push("</table>");case 5:return k.push("</tbody></table>");case 6:return k.push("</tr></table>");case 7:return k.push("</colgroup></table>");default:throw Error(e(397))}}var ae=/[<\u2028\u2029]/g;function le(k){return JSON.stringify(k).replace(ae,function($){switch($){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 fe(k,$){return $=$===void 0?"":$,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:$+"P:",segmentPrefix:$+"S:",boundaryPrefix:$+"B:",idPrefix:$,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:k}}function ee(k,$,X,he){return X.generateStaticMarkup?(k.push(w($)),!1):($===""?k=he:(he&&k.push("<!-- -->"),k.push(w($)),k=!0),k)}var ne=Object.assign,ce=Symbol.for("react.element"),xe=Symbol.for("react.portal"),Me=Symbol.for("react.fragment"),oe=Symbol.for("react.strict_mode"),Se=Symbol.for("react.profiler"),Le=Symbol.for("react.provider"),We=Symbol.for("react.context"),Ve=Symbol.for("react.forward_ref"),we=Symbol.for("react.suspense"),_e=Symbol.for("react.suspense_list"),Ae=Symbol.for("react.memo"),Ie=Symbol.for("react.lazy"),je=Symbol.for("react.scope"),it=Symbol.for("react.debug_trace_mode"),Ue=Symbol.for("react.legacy_hidden"),tt=Symbol.for("react.default_value"),lt=Symbol.iterator;function bt(k){if(k==null)return null;if(typeof k=="function")return k.displayName||k.name||null;if(typeof k=="string")return k;switch(k){case Me:return"Fragment";case xe:return"Portal";case Se:return"Profiler";case oe:return"StrictMode";case we:return"Suspense";case _e:return"SuspenseList"}if(typeof k=="object")switch(k.$$typeof){case We:return(k.displayName||"Context")+".Consumer";case Le:return(k._context.displayName||"Context")+".Provider";case Ve:var $=k.render;return k=k.displayName,k||(k=$.displayName||$.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case Ae:return $=k.displayName||null,$!==null?$:bt(k.type)||"Memo";case Ie:$=k._payload,k=k._init;try{return bt(k($))}catch{}}return null}var Mt={};function Qe(k,$){if(k=k.contextTypes,!k)return Mt;var X={},he;for(he in k)X[he]=$[he];return X}var Xe=null;function ht(k,$){if(k!==$){k.context._currentValue2=k.parentValue,k=k.parent;var X=$.parent;if(k===null){if(X!==null)throw Error(e(401))}else{if(X===null)throw Error(e(401));ht(k,X)}$.context._currentValue2=$.value}}function ft(k){k.context._currentValue2=k.parentValue,k=k.parent,k!==null&&ft(k)}function Oe(k){var $=k.parent;$!==null&&Oe($),k.context._currentValue2=k.value}function Je(k,$){if(k.context._currentValue2=k.parentValue,k=k.parent,k===null)throw Error(e(402));k.depth===$.depth?ht(k,$):Je(k,$)}function gt(k,$){var X=$.parent;if(X===null)throw Error(e(402));k.depth===X.depth?ht(k,X):gt(k,X),$.context._currentValue2=$.value}function It(k){var $=Xe;$!==k&&($===null?Oe(k):k===null?ft($):$.depth===k.depth?ht($,k):$.depth>k.depth?Je($,k):gt($,k),Xe=k)}var Et={isMounted:function(){return!1},enqueueSetState:function(k,$){k=k._reactInternals,k.queue!==null&&k.queue.push($)},enqueueReplaceState:function(k,$){k=k._reactInternals,k.replace=!0,k.queue=[$]},enqueueForceUpdate:function(){}};function Dt(k,$,X,he){var He=k.state!==void 0?k.state:null;k.updater=Et,k.props=X,k.state=He;var Ne={queue:[],replace:!1};k._reactInternals=Ne;var et=$.contextType;if(k.context=typeof et=="object"&&et!==null?et._currentValue2:he,et=$.getDerivedStateFromProps,typeof et=="function"&&(et=et(X,He),He=et==null?He:ne({},He,et),k.state=He),typeof $.getDerivedStateFromProps!="function"&&typeof k.getSnapshotBeforeUpdate!="function"&&(typeof k.UNSAFE_componentWillMount=="function"||typeof k.componentWillMount=="function"))if($=k.state,typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount(),$!==k.state&&Et.enqueueReplaceState(k,k.state,null),Ne.queue!==null&&0<Ne.queue.length)if($=Ne.queue,et=Ne.replace,Ne.queue=null,Ne.replace=!1,et&&$.length===1)k.state=$[0];else{for(Ne=et?$[0]:k.state,He=!0,et=et?1:0;et<$.length;et++){var St=$[et];St=typeof St=="function"?St.call(k,Ne,X,he):St,St!=null&&(He?(He=!1,Ne=ne({},Ne,St)):ne(Ne,St))}k.state=Ne}else Ne.queue=null}var Xt={id:1,overflow:""};function Wt(k,$,X){var he=k.id;k=k.overflow;var He=32-hr(he)-1;he&=~(1<<He),X+=1;var Ne=32-hr($)+He;if(30<Ne){var et=He-He%5;return Ne=(he&(1<<et)-1).toString(32),he>>=et,He-=et,{id:1<<32-hr($)+He|X<<He|he,overflow:Ne+k}}return{id:1<<Ne|X<<He|he,overflow:k}}var hr=Math.clz32?Math.clz32:Te,dr=Math.log,cr=Math.LN2;function Te(k){return k>>>=0,k===0?32:31-(dr(k)/cr|0)|0}function ue(k,$){return k===$&&(k!==0||1/k===1/$)||k!==k&&$!==$}var st=typeof Object.is=="function"?Object.is:ue,ze=null,vt=null,_t=null,Tt=null,Ut=!1,Ge=!1,at=0,ct=null,xt=0;function Nt(){if(ze===null)throw Error(e(321));return ze}function Bt(){if(0<xt)throw Error(e(312));return{memoizedState:null,queue:null,next:null}}function qt(){return Tt===null?_t===null?(Ut=!1,_t=Tt=Bt()):(Ut=!0,Tt=_t):Tt.next===null?(Ut=!1,Tt=Tt.next=Bt()):(Ut=!0,Tt=Tt.next),Tt}function Yt(){vt=ze=null,Ge=!1,_t=null,xt=0,Tt=ct=null}function ir(k,$){return typeof $=="function"?$(k):$}function jt(k,$,X){if(ze=Nt(),Tt=qt(),Ut){var he=Tt.queue;if($=he.dispatch,ct!==null&&(X=ct.get(he),X!==void 0)){ct.delete(he),he=Tt.memoizedState;do he=k(he,X.action),X=X.next;while(X!==null);return Tt.memoizedState=he,[he,$]}return[Tt.memoizedState,$]}return k=k===ir?typeof $=="function"?$():$:X!==void 0?X($):$,Tt.memoizedState=k,k=Tt.queue={last:null,dispatch:null},k=k.dispatch=jr.bind(null,ze,k),[Tt.memoizedState,k]}function xr(k,$){if(ze=Nt(),Tt=qt(),$=$===void 0?null:$,Tt!==null){var X=Tt.memoizedState;if(X!==null&&$!==null){var he=X[1];e:if(he===null)he=!1;else{for(var He=0;He<he.length&&He<$.length;He++)if(!st($[He],he[He])){he=!1;break e}he=!0}if(he)return X[0]}}return k=k(),Tt.memoizedState=[k,$],k}function jr(k,$,X){if(25<=xt)throw Error(e(301));if(k===ze)if(Ge=!0,k={action:X,next:null},ct===null&&(ct=new Map),X=ct.get($),X===void 0)ct.set($,k);else{for($=X;$.next!==null;)$=$.next;$.next=k}}function Ze(){throw Error(e(394))}function te(){}var ye={readContext:function(k){return k._currentValue2},useContext:function(k){return Nt(),k._currentValue2},useMemo:xr,useReducer:jt,useRef:function(k){ze=Nt(),Tt=qt();var $=Tt.memoizedState;return $===null?(k={current:k},Tt.memoizedState=k):$},useState:function(k){return jt(ir,k)},useInsertionEffect:te,useLayoutEffect:function(){},useCallback:function(k,$){return xr(function(){return k},$)},useImperativeHandle:te,useEffect:te,useDebugValue:te,useDeferredValue:function(k){return Nt(),k},useTransition:function(){return Nt(),[!1,Ze]},useId:function(){var k=vt.treeContext,$=k.overflow;k=k.id,k=(k&~(1<<32-hr(k)-1)).toString(32)+$;var X=Be;if(X===null)throw Error(e(404));return $=at++,k=":"+X.idPrefix+"R"+k,0<$&&(k+="H"+$.toString(32)),k+":"},useMutableSource:function(k,$){return Nt(),$(k._source)},useSyncExternalStore:function(k,$,X){if(X===void 0)throw Error(e(407));return X()}},Be=null,At=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Ft(k){return console.error(k),null}function Ot(){}function er(k,$,X,he,He,Ne,et,St,Ht){var Gt=[],Vt=new Set;return $={destination:null,responseState:$,progressiveChunkSize:he===void 0?12800:he,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Vt,pingedTasks:Gt,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:He===void 0?Ft:He,onAllReady:Ot,onShellReady:et===void 0?Ot:et,onShellError:Ot,onFatalError:Ot},X=kt($,0,null,X,!1,!1),X.parentFlushed=!0,k=Qt($,k,null,X,Vt,Mt,null,Xt),Gt.push(k),$}function Qt(k,$,X,he,He,Ne,et,St){k.allPendingTasks++,X===null?k.pendingRootTasks++:X.pendingTasks++;var Ht={node:$,ping:function(){var Gt=k.pingedTasks;Gt.push(Ht),Gt.length===1&&Bn(k)},blockedBoundary:X,blockedSegment:he,abortSet:He,legacyContext:Ne,context:et,treeContext:St};return He.add(Ht),Ht}function kt(k,$,X,he,He,Ne){return{status:0,id:-1,index:$,parentFlushed:!1,chunks:[],children:[],formatContext:he,boundary:X,lastPushedText:He,textEmbedded:Ne}}function be(k,$){if(k=k.onError($),k!=null&&typeof k!="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 k+'" instead');return k}function nt(k,$){var X=k.onShellError;X($),X=k.onFatalError,X($),k.destination!==null?(k.status=2,k.destination.destroy($)):(k.status=1,k.fatalError=$)}function yt(k,$,X,he,He){for(ze={},vt=$,at=0,k=X(he,He);Ge;)Ge=!1,at=0,xt+=1,Tt=null,k=X(he,He);return Yt(),k}function yr(k,$,X,he){var He=X.render(),Ne=he.childContextTypes;if(Ne!=null){var et=$.legacyContext;if(typeof X.getChildContext!="function")he=et;else{X=X.getChildContext();for(var St in X)if(!(St in Ne))throw Error(e(108,bt(he)||"Unknown",St));he=ne({},et,X)}$.legacyContext=he,br(k,$,He),$.legacyContext=et}else br(k,$,He)}function Br(k,$){if(k&&k.defaultProps){$=ne({},$),k=k.defaultProps;for(var X in k)$[X]===void 0&&($[X]=k[X]);return $}return $}function lr(k,$,X,he,He){if(typeof X=="function")if(X.prototype&&X.prototype.isReactComponent){He=Qe(X,$.legacyContext);var Ne=X.contextType;Ne=new X(he,typeof Ne=="object"&&Ne!==null?Ne._currentValue2:He),Dt(Ne,X,he,He),yr(k,$,Ne,X)}else{Ne=Qe(X,$.legacyContext),He=yt(k,$,X,he,Ne);var et=at!==0;if(typeof He=="object"&&He!==null&&typeof He.render=="function"&&He.$$typeof===void 0)Dt(He,X,he,Ne),yr(k,$,He,X);else if(et){he=$.treeContext,$.treeContext=Wt(he,1,0);try{br(k,$,He)}finally{$.treeContext=he}}else br(k,$,He)}else if(typeof X=="string"){switch(He=$.blockedSegment,Ne=V(He.chunks,X,he,k.responseState,He.formatContext),He.lastPushedText=!1,et=He.formatContext,He.formatContext=D(et,X,he),on(k,$,Ne),He.formatContext=et,X){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:He.chunks.push("</",X,">")}He.lastPushedText=!1}else{switch(X){case Ue:case it:case oe:case Se:case Me:br(k,$,he.children);return;case _e:br(k,$,he.children);return;case je:throw Error(e(343));case we:e:{X=$.blockedBoundary,He=$.blockedSegment,Ne=he.fallback,he=he.children,et=new Set;var St={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:et,errorDigest:null},Ht=kt(k,He.chunks.length,St,He.formatContext,!1,!1);He.children.push(Ht),He.lastPushedText=!1;var Gt=kt(k,0,null,He.formatContext,!1,!1);Gt.parentFlushed=!0,$.blockedBoundary=St,$.blockedSegment=Gt;try{if(on(k,$,he),k.responseState.generateStaticMarkup||Gt.lastPushedText&&Gt.textEmbedded&&Gt.chunks.push("<!-- -->"),Gt.status=1,tn(St,Gt),St.pendingTasks===0)break e}catch(Vt){Gt.status=4,St.forceClientRender=!0,St.errorDigest=be(k,Vt)}finally{$.blockedBoundary=X,$.blockedSegment=He}$=Qt(k,Ne,X,Ht,et,$.legacyContext,$.context,$.treeContext),k.pingedTasks.push($)}return}if(typeof X=="object"&&X!==null)switch(X.$$typeof){case Ve:if(he=yt(k,$,X.render,he,He),at!==0){X=$.treeContext,$.treeContext=Wt(X,1,0);try{br(k,$,he)}finally{$.treeContext=X}}else br(k,$,he);return;case Ae:X=X.type,he=Br(X,he),lr(k,$,X,he,He);return;case Le:if(He=he.children,X=X._context,he=he.value,Ne=X._currentValue2,X._currentValue2=he,et=Xe,Xe=he={parent:et,depth:et===null?0:et.depth+1,context:X,parentValue:Ne,value:he},$.context=he,br(k,$,He),k=Xe,k===null)throw Error(e(403));he=k.parentValue,k.context._currentValue2=he===tt?k.context._defaultValue:he,k=Xe=k.parent,$.context=k;return;case We:he=he.children,he=he(X._currentValue2),br(k,$,he);return;case Ie:He=X._init,X=He(X._payload),he=Br(X,he),lr(k,$,X,he,void 0);return}throw Error(e(130,X==null?X:typeof X,""))}}function br(k,$,X){if($.node=X,typeof X=="object"&&X!==null){switch(X.$$typeof){case ce:lr(k,$,X.type,X.props,X.ref);return;case xe:throw Error(e(257));case Ie:var he=X._init;X=he(X._payload),br(k,$,X);return}if(A(X)){en(k,$,X);return}if(X===null||typeof X!="object"?he=null:(he=lt&&X[lt]||X["@@iterator"],he=typeof he=="function"?he:null),he&&(he=he.call(X))){if(X=he.next(),!X.done){var He=[];do He.push(X.value),X=he.next();while(!X.done);en(k,$,He)}return}throw k=Object.prototype.toString.call(X),Error(e(31,k==="[object Object]"?"object with keys {"+Object.keys(X).join(", ")+"}":k))}typeof X=="string"?(he=$.blockedSegment,he.lastPushedText=ee($.blockedSegment.chunks,X,k.responseState,he.lastPushedText)):typeof X=="number"&&(he=$.blockedSegment,he.lastPushedText=ee($.blockedSegment.chunks,""+X,k.responseState,he.lastPushedText))}function en(k,$,X){for(var he=X.length,He=0;He<he;He++){var Ne=$.treeContext;$.treeContext=Wt(Ne,he,He);try{on(k,$,X[He])}finally{$.treeContext=Ne}}}function on(k,$,X){var he=$.blockedSegment.formatContext,He=$.legacyContext,Ne=$.context;try{return br(k,$,X)}catch(Ht){if(Yt(),typeof Ht=="object"&&Ht!==null&&typeof Ht.then=="function"){X=Ht;var et=$.blockedSegment,St=kt(k,et.chunks.length,null,et.formatContext,et.lastPushedText,!0);et.children.push(St),et.lastPushedText=!1,k=Qt(k,$.node,$.blockedBoundary,St,$.abortSet,$.legacyContext,$.context,$.treeContext).ping,X.then(k,k),$.blockedSegment.formatContext=he,$.legacyContext=He,$.context=Ne,It(Ne)}else throw $.blockedSegment.formatContext=he,$.legacyContext=He,$.context=Ne,It(Ne),Ht}}function Pn(k){var $=k.blockedBoundary;k=k.blockedSegment,k.status=3,Tn(this,$,k)}function zr(k,$,X){var he=k.blockedBoundary;k.blockedSegment.status=3,he===null?($.allPendingTasks--,$.status!==2&&($.status=2,$.destination!==null&&$.destination.push(null))):(he.pendingTasks--,he.forceClientRender||(he.forceClientRender=!0,k=X===void 0?Error(e(432)):X,he.errorDigest=$.onError(k),he.parentFlushed&&$.clientRenderedBoundaries.push(he)),he.fallbackAbortableTasks.forEach(function(He){return zr(He,$,X)}),he.fallbackAbortableTasks.clear(),$.allPendingTasks--,$.allPendingTasks===0&&(he=$.onAllReady,he()))}function tn(k,$){if($.chunks.length===0&&$.children.length===1&&$.children[0].boundary===null){var X=$.children[0];X.id=$.id,X.parentFlushed=!0,X.status===1&&tn(k,X)}else k.completedSegments.push($)}function Tn(k,$,X){if($===null){if(X.parentFlushed){if(k.completedRootSegment!==null)throw Error(e(389));k.completedRootSegment=X}k.pendingRootTasks--,k.pendingRootTasks===0&&(k.onShellError=Ot,$=k.onShellReady,$())}else $.pendingTasks--,$.forceClientRender||($.pendingTasks===0?(X.parentFlushed&&X.status===1&&tn($,X),$.parentFlushed&&k.completedBoundaries.push($),$.fallbackAbortableTasks.forEach(Pn,k),$.fallbackAbortableTasks.clear()):X.parentFlushed&&X.status===1&&(tn($,X),$.completedSegments.length===1&&$.parentFlushed&&k.partialBoundaries.push($)));k.allPendingTasks--,k.allPendingTasks===0&&(k=k.onAllReady,k())}function Bn(k){if(k.status!==2){var $=Xe,X=At.current;At.current=ye;var he=Be;Be=k.responseState;try{var He=k.pingedTasks,Ne;for(Ne=0;Ne<He.length;Ne++){var et=He[Ne],St=k,Ht=et.blockedSegment;if(Ht.status===0){It(et.context);try{br(St,et,et.node),St.responseState.generateStaticMarkup||Ht.lastPushedText&&Ht.textEmbedded&&Ht.chunks.push("<!-- -->"),et.abortSet.delete(et),Ht.status=1,Tn(St,et.blockedBoundary,Ht)}catch(kn){if(Yt(),typeof kn=="object"&&kn!==null&&typeof kn.then=="function"){var Gt=et.ping;kn.then(Gt,Gt)}else{et.abortSet.delete(et),Ht.status=4;var Vt=et.blockedBoundary,Rr=kn,sn=be(St,Rr);if(Vt===null?nt(St,Rr):(Vt.pendingTasks--,Vt.forceClientRender||(Vt.forceClientRender=!0,Vt.errorDigest=sn,Vt.parentFlushed&&St.clientRenderedBoundaries.push(Vt))),St.allPendingTasks--,St.allPendingTasks===0){var Rn=St.onAllReady;Rn()}}}finally{}}}He.splice(0,Ne),k.destination!==null&&Cn(k,k.destination)}catch(kn){be(k,kn),nt(k,kn)}finally{Be=he,At.current=X,X===ye&&It($)}}}function Ao(k,$,X){switch(X.parentFlushed=!0,X.status){case 0:var he=X.id=k.nextSegmentId++;return X.lastPushedText=!1,X.textEmbedded=!1,k=k.responseState,$.push('<template id="'),$.push(k.placeholderPrefix),k=he.toString(16),$.push(k),$.push('"></template>');case 1:X.status=2;var He=!0;he=X.chunks;var Ne=0;X=X.children;for(var et=0;et<X.length;et++){for(He=X[et];Ne<He.index;Ne++)$.push(he[Ne]);He=No(k,$,He)}for(;Ne<he.length-1;Ne++)$.push(he[Ne]);return Ne<he.length&&(He=$.push(he[Ne])),He;default:throw Error(e(390))}}function No(k,$,X){var he=X.boundary;if(he===null)return Ao(k,$,X);if(he.parentFlushed=!0,he.forceClientRender)return k.responseState.generateStaticMarkup||(he=he.errorDigest,$.push("<!--$!-->"),$.push("<template"),he&&($.push(' data-dgst="'),he=w(he),$.push(he),$.push('"')),$.push("></template>")),Ao(k,$,X),k=k.responseState.generateStaticMarkup?!0:$.push("<!--/$-->"),k;if(0<he.pendingTasks){he.rootSegmentID=k.nextSegmentId++,0<he.completedSegments.length&&k.partialBoundaries.push(he);var He=k.responseState,Ne=He.nextSuspenseID++;return He=He.boundaryPrefix+Ne.toString(16),he=he.id=He,Q($,k.responseState,he),Ao(k,$,X),$.push("<!--/$-->")}if(he.byteSize>k.progressiveChunkSize)return he.rootSegmentID=k.nextSegmentId++,k.completedBoundaries.push(he),Q($,k.responseState,he.id),Ao(k,$,X),$.push("<!--/$-->");if(k.responseState.generateStaticMarkup||$.push("<!--$-->"),X=he.completedSegments,X.length!==1)throw Error(e(391));return No(k,$,X[0]),k=k.responseState.generateStaticMarkup?!0:$.push("<!--/$-->"),k}function Po(k,$,X){return ie($,k.responseState,X.formatContext,X.id),No(k,$,X),se($,X.formatContext)}function jn(k,$,X){for(var he=X.completedSegments,He=0;He<he.length;He++)Fn(k,$,X,he[He]);if(he.length=0,k=k.responseState,he=X.id,X=X.rootSegmentID,$.push(k.startInlineScript),k.sentCompleteBoundaryFunction?$.push('$RC("'):(k.sentCompleteBoundaryFunction=!0,$.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("')),he===null)throw Error(e(395));return X=X.toString(16),$.push(he),$.push('","'),$.push(k.segmentPrefix),$.push(X),$.push('")<\/script>')}function Fn(k,$,X,he){if(he.status===2)return!0;var He=he.id;if(He===-1){if((he.id=X.rootSegmentID)===-1)throw Error(e(392));return Po(k,$,he)}return Po(k,$,he),k=k.responseState,$.push(k.startInlineScript),k.sentCompleteSegmentFunction?$.push('$RS("'):(k.sentCompleteSegmentFunction=!0,$.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("')),$.push(k.segmentPrefix),He=He.toString(16),$.push(He),$.push('","'),$.push(k.placeholderPrefix),$.push(He),$.push('")<\/script>')}function Cn(k,$){try{var X=k.completedRootSegment;if(X!==null&&k.pendingRootTasks===0){No(k,$,X),k.completedRootSegment=null;var he=k.responseState.bootstrapChunks;for(X=0;X<he.length-1;X++)$.push(he[X]);X<he.length&&$.push(he[X])}var He=k.clientRenderedBoundaries,Ne;for(Ne=0;Ne<He.length;Ne++){var et=He[Ne];he=$;var St=k.responseState,Ht=et.id,Gt=et.errorDigest,Vt=et.errorMessage,Rr=et.errorComponentStack;if(he.push(St.startInlineScript),St.sentClientRenderFunction?he.push('$RX("'):(St.sentClientRenderFunction=!0,he.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("')),Ht===null)throw Error(e(395));if(he.push(Ht),he.push('"'),Gt||Vt||Rr){he.push(",");var sn=le(Gt||"");he.push(sn)}if(Vt||Rr){he.push(",");var Rn=le(Vt||"");he.push(Rn)}if(Rr){he.push(",");var kn=le(Rr);he.push(kn)}if(!he.push(")<\/script>")){k.destination=null,Ne++,He.splice(0,Ne);return}}He.splice(0,Ne);var ho=k.completedBoundaries;for(Ne=0;Ne<ho.length;Ne++)if(!jn(k,$,ho[Ne])){k.destination=null,Ne++,ho.splice(0,Ne);return}ho.splice(0,Ne);var Zn=k.partialBoundaries;for(Ne=0;Ne<Zn.length;Ne++){var Bo=Zn[Ne];e:{He=k,et=$;var un=Bo.completedSegments;for(St=0;St<un.length;St++)if(!Fn(He,et,Bo,un[St])){St++,un.splice(0,St);var Eo=!1;break e}un.splice(0,St),Eo=!0}if(!Eo){k.destination=null,Ne++,Zn.splice(0,Ne);return}}Zn.splice(0,Ne);var Kn=k.completedBoundaries;for(Ne=0;Ne<Kn.length;Ne++)if(!jn(k,$,Kn[Ne])){k.destination=null,Ne++,Kn.splice(0,Ne);return}Kn.splice(0,Ne)}finally{k.allPendingTasks===0&&k.pingedTasks.length===0&&k.clientRenderedBoundaries.length===0&&k.completedBoundaries.length===0&&$.push(null)}}function oo(k,$){try{var X=k.abortableTasks;X.forEach(function(he){return zr(he,k,$)}),X.clear(),k.destination!==null&&Cn(k,k.destination)}catch(he){be(k,he),nt(k,he)}}function mn(){}function _n(k,$,X,he){var He=!1,Ne=null,et="",St={push:function(Gt){return Gt!==null&&(et+=Gt),!0},destroy:function(Gt){He=!0,Ne=Gt}},Ht=!1;if(k=er(k,fe(X,$?$.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,mn,void 0,function(){Ht=!0}),Bn(k),oo(k,he),k.status===1)k.status=2,St.destroy(k.fatalError);else if(k.status!==2&&k.destination===null){k.destination=St;try{Cn(k,St)}catch(Gt){be(k,Gt),nt(k,Gt)}}if(He)throw Ne;if(!Ht)throw Error(e(426));return et}return Du.renderToNodeStream=function(){throw Error(e(207))},Du.renderToStaticMarkup=function(k,$){return _n(k,$,!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')},Du.renderToStaticNodeStream=function(){throw Error(e(208))},Du.renderToString=function(k,$){return _n(k,$,!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')},Du.version="18.3.1",Du}var Jh={};/**
|
71
|
+
`),Ne;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":k.push(q($));for(var Rn in X)if(t.call(X,Rn)&&(Ne=X[Rn],Ne!=null))switch(Rn){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,$));default:B(k,he,Rn,Ne)}return k.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 G(k,X,$,he);case"html":return He.insertionMode===0&&k.push("<!DOCTYPE html>"),G(k,X,$,he);default:if($.indexOf("-")===-1&&typeof X.is!="string")return G(k,X,$,he);k.push(q($)),et=Ne=null;for(Gt in X)if(t.call(X,Gt)&&(St=X[Gt],St!=null))switch(Gt){case"children":Ne=St;break;case"dangerouslySetInnerHTML":et=St;break;case"style":F(k,he,St);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:a(Gt)&&typeof St!="function"&&typeof St!="symbol"&&k.push(" ",Gt,'="',w(St),'"')}return k.push(">"),H(k,et,Ne),Ne}}function Q(k,$,X){if(k.push('<!--$?--><template id="'),X===null)throw Error(e(395));return k.push(X),k.push('"></template>')}function ie(k,$,X,he){switch(X.insertionMode){case 0:case 1:return k.push('<div hidden id="'),k.push($.segmentPrefix),$=he.toString(16),k.push($),k.push('">');case 2:return k.push('<svg aria-hidden="true" style="display:none" id="'),k.push($.segmentPrefix),$=he.toString(16),k.push($),k.push('">');case 3:return k.push('<math aria-hidden="true" style="display:none" id="'),k.push($.segmentPrefix),$=he.toString(16),k.push($),k.push('">');case 4:return k.push('<table hidden id="'),k.push($.segmentPrefix),$=he.toString(16),k.push($),k.push('">');case 5:return k.push('<table hidden><tbody id="'),k.push($.segmentPrefix),$=he.toString(16),k.push($),k.push('">');case 6:return k.push('<table hidden><tr id="'),k.push($.segmentPrefix),$=he.toString(16),k.push($),k.push('">');case 7:return k.push('<table hidden><colgroup id="'),k.push($.segmentPrefix),$=he.toString(16),k.push($),k.push('">');default:throw Error(e(397))}}function se(k,$){switch($.insertionMode){case 0:case 1:return k.push("</div>");case 2:return k.push("</svg>");case 3:return k.push("</math>");case 4:return k.push("</table>");case 5:return k.push("</tbody></table>");case 6:return k.push("</tr></table>");case 7:return k.push("</colgroup></table>");default:throw Error(e(397))}}var ae=/[<\u2028\u2029]/g;function le(k){return JSON.stringify(k).replace(ae,function($){switch($){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 fe(k,$){return $=$===void 0?"":$,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:$+"P:",segmentPrefix:$+"S:",boundaryPrefix:$+"B:",idPrefix:$,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:k}}function ee(k,$,X,he){return X.generateStaticMarkup?(k.push(w($)),!1):($===""?k=he:(he&&k.push("<!-- -->"),k.push(w($)),k=!0),k)}var ne=Object.assign,ce=Symbol.for("react.element"),xe=Symbol.for("react.portal"),Me=Symbol.for("react.fragment"),oe=Symbol.for("react.strict_mode"),Se=Symbol.for("react.profiler"),Le=Symbol.for("react.provider"),We=Symbol.for("react.context"),Ve=Symbol.for("react.forward_ref"),we=Symbol.for("react.suspense"),_e=Symbol.for("react.suspense_list"),Ae=Symbol.for("react.memo"),Ie=Symbol.for("react.lazy"),je=Symbol.for("react.scope"),it=Symbol.for("react.debug_trace_mode"),Ue=Symbol.for("react.legacy_hidden"),tt=Symbol.for("react.default_value"),lt=Symbol.iterator;function bt(k){if(k==null)return null;if(typeof k=="function")return k.displayName||k.name||null;if(typeof k=="string")return k;switch(k){case Me:return"Fragment";case xe:return"Portal";case Se:return"Profiler";case oe:return"StrictMode";case we:return"Suspense";case _e:return"SuspenseList"}if(typeof k=="object")switch(k.$$typeof){case We:return(k.displayName||"Context")+".Consumer";case Le:return(k._context.displayName||"Context")+".Provider";case Ve:var $=k.render;return k=k.displayName,k||(k=$.displayName||$.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case Ae:return $=k.displayName||null,$!==null?$:bt(k.type)||"Memo";case Ie:$=k._payload,k=k._init;try{return bt(k($))}catch{}}return null}var Mt={};function Qe(k,$){if(k=k.contextTypes,!k)return Mt;var X={},he;for(he in k)X[he]=$[he];return X}var Xe=null;function ht(k,$){if(k!==$){k.context._currentValue2=k.parentValue,k=k.parent;var X=$.parent;if(k===null){if(X!==null)throw Error(e(401))}else{if(X===null)throw Error(e(401));ht(k,X)}$.context._currentValue2=$.value}}function ft(k){k.context._currentValue2=k.parentValue,k=k.parent,k!==null&&ft(k)}function Oe(k){var $=k.parent;$!==null&&Oe($),k.context._currentValue2=k.value}function Je(k,$){if(k.context._currentValue2=k.parentValue,k=k.parent,k===null)throw Error(e(402));k.depth===$.depth?ht(k,$):Je(k,$)}function gt(k,$){var X=$.parent;if(X===null)throw Error(e(402));k.depth===X.depth?ht(k,X):gt(k,X),$.context._currentValue2=$.value}function It(k){var $=Xe;$!==k&&($===null?Oe(k):k===null?ft($):$.depth===k.depth?ht($,k):$.depth>k.depth?Je($,k):gt($,k),Xe=k)}var Et={isMounted:function(){return!1},enqueueSetState:function(k,$){k=k._reactInternals,k.queue!==null&&k.queue.push($)},enqueueReplaceState:function(k,$){k=k._reactInternals,k.replace=!0,k.queue=[$]},enqueueForceUpdate:function(){}};function Dt(k,$,X,he){var He=k.state!==void 0?k.state:null;k.updater=Et,k.props=X,k.state=He;var Ne={queue:[],replace:!1};k._reactInternals=Ne;var et=$.contextType;if(k.context=typeof et=="object"&&et!==null?et._currentValue2:he,et=$.getDerivedStateFromProps,typeof et=="function"&&(et=et(X,He),He=et==null?He:ne({},He,et),k.state=He),typeof $.getDerivedStateFromProps!="function"&&typeof k.getSnapshotBeforeUpdate!="function"&&(typeof k.UNSAFE_componentWillMount=="function"||typeof k.componentWillMount=="function"))if($=k.state,typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount(),$!==k.state&&Et.enqueueReplaceState(k,k.state,null),Ne.queue!==null&&0<Ne.queue.length)if($=Ne.queue,et=Ne.replace,Ne.queue=null,Ne.replace=!1,et&&$.length===1)k.state=$[0];else{for(Ne=et?$[0]:k.state,He=!0,et=et?1:0;et<$.length;et++){var St=$[et];St=typeof St=="function"?St.call(k,Ne,X,he):St,St!=null&&(He?(He=!1,Ne=ne({},Ne,St)):ne(Ne,St))}k.state=Ne}else Ne.queue=null}var Xt={id:1,overflow:""};function Wt(k,$,X){var he=k.id;k=k.overflow;var He=32-hr(he)-1;he&=~(1<<He),X+=1;var Ne=32-hr($)+He;if(30<Ne){var et=He-He%5;return Ne=(he&(1<<et)-1).toString(32),he>>=et,He-=et,{id:1<<32-hr($)+He|X<<He|he,overflow:Ne+k}}return{id:1<<Ne|X<<He|he,overflow:k}}var hr=Math.clz32?Math.clz32:Te,dr=Math.log,cr=Math.LN2;function Te(k){return k>>>=0,k===0?32:31-(dr(k)/cr|0)|0}function ue(k,$){return k===$&&(k!==0||1/k===1/$)||k!==k&&$!==$}var at=typeof Object.is=="function"?Object.is:ue,ze=null,vt=null,_t=null,Tt=null,Ut=!1,Ge=!1,st=0,ct=null,xt=0;function Nt(){if(ze===null)throw Error(e(321));return ze}function Bt(){if(0<xt)throw Error(e(312));return{memoizedState:null,queue:null,next:null}}function qt(){return Tt===null?_t===null?(Ut=!1,_t=Tt=Bt()):(Ut=!0,Tt=_t):Tt.next===null?(Ut=!1,Tt=Tt.next=Bt()):(Ut=!0,Tt=Tt.next),Tt}function Yt(){vt=ze=null,Ge=!1,_t=null,xt=0,Tt=ct=null}function ir(k,$){return typeof $=="function"?$(k):$}function jt(k,$,X){if(ze=Nt(),Tt=qt(),Ut){var he=Tt.queue;if($=he.dispatch,ct!==null&&(X=ct.get(he),X!==void 0)){ct.delete(he),he=Tt.memoizedState;do he=k(he,X.action),X=X.next;while(X!==null);return Tt.memoizedState=he,[he,$]}return[Tt.memoizedState,$]}return k=k===ir?typeof $=="function"?$():$:X!==void 0?X($):$,Tt.memoizedState=k,k=Tt.queue={last:null,dispatch:null},k=k.dispatch=jr.bind(null,ze,k),[Tt.memoizedState,k]}function xr(k,$){if(ze=Nt(),Tt=qt(),$=$===void 0?null:$,Tt!==null){var X=Tt.memoizedState;if(X!==null&&$!==null){var he=X[1];e:if(he===null)he=!1;else{for(var He=0;He<he.length&&He<$.length;He++)if(!at($[He],he[He])){he=!1;break e}he=!0}if(he)return X[0]}}return k=k(),Tt.memoizedState=[k,$],k}function jr(k,$,X){if(25<=xt)throw Error(e(301));if(k===ze)if(Ge=!0,k={action:X,next:null},ct===null&&(ct=new Map),X=ct.get($),X===void 0)ct.set($,k);else{for($=X;$.next!==null;)$=$.next;$.next=k}}function Ze(){throw Error(e(394))}function te(){}var ye={readContext:function(k){return k._currentValue2},useContext:function(k){return Nt(),k._currentValue2},useMemo:xr,useReducer:jt,useRef:function(k){ze=Nt(),Tt=qt();var $=Tt.memoizedState;return $===null?(k={current:k},Tt.memoizedState=k):$},useState:function(k){return jt(ir,k)},useInsertionEffect:te,useLayoutEffect:function(){},useCallback:function(k,$){return xr(function(){return k},$)},useImperativeHandle:te,useEffect:te,useDebugValue:te,useDeferredValue:function(k){return Nt(),k},useTransition:function(){return Nt(),[!1,Ze]},useId:function(){var k=vt.treeContext,$=k.overflow;k=k.id,k=(k&~(1<<32-hr(k)-1)).toString(32)+$;var X=Be;if(X===null)throw Error(e(404));return $=st++,k=":"+X.idPrefix+"R"+k,0<$&&(k+="H"+$.toString(32)),k+":"},useMutableSource:function(k,$){return Nt(),$(k._source)},useSyncExternalStore:function(k,$,X){if(X===void 0)throw Error(e(407));return X()}},Be=null,At=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Ft(k){return console.error(k),null}function Ot(){}function er(k,$,X,he,He,Ne,et,St,Ht){var Gt=[],Vt=new Set;return $={destination:null,responseState:$,progressiveChunkSize:he===void 0?12800:he,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Vt,pingedTasks:Gt,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:He===void 0?Ft:He,onAllReady:Ot,onShellReady:et===void 0?Ot:et,onShellError:Ot,onFatalError:Ot},X=kt($,0,null,X,!1,!1),X.parentFlushed=!0,k=Qt($,k,null,X,Vt,Mt,null,Xt),Gt.push(k),$}function Qt(k,$,X,he,He,Ne,et,St){k.allPendingTasks++,X===null?k.pendingRootTasks++:X.pendingTasks++;var Ht={node:$,ping:function(){var Gt=k.pingedTasks;Gt.push(Ht),Gt.length===1&&Bn(k)},blockedBoundary:X,blockedSegment:he,abortSet:He,legacyContext:Ne,context:et,treeContext:St};return He.add(Ht),Ht}function kt(k,$,X,he,He,Ne){return{status:0,id:-1,index:$,parentFlushed:!1,chunks:[],children:[],formatContext:he,boundary:X,lastPushedText:He,textEmbedded:Ne}}function be(k,$){if(k=k.onError($),k!=null&&typeof k!="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 k+'" instead');return k}function nt(k,$){var X=k.onShellError;X($),X=k.onFatalError,X($),k.destination!==null?(k.status=2,k.destination.destroy($)):(k.status=1,k.fatalError=$)}function yt(k,$,X,he,He){for(ze={},vt=$,st=0,k=X(he,He);Ge;)Ge=!1,st=0,xt+=1,Tt=null,k=X(he,He);return Yt(),k}function yr(k,$,X,he){var He=X.render(),Ne=he.childContextTypes;if(Ne!=null){var et=$.legacyContext;if(typeof X.getChildContext!="function")he=et;else{X=X.getChildContext();for(var St in X)if(!(St in Ne))throw Error(e(108,bt(he)||"Unknown",St));he=ne({},et,X)}$.legacyContext=he,br(k,$,He),$.legacyContext=et}else br(k,$,He)}function Br(k,$){if(k&&k.defaultProps){$=ne({},$),k=k.defaultProps;for(var X in k)$[X]===void 0&&($[X]=k[X]);return $}return $}function lr(k,$,X,he,He){if(typeof X=="function")if(X.prototype&&X.prototype.isReactComponent){He=Qe(X,$.legacyContext);var Ne=X.contextType;Ne=new X(he,typeof Ne=="object"&&Ne!==null?Ne._currentValue2:He),Dt(Ne,X,he,He),yr(k,$,Ne,X)}else{Ne=Qe(X,$.legacyContext),He=yt(k,$,X,he,Ne);var et=st!==0;if(typeof He=="object"&&He!==null&&typeof He.render=="function"&&He.$$typeof===void 0)Dt(He,X,he,Ne),yr(k,$,He,X);else if(et){he=$.treeContext,$.treeContext=Wt(he,1,0);try{br(k,$,He)}finally{$.treeContext=he}}else br(k,$,He)}else if(typeof X=="string"){switch(He=$.blockedSegment,Ne=V(He.chunks,X,he,k.responseState,He.formatContext),He.lastPushedText=!1,et=He.formatContext,He.formatContext=D(et,X,he),on(k,$,Ne),He.formatContext=et,X){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:He.chunks.push("</",X,">")}He.lastPushedText=!1}else{switch(X){case Ue:case it:case oe:case Se:case Me:br(k,$,he.children);return;case _e:br(k,$,he.children);return;case je:throw Error(e(343));case we:e:{X=$.blockedBoundary,He=$.blockedSegment,Ne=he.fallback,he=he.children,et=new Set;var St={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:et,errorDigest:null},Ht=kt(k,He.chunks.length,St,He.formatContext,!1,!1);He.children.push(Ht),He.lastPushedText=!1;var Gt=kt(k,0,null,He.formatContext,!1,!1);Gt.parentFlushed=!0,$.blockedBoundary=St,$.blockedSegment=Gt;try{if(on(k,$,he),k.responseState.generateStaticMarkup||Gt.lastPushedText&&Gt.textEmbedded&&Gt.chunks.push("<!-- -->"),Gt.status=1,tn(St,Gt),St.pendingTasks===0)break e}catch(Vt){Gt.status=4,St.forceClientRender=!0,St.errorDigest=be(k,Vt)}finally{$.blockedBoundary=X,$.blockedSegment=He}$=Qt(k,Ne,X,Ht,et,$.legacyContext,$.context,$.treeContext),k.pingedTasks.push($)}return}if(typeof X=="object"&&X!==null)switch(X.$$typeof){case Ve:if(he=yt(k,$,X.render,he,He),st!==0){X=$.treeContext,$.treeContext=Wt(X,1,0);try{br(k,$,he)}finally{$.treeContext=X}}else br(k,$,he);return;case Ae:X=X.type,he=Br(X,he),lr(k,$,X,he,He);return;case Le:if(He=he.children,X=X._context,he=he.value,Ne=X._currentValue2,X._currentValue2=he,et=Xe,Xe=he={parent:et,depth:et===null?0:et.depth+1,context:X,parentValue:Ne,value:he},$.context=he,br(k,$,He),k=Xe,k===null)throw Error(e(403));he=k.parentValue,k.context._currentValue2=he===tt?k.context._defaultValue:he,k=Xe=k.parent,$.context=k;return;case We:he=he.children,he=he(X._currentValue2),br(k,$,he);return;case Ie:He=X._init,X=He(X._payload),he=Br(X,he),lr(k,$,X,he,void 0);return}throw Error(e(130,X==null?X:typeof X,""))}}function br(k,$,X){if($.node=X,typeof X=="object"&&X!==null){switch(X.$$typeof){case ce:lr(k,$,X.type,X.props,X.ref);return;case xe:throw Error(e(257));case Ie:var he=X._init;X=he(X._payload),br(k,$,X);return}if(A(X)){en(k,$,X);return}if(X===null||typeof X!="object"?he=null:(he=lt&&X[lt]||X["@@iterator"],he=typeof he=="function"?he:null),he&&(he=he.call(X))){if(X=he.next(),!X.done){var He=[];do He.push(X.value),X=he.next();while(!X.done);en(k,$,He)}return}throw k=Object.prototype.toString.call(X),Error(e(31,k==="[object Object]"?"object with keys {"+Object.keys(X).join(", ")+"}":k))}typeof X=="string"?(he=$.blockedSegment,he.lastPushedText=ee($.blockedSegment.chunks,X,k.responseState,he.lastPushedText)):typeof X=="number"&&(he=$.blockedSegment,he.lastPushedText=ee($.blockedSegment.chunks,""+X,k.responseState,he.lastPushedText))}function en(k,$,X){for(var he=X.length,He=0;He<he;He++){var Ne=$.treeContext;$.treeContext=Wt(Ne,he,He);try{on(k,$,X[He])}finally{$.treeContext=Ne}}}function on(k,$,X){var he=$.blockedSegment.formatContext,He=$.legacyContext,Ne=$.context;try{return br(k,$,X)}catch(Ht){if(Yt(),typeof Ht=="object"&&Ht!==null&&typeof Ht.then=="function"){X=Ht;var et=$.blockedSegment,St=kt(k,et.chunks.length,null,et.formatContext,et.lastPushedText,!0);et.children.push(St),et.lastPushedText=!1,k=Qt(k,$.node,$.blockedBoundary,St,$.abortSet,$.legacyContext,$.context,$.treeContext).ping,X.then(k,k),$.blockedSegment.formatContext=he,$.legacyContext=He,$.context=Ne,It(Ne)}else throw $.blockedSegment.formatContext=he,$.legacyContext=He,$.context=Ne,It(Ne),Ht}}function Pn(k){var $=k.blockedBoundary;k=k.blockedSegment,k.status=3,Tn(this,$,k)}function zr(k,$,X){var he=k.blockedBoundary;k.blockedSegment.status=3,he===null?($.allPendingTasks--,$.status!==2&&($.status=2,$.destination!==null&&$.destination.push(null))):(he.pendingTasks--,he.forceClientRender||(he.forceClientRender=!0,k=X===void 0?Error(e(432)):X,he.errorDigest=$.onError(k),he.parentFlushed&&$.clientRenderedBoundaries.push(he)),he.fallbackAbortableTasks.forEach(function(He){return zr(He,$,X)}),he.fallbackAbortableTasks.clear(),$.allPendingTasks--,$.allPendingTasks===0&&(he=$.onAllReady,he()))}function tn(k,$){if($.chunks.length===0&&$.children.length===1&&$.children[0].boundary===null){var X=$.children[0];X.id=$.id,X.parentFlushed=!0,X.status===1&&tn(k,X)}else k.completedSegments.push($)}function Tn(k,$,X){if($===null){if(X.parentFlushed){if(k.completedRootSegment!==null)throw Error(e(389));k.completedRootSegment=X}k.pendingRootTasks--,k.pendingRootTasks===0&&(k.onShellError=Ot,$=k.onShellReady,$())}else $.pendingTasks--,$.forceClientRender||($.pendingTasks===0?(X.parentFlushed&&X.status===1&&tn($,X),$.parentFlushed&&k.completedBoundaries.push($),$.fallbackAbortableTasks.forEach(Pn,k),$.fallbackAbortableTasks.clear()):X.parentFlushed&&X.status===1&&(tn($,X),$.completedSegments.length===1&&$.parentFlushed&&k.partialBoundaries.push($)));k.allPendingTasks--,k.allPendingTasks===0&&(k=k.onAllReady,k())}function Bn(k){if(k.status!==2){var $=Xe,X=At.current;At.current=ye;var he=Be;Be=k.responseState;try{var He=k.pingedTasks,Ne;for(Ne=0;Ne<He.length;Ne++){var et=He[Ne],St=k,Ht=et.blockedSegment;if(Ht.status===0){It(et.context);try{br(St,et,et.node),St.responseState.generateStaticMarkup||Ht.lastPushedText&&Ht.textEmbedded&&Ht.chunks.push("<!-- -->"),et.abortSet.delete(et),Ht.status=1,Tn(St,et.blockedBoundary,Ht)}catch(kn){if(Yt(),typeof kn=="object"&&kn!==null&&typeof kn.then=="function"){var Gt=et.ping;kn.then(Gt,Gt)}else{et.abortSet.delete(et),Ht.status=4;var Vt=et.blockedBoundary,Rr=kn,sn=be(St,Rr);if(Vt===null?nt(St,Rr):(Vt.pendingTasks--,Vt.forceClientRender||(Vt.forceClientRender=!0,Vt.errorDigest=sn,Vt.parentFlushed&&St.clientRenderedBoundaries.push(Vt))),St.allPendingTasks--,St.allPendingTasks===0){var Rn=St.onAllReady;Rn()}}}finally{}}}He.splice(0,Ne),k.destination!==null&&Cn(k,k.destination)}catch(kn){be(k,kn),nt(k,kn)}finally{Be=he,At.current=X,X===ye&&It($)}}}function Ao(k,$,X){switch(X.parentFlushed=!0,X.status){case 0:var he=X.id=k.nextSegmentId++;return X.lastPushedText=!1,X.textEmbedded=!1,k=k.responseState,$.push('<template id="'),$.push(k.placeholderPrefix),k=he.toString(16),$.push(k),$.push('"></template>');case 1:X.status=2;var He=!0;he=X.chunks;var Ne=0;X=X.children;for(var et=0;et<X.length;et++){for(He=X[et];Ne<He.index;Ne++)$.push(he[Ne]);He=No(k,$,He)}for(;Ne<he.length-1;Ne++)$.push(he[Ne]);return Ne<he.length&&(He=$.push(he[Ne])),He;default:throw Error(e(390))}}function No(k,$,X){var he=X.boundary;if(he===null)return Ao(k,$,X);if(he.parentFlushed=!0,he.forceClientRender)return k.responseState.generateStaticMarkup||(he=he.errorDigest,$.push("<!--$!-->"),$.push("<template"),he&&($.push(' data-dgst="'),he=w(he),$.push(he),$.push('"')),$.push("></template>")),Ao(k,$,X),k=k.responseState.generateStaticMarkup?!0:$.push("<!--/$-->"),k;if(0<he.pendingTasks){he.rootSegmentID=k.nextSegmentId++,0<he.completedSegments.length&&k.partialBoundaries.push(he);var He=k.responseState,Ne=He.nextSuspenseID++;return He=He.boundaryPrefix+Ne.toString(16),he=he.id=He,Q($,k.responseState,he),Ao(k,$,X),$.push("<!--/$-->")}if(he.byteSize>k.progressiveChunkSize)return he.rootSegmentID=k.nextSegmentId++,k.completedBoundaries.push(he),Q($,k.responseState,he.id),Ao(k,$,X),$.push("<!--/$-->");if(k.responseState.generateStaticMarkup||$.push("<!--$-->"),X=he.completedSegments,X.length!==1)throw Error(e(391));return No(k,$,X[0]),k=k.responseState.generateStaticMarkup?!0:$.push("<!--/$-->"),k}function Po(k,$,X){return ie($,k.responseState,X.formatContext,X.id),No(k,$,X),se($,X.formatContext)}function jn(k,$,X){for(var he=X.completedSegments,He=0;He<he.length;He++)Fn(k,$,X,he[He]);if(he.length=0,k=k.responseState,he=X.id,X=X.rootSegmentID,$.push(k.startInlineScript),k.sentCompleteBoundaryFunction?$.push('$RC("'):(k.sentCompleteBoundaryFunction=!0,$.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("')),he===null)throw Error(e(395));return X=X.toString(16),$.push(he),$.push('","'),$.push(k.segmentPrefix),$.push(X),$.push('")<\/script>')}function Fn(k,$,X,he){if(he.status===2)return!0;var He=he.id;if(He===-1){if((he.id=X.rootSegmentID)===-1)throw Error(e(392));return Po(k,$,he)}return Po(k,$,he),k=k.responseState,$.push(k.startInlineScript),k.sentCompleteSegmentFunction?$.push('$RS("'):(k.sentCompleteSegmentFunction=!0,$.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("')),$.push(k.segmentPrefix),He=He.toString(16),$.push(He),$.push('","'),$.push(k.placeholderPrefix),$.push(He),$.push('")<\/script>')}function Cn(k,$){try{var X=k.completedRootSegment;if(X!==null&&k.pendingRootTasks===0){No(k,$,X),k.completedRootSegment=null;var he=k.responseState.bootstrapChunks;for(X=0;X<he.length-1;X++)$.push(he[X]);X<he.length&&$.push(he[X])}var He=k.clientRenderedBoundaries,Ne;for(Ne=0;Ne<He.length;Ne++){var et=He[Ne];he=$;var St=k.responseState,Ht=et.id,Gt=et.errorDigest,Vt=et.errorMessage,Rr=et.errorComponentStack;if(he.push(St.startInlineScript),St.sentClientRenderFunction?he.push('$RX("'):(St.sentClientRenderFunction=!0,he.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("')),Ht===null)throw Error(e(395));if(he.push(Ht),he.push('"'),Gt||Vt||Rr){he.push(",");var sn=le(Gt||"");he.push(sn)}if(Vt||Rr){he.push(",");var Rn=le(Vt||"");he.push(Rn)}if(Rr){he.push(",");var kn=le(Rr);he.push(kn)}if(!he.push(")<\/script>")){k.destination=null,Ne++,He.splice(0,Ne);return}}He.splice(0,Ne);var ho=k.completedBoundaries;for(Ne=0;Ne<ho.length;Ne++)if(!jn(k,$,ho[Ne])){k.destination=null,Ne++,ho.splice(0,Ne);return}ho.splice(0,Ne);var Zn=k.partialBoundaries;for(Ne=0;Ne<Zn.length;Ne++){var Bo=Zn[Ne];e:{He=k,et=$;var un=Bo.completedSegments;for(St=0;St<un.length;St++)if(!Fn(He,et,Bo,un[St])){St++,un.splice(0,St);var Eo=!1;break e}un.splice(0,St),Eo=!0}if(!Eo){k.destination=null,Ne++,Zn.splice(0,Ne);return}}Zn.splice(0,Ne);var Kn=k.completedBoundaries;for(Ne=0;Ne<Kn.length;Ne++)if(!jn(k,$,Kn[Ne])){k.destination=null,Ne++,Kn.splice(0,Ne);return}Kn.splice(0,Ne)}finally{k.allPendingTasks===0&&k.pingedTasks.length===0&&k.clientRenderedBoundaries.length===0&&k.completedBoundaries.length===0&&$.push(null)}}function oo(k,$){try{var X=k.abortableTasks;X.forEach(function(he){return zr(he,k,$)}),X.clear(),k.destination!==null&&Cn(k,k.destination)}catch(he){be(k,he),nt(k,he)}}function mn(){}function _n(k,$,X,he){var He=!1,Ne=null,et="",St={push:function(Gt){return Gt!==null&&(et+=Gt),!0},destroy:function(Gt){He=!0,Ne=Gt}},Ht=!1;if(k=er(k,fe(X,$?$.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,mn,void 0,function(){Ht=!0}),Bn(k),oo(k,he),k.status===1)k.status=2,St.destroy(k.fatalError);else if(k.status!==2&&k.destination===null){k.destination=St;try{Cn(k,St)}catch(Gt){be(k,Gt),nt(k,Gt)}}if(He)throw Ne;if(!Ht)throw Error(e(426));return et}return Du.renderToNodeStream=function(){throw Error(e(207))},Du.renderToStaticMarkup=function(k,$){return _n(k,$,!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')},Du.renderToStaticNodeStream=function(){throw Error(e(208))},Du.renderToString=function(k,$){return _n(k,$,!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')},Du.version="18.3.1",Du}var Jh={};/**
|
72
72
|
* @license React
|
73
73
|
* react-dom-server.browser.production.min.js
|
74
74
|
*
|
@@ -80,7 +80,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
80
80
|
`),Qe=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Xe=new Map;function ht(M){var z=Xe.get(M);if(z===void 0){if(!Qe.test(M))throw Error(e(65,M));z=h("<"+M),Xe.set(M,z)}return z}var ft=h("<!DOCTYPE html>");function Oe(M,z,Y,pe,qe){switch(z){case"select":M.push(ht("select"));var Fe=null,ut=null;for(pr in Y)if(m.call(Y,pr)){var Lt=Y[pr];if(Lt!=null)switch(pr){case"children":Fe=Lt;break;case"dangerouslySetInnerHTML":ut=Lt;break;case"defaultValue":case"value":break;default:Ie(M,pe,pr,Lt)}}return M.push(je),Ue(M,ut,Fe),Fe;case"option":ut=qe.selectedValue,M.push(ht("option"));var Zt=Lt=null,Sr=null,pr=null;for(Fe in Y)if(m.call(Y,Fe)){var nn=Y[Fe];if(nn!=null)switch(Fe){case"children":Lt=nn;break;case"selected":Sr=nn;break;case"dangerouslySetInnerHTML":pr=nn;break;case"value":Zt=nn;default:Ie(M,pe,Fe,nn)}}if(ut!=null)if(Y=Zt!==null?""+Zt:tt(Lt),ge(ut)){for(pe=0;pe<ut.length;pe++)if(""+ut[pe]===Y){M.push(lt);break}}else""+ut===Y&&M.push(lt);else Sr&&M.push(lt);return M.push(je),Ue(M,pr,Lt),Lt;case"textarea":M.push(ht("textarea")),pr=ut=Fe=null;for(Lt in Y)if(m.call(Y,Lt)&&(Zt=Y[Lt],Zt!=null))switch(Lt){case"children":pr=Zt;break;case"value":Fe=Zt;break;case"defaultValue":ut=Zt;break;case"dangerouslySetInnerHTML":throw Error(e(91));default:Ie(M,pe,Lt,Zt)}if(Fe===null&&ut!==null&&(Fe=ut),M.push(je),pr!=null){if(Fe!=null)throw Error(e(92));if(ge(pr)&&1<pr.length)throw Error(e(93));Fe=""+pr}return typeof Fe=="string"&&Fe[0]===`
|
81
81
|
`&&M.push(Mt),Fe!==null&&M.push(d(H(""+Fe))),null;case"input":M.push(ht("input")),Zt=pr=Lt=Fe=null;for(ut in Y)if(m.call(Y,ut)&&(Sr=Y[ut],Sr!=null))switch(ut){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,"input"));case"defaultChecked":Zt=Sr;break;case"defaultValue":Lt=Sr;break;case"checked":pr=Sr;break;case"value":Fe=Sr;break;default:Ie(M,pe,ut,Sr)}return pr!==null?Ie(M,pe,"checked",pr):Zt!==null&&Ie(M,pe,"checked",Zt),Fe!==null?Ie(M,pe,"value",Fe):Lt!==null&&Ie(M,pe,"value",Lt),M.push(it),null;case"menuitem":M.push(ht("menuitem"));for(var lo in Y)if(m.call(Y,lo)&&(Fe=Y[lo],Fe!=null))switch(lo){case"children":case"dangerouslySetInnerHTML":throw Error(e(400));default:Ie(M,pe,lo,Fe)}return M.push(je),null;case"title":M.push(ht("title")),Fe=null;for(nn in Y)if(m.call(Y,nn)&&(ut=Y[nn],ut!=null))switch(nn){case"children":Fe=ut;break;case"dangerouslySetInnerHTML":throw Error(e(434));default:Ie(M,pe,nn,ut)}return M.push(je),Fe;case"listing":case"pre":M.push(ht(z)),ut=Fe=null;for(Zt in Y)if(m.call(Y,Zt)&&(Lt=Y[Zt],Lt!=null))switch(Zt){case"children":Fe=Lt;break;case"dangerouslySetInnerHTML":ut=Lt;break;default:Ie(M,pe,Zt,Lt)}if(M.push(je),ut!=null){if(Fe!=null)throw Error(e(60));if(typeof ut!="object"||!("__html"in ut))throw Error(e(61));Y=ut.__html,Y!=null&&(typeof Y=="string"&&0<Y.length&&Y[0]===`
|
82
82
|
`?M.push(Mt,d(Y)):M.push(d(""+Y)))}return typeof Fe=="string"&&Fe[0]===`
|
83
|
-
`&&M.push(Mt),Fe;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":M.push(ht(z));for(var jo in Y)if(m.call(Y,jo)&&(Fe=Y[jo],Fe!=null))switch(jo){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,z));default:Ie(M,pe,jo,Fe)}return M.push(it),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(M,Y,z,pe);case"html":return qe.insertionMode===0&&M.push(ft),bt(M,Y,z,pe);default:if(z.indexOf("-")===-1&&typeof Y.is!="string")return bt(M,Y,z,pe);M.push(ht(z)),ut=Fe=null;for(Sr in Y)if(m.call(Y,Sr)&&(Lt=Y[Sr],Lt!=null))switch(Sr){case"children":Fe=Lt;break;case"dangerouslySetInnerHTML":ut=Lt;break;case"style":We(M,pe,Lt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:T(Sr)&&typeof Lt!="function"&&typeof Lt!="symbol"&&M.push(Ve,d(Sr),we,d(H(Lt)),_e)}return M.push(je),Ue(M,ut,Fe),Fe}}var Je=h("</"),gt=h(">"),It=h('<template id="'),Et=h('"></template>'),Dt=h("<!--$-->"),Xt=h('<!--$?--><template id="'),Wt=h('"></template>'),hr=h("<!--$!-->"),dr=h("<!--/$-->"),cr=h("<template"),Te=h('"'),ue=h(' data-dgst="');h(' data-msg="'),h(' data-stck="');var st=h("></template>");function ze(M,z,Y){if(o(M,Xt),Y===null)throw Error(e(395));return o(M,Y),i(M,Wt)}var vt=h('<div hidden id="'),_t=h('">'),Tt=h("</div>"),Ut=h('<svg aria-hidden="true" style="display:none" id="'),Ge=h('">'),at=h("</svg>"),ct=h('<math aria-hidden="true" style="display:none" id="'),xt=h('">'),Nt=h("</math>"),Bt=h('<table hidden id="'),qt=h('">'),Yt=h("</table>"),ir=h('<table hidden><tbody id="'),jt=h('">'),xr=h("</tbody></table>"),jr=h('<table hidden><tr id="'),Ze=h('">'),te=h("</tr></table>"),ye=h('<table hidden><colgroup id="'),Be=h('">'),At=h("</colgroup></table>");function Ft(M,z,Y,pe){switch(Y.insertionMode){case 0:case 1:return o(M,vt),o(M,z.segmentPrefix),o(M,d(pe.toString(16))),i(M,_t);case 2:return o(M,Ut),o(M,z.segmentPrefix),o(M,d(pe.toString(16))),i(M,Ge);case 3:return o(M,ct),o(M,z.segmentPrefix),o(M,d(pe.toString(16))),i(M,xt);case 4:return o(M,Bt),o(M,z.segmentPrefix),o(M,d(pe.toString(16))),i(M,qt);case 5:return o(M,ir),o(M,z.segmentPrefix),o(M,d(pe.toString(16))),i(M,jt);case 6:return o(M,jr),o(M,z.segmentPrefix),o(M,d(pe.toString(16))),i(M,Ze);case 7:return o(M,ye),o(M,z.segmentPrefix),o(M,d(pe.toString(16))),i(M,Be);default:throw Error(e(397))}}function Ot(M,z){switch(z.insertionMode){case 0:case 1:return i(M,Tt);case 2:return i(M,at);case 3:return i(M,Nt);case 4:return i(M,Yt);case 5:return i(M,xr);case 6:return i(M,te);case 7:return i(M,At);default:throw Error(e(397))}}var er=h('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("'),Qt=h('$RS("'),kt=h('","'),be=h('")<\/script>'),nt=h('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("'),yt=h('$RC("'),yr=h('","'),Br=h('")<\/script>'),lr=h('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("'),br=h('$RX("'),en=h('"'),on=h(")<\/script>"),Pn=h(","),zr=/[<\u2028\u2029]/g;function tn(M){return JSON.stringify(M).replace(zr,function(z){switch(z){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 Tn=Object.assign,Bn=Symbol.for("react.element"),Ao=Symbol.for("react.portal"),No=Symbol.for("react.fragment"),Po=Symbol.for("react.strict_mode"),jn=Symbol.for("react.profiler"),Fn=Symbol.for("react.provider"),Cn=Symbol.for("react.context"),oo=Symbol.for("react.forward_ref"),mn=Symbol.for("react.suspense"),_n=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),X=Symbol.for("react.scope"),he=Symbol.for("react.debug_trace_mode"),He=Symbol.for("react.legacy_hidden"),Ne=Symbol.for("react.default_value"),et=Symbol.iterator;function St(M){if(M==null)return null;if(typeof M=="function")return M.displayName||M.name||null;if(typeof M=="string")return M;switch(M){case No:return"Fragment";case Ao:return"Portal";case jn:return"Profiler";case Po:return"StrictMode";case mn:return"Suspense";case _n:return"SuspenseList"}if(typeof M=="object")switch(M.$$typeof){case Cn:return(M.displayName||"Context")+".Consumer";case Fn:return(M._context.displayName||"Context")+".Provider";case oo:var z=M.render;return M=M.displayName,M||(M=z.displayName||z.name||"",M=M!==""?"ForwardRef("+M+")":"ForwardRef"),M;case k:return z=M.displayName||null,z!==null?z:St(M.type)||"Memo";case $:z=M._payload,M=M._init;try{return St(M(z))}catch{}}return null}var Ht={};function Gt(M,z){if(M=M.contextTypes,!M)return Ht;var Y={},pe;for(pe in M)Y[pe]=z[pe];return Y}var Vt=null;function Rr(M,z){if(M!==z){M.context._currentValue=M.parentValue,M=M.parent;var Y=z.parent;if(M===null){if(Y!==null)throw Error(e(401))}else{if(Y===null)throw Error(e(401));Rr(M,Y)}z.context._currentValue=z.value}}function sn(M){M.context._currentValue=M.parentValue,M=M.parent,M!==null&&sn(M)}function Rn(M){var z=M.parent;z!==null&&Rn(z),M.context._currentValue=M.value}function kn(M,z){if(M.context._currentValue=M.parentValue,M=M.parent,M===null)throw Error(e(402));M.depth===z.depth?Rr(M,z):kn(M,z)}function ho(M,z){var Y=z.parent;if(Y===null)throw Error(e(402));M.depth===Y.depth?Rr(M,Y):ho(M,Y),z.context._currentValue=z.value}function Zn(M){var z=Vt;z!==M&&(z===null?Rn(M):M===null?sn(z):z.depth===M.depth?Rr(z,M):z.depth>M.depth?kn(z,M):ho(z,M),Vt=M)}var Bo={isMounted:function(){return!1},enqueueSetState:function(M,z){M=M._reactInternals,M.queue!==null&&M.queue.push(z)},enqueueReplaceState:function(M,z){M=M._reactInternals,M.replace=!0,M.queue=[z]},enqueueForceUpdate:function(){}};function un(M,z,Y,pe){var qe=M.state!==void 0?M.state:null;M.updater=Bo,M.props=Y,M.state=qe;var Fe={queue:[],replace:!1};M._reactInternals=Fe;var ut=z.contextType;if(M.context=typeof ut=="object"&&ut!==null?ut._currentValue:pe,ut=z.getDerivedStateFromProps,typeof ut=="function"&&(ut=ut(Y,qe),qe=ut==null?qe:Tn({},qe,ut),M.state=qe),typeof z.getDerivedStateFromProps!="function"&&typeof M.getSnapshotBeforeUpdate!="function"&&(typeof M.UNSAFE_componentWillMount=="function"||typeof M.componentWillMount=="function"))if(z=M.state,typeof M.componentWillMount=="function"&&M.componentWillMount(),typeof M.UNSAFE_componentWillMount=="function"&&M.UNSAFE_componentWillMount(),z!==M.state&&Bo.enqueueReplaceState(M,M.state,null),Fe.queue!==null&&0<Fe.queue.length)if(z=Fe.queue,ut=Fe.replace,Fe.queue=null,Fe.replace=!1,ut&&z.length===1)M.state=z[0];else{for(Fe=ut?z[0]:M.state,qe=!0,ut=ut?1:0;ut<z.length;ut++){var Lt=z[ut];Lt=typeof Lt=="function"?Lt.call(M,Fe,Y,pe):Lt,Lt!=null&&(qe?(qe=!1,Fe=Tn({},Fe,Lt)):Tn(Fe,Lt))}M.state=Fe}else Fe.queue=null}var Eo={id:1,overflow:""};function Kn(M,z,Y){var pe=M.id;M=M.overflow;var qe=32-io(pe)-1;pe&=~(1<<qe),Y+=1;var Fe=32-io(z)+qe;if(30<Fe){var ut=qe-qe%5;return Fe=(pe&(1<<ut)-1).toString(32),pe>>=ut,qe-=ut,{id:1<<32-io(z)+qe|Y<<qe|pe,overflow:Fe+M}}return{id:1<<Fe|Y<<qe|pe,overflow:M}}var io=Math.clz32?Math.clz32:Ci,Fi=Math.log,wi=Math.LN2;function Ci(M){return M>>>=0,M===0?32:31-(Fi(M)/wi|0)|0}function Hn(M,z){return M===z&&(M!==0||1/M===1/z)||M!==M&&z!==z}var ji=typeof Object.is=="function"?Object.is:Hn,so=null,ao=null,oi=null,Hr=null,Ir=!1,Fr=!1,O=0,J=null,Ce=0;function rt(){if(so===null)throw Error(e(321));return so}function or(){if(0<Ce)throw Error(e(312));return{memoizedState:null,queue:null,next:null}}function Kt(){return Hr===null?oi===null?(Ir=!1,oi=Hr=or()):(Ir=!0,Hr=oi):Hr.next===null?(Ir=!1,Hr=Hr.next=or()):(Ir=!0,Hr=Hr.next),Hr}function _r(){ao=so=null,Fr=!1,oi=null,Ce=0,Hr=J=null}function kr(M,z){return typeof z=="function"?z(M):z}function Cr(M,z,Y){if(so=rt(),Hr=Kt(),Ir){var pe=Hr.queue;if(z=pe.dispatch,J!==null&&(Y=J.get(pe),Y!==void 0)){J.delete(pe),pe=Hr.memoizedState;do pe=M(pe,Y.action),Y=Y.next;while(Y!==null);return Hr.memoizedState=pe,[pe,z]}return[Hr.memoizedState,z]}return M=M===kr?typeof z=="function"?z():z:Y!==void 0?Y(z):z,Hr.memoizedState=M,M=Hr.queue={last:null,dispatch:null},M=M.dispatch=dn.bind(null,so,M),[Hr.memoizedState,M]}function Mr(M,z){if(so=rt(),Hr=Kt(),z=z===void 0?null:z,Hr!==null){var Y=Hr.memoizedState;if(Y!==null&&z!==null){var pe=Y[1];e:if(pe===null)pe=!1;else{for(var qe=0;qe<pe.length&&qe<z.length;qe++)if(!ji(z[qe],pe[qe])){pe=!1;break e}pe=!0}if(pe)return Y[0]}}return M=M(),Hr.memoizedState=[M,z],M}function dn(M,z,Y){if(25<=Ce)throw Error(e(301));if(M===so)if(Fr=!0,M={action:Y,next:null},J===null&&(J=new Map),Y=J.get(z),Y===void 0)J.set(z,M);else{for(z=Y;z.next!==null;)z=z.next;z.next=M}}function zn(){throw Error(e(394))}function rn(){}var Vr={readContext:function(M){return M._currentValue},useContext:function(M){return rt(),M._currentValue},useMemo:Mr,useReducer:Cr,useRef:function(M){so=rt(),Hr=Kt();var z=Hr.memoizedState;return z===null?(M={current:M},Hr.memoizedState=M):z},useState:function(M){return Cr(kr,M)},useInsertionEffect:rn,useLayoutEffect:function(){},useCallback:function(M,z){return Mr(function(){return M},z)},useImperativeHandle:rn,useEffect:rn,useDebugValue:rn,useDeferredValue:function(M){return rt(),M},useTransition:function(){return rt(),[!1,zn]},useId:function(){var M=ao.treeContext,z=M.overflow;M=M.id,M=(M&~(1<<32-io(M)-1)).toString(32)+z;var Y=fn;if(Y===null)throw Error(e(404));return z=O++,M=":"+Y.idPrefix+"R"+M,0<z&&(M+="H"+z.toString(32)),M+":"},useMutableSource:function(M,z){return rt(),z(M._source)},useSyncExternalStore:function(M,z,Y){if(Y===void 0)throw Error(e(407));return Y()}},fn=null,po=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function To(M){return console.error(M),null}function Xn(){}function Hi(M,z,Y,pe,qe,Fe,ut,Lt,Zt){var Sr=[],pr=new Set;return z={destination:null,responseState:z,progressiveChunkSize:pe===void 0?12800:pe,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:pr,pingedTasks:Sr,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:qe===void 0?To:qe,onAllReady:Fe===void 0?Xn:Fe,onShellReady:ut===void 0?Xn:ut,onShellError:Lt===void 0?Xn:Lt,onFatalError:Zt===void 0?Xn:Zt},Y=vn(z,0,null,Y,!1,!1),Y.parentFlushed=!0,M=ii(z,M,null,Y,pr,Ht,null,Eo),Sr.push(M),z}function ii(M,z,Y,pe,qe,Fe,ut,Lt){M.allPendingTasks++,Y===null?M.pendingRootTasks++:Y.pendingTasks++;var Zt={node:z,ping:function(){var Sr=M.pingedTasks;Sr.push(Zt),Sr.length===1&&Kl(M)},blockedBoundary:Y,blockedSegment:pe,abortSet:qe,legacyContext:Fe,context:ut,treeContext:Lt};return qe.add(Zt),Zt}function vn(M,z,Y,pe,qe,Fe){return{status:0,id:-1,index:z,parentFlushed:!1,chunks:[],children:[],formatContext:pe,boundary:Y,lastPushedText:qe,textEmbedded:Fe}}function Ns(M,z){if(M=M.onError(z),M!=null&&typeof M!="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 M+'" instead');return M}function Jn(M,z){var Y=M.onShellError;Y(z),Y=M.onFatalError,Y(z),M.destination!==null?(M.status=2,g(M.destination,z)):(M.status=1,M.fatalError=z)}function Gl(M,z,Y,pe,qe){for(so={},ao=z,O=0,M=Y(pe,qe);Fr;)Fr=!1,O=0,Ce+=1,Hr=null,M=Y(pe,qe);return _r(),M}function ll(M,z,Y,pe){var qe=Y.render(),Fe=pe.childContextTypes;if(Fe!=null){var ut=z.legacyContext;if(typeof Y.getChildContext!="function")pe=ut;else{Y=Y.getChildContext();for(var Lt in Y)if(!(Lt in Fe))throw Error(e(108,St(pe)||"Unknown",Lt));pe=Tn({},ut,Y)}z.legacyContext=pe,Qn(M,z,qe),z.legacyContext=ut}else Qn(M,z,qe)}function si(M,z){if(M&&M.defaultProps){z=Tn({},z),M=M.defaultProps;for(var Y in M)z[Y]===void 0&&(z[Y]=M[Y]);return z}return z}function zi(M,z,Y,pe,qe){if(typeof Y=="function")if(Y.prototype&&Y.prototype.isReactComponent){qe=Gt(Y,z.legacyContext);var Fe=Y.contextType;Fe=new Y(pe,typeof Fe=="object"&&Fe!==null?Fe._currentValue:qe),un(Fe,Y,pe,qe),ll(M,z,Fe,Y)}else{Fe=Gt(Y,z.legacyContext),qe=Gl(M,z,Y,pe,Fe);var ut=O!==0;if(typeof qe=="object"&&qe!==null&&typeof qe.render=="function"&&qe.$$typeof===void 0)un(qe,Y,pe,Fe),ll(M,z,qe,Y);else if(ut){pe=z.treeContext,z.treeContext=Kn(pe,1,0);try{Qn(M,z,qe)}finally{z.treeContext=pe}}else Qn(M,z,qe)}else if(typeof Y=="string"){switch(qe=z.blockedSegment,Fe=Oe(qe.chunks,Y,pe,M.responseState,qe.formatContext),qe.lastPushedText=!1,ut=qe.formatContext,qe.formatContext=ne(ut,Y,pe),Fo(M,z,Fe),qe.formatContext=ut,Y){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:qe.chunks.push(Je,d(Y),gt)}qe.lastPushedText=!1}else{switch(Y){case He:case he:case Po:case jn:case No:Qn(M,z,pe.children);return;case _n:Qn(M,z,pe.children);return;case X:throw Error(e(343));case mn:e:{Y=z.blockedBoundary,qe=z.blockedSegment,Fe=pe.fallback,pe=pe.children,ut=new Set;var Lt={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:ut,errorDigest:null},Zt=vn(M,qe.chunks.length,Lt,qe.formatContext,!1,!1);qe.children.push(Zt),qe.lastPushedText=!1;var Sr=vn(M,0,null,qe.formatContext,!1,!1);Sr.parentFlushed=!0,z.blockedBoundary=Lt,z.blockedSegment=Sr;try{if(Fo(M,z,pe),Sr.lastPushedText&&Sr.textEmbedded&&Sr.chunks.push(ce),Sr.status=1,ls(Lt,Sr),Lt.pendingTasks===0)break e}catch(pr){Sr.status=4,Lt.forceClientRender=!0,Lt.errorDigest=Ns(M,pr)}finally{z.blockedBoundary=Y,z.blockedSegment=qe}z=ii(M,Fe,Y,Zt,ut,z.legacyContext,z.context,z.treeContext),M.pingedTasks.push(z)}return}if(typeof Y=="object"&&Y!==null)switch(Y.$$typeof){case oo:if(pe=Gl(M,z,Y.render,pe,qe),O!==0){Y=z.treeContext,z.treeContext=Kn(Y,1,0);try{Qn(M,z,pe)}finally{z.treeContext=Y}}else Qn(M,z,pe);return;case k:Y=Y.type,pe=si(Y,pe),zi(M,z,Y,pe,qe);return;case Fn:if(qe=pe.children,Y=Y._context,pe=pe.value,Fe=Y._currentValue,Y._currentValue=pe,ut=Vt,Vt=pe={parent:ut,depth:ut===null?0:ut.depth+1,context:Y,parentValue:Fe,value:pe},z.context=pe,Qn(M,z,qe),M=Vt,M===null)throw Error(e(403));pe=M.parentValue,M.context._currentValue=pe===Ne?M.context._defaultValue:pe,M=Vt=M.parent,z.context=M;return;case Cn:pe=pe.children,pe=pe(Y._currentValue),Qn(M,z,pe);return;case $:qe=Y._init,Y=qe(Y._payload),pe=si(Y,pe),zi(M,z,Y,pe,void 0);return}throw Error(e(130,Y==null?Y:typeof Y,""))}}function Qn(M,z,Y){if(z.node=Y,typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case Bn:zi(M,z,Y.type,Y.props,Y.ref);return;case Ao:throw Error(e(257));case $:var pe=Y._init;Y=pe(Y._payload),Qn(M,z,Y);return}if(ge(Y)){an(M,z,Y);return}if(Y===null||typeof Y!="object"?pe=null:(pe=et&&Y[et]||Y["@@iterator"],pe=typeof pe=="function"?pe:null),pe&&(pe=pe.call(Y))){if(Y=pe.next(),!Y.done){var qe=[];do qe.push(Y.value),Y=pe.next();while(!Y.done);an(M,z,qe)}return}throw M=Object.prototype.toString.call(Y),Error(e(31,M==="[object Object]"?"object with keys {"+Object.keys(Y).join(", ")+"}":M))}typeof Y=="string"?(pe=z.blockedSegment,pe.lastPushedText=xe(z.blockedSegment.chunks,Y,M.responseState,pe.lastPushedText)):typeof Y=="number"&&(pe=z.blockedSegment,pe.lastPushedText=xe(z.blockedSegment.chunks,""+Y,M.responseState,pe.lastPushedText))}function an(M,z,Y){for(var pe=Y.length,qe=0;qe<pe;qe++){var Fe=z.treeContext;z.treeContext=Kn(Fe,pe,qe);try{Fo(M,z,Y[qe])}finally{z.treeContext=Fe}}}function Fo(M,z,Y){var pe=z.blockedSegment.formatContext,qe=z.legacyContext,Fe=z.context;try{return Qn(M,z,Y)}catch(Zt){if(_r(),typeof Zt=="object"&&Zt!==null&&typeof Zt.then=="function"){Y=Zt;var ut=z.blockedSegment,Lt=vn(M,ut.chunks.length,null,ut.formatContext,ut.lastPushedText,!0);ut.children.push(Lt),ut.lastPushedText=!1,M=ii(M,z.node,z.blockedBoundary,Lt,z.abortSet,z.legacyContext,z.context,z.treeContext).ping,Y.then(M,M),z.blockedSegment.formatContext=pe,z.legacyContext=qe,z.context=Fe,Zn(Fe)}else throw z.blockedSegment.formatContext=pe,z.legacyContext=qe,z.context=Fe,Zn(Fe),Zt}}function cl(M){var z=M.blockedBoundary;M=M.blockedSegment,M.status=3,Zl(this,z,M)}function Yl(M,z,Y){var pe=M.blockedBoundary;M.blockedSegment.status=3,pe===null?(z.allPendingTasks--,z.status!==2&&(z.status=2,z.destination!==null&&z.destination.close())):(pe.pendingTasks--,pe.forceClientRender||(pe.forceClientRender=!0,M=Y===void 0?Error(e(432)):Y,pe.errorDigest=z.onError(M),pe.parentFlushed&&z.clientRenderedBoundaries.push(pe)),pe.fallbackAbortableTasks.forEach(function(qe){return Yl(qe,z,Y)}),pe.fallbackAbortableTasks.clear(),z.allPendingTasks--,z.allPendingTasks===0&&(pe=z.onAllReady,pe()))}function ls(M,z){if(z.chunks.length===0&&z.children.length===1&&z.children[0].boundary===null){var Y=z.children[0];Y.id=z.id,Y.parentFlushed=!0,Y.status===1&&ls(M,Y)}else M.completedSegments.push(z)}function Zl(M,z,Y){if(z===null){if(Y.parentFlushed){if(M.completedRootSegment!==null)throw Error(e(389));M.completedRootSegment=Y}M.pendingRootTasks--,M.pendingRootTasks===0&&(M.onShellError=Xn,z=M.onShellReady,z())}else z.pendingTasks--,z.forceClientRender||(z.pendingTasks===0?(Y.parentFlushed&&Y.status===1&&ls(z,Y),z.parentFlushed&&M.completedBoundaries.push(z),z.fallbackAbortableTasks.forEach(cl,M),z.fallbackAbortableTasks.clear()):Y.parentFlushed&&Y.status===1&&(ls(z,Y),z.completedSegments.length===1&&z.parentFlushed&&M.partialBoundaries.push(z)));M.allPendingTasks--,M.allPendingTasks===0&&(M=M.onAllReady,M())}function Kl(M){if(M.status!==2){var z=Vt,Y=po.current;po.current=Vr;var pe=fn;fn=M.responseState;try{var qe=M.pingedTasks,Fe;for(Fe=0;Fe<qe.length;Fe++){var ut=qe[Fe],Lt=M,Zt=ut.blockedSegment;if(Zt.status===0){Zn(ut.context);try{Qn(Lt,ut,ut.node),Zt.lastPushedText&&Zt.textEmbedded&&Zt.chunks.push(ce),ut.abortSet.delete(ut),Zt.status=1,Zl(Lt,ut.blockedBoundary,Zt)}catch(Ho){if(_r(),typeof Ho=="object"&&Ho!==null&&typeof Ho.then=="function"){var Sr=ut.ping;Ho.then(Sr,Sr)}else{ut.abortSet.delete(ut),Zt.status=4;var pr=ut.blockedBoundary,nn=Ho,lo=Ns(Lt,nn);if(pr===null?Jn(Lt,nn):(pr.pendingTasks--,pr.forceClientRender||(pr.forceClientRender=!0,pr.errorDigest=lo,pr.parentFlushed&&Lt.clientRenderedBoundaries.push(pr))),Lt.allPendingTasks--,Lt.allPendingTasks===0){var jo=Lt.onAllReady;jo()}}}finally{}}}qe.splice(0,Fe),M.destination!==null&&Sa(M,M.destination)}catch(Ho){Ns(M,Ho),Jn(M,Ho)}finally{fn=pe,po.current=Y,Y===Vr&&Zn(z)}}}function Ca(M,z,Y){switch(Y.parentFlushed=!0,Y.status){case 0:var pe=Y.id=M.nextSegmentId++;return Y.lastPushedText=!1,Y.textEmbedded=!1,M=M.responseState,o(z,It),o(z,M.placeholderPrefix),M=d(pe.toString(16)),o(z,M),i(z,Et);case 1:Y.status=2;var qe=!0;pe=Y.chunks;var Fe=0;Y=Y.children;for(var ut=0;ut<Y.length;ut++){for(qe=Y[ut];Fe<qe.index;Fe++)o(z,pe[Fe]);qe=Ps(M,z,qe)}for(;Fe<pe.length-1;Fe++)o(z,pe[Fe]);return Fe<pe.length&&(qe=i(z,pe[Fe])),qe;default:throw Error(e(390))}}function Ps(M,z,Y){var pe=Y.boundary;if(pe===null)return Ca(M,z,Y);if(pe.parentFlushed=!0,pe.forceClientRender)pe=pe.errorDigest,i(z,hr),o(z,cr),pe&&(o(z,ue),o(z,d(H(pe))),o(z,Te)),i(z,st),Ca(M,z,Y);else if(0<pe.pendingTasks){pe.rootSegmentID=M.nextSegmentId++,0<pe.completedSegments.length&&M.partialBoundaries.push(pe);var qe=M.responseState,Fe=qe.nextSuspenseID++;qe=h(qe.boundaryPrefix+Fe.toString(16)),pe=pe.id=qe,ze(z,M.responseState,pe),Ca(M,z,Y)}else if(pe.byteSize>M.progressiveChunkSize)pe.rootSegmentID=M.nextSegmentId++,M.completedBoundaries.push(pe),ze(z,M.responseState,pe.id),Ca(M,z,Y);else{if(i(z,Dt),Y=pe.completedSegments,Y.length!==1)throw Error(e(391));Ps(M,z,Y[0])}return i(z,dr)}function Bs(M,z,Y){return Ft(z,M.responseState,Y.formatContext,Y.id),Ps(M,z,Y),Ot(z,Y.formatContext)}function $i(M,z,Y){for(var pe=Y.completedSegments,qe=0;qe<pe.length;qe++)Xl(M,z,Y,pe[qe]);if(pe.length=0,M=M.responseState,pe=Y.id,Y=Y.rootSegmentID,o(z,M.startInlineScript),M.sentCompleteBoundaryFunction?o(z,yt):(M.sentCompleteBoundaryFunction=!0,o(z,nt)),pe===null)throw Error(e(395));return Y=d(Y.toString(16)),o(z,pe),o(z,yr),o(z,M.segmentPrefix),o(z,Y),i(z,Br)}function Xl(M,z,Y,pe){if(pe.status===2)return!0;var qe=pe.id;if(qe===-1){if((pe.id=Y.rootSegmentID)===-1)throw Error(e(392));return Bs(M,z,pe)}return Bs(M,z,pe),M=M.responseState,o(z,M.startInlineScript),M.sentCompleteSegmentFunction?o(z,Qt):(M.sentCompleteSegmentFunction=!0,o(z,er)),o(z,M.segmentPrefix),qe=d(qe.toString(16)),o(z,qe),o(z,kt),o(z,M.placeholderPrefix),o(z,qe),i(z,be)}function Sa(M,z){t=new Uint8Array(512),n=0;try{var Y=M.completedRootSegment;if(Y!==null&&M.pendingRootTasks===0){Ps(M,z,Y),M.completedRootSegment=null;var pe=M.responseState.bootstrapChunks;for(Y=0;Y<pe.length-1;Y++)o(z,pe[Y]);Y<pe.length&&i(z,pe[Y])}var qe=M.clientRenderedBoundaries,Fe;for(Fe=0;Fe<qe.length;Fe++){var ut=qe[Fe];pe=z;var Lt=M.responseState,Zt=ut.id,Sr=ut.errorDigest,pr=ut.errorMessage,nn=ut.errorComponentStack;if(o(pe,Lt.startInlineScript),Lt.sentClientRenderFunction?o(pe,br):(Lt.sentClientRenderFunction=!0,o(pe,lr)),Zt===null)throw Error(e(395));o(pe,Zt),o(pe,en),(Sr||pr||nn)&&(o(pe,Pn),o(pe,d(tn(Sr||"")))),(pr||nn)&&(o(pe,Pn),o(pe,d(tn(pr||"")))),nn&&(o(pe,Pn),o(pe,d(tn(nn)))),i(pe,on)}qe.splice(0,Fe);var lo=M.completedBoundaries;for(Fe=0;Fe<lo.length;Fe++)$i(M,z,lo[Fe]);lo.splice(0,Fe),a(z),t=new Uint8Array(512),n=0;var jo=M.partialBoundaries;for(Fe=0;Fe<jo.length;Fe++){var Ho=jo[Fe];e:{qe=M,ut=z;var _a=Ho.completedSegments;for(Lt=0;Lt<_a.length;Lt++)if(!Xl(qe,ut,Ho,_a[Lt])){Lt++,_a.splice(0,Lt);var Jl=!1;break e}_a.splice(0,Lt),Jl=!0}if(!Jl){M.destination=null,Fe++,jo.splice(0,Fe);return}}jo.splice(0,Fe);var Fs=M.completedBoundaries;for(Fe=0;Fe<Fs.length;Fe++)$i(M,z,Fs[Fe]);Fs.splice(0,Fe)}finally{a(z),M.allPendingTasks===0&&M.pingedTasks.length===0&&M.clientRenderedBoundaries.length===0&&M.completedBoundaries.length===0&&z.close()}}function ul(M,z){try{var Y=M.abortableTasks;Y.forEach(function(pe){return Yl(pe,M,z)}),Y.clear(),M.destination!==null&&Sa(M,M.destination)}catch(pe){Ns(M,pe),Jn(M,pe)}}return Jh.renderToReadableStream=function(M,z){return new Promise(function(Y,pe){var qe,Fe,ut=new Promise(function(pr,nn){Fe=pr,qe=nn}),Lt=Hi(M,le(z?z.identifierPrefix:void 0,z?z.nonce:void 0,z?z.bootstrapScriptContent:void 0,z?z.bootstrapScripts:void 0,z?z.bootstrapModules:void 0),ee(z?z.namespaceURI:void 0),z?z.progressiveChunkSize:void 0,z?z.onError:void 0,Fe,function(){var pr=new ReadableStream({type:"bytes",pull:function(nn){if(Lt.status===1)Lt.status=2,g(nn,Lt.fatalError);else if(Lt.status!==2&&Lt.destination===null){Lt.destination=nn;try{Sa(Lt,nn)}catch(lo){Ns(Lt,lo),Jn(Lt,lo)}}},cancel:function(){ul(Lt)}},{highWaterMark:0});pr.allReady=ut,Y(pr)},function(pr){ut.catch(function(){}),pe(pr)},qe);if(z&&z.signal){var Zt=z.signal,Sr=function(){ul(Lt,Zt.reason),Zt.removeEventListener("abort",Sr)};Zt.addEventListener("abort",Sr)}Kl(Lt)})},Jh.version="18.3.1",Jh}var Ou={};/**
|
83
|
+
`&&M.push(Mt),Fe;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":M.push(ht(z));for(var jo in Y)if(m.call(Y,jo)&&(Fe=Y[jo],Fe!=null))switch(jo){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,z));default:Ie(M,pe,jo,Fe)}return M.push(it),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(M,Y,z,pe);case"html":return qe.insertionMode===0&&M.push(ft),bt(M,Y,z,pe);default:if(z.indexOf("-")===-1&&typeof Y.is!="string")return bt(M,Y,z,pe);M.push(ht(z)),ut=Fe=null;for(Sr in Y)if(m.call(Y,Sr)&&(Lt=Y[Sr],Lt!=null))switch(Sr){case"children":Fe=Lt;break;case"dangerouslySetInnerHTML":ut=Lt;break;case"style":We(M,pe,Lt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:T(Sr)&&typeof Lt!="function"&&typeof Lt!="symbol"&&M.push(Ve,d(Sr),we,d(H(Lt)),_e)}return M.push(je),Ue(M,ut,Fe),Fe}}var Je=h("</"),gt=h(">"),It=h('<template id="'),Et=h('"></template>'),Dt=h("<!--$-->"),Xt=h('<!--$?--><template id="'),Wt=h('"></template>'),hr=h("<!--$!-->"),dr=h("<!--/$-->"),cr=h("<template"),Te=h('"'),ue=h(' data-dgst="');h(' data-msg="'),h(' data-stck="');var at=h("></template>");function ze(M,z,Y){if(o(M,Xt),Y===null)throw Error(e(395));return o(M,Y),i(M,Wt)}var vt=h('<div hidden id="'),_t=h('">'),Tt=h("</div>"),Ut=h('<svg aria-hidden="true" style="display:none" id="'),Ge=h('">'),st=h("</svg>"),ct=h('<math aria-hidden="true" style="display:none" id="'),xt=h('">'),Nt=h("</math>"),Bt=h('<table hidden id="'),qt=h('">'),Yt=h("</table>"),ir=h('<table hidden><tbody id="'),jt=h('">'),xr=h("</tbody></table>"),jr=h('<table hidden><tr id="'),Ze=h('">'),te=h("</tr></table>"),ye=h('<table hidden><colgroup id="'),Be=h('">'),At=h("</colgroup></table>");function Ft(M,z,Y,pe){switch(Y.insertionMode){case 0:case 1:return o(M,vt),o(M,z.segmentPrefix),o(M,d(pe.toString(16))),i(M,_t);case 2:return o(M,Ut),o(M,z.segmentPrefix),o(M,d(pe.toString(16))),i(M,Ge);case 3:return o(M,ct),o(M,z.segmentPrefix),o(M,d(pe.toString(16))),i(M,xt);case 4:return o(M,Bt),o(M,z.segmentPrefix),o(M,d(pe.toString(16))),i(M,qt);case 5:return o(M,ir),o(M,z.segmentPrefix),o(M,d(pe.toString(16))),i(M,jt);case 6:return o(M,jr),o(M,z.segmentPrefix),o(M,d(pe.toString(16))),i(M,Ze);case 7:return o(M,ye),o(M,z.segmentPrefix),o(M,d(pe.toString(16))),i(M,Be);default:throw Error(e(397))}}function Ot(M,z){switch(z.insertionMode){case 0:case 1:return i(M,Tt);case 2:return i(M,st);case 3:return i(M,Nt);case 4:return i(M,Yt);case 5:return i(M,xr);case 6:return i(M,te);case 7:return i(M,At);default:throw Error(e(397))}}var er=h('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("'),Qt=h('$RS("'),kt=h('","'),be=h('")<\/script>'),nt=h('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("'),yt=h('$RC("'),yr=h('","'),Br=h('")<\/script>'),lr=h('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("'),br=h('$RX("'),en=h('"'),on=h(")<\/script>"),Pn=h(","),zr=/[<\u2028\u2029]/g;function tn(M){return JSON.stringify(M).replace(zr,function(z){switch(z){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 Tn=Object.assign,Bn=Symbol.for("react.element"),Ao=Symbol.for("react.portal"),No=Symbol.for("react.fragment"),Po=Symbol.for("react.strict_mode"),jn=Symbol.for("react.profiler"),Fn=Symbol.for("react.provider"),Cn=Symbol.for("react.context"),oo=Symbol.for("react.forward_ref"),mn=Symbol.for("react.suspense"),_n=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),X=Symbol.for("react.scope"),he=Symbol.for("react.debug_trace_mode"),He=Symbol.for("react.legacy_hidden"),Ne=Symbol.for("react.default_value"),et=Symbol.iterator;function St(M){if(M==null)return null;if(typeof M=="function")return M.displayName||M.name||null;if(typeof M=="string")return M;switch(M){case No:return"Fragment";case Ao:return"Portal";case jn:return"Profiler";case Po:return"StrictMode";case mn:return"Suspense";case _n:return"SuspenseList"}if(typeof M=="object")switch(M.$$typeof){case Cn:return(M.displayName||"Context")+".Consumer";case Fn:return(M._context.displayName||"Context")+".Provider";case oo:var z=M.render;return M=M.displayName,M||(M=z.displayName||z.name||"",M=M!==""?"ForwardRef("+M+")":"ForwardRef"),M;case k:return z=M.displayName||null,z!==null?z:St(M.type)||"Memo";case $:z=M._payload,M=M._init;try{return St(M(z))}catch{}}return null}var Ht={};function Gt(M,z){if(M=M.contextTypes,!M)return Ht;var Y={},pe;for(pe in M)Y[pe]=z[pe];return Y}var Vt=null;function Rr(M,z){if(M!==z){M.context._currentValue=M.parentValue,M=M.parent;var Y=z.parent;if(M===null){if(Y!==null)throw Error(e(401))}else{if(Y===null)throw Error(e(401));Rr(M,Y)}z.context._currentValue=z.value}}function sn(M){M.context._currentValue=M.parentValue,M=M.parent,M!==null&&sn(M)}function Rn(M){var z=M.parent;z!==null&&Rn(z),M.context._currentValue=M.value}function kn(M,z){if(M.context._currentValue=M.parentValue,M=M.parent,M===null)throw Error(e(402));M.depth===z.depth?Rr(M,z):kn(M,z)}function ho(M,z){var Y=z.parent;if(Y===null)throw Error(e(402));M.depth===Y.depth?Rr(M,Y):ho(M,Y),z.context._currentValue=z.value}function Zn(M){var z=Vt;z!==M&&(z===null?Rn(M):M===null?sn(z):z.depth===M.depth?Rr(z,M):z.depth>M.depth?kn(z,M):ho(z,M),Vt=M)}var Bo={isMounted:function(){return!1},enqueueSetState:function(M,z){M=M._reactInternals,M.queue!==null&&M.queue.push(z)},enqueueReplaceState:function(M,z){M=M._reactInternals,M.replace=!0,M.queue=[z]},enqueueForceUpdate:function(){}};function un(M,z,Y,pe){var qe=M.state!==void 0?M.state:null;M.updater=Bo,M.props=Y,M.state=qe;var Fe={queue:[],replace:!1};M._reactInternals=Fe;var ut=z.contextType;if(M.context=typeof ut=="object"&&ut!==null?ut._currentValue:pe,ut=z.getDerivedStateFromProps,typeof ut=="function"&&(ut=ut(Y,qe),qe=ut==null?qe:Tn({},qe,ut),M.state=qe),typeof z.getDerivedStateFromProps!="function"&&typeof M.getSnapshotBeforeUpdate!="function"&&(typeof M.UNSAFE_componentWillMount=="function"||typeof M.componentWillMount=="function"))if(z=M.state,typeof M.componentWillMount=="function"&&M.componentWillMount(),typeof M.UNSAFE_componentWillMount=="function"&&M.UNSAFE_componentWillMount(),z!==M.state&&Bo.enqueueReplaceState(M,M.state,null),Fe.queue!==null&&0<Fe.queue.length)if(z=Fe.queue,ut=Fe.replace,Fe.queue=null,Fe.replace=!1,ut&&z.length===1)M.state=z[0];else{for(Fe=ut?z[0]:M.state,qe=!0,ut=ut?1:0;ut<z.length;ut++){var Lt=z[ut];Lt=typeof Lt=="function"?Lt.call(M,Fe,Y,pe):Lt,Lt!=null&&(qe?(qe=!1,Fe=Tn({},Fe,Lt)):Tn(Fe,Lt))}M.state=Fe}else Fe.queue=null}var Eo={id:1,overflow:""};function Kn(M,z,Y){var pe=M.id;M=M.overflow;var qe=32-io(pe)-1;pe&=~(1<<qe),Y+=1;var Fe=32-io(z)+qe;if(30<Fe){var ut=qe-qe%5;return Fe=(pe&(1<<ut)-1).toString(32),pe>>=ut,qe-=ut,{id:1<<32-io(z)+qe|Y<<qe|pe,overflow:Fe+M}}return{id:1<<Fe|Y<<qe|pe,overflow:M}}var io=Math.clz32?Math.clz32:Ci,Fi=Math.log,wi=Math.LN2;function Ci(M){return M>>>=0,M===0?32:31-(Fi(M)/wi|0)|0}function Hn(M,z){return M===z&&(M!==0||1/M===1/z)||M!==M&&z!==z}var ji=typeof Object.is=="function"?Object.is:Hn,so=null,ao=null,oi=null,Hr=null,Ir=!1,Fr=!1,O=0,J=null,Ce=0;function rt(){if(so===null)throw Error(e(321));return so}function or(){if(0<Ce)throw Error(e(312));return{memoizedState:null,queue:null,next:null}}function Kt(){return Hr===null?oi===null?(Ir=!1,oi=Hr=or()):(Ir=!0,Hr=oi):Hr.next===null?(Ir=!1,Hr=Hr.next=or()):(Ir=!0,Hr=Hr.next),Hr}function _r(){ao=so=null,Fr=!1,oi=null,Ce=0,Hr=J=null}function kr(M,z){return typeof z=="function"?z(M):z}function Cr(M,z,Y){if(so=rt(),Hr=Kt(),Ir){var pe=Hr.queue;if(z=pe.dispatch,J!==null&&(Y=J.get(pe),Y!==void 0)){J.delete(pe),pe=Hr.memoizedState;do pe=M(pe,Y.action),Y=Y.next;while(Y!==null);return Hr.memoizedState=pe,[pe,z]}return[Hr.memoizedState,z]}return M=M===kr?typeof z=="function"?z():z:Y!==void 0?Y(z):z,Hr.memoizedState=M,M=Hr.queue={last:null,dispatch:null},M=M.dispatch=dn.bind(null,so,M),[Hr.memoizedState,M]}function Mr(M,z){if(so=rt(),Hr=Kt(),z=z===void 0?null:z,Hr!==null){var Y=Hr.memoizedState;if(Y!==null&&z!==null){var pe=Y[1];e:if(pe===null)pe=!1;else{for(var qe=0;qe<pe.length&&qe<z.length;qe++)if(!ji(z[qe],pe[qe])){pe=!1;break e}pe=!0}if(pe)return Y[0]}}return M=M(),Hr.memoizedState=[M,z],M}function dn(M,z,Y){if(25<=Ce)throw Error(e(301));if(M===so)if(Fr=!0,M={action:Y,next:null},J===null&&(J=new Map),Y=J.get(z),Y===void 0)J.set(z,M);else{for(z=Y;z.next!==null;)z=z.next;z.next=M}}function zn(){throw Error(e(394))}function rn(){}var Vr={readContext:function(M){return M._currentValue},useContext:function(M){return rt(),M._currentValue},useMemo:Mr,useReducer:Cr,useRef:function(M){so=rt(),Hr=Kt();var z=Hr.memoizedState;return z===null?(M={current:M},Hr.memoizedState=M):z},useState:function(M){return Cr(kr,M)},useInsertionEffect:rn,useLayoutEffect:function(){},useCallback:function(M,z){return Mr(function(){return M},z)},useImperativeHandle:rn,useEffect:rn,useDebugValue:rn,useDeferredValue:function(M){return rt(),M},useTransition:function(){return rt(),[!1,zn]},useId:function(){var M=ao.treeContext,z=M.overflow;M=M.id,M=(M&~(1<<32-io(M)-1)).toString(32)+z;var Y=fn;if(Y===null)throw Error(e(404));return z=O++,M=":"+Y.idPrefix+"R"+M,0<z&&(M+="H"+z.toString(32)),M+":"},useMutableSource:function(M,z){return rt(),z(M._source)},useSyncExternalStore:function(M,z,Y){if(Y===void 0)throw Error(e(407));return Y()}},fn=null,po=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function To(M){return console.error(M),null}function Xn(){}function Hi(M,z,Y,pe,qe,Fe,ut,Lt,Zt){var Sr=[],pr=new Set;return z={destination:null,responseState:z,progressiveChunkSize:pe===void 0?12800:pe,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:pr,pingedTasks:Sr,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:qe===void 0?To:qe,onAllReady:Fe===void 0?Xn:Fe,onShellReady:ut===void 0?Xn:ut,onShellError:Lt===void 0?Xn:Lt,onFatalError:Zt===void 0?Xn:Zt},Y=vn(z,0,null,Y,!1,!1),Y.parentFlushed=!0,M=ii(z,M,null,Y,pr,Ht,null,Eo),Sr.push(M),z}function ii(M,z,Y,pe,qe,Fe,ut,Lt){M.allPendingTasks++,Y===null?M.pendingRootTasks++:Y.pendingTasks++;var Zt={node:z,ping:function(){var Sr=M.pingedTasks;Sr.push(Zt),Sr.length===1&&Kl(M)},blockedBoundary:Y,blockedSegment:pe,abortSet:qe,legacyContext:Fe,context:ut,treeContext:Lt};return qe.add(Zt),Zt}function vn(M,z,Y,pe,qe,Fe){return{status:0,id:-1,index:z,parentFlushed:!1,chunks:[],children:[],formatContext:pe,boundary:Y,lastPushedText:qe,textEmbedded:Fe}}function Ns(M,z){if(M=M.onError(z),M!=null&&typeof M!="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 M+'" instead');return M}function Jn(M,z){var Y=M.onShellError;Y(z),Y=M.onFatalError,Y(z),M.destination!==null?(M.status=2,g(M.destination,z)):(M.status=1,M.fatalError=z)}function Gl(M,z,Y,pe,qe){for(so={},ao=z,O=0,M=Y(pe,qe);Fr;)Fr=!1,O=0,Ce+=1,Hr=null,M=Y(pe,qe);return _r(),M}function ll(M,z,Y,pe){var qe=Y.render(),Fe=pe.childContextTypes;if(Fe!=null){var ut=z.legacyContext;if(typeof Y.getChildContext!="function")pe=ut;else{Y=Y.getChildContext();for(var Lt in Y)if(!(Lt in Fe))throw Error(e(108,St(pe)||"Unknown",Lt));pe=Tn({},ut,Y)}z.legacyContext=pe,Qn(M,z,qe),z.legacyContext=ut}else Qn(M,z,qe)}function si(M,z){if(M&&M.defaultProps){z=Tn({},z),M=M.defaultProps;for(var Y in M)z[Y]===void 0&&(z[Y]=M[Y]);return z}return z}function zi(M,z,Y,pe,qe){if(typeof Y=="function")if(Y.prototype&&Y.prototype.isReactComponent){qe=Gt(Y,z.legacyContext);var Fe=Y.contextType;Fe=new Y(pe,typeof Fe=="object"&&Fe!==null?Fe._currentValue:qe),un(Fe,Y,pe,qe),ll(M,z,Fe,Y)}else{Fe=Gt(Y,z.legacyContext),qe=Gl(M,z,Y,pe,Fe);var ut=O!==0;if(typeof qe=="object"&&qe!==null&&typeof qe.render=="function"&&qe.$$typeof===void 0)un(qe,Y,pe,Fe),ll(M,z,qe,Y);else if(ut){pe=z.treeContext,z.treeContext=Kn(pe,1,0);try{Qn(M,z,qe)}finally{z.treeContext=pe}}else Qn(M,z,qe)}else if(typeof Y=="string"){switch(qe=z.blockedSegment,Fe=Oe(qe.chunks,Y,pe,M.responseState,qe.formatContext),qe.lastPushedText=!1,ut=qe.formatContext,qe.formatContext=ne(ut,Y,pe),Fo(M,z,Fe),qe.formatContext=ut,Y){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:qe.chunks.push(Je,d(Y),gt)}qe.lastPushedText=!1}else{switch(Y){case He:case he:case Po:case jn:case No:Qn(M,z,pe.children);return;case _n:Qn(M,z,pe.children);return;case X:throw Error(e(343));case mn:e:{Y=z.blockedBoundary,qe=z.blockedSegment,Fe=pe.fallback,pe=pe.children,ut=new Set;var Lt={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:ut,errorDigest:null},Zt=vn(M,qe.chunks.length,Lt,qe.formatContext,!1,!1);qe.children.push(Zt),qe.lastPushedText=!1;var Sr=vn(M,0,null,qe.formatContext,!1,!1);Sr.parentFlushed=!0,z.blockedBoundary=Lt,z.blockedSegment=Sr;try{if(Fo(M,z,pe),Sr.lastPushedText&&Sr.textEmbedded&&Sr.chunks.push(ce),Sr.status=1,ls(Lt,Sr),Lt.pendingTasks===0)break e}catch(pr){Sr.status=4,Lt.forceClientRender=!0,Lt.errorDigest=Ns(M,pr)}finally{z.blockedBoundary=Y,z.blockedSegment=qe}z=ii(M,Fe,Y,Zt,ut,z.legacyContext,z.context,z.treeContext),M.pingedTasks.push(z)}return}if(typeof Y=="object"&&Y!==null)switch(Y.$$typeof){case oo:if(pe=Gl(M,z,Y.render,pe,qe),O!==0){Y=z.treeContext,z.treeContext=Kn(Y,1,0);try{Qn(M,z,pe)}finally{z.treeContext=Y}}else Qn(M,z,pe);return;case k:Y=Y.type,pe=si(Y,pe),zi(M,z,Y,pe,qe);return;case Fn:if(qe=pe.children,Y=Y._context,pe=pe.value,Fe=Y._currentValue,Y._currentValue=pe,ut=Vt,Vt=pe={parent:ut,depth:ut===null?0:ut.depth+1,context:Y,parentValue:Fe,value:pe},z.context=pe,Qn(M,z,qe),M=Vt,M===null)throw Error(e(403));pe=M.parentValue,M.context._currentValue=pe===Ne?M.context._defaultValue:pe,M=Vt=M.parent,z.context=M;return;case Cn:pe=pe.children,pe=pe(Y._currentValue),Qn(M,z,pe);return;case $:qe=Y._init,Y=qe(Y._payload),pe=si(Y,pe),zi(M,z,Y,pe,void 0);return}throw Error(e(130,Y==null?Y:typeof Y,""))}}function Qn(M,z,Y){if(z.node=Y,typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case Bn:zi(M,z,Y.type,Y.props,Y.ref);return;case Ao:throw Error(e(257));case $:var pe=Y._init;Y=pe(Y._payload),Qn(M,z,Y);return}if(ge(Y)){an(M,z,Y);return}if(Y===null||typeof Y!="object"?pe=null:(pe=et&&Y[et]||Y["@@iterator"],pe=typeof pe=="function"?pe:null),pe&&(pe=pe.call(Y))){if(Y=pe.next(),!Y.done){var qe=[];do qe.push(Y.value),Y=pe.next();while(!Y.done);an(M,z,qe)}return}throw M=Object.prototype.toString.call(Y),Error(e(31,M==="[object Object]"?"object with keys {"+Object.keys(Y).join(", ")+"}":M))}typeof Y=="string"?(pe=z.blockedSegment,pe.lastPushedText=xe(z.blockedSegment.chunks,Y,M.responseState,pe.lastPushedText)):typeof Y=="number"&&(pe=z.blockedSegment,pe.lastPushedText=xe(z.blockedSegment.chunks,""+Y,M.responseState,pe.lastPushedText))}function an(M,z,Y){for(var pe=Y.length,qe=0;qe<pe;qe++){var Fe=z.treeContext;z.treeContext=Kn(Fe,pe,qe);try{Fo(M,z,Y[qe])}finally{z.treeContext=Fe}}}function Fo(M,z,Y){var pe=z.blockedSegment.formatContext,qe=z.legacyContext,Fe=z.context;try{return Qn(M,z,Y)}catch(Zt){if(_r(),typeof Zt=="object"&&Zt!==null&&typeof Zt.then=="function"){Y=Zt;var ut=z.blockedSegment,Lt=vn(M,ut.chunks.length,null,ut.formatContext,ut.lastPushedText,!0);ut.children.push(Lt),ut.lastPushedText=!1,M=ii(M,z.node,z.blockedBoundary,Lt,z.abortSet,z.legacyContext,z.context,z.treeContext).ping,Y.then(M,M),z.blockedSegment.formatContext=pe,z.legacyContext=qe,z.context=Fe,Zn(Fe)}else throw z.blockedSegment.formatContext=pe,z.legacyContext=qe,z.context=Fe,Zn(Fe),Zt}}function cl(M){var z=M.blockedBoundary;M=M.blockedSegment,M.status=3,Zl(this,z,M)}function Yl(M,z,Y){var pe=M.blockedBoundary;M.blockedSegment.status=3,pe===null?(z.allPendingTasks--,z.status!==2&&(z.status=2,z.destination!==null&&z.destination.close())):(pe.pendingTasks--,pe.forceClientRender||(pe.forceClientRender=!0,M=Y===void 0?Error(e(432)):Y,pe.errorDigest=z.onError(M),pe.parentFlushed&&z.clientRenderedBoundaries.push(pe)),pe.fallbackAbortableTasks.forEach(function(qe){return Yl(qe,z,Y)}),pe.fallbackAbortableTasks.clear(),z.allPendingTasks--,z.allPendingTasks===0&&(pe=z.onAllReady,pe()))}function ls(M,z){if(z.chunks.length===0&&z.children.length===1&&z.children[0].boundary===null){var Y=z.children[0];Y.id=z.id,Y.parentFlushed=!0,Y.status===1&&ls(M,Y)}else M.completedSegments.push(z)}function Zl(M,z,Y){if(z===null){if(Y.parentFlushed){if(M.completedRootSegment!==null)throw Error(e(389));M.completedRootSegment=Y}M.pendingRootTasks--,M.pendingRootTasks===0&&(M.onShellError=Xn,z=M.onShellReady,z())}else z.pendingTasks--,z.forceClientRender||(z.pendingTasks===0?(Y.parentFlushed&&Y.status===1&&ls(z,Y),z.parentFlushed&&M.completedBoundaries.push(z),z.fallbackAbortableTasks.forEach(cl,M),z.fallbackAbortableTasks.clear()):Y.parentFlushed&&Y.status===1&&(ls(z,Y),z.completedSegments.length===1&&z.parentFlushed&&M.partialBoundaries.push(z)));M.allPendingTasks--,M.allPendingTasks===0&&(M=M.onAllReady,M())}function Kl(M){if(M.status!==2){var z=Vt,Y=po.current;po.current=Vr;var pe=fn;fn=M.responseState;try{var qe=M.pingedTasks,Fe;for(Fe=0;Fe<qe.length;Fe++){var ut=qe[Fe],Lt=M,Zt=ut.blockedSegment;if(Zt.status===0){Zn(ut.context);try{Qn(Lt,ut,ut.node),Zt.lastPushedText&&Zt.textEmbedded&&Zt.chunks.push(ce),ut.abortSet.delete(ut),Zt.status=1,Zl(Lt,ut.blockedBoundary,Zt)}catch(Ho){if(_r(),typeof Ho=="object"&&Ho!==null&&typeof Ho.then=="function"){var Sr=ut.ping;Ho.then(Sr,Sr)}else{ut.abortSet.delete(ut),Zt.status=4;var pr=ut.blockedBoundary,nn=Ho,lo=Ns(Lt,nn);if(pr===null?Jn(Lt,nn):(pr.pendingTasks--,pr.forceClientRender||(pr.forceClientRender=!0,pr.errorDigest=lo,pr.parentFlushed&&Lt.clientRenderedBoundaries.push(pr))),Lt.allPendingTasks--,Lt.allPendingTasks===0){var jo=Lt.onAllReady;jo()}}}finally{}}}qe.splice(0,Fe),M.destination!==null&&Sa(M,M.destination)}catch(Ho){Ns(M,Ho),Jn(M,Ho)}finally{fn=pe,po.current=Y,Y===Vr&&Zn(z)}}}function Ca(M,z,Y){switch(Y.parentFlushed=!0,Y.status){case 0:var pe=Y.id=M.nextSegmentId++;return Y.lastPushedText=!1,Y.textEmbedded=!1,M=M.responseState,o(z,It),o(z,M.placeholderPrefix),M=d(pe.toString(16)),o(z,M),i(z,Et);case 1:Y.status=2;var qe=!0;pe=Y.chunks;var Fe=0;Y=Y.children;for(var ut=0;ut<Y.length;ut++){for(qe=Y[ut];Fe<qe.index;Fe++)o(z,pe[Fe]);qe=Ps(M,z,qe)}for(;Fe<pe.length-1;Fe++)o(z,pe[Fe]);return Fe<pe.length&&(qe=i(z,pe[Fe])),qe;default:throw Error(e(390))}}function Ps(M,z,Y){var pe=Y.boundary;if(pe===null)return Ca(M,z,Y);if(pe.parentFlushed=!0,pe.forceClientRender)pe=pe.errorDigest,i(z,hr),o(z,cr),pe&&(o(z,ue),o(z,d(H(pe))),o(z,Te)),i(z,at),Ca(M,z,Y);else if(0<pe.pendingTasks){pe.rootSegmentID=M.nextSegmentId++,0<pe.completedSegments.length&&M.partialBoundaries.push(pe);var qe=M.responseState,Fe=qe.nextSuspenseID++;qe=h(qe.boundaryPrefix+Fe.toString(16)),pe=pe.id=qe,ze(z,M.responseState,pe),Ca(M,z,Y)}else if(pe.byteSize>M.progressiveChunkSize)pe.rootSegmentID=M.nextSegmentId++,M.completedBoundaries.push(pe),ze(z,M.responseState,pe.id),Ca(M,z,Y);else{if(i(z,Dt),Y=pe.completedSegments,Y.length!==1)throw Error(e(391));Ps(M,z,Y[0])}return i(z,dr)}function Bs(M,z,Y){return Ft(z,M.responseState,Y.formatContext,Y.id),Ps(M,z,Y),Ot(z,Y.formatContext)}function $i(M,z,Y){for(var pe=Y.completedSegments,qe=0;qe<pe.length;qe++)Xl(M,z,Y,pe[qe]);if(pe.length=0,M=M.responseState,pe=Y.id,Y=Y.rootSegmentID,o(z,M.startInlineScript),M.sentCompleteBoundaryFunction?o(z,yt):(M.sentCompleteBoundaryFunction=!0,o(z,nt)),pe===null)throw Error(e(395));return Y=d(Y.toString(16)),o(z,pe),o(z,yr),o(z,M.segmentPrefix),o(z,Y),i(z,Br)}function Xl(M,z,Y,pe){if(pe.status===2)return!0;var qe=pe.id;if(qe===-1){if((pe.id=Y.rootSegmentID)===-1)throw Error(e(392));return Bs(M,z,pe)}return Bs(M,z,pe),M=M.responseState,o(z,M.startInlineScript),M.sentCompleteSegmentFunction?o(z,Qt):(M.sentCompleteSegmentFunction=!0,o(z,er)),o(z,M.segmentPrefix),qe=d(qe.toString(16)),o(z,qe),o(z,kt),o(z,M.placeholderPrefix),o(z,qe),i(z,be)}function Sa(M,z){t=new Uint8Array(512),n=0;try{var Y=M.completedRootSegment;if(Y!==null&&M.pendingRootTasks===0){Ps(M,z,Y),M.completedRootSegment=null;var pe=M.responseState.bootstrapChunks;for(Y=0;Y<pe.length-1;Y++)o(z,pe[Y]);Y<pe.length&&i(z,pe[Y])}var qe=M.clientRenderedBoundaries,Fe;for(Fe=0;Fe<qe.length;Fe++){var ut=qe[Fe];pe=z;var Lt=M.responseState,Zt=ut.id,Sr=ut.errorDigest,pr=ut.errorMessage,nn=ut.errorComponentStack;if(o(pe,Lt.startInlineScript),Lt.sentClientRenderFunction?o(pe,br):(Lt.sentClientRenderFunction=!0,o(pe,lr)),Zt===null)throw Error(e(395));o(pe,Zt),o(pe,en),(Sr||pr||nn)&&(o(pe,Pn),o(pe,d(tn(Sr||"")))),(pr||nn)&&(o(pe,Pn),o(pe,d(tn(pr||"")))),nn&&(o(pe,Pn),o(pe,d(tn(nn)))),i(pe,on)}qe.splice(0,Fe);var lo=M.completedBoundaries;for(Fe=0;Fe<lo.length;Fe++)$i(M,z,lo[Fe]);lo.splice(0,Fe),a(z),t=new Uint8Array(512),n=0;var jo=M.partialBoundaries;for(Fe=0;Fe<jo.length;Fe++){var Ho=jo[Fe];e:{qe=M,ut=z;var _a=Ho.completedSegments;for(Lt=0;Lt<_a.length;Lt++)if(!Xl(qe,ut,Ho,_a[Lt])){Lt++,_a.splice(0,Lt);var Jl=!1;break e}_a.splice(0,Lt),Jl=!0}if(!Jl){M.destination=null,Fe++,jo.splice(0,Fe);return}}jo.splice(0,Fe);var Fs=M.completedBoundaries;for(Fe=0;Fe<Fs.length;Fe++)$i(M,z,Fs[Fe]);Fs.splice(0,Fe)}finally{a(z),M.allPendingTasks===0&&M.pingedTasks.length===0&&M.clientRenderedBoundaries.length===0&&M.completedBoundaries.length===0&&z.close()}}function ul(M,z){try{var Y=M.abortableTasks;Y.forEach(function(pe){return Yl(pe,M,z)}),Y.clear(),M.destination!==null&&Sa(M,M.destination)}catch(pe){Ns(M,pe),Jn(M,pe)}}return Jh.renderToReadableStream=function(M,z){return new Promise(function(Y,pe){var qe,Fe,ut=new Promise(function(pr,nn){Fe=pr,qe=nn}),Lt=Hi(M,le(z?z.identifierPrefix:void 0,z?z.nonce:void 0,z?z.bootstrapScriptContent:void 0,z?z.bootstrapScripts:void 0,z?z.bootstrapModules:void 0),ee(z?z.namespaceURI:void 0),z?z.progressiveChunkSize:void 0,z?z.onError:void 0,Fe,function(){var pr=new ReadableStream({type:"bytes",pull:function(nn){if(Lt.status===1)Lt.status=2,g(nn,Lt.fatalError);else if(Lt.status!==2&&Lt.destination===null){Lt.destination=nn;try{Sa(Lt,nn)}catch(lo){Ns(Lt,lo),Jn(Lt,lo)}}},cancel:function(){ul(Lt)}},{highWaterMark:0});pr.allReady=ut,Y(pr)},function(pr){ut.catch(function(){}),pe(pr)},qe);if(z&&z.signal){var Zt=z.signal,Sr=function(){ul(Lt,Zt.reason),Zt.removeEventListener("abort",Sr)};Zt.addEventListener("abort",Sr)}Kl(Lt)})},Jh.version="18.3.1",Jh}var Ou={};/**
|
84
84
|
* @license React
|
85
85
|
* react-dom-server-legacy.browser.development.js
|
86
86
|
*
|
@@ -88,7 +88,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
88
88
|
*
|
89
89
|
* This source code is licensed under the MIT license found in the
|
90
90
|
* LICENSE file in the root directory of this source tree.
|
91
|
-
*/var J0;function s4(){return J0||(J0=1,process.env.NODE_ENV!=="production"&&function(){var r=C,e="18.3.1",t=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(l){{for(var f=arguments.length,y=new Array(f>1?f-1:0),E=1;E<f;E++)y[E-1]=arguments[E];i("warn",l,y)}}function o(l){{for(var f=arguments.length,y=new Array(f>1?f-1:0),E=1;E<f;E++)y[E-1]=arguments[E];i("error",l,y)}}function i(l,f,y){{var E=t.ReactDebugCurrentFrame,N=E.getStackAddendum();N!==""&&(f+="%s",y=y.concat([N]));var U=y.map(function(K){return String(K)});U.unshift("Warning: "+f),Function.prototype.apply.call(console[l],console,U)}}function a(l){l()}function c(l){}function d(l,f){h(l,f)}function h(l,f){return l.push(f)}function g(l){}function m(l){l.push(null)}function p(l){return l}function v(l){return l}function w(l,f){l.destroy(f)}function T(l){{var f=typeof Symbol=="function"&&Symbol.toStringTag,y=f&&l[Symbol.toStringTag]||l.constructor.name||"Object";return y}}function _(l){try{return A(l),!1}catch{return!0}}function A(l){return""+l}function R(l,f){if(_(l))return o("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",f,T(l)),A(l)}function D(l,f){if(_(l))return o("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",f,T(l)),A(l)}function I(l){if(_(l))return o("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",T(l)),A(l)}var F=Object.prototype.hasOwnProperty,B=0,H=1,j=2,G=3,ge=4,P=5,q=6,V=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Q=V+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ie=new RegExp("^["+V+"]["+Q+"]*$"),se={},ae={};function le(l){return F.call(ae,l)?!0:F.call(se,l)?!1:ie.test(l)?(ae[l]=!0,!0):(se[l]=!0,o("Invalid attribute name: `%s`",l),!1)}function fe(l,f,y,E){if(y!==null&&y.type===B)return!1;switch(typeof f){case"function":case"symbol":return!0;case"boolean":{if(y!==null)return!y.acceptsBooleans;var N=l.toLowerCase().slice(0,5);return N!=="data-"&&N!=="aria-"}default:return!1}}function ee(l){return ce.hasOwnProperty(l)?ce[l]:null}function ne(l,f,y,E,N,U,K){this.acceptsBooleans=f===j||f===G||f===ge,this.attributeName=E,this.attributeNamespace=N,this.mustUseProperty=y,this.propertyName=l,this.type=f,this.sanitizeURL=U,this.removeEmptyString=K}var ce={},xe=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];xe.forEach(function(l){ce[l]=new ne(l,B,!1,l,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(l){var f=l[0],y=l[1];ce[f]=new ne(f,H,!1,y,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(l){ce[l]=new ne(l,j,!1,l.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(l){ce[l]=new ne(l,j,!1,l,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(l){ce[l]=new ne(l,G,!1,l.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(l){ce[l]=new ne(l,G,!0,l,null,!1,!1)}),["capture","download"].forEach(function(l){ce[l]=new ne(l,ge,!1,l,null,!1,!1)}),["cols","rows","size","span"].forEach(function(l){ce[l]=new ne(l,q,!1,l,null,!1,!1)}),["rowSpan","start"].forEach(function(l){ce[l]=new ne(l,P,!1,l.toLowerCase(),null,!1,!1)});var Me=/[\-\:]([a-z])/g,oe=function(l){return l[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(l){var f=l.replace(Me,oe);ce[f]=new ne(f,H,!1,l,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(l){var f=l.replace(Me,oe);ce[f]=new ne(f,H,!1,l,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(l){var f=l.replace(Me,oe);ce[f]=new ne(f,H,!1,l,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(l){ce[l]=new ne(l,H,!1,l.toLowerCase(),null,!1,!1)});var Se="xlinkHref";ce[Se]=new ne("xlinkHref",H,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(l){ce[l]=new ne(l,H,!1,l.toLowerCase(),null,!0,!0)});var Le={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 We(l,f){return l+f.charAt(0).toUpperCase()+f.substring(1)}var Ve=["Webkit","ms","Moz","O"];Object.keys(Le).forEach(function(l){Ve.forEach(function(f){Le[We(f,l)]=Le[l]})});var we={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function _e(l,f){we[f.type]||f.onChange||f.onInput||f.readOnly||f.disabled||f.value==null||o("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`."),f.onChange||f.readOnly||f.disabled||f.checked==null||o("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 Ae(l,f){if(l.indexOf("-")===-1)return typeof f.is=="string";switch(l){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 Ie={"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},je={},it=new RegExp("^(aria)-["+Q+"]*$"),Ue=new RegExp("^(aria)[A-Z]["+Q+"]*$");function tt(l,f){{if(F.call(je,f)&&je[f])return!0;if(Ue.test(f)){var y="aria-"+f.slice(4).toLowerCase(),E=Ie.hasOwnProperty(y)?y:null;if(E==null)return o("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",f),je[f]=!0,!0;if(f!==E)return o("Invalid ARIA attribute `%s`. Did you mean `%s`?",f,E),je[f]=!0,!0}if(it.test(f)){var N=f.toLowerCase(),U=Ie.hasOwnProperty(N)?N:null;if(U==null)return je[f]=!0,!1;if(f!==U)return o("Unknown ARIA attribute `%s`. Did you mean `%s`?",f,U),je[f]=!0,!0}}return!0}function lt(l,f){{var y=[];for(var E in f){var N=tt(l,E);N||y.push(E)}var U=y.map(function(K){return"`"+K+"`"}).join(", ");y.length===1?o("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",U,l):y.length>1&&o("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",U,l)}}function bt(l,f){Ae(l,f)||lt(l,f)}var Mt=!1;function Qe(l,f){{if(l!=="input"&&l!=="textarea"&&l!=="select")return;f!=null&&f.value===null&&!Mt&&(Mt=!0,l==="select"&&f.multiple?o("`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.",l):o("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",l))}}var Xe={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"},ht=function(){};{var ft={},Oe=/^on./,Je=/^on[^A-Z]/,gt=new RegExp("^(aria)-["+Q+"]*$"),It=new RegExp("^(aria)[A-Z]["+Q+"]*$");ht=function(l,f,y,E){if(F.call(ft,f)&&ft[f])return!0;var N=f.toLowerCase();if(N==="onfocusin"||N==="onfocusout")return o("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."),ft[f]=!0,!0;if(E!=null){var U=E.registrationNameDependencies,K=E.possibleRegistrationNames;if(U.hasOwnProperty(f))return!0;var me=K.hasOwnProperty(N)?K[N]:null;if(me!=null)return o("Invalid event handler property `%s`. Did you mean `%s`?",f,me),ft[f]=!0,!0;if(Oe.test(f))return o("Unknown event handler property `%s`. It will be ignored.",f),ft[f]=!0,!0}else if(Oe.test(f))return Je.test(f)&&o("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",f),ft[f]=!0,!0;if(gt.test(f)||It.test(f))return!0;if(N==="innerhtml")return o("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),ft[f]=!0,!0;if(N==="aria")return o("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),ft[f]=!0,!0;if(N==="is"&&y!==null&&y!==void 0&&typeof y!="string")return o("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof y),ft[f]=!0,!0;if(typeof y=="number"&&isNaN(y))return o("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",f),ft[f]=!0,!0;var Pe=ee(f),dt=Pe!==null&&Pe.type===B;if(Xe.hasOwnProperty(N)){var Ct=Xe[N];if(Ct!==f)return o("Invalid DOM property `%s`. Did you mean `%s`?",f,Ct),ft[f]=!0,!0}else if(!dt&&f!==N)return o("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.",f,N),ft[f]=!0,!0;return typeof y=="boolean"&&fe(f,y,Pe)?(y?o('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()}.',y,f,f,y,f):o('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.',y,f,f,y,f,f,f),ft[f]=!0,!0):dt?!0:fe(f,y,Pe)?(ft[f]=!0,!1):((y==="false"||y==="true")&&Pe!==null&&Pe.type===G&&(o("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",y,f,y==="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".',f,y),ft[f]=!0),!0)}}var Et=function(l,f,y){{var E=[];for(var N in f){var U=ht(l,N,f[N],y);U||E.push(N)}var K=E.map(function(me){return"`"+me+"`"}).join(", ");E.length===1?o("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 ",K,l):E.length>1&&o("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 ",K,l)}};function Dt(l,f,y){Ae(l,f)||Et(l,f,y)}var Xt=function(){};{var Wt=/^(?:webkit|moz|o)[A-Z]/,hr=/^-ms-/,dr=/-(.)/g,cr=/;\s*$/,Te={},ue={},st=!1,ze=!1,vt=function(l){return l.replace(dr,function(f,y){return y.toUpperCase()})},_t=function(l){Te.hasOwnProperty(l)&&Te[l]||(Te[l]=!0,o("Unsupported style property %s. Did you mean %s?",l,vt(l.replace(hr,"ms-"))))},Tt=function(l){Te.hasOwnProperty(l)&&Te[l]||(Te[l]=!0,o("Unsupported vendor-prefixed style property %s. Did you mean %s?",l,l.charAt(0).toUpperCase()+l.slice(1)))},Ut=function(l,f){ue.hasOwnProperty(f)&&ue[f]||(ue[f]=!0,o(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,l,f.replace(cr,"")))},Ge=function(l,f){st||(st=!0,o("`NaN` is an invalid value for the `%s` css style property.",l))},at=function(l,f){ze||(ze=!0,o("`Infinity` is an invalid value for the `%s` css style property.",l))};Xt=function(l,f){l.indexOf("-")>-1?_t(l):Wt.test(l)?Tt(l):cr.test(f)&&Ut(l,f),typeof f=="number"&&(isNaN(f)?Ge(l,f):isFinite(f)||at(l,f))}}var ct=Xt,xt=/["'&<>]/;function Nt(l){I(l);var f=""+l,y=xt.exec(f);if(!y)return f;var E,N="",U,K=0;for(U=y.index;U<f.length;U++){switch(f.charCodeAt(U)){case 34:E=""";break;case 38:E="&";break;case 39:E="'";break;case 60:E="<";break;case 62:E=">";break;default:continue}K!==U&&(N+=f.substring(K,U)),K=U+1,N+=E}return K!==U?N+f.substring(K,U):N}function Bt(l){return typeof l=="boolean"||typeof l=="number"?""+l:Nt(l)}var qt=/([A-Z])/g,Yt=/^ms-/;function ir(l){return l.replace(qt,"-$1").toLowerCase().replace(Yt,"-ms-")}var jt=/^[\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,xr=!1;function jr(l){!xr&&jt.test(l)&&(xr=!0,o("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(l)))}var Ze=Array.isArray;function te(l){return Ze(l)}var ye="<script>";function Be(l,f,y,E,N){var U=l===void 0?"":l,K=ye,me=[];return{bootstrapChunks:me,startInlineScript:K,placeholderPrefix:U+"P:",segmentPrefix:U+"S:",boundaryPrefix:U+"B:",idPrefix:U,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var At=0,Ft=1,Ot=2,er=3,Qt=4,kt=5,be=6,nt=7;function yt(l,f){return{insertionMode:l,selectedValue:f}}function yr(l,f,y){switch(f){case"select":return yt(Ft,y.value!=null?y.value:y.defaultValue);case"svg":return yt(Ot,null);case"math":return yt(er,null);case"foreignObject":return yt(Ft,null);case"table":return yt(Qt,null);case"thead":case"tbody":case"tfoot":return yt(kt,null);case"colgroup":return yt(nt,null);case"tr":return yt(be,null)}return l.insertionMode>=Qt||l.insertionMode===At?yt(Ft,null):l}var Br=null;function lr(l){var f=l.nextSuspenseID++;return l.boundaryPrefix+f.toString(16)}function br(l,f,y){var E=l.idPrefix,N=":"+E+"R"+f;return y>0&&(N+="H"+y.toString(32)),N+":"}function en(l){return Bt(l)}var on="<!-- -->";function Pn(l,f,y,E){return f===""?E:(E&&l.push(on),l.push(en(f)),!0)}function zr(l,f,y,E){y&&E&&l.push(on)}var tn=new Map;function Tn(l){var f=tn.get(l);if(f!==void 0)return f;var y=Bt(ir(l));return tn.set(l,y),y}var Bn=' style="',Ao=":",No=";";function Po(l,f,y){if(typeof y!="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 E=!0;for(var N in y)if(F.call(y,N)){var U=y[N];if(!(U==null||typeof U=="boolean"||U==="")){var K=void 0,me=void 0,Pe=N.indexOf("--")===0;Pe?(K=Bt(N),D(U,N),me=Bt((""+U).trim())):(ct(N,U),K=Tn(N),typeof U=="number"?U!==0&&!F.call(Le,N)?me=U+"px":me=""+U:(D(U,N),me=Bt((""+U).trim()))),E?(E=!1,l.push(Bn,K,Ao,me)):l.push(No,K,Ao,me)}}E||l.push(Cn)}var jn=" ",Fn='="',Cn='"',oo='=""';function mn(l,f,y,E){switch(y){case"style":{Po(l,f,E);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(y.length>2&&(y[0]==="o"||y[0]==="O")&&(y[1]==="n"||y[1]==="N"))){var N=ee(y);if(N!==null){switch(typeof E){case"function":case"symbol":return;case"boolean":if(!N.acceptsBooleans)return}var U=N.attributeName,K=U;switch(N.type){case G:E&&l.push(jn,K,oo);return;case ge:E===!0?l.push(jn,K,oo):E===!1||l.push(jn,K,Fn,Bt(E),Cn);return;case P:isNaN(E)||l.push(jn,K,Fn,Bt(E),Cn);break;case q:!isNaN(E)&&E>=1&&l.push(jn,K,Fn,Bt(E),Cn);break;default:N.sanitizeURL&&(R(E,U),E=""+E,jr(E)),l.push(jn,K,Fn,Bt(E),Cn)}}else if(le(y)){switch(typeof E){case"function":case"symbol":return;case"boolean":{var me=y.toLowerCase().slice(0,5);if(me!=="data-"&&me!=="aria-")return}}l.push(jn,y,Fn,Bt(E),Cn)}}}var _n=">",k="/>";function $(l,f,y){if(f!=null){if(y!=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 E=f.__html;E!=null&&(I(E),l.push(""+E))}}var X=!1,he=!1,He=!1,Ne=!1,et=!1,St=!1,Ht=!1;function Gt(l,f){{var y=l[f];if(y!=null){var E=te(y);l.multiple&&!E?o("The `%s` prop supplied to <select> must be an array if `multiple` is true.",f):!l.multiple&&E&&o("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",f)}}}function Vt(l,f,y){_e("select",f),Gt(f,"value"),Gt(f,"defaultValue"),f.value!==void 0&&f.defaultValue!==void 0&&!He&&(o("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"),He=!0),l.push(Hn("select"));var E=null,N=null;for(var U in f)if(F.call(f,U)){var K=f[U];if(K==null)continue;switch(U){case"children":E=K;break;case"dangerouslySetInnerHTML":N=K;break;case"defaultValue":case"value":break;default:mn(l,y,U,K);break}}return l.push(_n),$(l,N,E),E}function Rr(l){var f="";return r.Children.forEach(l,function(y){y!=null&&(f+=y,!et&&typeof y!="string"&&typeof y!="number"&&(et=!0,o("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),f}var sn=' selected=""';function Rn(l,f,y,E){var N=E.selectedValue;l.push(Hn("option"));var U=null,K=null,me=null,Pe=null;for(var dt in f)if(F.call(f,dt)){var Ct=f[dt];if(Ct==null)continue;switch(dt){case"children":U=Ct;break;case"selected":me=Ct,Ht||(o("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Ht=!0);break;case"dangerouslySetInnerHTML":Pe=Ct;break;case"value":K=Ct;default:mn(l,y,dt,Ct);break}}if(N!=null){var Pt;if(K!==null?(R(K,"value"),Pt=""+K):(Pe!==null&&(St||(St=!0,o("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),Pt=Rr(U)),te(N))for(var ur=0;ur<N.length;ur++){R(N[ur],"value");var Gr=""+N[ur];if(Gr===Pt){l.push(sn);break}}else R(N,"select.value"),""+N===Pt&&l.push(sn)}else me&&l.push(sn);return l.push(_n),$(l,Pe,U),U}function kn(l,f,y){_e("input",f),f.checked!==void 0&&f.defaultChecked!==void 0&&!he&&(o("%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",f.type),he=!0),f.value!==void 0&&f.defaultValue!==void 0&&!X&&(o("%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",f.type),X=!0),l.push(Hn("input"));var E=null,N=null,U=null,K=null;for(var me in f)if(F.call(f,me)){var Pe=f[me];if(Pe==null)continue;switch(me){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":K=Pe;break;case"defaultValue":N=Pe;break;case"checked":U=Pe;break;case"value":E=Pe;break;default:mn(l,y,me,Pe);break}}return U!==null?mn(l,y,"checked",U):K!==null&&mn(l,y,"checked",K),E!==null?mn(l,y,"value",E):N!==null&&mn(l,y,"value",N),l.push(k),null}function ho(l,f,y){_e("textarea",f),f.value!==void 0&&f.defaultValue!==void 0&&!Ne&&(o("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"),Ne=!0),l.push(Hn("textarea"));var E=null,N=null,U=null;for(var K in f)if(F.call(f,K)){var me=f[K];if(me==null)continue;switch(K){case"children":U=me;break;case"value":E=me;break;case"defaultValue":N=me;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:mn(l,y,K,me);break}}if(E===null&&N!==null&&(E=N),l.push(_n),U!=null){if(o("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),E!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(te(U)){if(U.length>1)throw new Error("<textarea> can only have at most one child.");I(U[0]),E=""+U[0]}I(U),E=""+U}return typeof E=="string"&&E[0]===`
|
91
|
+
*/var J0;function s4(){return J0||(J0=1,process.env.NODE_ENV!=="production"&&function(){var r=C,e="18.3.1",t=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(l){{for(var f=arguments.length,y=new Array(f>1?f-1:0),E=1;E<f;E++)y[E-1]=arguments[E];i("warn",l,y)}}function o(l){{for(var f=arguments.length,y=new Array(f>1?f-1:0),E=1;E<f;E++)y[E-1]=arguments[E];i("error",l,y)}}function i(l,f,y){{var E=t.ReactDebugCurrentFrame,N=E.getStackAddendum();N!==""&&(f+="%s",y=y.concat([N]));var U=y.map(function(K){return String(K)});U.unshift("Warning: "+f),Function.prototype.apply.call(console[l],console,U)}}function a(l){l()}function c(l){}function d(l,f){h(l,f)}function h(l,f){return l.push(f)}function g(l){}function m(l){l.push(null)}function p(l){return l}function v(l){return l}function w(l,f){l.destroy(f)}function T(l){{var f=typeof Symbol=="function"&&Symbol.toStringTag,y=f&&l[Symbol.toStringTag]||l.constructor.name||"Object";return y}}function _(l){try{return A(l),!1}catch{return!0}}function A(l){return""+l}function R(l,f){if(_(l))return o("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",f,T(l)),A(l)}function D(l,f){if(_(l))return o("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",f,T(l)),A(l)}function I(l){if(_(l))return o("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",T(l)),A(l)}var F=Object.prototype.hasOwnProperty,B=0,H=1,j=2,G=3,ge=4,P=5,q=6,V=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Q=V+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ie=new RegExp("^["+V+"]["+Q+"]*$"),se={},ae={};function le(l){return F.call(ae,l)?!0:F.call(se,l)?!1:ie.test(l)?(ae[l]=!0,!0):(se[l]=!0,o("Invalid attribute name: `%s`",l),!1)}function fe(l,f,y,E){if(y!==null&&y.type===B)return!1;switch(typeof f){case"function":case"symbol":return!0;case"boolean":{if(y!==null)return!y.acceptsBooleans;var N=l.toLowerCase().slice(0,5);return N!=="data-"&&N!=="aria-"}default:return!1}}function ee(l){return ce.hasOwnProperty(l)?ce[l]:null}function ne(l,f,y,E,N,U,K){this.acceptsBooleans=f===j||f===G||f===ge,this.attributeName=E,this.attributeNamespace=N,this.mustUseProperty=y,this.propertyName=l,this.type=f,this.sanitizeURL=U,this.removeEmptyString=K}var ce={},xe=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];xe.forEach(function(l){ce[l]=new ne(l,B,!1,l,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(l){var f=l[0],y=l[1];ce[f]=new ne(f,H,!1,y,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(l){ce[l]=new ne(l,j,!1,l.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(l){ce[l]=new ne(l,j,!1,l,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(l){ce[l]=new ne(l,G,!1,l.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(l){ce[l]=new ne(l,G,!0,l,null,!1,!1)}),["capture","download"].forEach(function(l){ce[l]=new ne(l,ge,!1,l,null,!1,!1)}),["cols","rows","size","span"].forEach(function(l){ce[l]=new ne(l,q,!1,l,null,!1,!1)}),["rowSpan","start"].forEach(function(l){ce[l]=new ne(l,P,!1,l.toLowerCase(),null,!1,!1)});var Me=/[\-\:]([a-z])/g,oe=function(l){return l[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(l){var f=l.replace(Me,oe);ce[f]=new ne(f,H,!1,l,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(l){var f=l.replace(Me,oe);ce[f]=new ne(f,H,!1,l,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(l){var f=l.replace(Me,oe);ce[f]=new ne(f,H,!1,l,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(l){ce[l]=new ne(l,H,!1,l.toLowerCase(),null,!1,!1)});var Se="xlinkHref";ce[Se]=new ne("xlinkHref",H,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(l){ce[l]=new ne(l,H,!1,l.toLowerCase(),null,!0,!0)});var Le={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 We(l,f){return l+f.charAt(0).toUpperCase()+f.substring(1)}var Ve=["Webkit","ms","Moz","O"];Object.keys(Le).forEach(function(l){Ve.forEach(function(f){Le[We(f,l)]=Le[l]})});var we={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function _e(l,f){we[f.type]||f.onChange||f.onInput||f.readOnly||f.disabled||f.value==null||o("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`."),f.onChange||f.readOnly||f.disabled||f.checked==null||o("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 Ae(l,f){if(l.indexOf("-")===-1)return typeof f.is=="string";switch(l){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 Ie={"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},je={},it=new RegExp("^(aria)-["+Q+"]*$"),Ue=new RegExp("^(aria)[A-Z]["+Q+"]*$");function tt(l,f){{if(F.call(je,f)&&je[f])return!0;if(Ue.test(f)){var y="aria-"+f.slice(4).toLowerCase(),E=Ie.hasOwnProperty(y)?y:null;if(E==null)return o("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",f),je[f]=!0,!0;if(f!==E)return o("Invalid ARIA attribute `%s`. Did you mean `%s`?",f,E),je[f]=!0,!0}if(it.test(f)){var N=f.toLowerCase(),U=Ie.hasOwnProperty(N)?N:null;if(U==null)return je[f]=!0,!1;if(f!==U)return o("Unknown ARIA attribute `%s`. Did you mean `%s`?",f,U),je[f]=!0,!0}}return!0}function lt(l,f){{var y=[];for(var E in f){var N=tt(l,E);N||y.push(E)}var U=y.map(function(K){return"`"+K+"`"}).join(", ");y.length===1?o("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",U,l):y.length>1&&o("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",U,l)}}function bt(l,f){Ae(l,f)||lt(l,f)}var Mt=!1;function Qe(l,f){{if(l!=="input"&&l!=="textarea"&&l!=="select")return;f!=null&&f.value===null&&!Mt&&(Mt=!0,l==="select"&&f.multiple?o("`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.",l):o("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",l))}}var Xe={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"},ht=function(){};{var ft={},Oe=/^on./,Je=/^on[^A-Z]/,gt=new RegExp("^(aria)-["+Q+"]*$"),It=new RegExp("^(aria)[A-Z]["+Q+"]*$");ht=function(l,f,y,E){if(F.call(ft,f)&&ft[f])return!0;var N=f.toLowerCase();if(N==="onfocusin"||N==="onfocusout")return o("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."),ft[f]=!0,!0;if(E!=null){var U=E.registrationNameDependencies,K=E.possibleRegistrationNames;if(U.hasOwnProperty(f))return!0;var me=K.hasOwnProperty(N)?K[N]:null;if(me!=null)return o("Invalid event handler property `%s`. Did you mean `%s`?",f,me),ft[f]=!0,!0;if(Oe.test(f))return o("Unknown event handler property `%s`. It will be ignored.",f),ft[f]=!0,!0}else if(Oe.test(f))return Je.test(f)&&o("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",f),ft[f]=!0,!0;if(gt.test(f)||It.test(f))return!0;if(N==="innerhtml")return o("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),ft[f]=!0,!0;if(N==="aria")return o("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),ft[f]=!0,!0;if(N==="is"&&y!==null&&y!==void 0&&typeof y!="string")return o("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof y),ft[f]=!0,!0;if(typeof y=="number"&&isNaN(y))return o("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",f),ft[f]=!0,!0;var Pe=ee(f),dt=Pe!==null&&Pe.type===B;if(Xe.hasOwnProperty(N)){var Ct=Xe[N];if(Ct!==f)return o("Invalid DOM property `%s`. Did you mean `%s`?",f,Ct),ft[f]=!0,!0}else if(!dt&&f!==N)return o("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.",f,N),ft[f]=!0,!0;return typeof y=="boolean"&&fe(f,y,Pe)?(y?o('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()}.',y,f,f,y,f):o('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.',y,f,f,y,f,f,f),ft[f]=!0,!0):dt?!0:fe(f,y,Pe)?(ft[f]=!0,!1):((y==="false"||y==="true")&&Pe!==null&&Pe.type===G&&(o("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",y,f,y==="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".',f,y),ft[f]=!0),!0)}}var Et=function(l,f,y){{var E=[];for(var N in f){var U=ht(l,N,f[N],y);U||E.push(N)}var K=E.map(function(me){return"`"+me+"`"}).join(", ");E.length===1?o("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 ",K,l):E.length>1&&o("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 ",K,l)}};function Dt(l,f,y){Ae(l,f)||Et(l,f,y)}var Xt=function(){};{var Wt=/^(?:webkit|moz|o)[A-Z]/,hr=/^-ms-/,dr=/-(.)/g,cr=/;\s*$/,Te={},ue={},at=!1,ze=!1,vt=function(l){return l.replace(dr,function(f,y){return y.toUpperCase()})},_t=function(l){Te.hasOwnProperty(l)&&Te[l]||(Te[l]=!0,o("Unsupported style property %s. Did you mean %s?",l,vt(l.replace(hr,"ms-"))))},Tt=function(l){Te.hasOwnProperty(l)&&Te[l]||(Te[l]=!0,o("Unsupported vendor-prefixed style property %s. Did you mean %s?",l,l.charAt(0).toUpperCase()+l.slice(1)))},Ut=function(l,f){ue.hasOwnProperty(f)&&ue[f]||(ue[f]=!0,o(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,l,f.replace(cr,"")))},Ge=function(l,f){at||(at=!0,o("`NaN` is an invalid value for the `%s` css style property.",l))},st=function(l,f){ze||(ze=!0,o("`Infinity` is an invalid value for the `%s` css style property.",l))};Xt=function(l,f){l.indexOf("-")>-1?_t(l):Wt.test(l)?Tt(l):cr.test(f)&&Ut(l,f),typeof f=="number"&&(isNaN(f)?Ge(l,f):isFinite(f)||st(l,f))}}var ct=Xt,xt=/["'&<>]/;function Nt(l){I(l);var f=""+l,y=xt.exec(f);if(!y)return f;var E,N="",U,K=0;for(U=y.index;U<f.length;U++){switch(f.charCodeAt(U)){case 34:E=""";break;case 38:E="&";break;case 39:E="'";break;case 60:E="<";break;case 62:E=">";break;default:continue}K!==U&&(N+=f.substring(K,U)),K=U+1,N+=E}return K!==U?N+f.substring(K,U):N}function Bt(l){return typeof l=="boolean"||typeof l=="number"?""+l:Nt(l)}var qt=/([A-Z])/g,Yt=/^ms-/;function ir(l){return l.replace(qt,"-$1").toLowerCase().replace(Yt,"-ms-")}var jt=/^[\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,xr=!1;function jr(l){!xr&&jt.test(l)&&(xr=!0,o("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(l)))}var Ze=Array.isArray;function te(l){return Ze(l)}var ye="<script>";function Be(l,f,y,E,N){var U=l===void 0?"":l,K=ye,me=[];return{bootstrapChunks:me,startInlineScript:K,placeholderPrefix:U+"P:",segmentPrefix:U+"S:",boundaryPrefix:U+"B:",idPrefix:U,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var At=0,Ft=1,Ot=2,er=3,Qt=4,kt=5,be=6,nt=7;function yt(l,f){return{insertionMode:l,selectedValue:f}}function yr(l,f,y){switch(f){case"select":return yt(Ft,y.value!=null?y.value:y.defaultValue);case"svg":return yt(Ot,null);case"math":return yt(er,null);case"foreignObject":return yt(Ft,null);case"table":return yt(Qt,null);case"thead":case"tbody":case"tfoot":return yt(kt,null);case"colgroup":return yt(nt,null);case"tr":return yt(be,null)}return l.insertionMode>=Qt||l.insertionMode===At?yt(Ft,null):l}var Br=null;function lr(l){var f=l.nextSuspenseID++;return l.boundaryPrefix+f.toString(16)}function br(l,f,y){var E=l.idPrefix,N=":"+E+"R"+f;return y>0&&(N+="H"+y.toString(32)),N+":"}function en(l){return Bt(l)}var on="<!-- -->";function Pn(l,f,y,E){return f===""?E:(E&&l.push(on),l.push(en(f)),!0)}function zr(l,f,y,E){y&&E&&l.push(on)}var tn=new Map;function Tn(l){var f=tn.get(l);if(f!==void 0)return f;var y=Bt(ir(l));return tn.set(l,y),y}var Bn=' style="',Ao=":",No=";";function Po(l,f,y){if(typeof y!="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 E=!0;for(var N in y)if(F.call(y,N)){var U=y[N];if(!(U==null||typeof U=="boolean"||U==="")){var K=void 0,me=void 0,Pe=N.indexOf("--")===0;Pe?(K=Bt(N),D(U,N),me=Bt((""+U).trim())):(ct(N,U),K=Tn(N),typeof U=="number"?U!==0&&!F.call(Le,N)?me=U+"px":me=""+U:(D(U,N),me=Bt((""+U).trim()))),E?(E=!1,l.push(Bn,K,Ao,me)):l.push(No,K,Ao,me)}}E||l.push(Cn)}var jn=" ",Fn='="',Cn='"',oo='=""';function mn(l,f,y,E){switch(y){case"style":{Po(l,f,E);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(y.length>2&&(y[0]==="o"||y[0]==="O")&&(y[1]==="n"||y[1]==="N"))){var N=ee(y);if(N!==null){switch(typeof E){case"function":case"symbol":return;case"boolean":if(!N.acceptsBooleans)return}var U=N.attributeName,K=U;switch(N.type){case G:E&&l.push(jn,K,oo);return;case ge:E===!0?l.push(jn,K,oo):E===!1||l.push(jn,K,Fn,Bt(E),Cn);return;case P:isNaN(E)||l.push(jn,K,Fn,Bt(E),Cn);break;case q:!isNaN(E)&&E>=1&&l.push(jn,K,Fn,Bt(E),Cn);break;default:N.sanitizeURL&&(R(E,U),E=""+E,jr(E)),l.push(jn,K,Fn,Bt(E),Cn)}}else if(le(y)){switch(typeof E){case"function":case"symbol":return;case"boolean":{var me=y.toLowerCase().slice(0,5);if(me!=="data-"&&me!=="aria-")return}}l.push(jn,y,Fn,Bt(E),Cn)}}}var _n=">",k="/>";function $(l,f,y){if(f!=null){if(y!=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 E=f.__html;E!=null&&(I(E),l.push(""+E))}}var X=!1,he=!1,He=!1,Ne=!1,et=!1,St=!1,Ht=!1;function Gt(l,f){{var y=l[f];if(y!=null){var E=te(y);l.multiple&&!E?o("The `%s` prop supplied to <select> must be an array if `multiple` is true.",f):!l.multiple&&E&&o("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",f)}}}function Vt(l,f,y){_e("select",f),Gt(f,"value"),Gt(f,"defaultValue"),f.value!==void 0&&f.defaultValue!==void 0&&!He&&(o("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"),He=!0),l.push(Hn("select"));var E=null,N=null;for(var U in f)if(F.call(f,U)){var K=f[U];if(K==null)continue;switch(U){case"children":E=K;break;case"dangerouslySetInnerHTML":N=K;break;case"defaultValue":case"value":break;default:mn(l,y,U,K);break}}return l.push(_n),$(l,N,E),E}function Rr(l){var f="";return r.Children.forEach(l,function(y){y!=null&&(f+=y,!et&&typeof y!="string"&&typeof y!="number"&&(et=!0,o("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),f}var sn=' selected=""';function Rn(l,f,y,E){var N=E.selectedValue;l.push(Hn("option"));var U=null,K=null,me=null,Pe=null;for(var dt in f)if(F.call(f,dt)){var Ct=f[dt];if(Ct==null)continue;switch(dt){case"children":U=Ct;break;case"selected":me=Ct,Ht||(o("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Ht=!0);break;case"dangerouslySetInnerHTML":Pe=Ct;break;case"value":K=Ct;default:mn(l,y,dt,Ct);break}}if(N!=null){var Pt;if(K!==null?(R(K,"value"),Pt=""+K):(Pe!==null&&(St||(St=!0,o("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),Pt=Rr(U)),te(N))for(var ur=0;ur<N.length;ur++){R(N[ur],"value");var Gr=""+N[ur];if(Gr===Pt){l.push(sn);break}}else R(N,"select.value"),""+N===Pt&&l.push(sn)}else me&&l.push(sn);return l.push(_n),$(l,Pe,U),U}function kn(l,f,y){_e("input",f),f.checked!==void 0&&f.defaultChecked!==void 0&&!he&&(o("%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",f.type),he=!0),f.value!==void 0&&f.defaultValue!==void 0&&!X&&(o("%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",f.type),X=!0),l.push(Hn("input"));var E=null,N=null,U=null,K=null;for(var me in f)if(F.call(f,me)){var Pe=f[me];if(Pe==null)continue;switch(me){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":K=Pe;break;case"defaultValue":N=Pe;break;case"checked":U=Pe;break;case"value":E=Pe;break;default:mn(l,y,me,Pe);break}}return U!==null?mn(l,y,"checked",U):K!==null&&mn(l,y,"checked",K),E!==null?mn(l,y,"value",E):N!==null&&mn(l,y,"value",N),l.push(k),null}function ho(l,f,y){_e("textarea",f),f.value!==void 0&&f.defaultValue!==void 0&&!Ne&&(o("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"),Ne=!0),l.push(Hn("textarea"));var E=null,N=null,U=null;for(var K in f)if(F.call(f,K)){var me=f[K];if(me==null)continue;switch(K){case"children":U=me;break;case"value":E=me;break;case"defaultValue":N=me;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:mn(l,y,K,me);break}}if(E===null&&N!==null&&(E=N),l.push(_n),U!=null){if(o("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),E!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(te(U)){if(U.length>1)throw new Error("<textarea> can only have at most one child.");I(U[0]),E=""+U[0]}I(U),E=""+U}return typeof E=="string"&&E[0]===`
|
92
92
|
`&&l.push(io),E!==null&&(R(E,"value"),l.push(en(""+E))),null}function Zn(l,f,y,E){l.push(Hn(y));for(var N in f)if(F.call(f,N)){var U=f[N];if(U==null)continue;switch(N){case"children":case"dangerouslySetInnerHTML":throw new Error(y+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:mn(l,E,N,U);break}}return l.push(k),null}function Bo(l,f,y){l.push(Hn("menuitem"));for(var E in f)if(F.call(f,E)){var N=f[E];if(N==null)continue;switch(E){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:mn(l,y,E,N);break}}return l.push(_n),null}function un(l,f,y){l.push(Hn("title"));var E=null;for(var N in f)if(F.call(f,N)){var U=f[N];if(U==null)continue;switch(N){case"children":E=U;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:mn(l,y,N,U);break}}l.push(_n);{var K=Array.isArray(E)&&E.length<2?E[0]||null:E;Array.isArray(E)&&E.length>1?o("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"):K!=null&&K.$$typeof!=null?o("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"):K!=null&&typeof K!="string"&&typeof K!="number"&&o("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 E}function Eo(l,f,y,E){l.push(Hn(y));var N=null,U=null;for(var K in f)if(F.call(f,K)){var me=f[K];if(me==null)continue;switch(K){case"children":N=me;break;case"dangerouslySetInnerHTML":U=me;break;default:mn(l,E,K,me);break}}return l.push(_n),$(l,U,N),typeof N=="string"?(l.push(en(N)),null):N}function Kn(l,f,y,E){l.push(Hn(y));var N=null,U=null;for(var K in f)if(F.call(f,K)){var me=f[K];if(me==null)continue;switch(K){case"children":N=me;break;case"dangerouslySetInnerHTML":U=me;break;case"style":Po(l,E,me);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:le(K)&&typeof me!="function"&&typeof me!="symbol"&&l.push(jn,K,Fn,Bt(me),Cn);break}}return l.push(_n),$(l,U,N),N}var io=`
|
93
93
|
`;function Fi(l,f,y,E){l.push(Hn(y));var N=null,U=null;for(var K in f)if(F.call(f,K)){var me=f[K];if(me==null)continue;switch(K){case"children":N=me;break;case"dangerouslySetInnerHTML":U=me;break;default:mn(l,E,K,me);break}}if(l.push(_n),U!=null){if(N!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof U!="object"||!("__html"in U))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 Pe=U.__html;Pe!=null&&(typeof Pe=="string"&&Pe.length>0&&Pe[0]===`
|
94
94
|
`?l.push(io,Pe):(I(Pe),l.push(""+Pe)))}return typeof N=="string"&&N[0]===`
|
@@ -127,7 +127,7 @@ Error generating stack: `+E.message+`
|
|
127
127
|
*
|
128
128
|
* This source code is licensed under the MIT license found in the
|
129
129
|
* LICENSE file in the root directory of this source tree.
|
130
|
-
*/var Q0;function a4(){return Q0||(Q0=1,process.env.NODE_ENV!=="production"&&function(){var r=C,e="18.3.1",t=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(b){{for(var l=arguments.length,f=new Array(l>1?l-1:0),y=1;y<l;y++)f[y-1]=arguments[y];i("warn",b,f)}}function o(b){{for(var l=arguments.length,f=new Array(l>1?l-1:0),y=1;y<l;y++)f[y-1]=arguments[y];i("error",b,f)}}function i(b,l,f){{var y=t.ReactDebugCurrentFrame,E=y.getStackAddendum();E!==""&&(l+="%s",f=f.concat([E]));var N=f.map(function(U){return String(U)});N.unshift("Warning: "+l),Function.prototype.apply.call(console[b],console,N)}}function a(b){b()}var c=512,d=null,h=0;function g(b){d=new Uint8Array(c),h=0}function m(b,l){if(l.length!==0){if(l.length>c){h>0&&(b.enqueue(new Uint8Array(d.buffer,0,h)),d=new Uint8Array(c),h=0),b.enqueue(l);return}var f=l,y=d.length-h;y<f.length&&(y===0?b.enqueue(d):(d.set(f.subarray(0,y),h),b.enqueue(d),f=f.subarray(y)),d=new Uint8Array(c),h=0),d.set(f,h),h+=f.length}}function p(b,l){return m(b,l),!0}function v(b){d&&h>0&&(b.enqueue(new Uint8Array(d.buffer,0,h)),d=null,h=0)}function w(b){b.close()}var T=new TextEncoder;function _(b){return T.encode(b)}function A(b){return T.encode(b)}function R(b,l){typeof b.error=="function"?b.error(l):b.close()}function D(b){{var l=typeof Symbol=="function"&&Symbol.toStringTag,f=l&&b[Symbol.toStringTag]||b.constructor.name||"Object";return f}}function I(b){try{return F(b),!1}catch{return!0}}function F(b){return""+b}function B(b,l){if(I(b))return o("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",l,D(b)),F(b)}function H(b,l){if(I(b))return o("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",l,D(b)),F(b)}function j(b){if(I(b))return o("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(b)),F(b)}var G=Object.prototype.hasOwnProperty,ge=0,P=1,q=2,V=3,Q=4,ie=5,se=6,ae=":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=ae+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",fe=new RegExp("^["+ae+"]["+le+"]*$"),ee={},ne={};function ce(b){return G.call(ne,b)?!0:G.call(ee,b)?!1:fe.test(b)?(ne[b]=!0,!0):(ee[b]=!0,o("Invalid attribute name: `%s`",b),!1)}function xe(b,l,f,y){if(f!==null&&f.type===ge)return!1;switch(typeof l){case"function":case"symbol":return!0;case"boolean":{if(f!==null)return!f.acceptsBooleans;var E=b.toLowerCase().slice(0,5);return E!=="data-"&&E!=="aria-"}default:return!1}}function Me(b){return Se.hasOwnProperty(b)?Se[b]:null}function oe(b,l,f,y,E,N,U){this.acceptsBooleans=l===q||l===V||l===Q,this.attributeName=y,this.attributeNamespace=E,this.mustUseProperty=f,this.propertyName=b,this.type=l,this.sanitizeURL=N,this.removeEmptyString=U}var Se={},Le=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Le.forEach(function(b){Se[b]=new oe(b,ge,!1,b,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(b){var l=b[0],f=b[1];Se[l]=new oe(l,P,!1,f,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(b){Se[b]=new oe(b,q,!1,b.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(b){Se[b]=new oe(b,q,!1,b,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(b){Se[b]=new oe(b,V,!1,b.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(b){Se[b]=new oe(b,V,!0,b,null,!1,!1)}),["capture","download"].forEach(function(b){Se[b]=new oe(b,Q,!1,b,null,!1,!1)}),["cols","rows","size","span"].forEach(function(b){Se[b]=new oe(b,se,!1,b,null,!1,!1)}),["rowSpan","start"].forEach(function(b){Se[b]=new oe(b,ie,!1,b.toLowerCase(),null,!1,!1)});var We=/[\-\:]([a-z])/g,Ve=function(b){return b[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(b){var l=b.replace(We,Ve);Se[l]=new oe(l,P,!1,b,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(b){var l=b.replace(We,Ve);Se[l]=new oe(l,P,!1,b,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(b){var l=b.replace(We,Ve);Se[l]=new oe(l,P,!1,b,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(b){Se[b]=new oe(b,P,!1,b.toLowerCase(),null,!1,!1)});var we="xlinkHref";Se[we]=new oe("xlinkHref",P,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(b){Se[b]=new oe(b,P,!1,b.toLowerCase(),null,!0,!0)});var _e={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 Ae(b,l){return b+l.charAt(0).toUpperCase()+l.substring(1)}var Ie=["Webkit","ms","Moz","O"];Object.keys(_e).forEach(function(b){Ie.forEach(function(l){_e[Ae(l,b)]=_e[b]})});var je={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function it(b,l){je[l.type]||l.onChange||l.onInput||l.readOnly||l.disabled||l.value==null||o("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`."),l.onChange||l.readOnly||l.disabled||l.checked==null||o("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 Ue(b,l){if(b.indexOf("-")===-1)return typeof l.is=="string";switch(b){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 tt={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},lt={},bt=new RegExp("^(aria)-["+le+"]*$"),Mt=new RegExp("^(aria)[A-Z]["+le+"]*$");function Qe(b,l){{if(G.call(lt,l)&<[l])return!0;if(Mt.test(l)){var f="aria-"+l.slice(4).toLowerCase(),y=tt.hasOwnProperty(f)?f:null;if(y==null)return o("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",l),lt[l]=!0,!0;if(l!==y)return o("Invalid ARIA attribute `%s`. Did you mean `%s`?",l,y),lt[l]=!0,!0}if(bt.test(l)){var E=l.toLowerCase(),N=tt.hasOwnProperty(E)?E:null;if(N==null)return lt[l]=!0,!1;if(l!==N)return o("Unknown ARIA attribute `%s`. Did you mean `%s`?",l,N),lt[l]=!0,!0}}return!0}function Xe(b,l){{var f=[];for(var y in l){var E=Qe(b,y);E||f.push(y)}var N=f.map(function(U){return"`"+U+"`"}).join(", ");f.length===1?o("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",N,b):f.length>1&&o("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",N,b)}}function ht(b,l){Ue(b,l)||Xe(b,l)}var ft=!1;function Oe(b,l){{if(b!=="input"&&b!=="textarea"&&b!=="select")return;l!=null&&l.value===null&&!ft&&(ft=!0,b==="select"&&l.multiple?o("`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.",b):o("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",b))}}var Je={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"},gt=function(){};{var It={},Et=/^on./,Dt=/^on[^A-Z]/,Xt=new RegExp("^(aria)-["+le+"]*$"),Wt=new RegExp("^(aria)[A-Z]["+le+"]*$");gt=function(b,l,f,y){if(G.call(It,l)&&It[l])return!0;var E=l.toLowerCase();if(E==="onfocusin"||E==="onfocusout")return o("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."),It[l]=!0,!0;if(y!=null){var N=y.registrationNameDependencies,U=y.possibleRegistrationNames;if(N.hasOwnProperty(l))return!0;var K=U.hasOwnProperty(E)?U[E]:null;if(K!=null)return o("Invalid event handler property `%s`. Did you mean `%s`?",l,K),It[l]=!0,!0;if(Et.test(l))return o("Unknown event handler property `%s`. It will be ignored.",l),It[l]=!0,!0}else if(Et.test(l))return Dt.test(l)&&o("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",l),It[l]=!0,!0;if(Xt.test(l)||Wt.test(l))return!0;if(E==="innerhtml")return o("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),It[l]=!0,!0;if(E==="aria")return o("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),It[l]=!0,!0;if(E==="is"&&f!==null&&f!==void 0&&typeof f!="string")return o("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof f),It[l]=!0,!0;if(typeof f=="number"&&isNaN(f))return o("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",l),It[l]=!0,!0;var me=Me(l),Pe=me!==null&&me.type===ge;if(Je.hasOwnProperty(E)){var dt=Je[E];if(dt!==l)return o("Invalid DOM property `%s`. Did you mean `%s`?",l,dt),It[l]=!0,!0}else if(!Pe&&l!==E)return o("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.",l,E),It[l]=!0,!0;return typeof f=="boolean"&&xe(l,f,me)?(f?o('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()}.',f,l,l,f,l):o('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.',f,l,l,f,l,l,l),It[l]=!0,!0):Pe?!0:xe(l,f,me)?(It[l]=!0,!1):((f==="false"||f==="true")&&me!==null&&me.type===V&&(o("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",f,l,f==="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".',l,f),It[l]=!0),!0)}}var hr=function(b,l,f){{var y=[];for(var E in l){var N=gt(b,E,l[E],f);N||y.push(E)}var U=y.map(function(K){return"`"+K+"`"}).join(", ");y.length===1?o("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,b):y.length>1&&o("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,b)}};function dr(b,l,f){Ue(b,l)||hr(b,l,f)}var cr=function(){};{var Te=/^(?:webkit|moz|o)[A-Z]/,ue=/^-ms-/,st=/-(.)/g,ze=/;\s*$/,vt={},_t={},Tt=!1,Ut=!1,Ge=function(b){return b.replace(st,function(l,f){return f.toUpperCase()})},at=function(b){vt.hasOwnProperty(b)&&vt[b]||(vt[b]=!0,o("Unsupported style property %s. Did you mean %s?",b,Ge(b.replace(ue,"ms-"))))},ct=function(b){vt.hasOwnProperty(b)&&vt[b]||(vt[b]=!0,o("Unsupported vendor-prefixed style property %s. Did you mean %s?",b,b.charAt(0).toUpperCase()+b.slice(1)))},xt=function(b,l){_t.hasOwnProperty(l)&&_t[l]||(_t[l]=!0,o(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,b,l.replace(ze,"")))},Nt=function(b,l){Tt||(Tt=!0,o("`NaN` is an invalid value for the `%s` css style property.",b))},Bt=function(b,l){Ut||(Ut=!0,o("`Infinity` is an invalid value for the `%s` css style property.",b))};cr=function(b,l){b.indexOf("-")>-1?at(b):Te.test(b)?ct(b):ze.test(l)&&xt(b,l),typeof l=="number"&&(isNaN(l)?Nt(b,l):isFinite(l)||Bt(b,l))}}var qt=cr,Yt=/["'&<>]/;function ir(b){j(b);var l=""+b,f=Yt.exec(l);if(!f)return l;var y,E="",N,U=0;for(N=f.index;N<l.length;N++){switch(l.charCodeAt(N)){case 34:y=""";break;case 38:y="&";break;case 39:y="'";break;case 60:y="<";break;case 62:y=">";break;default:continue}U!==N&&(E+=l.substring(U,N)),U=N+1,E+=y}return U!==N?E+l.substring(U,N):E}function jt(b){return typeof b=="boolean"||typeof b=="number"?""+b:ir(b)}var xr=/([A-Z])/g,jr=/^ms-/;function Ze(b){return b.replace(xr,"-$1").toLowerCase().replace(jr,"-ms-")}var te=/^[\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,ye=!1;function Be(b){!ye&&te.test(b)&&(ye=!0,o("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(b)))}var At=Array.isArray;function Ft(b){return At(b)}var Ot=A("<script>"),er=A("<\/script>"),Qt=A('<script src="'),kt=A('<script type="module" src="'),be=A('" async=""><\/script>');function nt(b){return j(b),(""+b).replace(yt,yr)}var yt=/(<\/|<)(s)(cript)/gi,yr=function(b,l,f,y){return""+l+(f==="s"?"\\u0073":"\\u0053")+y};function Br(b,l,f,y,E){var N=b===void 0?"":b,U=l===void 0?Ot:A('<script nonce="'+jt(l)+'">'),K=[];if(f!==void 0&&K.push(U,_(nt(f)),er),y!==void 0)for(var me=0;me<y.length;me++)K.push(Qt,_(jt(y[me])),be);if(E!==void 0)for(var Pe=0;Pe<E.length;Pe++)K.push(kt,_(jt(E[Pe])),be);return{bootstrapChunks:K,startInlineScript:U,placeholderPrefix:A(N+"P:"),segmentPrefix:A(N+"S:"),boundaryPrefix:N+"B:",idPrefix:N,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var lr=0,br=1,en=2,on=3,Pn=4,zr=5,tn=6,Tn=7;function Bn(b,l){return{insertionMode:b,selectedValue:l}}function Ao(b){var l=b==="http://www.w3.org/2000/svg"?en:b==="http://www.w3.org/1998/Math/MathML"?on:lr;return Bn(l,null)}function No(b,l,f){switch(l){case"select":return Bn(br,f.value!=null?f.value:f.defaultValue);case"svg":return Bn(en,null);case"math":return Bn(on,null);case"foreignObject":return Bn(br,null);case"table":return Bn(Pn,null);case"thead":case"tbody":case"tfoot":return Bn(zr,null);case"colgroup":return Bn(Tn,null);case"tr":return Bn(tn,null)}return b.insertionMode>=Pn||b.insertionMode===lr?Bn(br,null):b}var Po=null;function jn(b){var l=b.nextSuspenseID++;return A(b.boundaryPrefix+l.toString(16))}function Fn(b,l,f){var y=b.idPrefix,E=":"+y+"R"+l;return f>0&&(E+="H"+f.toString(32)),E+":"}function Cn(b){return jt(b)}var oo=A("<!-- -->");function mn(b,l,f,y){return l===""?y:(y&&b.push(oo),b.push(_(Cn(l))),!0)}function _n(b,l,f,y){f&&y&&b.push(oo)}var k=new Map;function $(b){var l=k.get(b);if(l!==void 0)return l;var f=A(jt(Ze(b)));return k.set(b,f),f}var X=A(' style="'),he=A(":"),He=A(";");function Ne(b,l,f){if(typeof f!="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 E in f)if(G.call(f,E)){var N=f[E];if(!(N==null||typeof N=="boolean"||N==="")){var U=void 0,K=void 0,me=E.indexOf("--")===0;me?(U=_(jt(E)),H(N,E),K=_(jt((""+N).trim()))):(qt(E,N),U=$(E),typeof N=="number"?N!==0&&!G.call(_e,E)?K=_(N+"px"):K=_(""+N):(H(N,E),K=_(jt((""+N).trim())))),y?(y=!1,b.push(X,U,he,K)):b.push(He,U,he,K)}}y||b.push(Ht)}var et=A(" "),St=A('="'),Ht=A('"'),Gt=A('=""');function Vt(b,l,f,y){switch(f){case"style":{Ne(b,l,y);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(f.length>2&&(f[0]==="o"||f[0]==="O")&&(f[1]==="n"||f[1]==="N"))){var E=Me(f);if(E!==null){switch(typeof y){case"function":case"symbol":return;case"boolean":if(!E.acceptsBooleans)return}var N=E.attributeName,U=_(N);switch(E.type){case V:y&&b.push(et,U,Gt);return;case Q:y===!0?b.push(et,U,Gt):y===!1||b.push(et,U,St,_(jt(y)),Ht);return;case ie:isNaN(y)||b.push(et,U,St,_(jt(y)),Ht);break;case se:!isNaN(y)&&y>=1&&b.push(et,U,St,_(jt(y)),Ht);break;default:E.sanitizeURL&&(B(y,N),y=""+y,Be(y)),b.push(et,U,St,_(jt(y)),Ht)}}else if(ce(f)){switch(typeof y){case"function":case"symbol":return;case"boolean":{var K=f.toLowerCase().slice(0,5);if(K!=="data-"&&K!=="aria-")return}}b.push(et,_(f),St,_(jt(y)),Ht)}}}var Rr=A(">"),sn=A("/>");function Rn(b,l,f){if(l!=null){if(f!=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 y=l.__html;y!=null&&(j(y),b.push(_(""+y)))}}var kn=!1,ho=!1,Zn=!1,Bo=!1,un=!1,Eo=!1,Kn=!1;function io(b,l){{var f=b[l];if(f!=null){var y=Ft(f);b.multiple&&!y?o("The `%s` prop supplied to <select> must be an array if `multiple` is true.",l):!b.multiple&&y&&o("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",l)}}}function Fi(b,l,f){it("select",l),io(l,"value"),io(l,"defaultValue"),l.value!==void 0&&l.defaultValue!==void 0&&!Zn&&(o("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"),Zn=!0),b.push(or("select"));var y=null,E=null;for(var N in l)if(G.call(l,N)){var U=l[N];if(U==null)continue;switch(N){case"children":y=U;break;case"dangerouslySetInnerHTML":E=U;break;case"defaultValue":case"value":break;default:Vt(b,f,N,U);break}}return b.push(Rr),Rn(b,E,y),y}function wi(b){var l="";return r.Children.forEach(b,function(f){f!=null&&(l+=f,!un&&typeof f!="string"&&typeof f!="number"&&(un=!0,o("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),l}var Ci=A(' selected=""');function Hn(b,l,f,y){var E=y.selectedValue;b.push(or("option"));var N=null,U=null,K=null,me=null;for(var Pe in l)if(G.call(l,Pe)){var dt=l[Pe];if(dt==null)continue;switch(Pe){case"children":N=dt;break;case"selected":K=dt,Kn||(o("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Kn=!0);break;case"dangerouslySetInnerHTML":me=dt;break;case"value":U=dt;default:Vt(b,f,Pe,dt);break}}if(E!=null){var Ct;if(U!==null?(B(U,"value"),Ct=""+U):(me!==null&&(Eo||(Eo=!0,o("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),Ct=wi(N)),Ft(E))for(var Pt=0;Pt<E.length;Pt++){B(E[Pt],"value");var ur=""+E[Pt];if(ur===Ct){b.push(Ci);break}}else B(E,"select.value"),""+E===Ct&&b.push(Ci)}else K&&b.push(Ci);return b.push(Rr),Rn(b,me,N),N}function ji(b,l,f){it("input",l),l.checked!==void 0&&l.defaultChecked!==void 0&&!ho&&(o("%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",l.type),ho=!0),l.value!==void 0&&l.defaultValue!==void 0&&!kn&&(o("%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",l.type),kn=!0),b.push(or("input"));var y=null,E=null,N=null,U=null;for(var K in l)if(G.call(l,K)){var me=l[K];if(me==null)continue;switch(K){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":U=me;break;case"defaultValue":E=me;break;case"checked":N=me;break;case"value":y=me;break;default:Vt(b,f,K,me);break}}return N!==null?Vt(b,f,"checked",N):U!==null&&Vt(b,f,"checked",U),y!==null?Vt(b,f,"value",y):E!==null&&Vt(b,f,"value",E),b.push(sn),null}function so(b,l,f){it("textarea",l),l.value!==void 0&&l.defaultValue!==void 0&&!Bo&&(o("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"),Bo=!0),b.push(or("textarea"));var y=null,E=null,N=null;for(var U in l)if(G.call(l,U)){var K=l[U];if(K==null)continue;switch(U){case"children":N=K;break;case"value":y=K;break;case"defaultValue":E=K;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:Vt(b,f,U,K);break}}if(y===null&&E!==null&&(y=E),b.push(Rr),N!=null){if(o("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(Ft(N)){if(N.length>1)throw new Error("<textarea> can only have at most one child.");j(N[0]),y=""+N[0]}j(N),y=""+N}return typeof y=="string"&&y[0]===`
|
130
|
+
*/var Q0;function a4(){return Q0||(Q0=1,process.env.NODE_ENV!=="production"&&function(){var r=C,e="18.3.1",t=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(b){{for(var l=arguments.length,f=new Array(l>1?l-1:0),y=1;y<l;y++)f[y-1]=arguments[y];i("warn",b,f)}}function o(b){{for(var l=arguments.length,f=new Array(l>1?l-1:0),y=1;y<l;y++)f[y-1]=arguments[y];i("error",b,f)}}function i(b,l,f){{var y=t.ReactDebugCurrentFrame,E=y.getStackAddendum();E!==""&&(l+="%s",f=f.concat([E]));var N=f.map(function(U){return String(U)});N.unshift("Warning: "+l),Function.prototype.apply.call(console[b],console,N)}}function a(b){b()}var c=512,d=null,h=0;function g(b){d=new Uint8Array(c),h=0}function m(b,l){if(l.length!==0){if(l.length>c){h>0&&(b.enqueue(new Uint8Array(d.buffer,0,h)),d=new Uint8Array(c),h=0),b.enqueue(l);return}var f=l,y=d.length-h;y<f.length&&(y===0?b.enqueue(d):(d.set(f.subarray(0,y),h),b.enqueue(d),f=f.subarray(y)),d=new Uint8Array(c),h=0),d.set(f,h),h+=f.length}}function p(b,l){return m(b,l),!0}function v(b){d&&h>0&&(b.enqueue(new Uint8Array(d.buffer,0,h)),d=null,h=0)}function w(b){b.close()}var T=new TextEncoder;function _(b){return T.encode(b)}function A(b){return T.encode(b)}function R(b,l){typeof b.error=="function"?b.error(l):b.close()}function D(b){{var l=typeof Symbol=="function"&&Symbol.toStringTag,f=l&&b[Symbol.toStringTag]||b.constructor.name||"Object";return f}}function I(b){try{return F(b),!1}catch{return!0}}function F(b){return""+b}function B(b,l){if(I(b))return o("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",l,D(b)),F(b)}function H(b,l){if(I(b))return o("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",l,D(b)),F(b)}function j(b){if(I(b))return o("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(b)),F(b)}var G=Object.prototype.hasOwnProperty,ge=0,P=1,q=2,V=3,Q=4,ie=5,se=6,ae=":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=ae+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",fe=new RegExp("^["+ae+"]["+le+"]*$"),ee={},ne={};function ce(b){return G.call(ne,b)?!0:G.call(ee,b)?!1:fe.test(b)?(ne[b]=!0,!0):(ee[b]=!0,o("Invalid attribute name: `%s`",b),!1)}function xe(b,l,f,y){if(f!==null&&f.type===ge)return!1;switch(typeof l){case"function":case"symbol":return!0;case"boolean":{if(f!==null)return!f.acceptsBooleans;var E=b.toLowerCase().slice(0,5);return E!=="data-"&&E!=="aria-"}default:return!1}}function Me(b){return Se.hasOwnProperty(b)?Se[b]:null}function oe(b,l,f,y,E,N,U){this.acceptsBooleans=l===q||l===V||l===Q,this.attributeName=y,this.attributeNamespace=E,this.mustUseProperty=f,this.propertyName=b,this.type=l,this.sanitizeURL=N,this.removeEmptyString=U}var Se={},Le=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Le.forEach(function(b){Se[b]=new oe(b,ge,!1,b,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(b){var l=b[0],f=b[1];Se[l]=new oe(l,P,!1,f,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(b){Se[b]=new oe(b,q,!1,b.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(b){Se[b]=new oe(b,q,!1,b,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(b){Se[b]=new oe(b,V,!1,b.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(b){Se[b]=new oe(b,V,!0,b,null,!1,!1)}),["capture","download"].forEach(function(b){Se[b]=new oe(b,Q,!1,b,null,!1,!1)}),["cols","rows","size","span"].forEach(function(b){Se[b]=new oe(b,se,!1,b,null,!1,!1)}),["rowSpan","start"].forEach(function(b){Se[b]=new oe(b,ie,!1,b.toLowerCase(),null,!1,!1)});var We=/[\-\:]([a-z])/g,Ve=function(b){return b[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(b){var l=b.replace(We,Ve);Se[l]=new oe(l,P,!1,b,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(b){var l=b.replace(We,Ve);Se[l]=new oe(l,P,!1,b,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(b){var l=b.replace(We,Ve);Se[l]=new oe(l,P,!1,b,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(b){Se[b]=new oe(b,P,!1,b.toLowerCase(),null,!1,!1)});var we="xlinkHref";Se[we]=new oe("xlinkHref",P,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(b){Se[b]=new oe(b,P,!1,b.toLowerCase(),null,!0,!0)});var _e={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 Ae(b,l){return b+l.charAt(0).toUpperCase()+l.substring(1)}var Ie=["Webkit","ms","Moz","O"];Object.keys(_e).forEach(function(b){Ie.forEach(function(l){_e[Ae(l,b)]=_e[b]})});var je={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function it(b,l){je[l.type]||l.onChange||l.onInput||l.readOnly||l.disabled||l.value==null||o("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`."),l.onChange||l.readOnly||l.disabled||l.checked==null||o("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 Ue(b,l){if(b.indexOf("-")===-1)return typeof l.is=="string";switch(b){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 tt={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},lt={},bt=new RegExp("^(aria)-["+le+"]*$"),Mt=new RegExp("^(aria)[A-Z]["+le+"]*$");function Qe(b,l){{if(G.call(lt,l)&<[l])return!0;if(Mt.test(l)){var f="aria-"+l.slice(4).toLowerCase(),y=tt.hasOwnProperty(f)?f:null;if(y==null)return o("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",l),lt[l]=!0,!0;if(l!==y)return o("Invalid ARIA attribute `%s`. Did you mean `%s`?",l,y),lt[l]=!0,!0}if(bt.test(l)){var E=l.toLowerCase(),N=tt.hasOwnProperty(E)?E:null;if(N==null)return lt[l]=!0,!1;if(l!==N)return o("Unknown ARIA attribute `%s`. Did you mean `%s`?",l,N),lt[l]=!0,!0}}return!0}function Xe(b,l){{var f=[];for(var y in l){var E=Qe(b,y);E||f.push(y)}var N=f.map(function(U){return"`"+U+"`"}).join(", ");f.length===1?o("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",N,b):f.length>1&&o("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",N,b)}}function ht(b,l){Ue(b,l)||Xe(b,l)}var ft=!1;function Oe(b,l){{if(b!=="input"&&b!=="textarea"&&b!=="select")return;l!=null&&l.value===null&&!ft&&(ft=!0,b==="select"&&l.multiple?o("`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.",b):o("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",b))}}var Je={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"},gt=function(){};{var It={},Et=/^on./,Dt=/^on[^A-Z]/,Xt=new RegExp("^(aria)-["+le+"]*$"),Wt=new RegExp("^(aria)[A-Z]["+le+"]*$");gt=function(b,l,f,y){if(G.call(It,l)&&It[l])return!0;var E=l.toLowerCase();if(E==="onfocusin"||E==="onfocusout")return o("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."),It[l]=!0,!0;if(y!=null){var N=y.registrationNameDependencies,U=y.possibleRegistrationNames;if(N.hasOwnProperty(l))return!0;var K=U.hasOwnProperty(E)?U[E]:null;if(K!=null)return o("Invalid event handler property `%s`. Did you mean `%s`?",l,K),It[l]=!0,!0;if(Et.test(l))return o("Unknown event handler property `%s`. It will be ignored.",l),It[l]=!0,!0}else if(Et.test(l))return Dt.test(l)&&o("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",l),It[l]=!0,!0;if(Xt.test(l)||Wt.test(l))return!0;if(E==="innerhtml")return o("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),It[l]=!0,!0;if(E==="aria")return o("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),It[l]=!0,!0;if(E==="is"&&f!==null&&f!==void 0&&typeof f!="string")return o("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof f),It[l]=!0,!0;if(typeof f=="number"&&isNaN(f))return o("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",l),It[l]=!0,!0;var me=Me(l),Pe=me!==null&&me.type===ge;if(Je.hasOwnProperty(E)){var dt=Je[E];if(dt!==l)return o("Invalid DOM property `%s`. Did you mean `%s`?",l,dt),It[l]=!0,!0}else if(!Pe&&l!==E)return o("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.",l,E),It[l]=!0,!0;return typeof f=="boolean"&&xe(l,f,me)?(f?o('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()}.',f,l,l,f,l):o('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.',f,l,l,f,l,l,l),It[l]=!0,!0):Pe?!0:xe(l,f,me)?(It[l]=!0,!1):((f==="false"||f==="true")&&me!==null&&me.type===V&&(o("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",f,l,f==="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".',l,f),It[l]=!0),!0)}}var hr=function(b,l,f){{var y=[];for(var E in l){var N=gt(b,E,l[E],f);N||y.push(E)}var U=y.map(function(K){return"`"+K+"`"}).join(", ");y.length===1?o("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,b):y.length>1&&o("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,b)}};function dr(b,l,f){Ue(b,l)||hr(b,l,f)}var cr=function(){};{var Te=/^(?:webkit|moz|o)[A-Z]/,ue=/^-ms-/,at=/-(.)/g,ze=/;\s*$/,vt={},_t={},Tt=!1,Ut=!1,Ge=function(b){return b.replace(at,function(l,f){return f.toUpperCase()})},st=function(b){vt.hasOwnProperty(b)&&vt[b]||(vt[b]=!0,o("Unsupported style property %s. Did you mean %s?",b,Ge(b.replace(ue,"ms-"))))},ct=function(b){vt.hasOwnProperty(b)&&vt[b]||(vt[b]=!0,o("Unsupported vendor-prefixed style property %s. Did you mean %s?",b,b.charAt(0).toUpperCase()+b.slice(1)))},xt=function(b,l){_t.hasOwnProperty(l)&&_t[l]||(_t[l]=!0,o(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,b,l.replace(ze,"")))},Nt=function(b,l){Tt||(Tt=!0,o("`NaN` is an invalid value for the `%s` css style property.",b))},Bt=function(b,l){Ut||(Ut=!0,o("`Infinity` is an invalid value for the `%s` css style property.",b))};cr=function(b,l){b.indexOf("-")>-1?st(b):Te.test(b)?ct(b):ze.test(l)&&xt(b,l),typeof l=="number"&&(isNaN(l)?Nt(b,l):isFinite(l)||Bt(b,l))}}var qt=cr,Yt=/["'&<>]/;function ir(b){j(b);var l=""+b,f=Yt.exec(l);if(!f)return l;var y,E="",N,U=0;for(N=f.index;N<l.length;N++){switch(l.charCodeAt(N)){case 34:y=""";break;case 38:y="&";break;case 39:y="'";break;case 60:y="<";break;case 62:y=">";break;default:continue}U!==N&&(E+=l.substring(U,N)),U=N+1,E+=y}return U!==N?E+l.substring(U,N):E}function jt(b){return typeof b=="boolean"||typeof b=="number"?""+b:ir(b)}var xr=/([A-Z])/g,jr=/^ms-/;function Ze(b){return b.replace(xr,"-$1").toLowerCase().replace(jr,"-ms-")}var te=/^[\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,ye=!1;function Be(b){!ye&&te.test(b)&&(ye=!0,o("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(b)))}var At=Array.isArray;function Ft(b){return At(b)}var Ot=A("<script>"),er=A("<\/script>"),Qt=A('<script src="'),kt=A('<script type="module" src="'),be=A('" async=""><\/script>');function nt(b){return j(b),(""+b).replace(yt,yr)}var yt=/(<\/|<)(s)(cript)/gi,yr=function(b,l,f,y){return""+l+(f==="s"?"\\u0073":"\\u0053")+y};function Br(b,l,f,y,E){var N=b===void 0?"":b,U=l===void 0?Ot:A('<script nonce="'+jt(l)+'">'),K=[];if(f!==void 0&&K.push(U,_(nt(f)),er),y!==void 0)for(var me=0;me<y.length;me++)K.push(Qt,_(jt(y[me])),be);if(E!==void 0)for(var Pe=0;Pe<E.length;Pe++)K.push(kt,_(jt(E[Pe])),be);return{bootstrapChunks:K,startInlineScript:U,placeholderPrefix:A(N+"P:"),segmentPrefix:A(N+"S:"),boundaryPrefix:N+"B:",idPrefix:N,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var lr=0,br=1,en=2,on=3,Pn=4,zr=5,tn=6,Tn=7;function Bn(b,l){return{insertionMode:b,selectedValue:l}}function Ao(b){var l=b==="http://www.w3.org/2000/svg"?en:b==="http://www.w3.org/1998/Math/MathML"?on:lr;return Bn(l,null)}function No(b,l,f){switch(l){case"select":return Bn(br,f.value!=null?f.value:f.defaultValue);case"svg":return Bn(en,null);case"math":return Bn(on,null);case"foreignObject":return Bn(br,null);case"table":return Bn(Pn,null);case"thead":case"tbody":case"tfoot":return Bn(zr,null);case"colgroup":return Bn(Tn,null);case"tr":return Bn(tn,null)}return b.insertionMode>=Pn||b.insertionMode===lr?Bn(br,null):b}var Po=null;function jn(b){var l=b.nextSuspenseID++;return A(b.boundaryPrefix+l.toString(16))}function Fn(b,l,f){var y=b.idPrefix,E=":"+y+"R"+l;return f>0&&(E+="H"+f.toString(32)),E+":"}function Cn(b){return jt(b)}var oo=A("<!-- -->");function mn(b,l,f,y){return l===""?y:(y&&b.push(oo),b.push(_(Cn(l))),!0)}function _n(b,l,f,y){f&&y&&b.push(oo)}var k=new Map;function $(b){var l=k.get(b);if(l!==void 0)return l;var f=A(jt(Ze(b)));return k.set(b,f),f}var X=A(' style="'),he=A(":"),He=A(";");function Ne(b,l,f){if(typeof f!="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 E in f)if(G.call(f,E)){var N=f[E];if(!(N==null||typeof N=="boolean"||N==="")){var U=void 0,K=void 0,me=E.indexOf("--")===0;me?(U=_(jt(E)),H(N,E),K=_(jt((""+N).trim()))):(qt(E,N),U=$(E),typeof N=="number"?N!==0&&!G.call(_e,E)?K=_(N+"px"):K=_(""+N):(H(N,E),K=_(jt((""+N).trim())))),y?(y=!1,b.push(X,U,he,K)):b.push(He,U,he,K)}}y||b.push(Ht)}var et=A(" "),St=A('="'),Ht=A('"'),Gt=A('=""');function Vt(b,l,f,y){switch(f){case"style":{Ne(b,l,y);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(f.length>2&&(f[0]==="o"||f[0]==="O")&&(f[1]==="n"||f[1]==="N"))){var E=Me(f);if(E!==null){switch(typeof y){case"function":case"symbol":return;case"boolean":if(!E.acceptsBooleans)return}var N=E.attributeName,U=_(N);switch(E.type){case V:y&&b.push(et,U,Gt);return;case Q:y===!0?b.push(et,U,Gt):y===!1||b.push(et,U,St,_(jt(y)),Ht);return;case ie:isNaN(y)||b.push(et,U,St,_(jt(y)),Ht);break;case se:!isNaN(y)&&y>=1&&b.push(et,U,St,_(jt(y)),Ht);break;default:E.sanitizeURL&&(B(y,N),y=""+y,Be(y)),b.push(et,U,St,_(jt(y)),Ht)}}else if(ce(f)){switch(typeof y){case"function":case"symbol":return;case"boolean":{var K=f.toLowerCase().slice(0,5);if(K!=="data-"&&K!=="aria-")return}}b.push(et,_(f),St,_(jt(y)),Ht)}}}var Rr=A(">"),sn=A("/>");function Rn(b,l,f){if(l!=null){if(f!=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 y=l.__html;y!=null&&(j(y),b.push(_(""+y)))}}var kn=!1,ho=!1,Zn=!1,Bo=!1,un=!1,Eo=!1,Kn=!1;function io(b,l){{var f=b[l];if(f!=null){var y=Ft(f);b.multiple&&!y?o("The `%s` prop supplied to <select> must be an array if `multiple` is true.",l):!b.multiple&&y&&o("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",l)}}}function Fi(b,l,f){it("select",l),io(l,"value"),io(l,"defaultValue"),l.value!==void 0&&l.defaultValue!==void 0&&!Zn&&(o("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"),Zn=!0),b.push(or("select"));var y=null,E=null;for(var N in l)if(G.call(l,N)){var U=l[N];if(U==null)continue;switch(N){case"children":y=U;break;case"dangerouslySetInnerHTML":E=U;break;case"defaultValue":case"value":break;default:Vt(b,f,N,U);break}}return b.push(Rr),Rn(b,E,y),y}function wi(b){var l="";return r.Children.forEach(b,function(f){f!=null&&(l+=f,!un&&typeof f!="string"&&typeof f!="number"&&(un=!0,o("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),l}var Ci=A(' selected=""');function Hn(b,l,f,y){var E=y.selectedValue;b.push(or("option"));var N=null,U=null,K=null,me=null;for(var Pe in l)if(G.call(l,Pe)){var dt=l[Pe];if(dt==null)continue;switch(Pe){case"children":N=dt;break;case"selected":K=dt,Kn||(o("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Kn=!0);break;case"dangerouslySetInnerHTML":me=dt;break;case"value":U=dt;default:Vt(b,f,Pe,dt);break}}if(E!=null){var Ct;if(U!==null?(B(U,"value"),Ct=""+U):(me!==null&&(Eo||(Eo=!0,o("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),Ct=wi(N)),Ft(E))for(var Pt=0;Pt<E.length;Pt++){B(E[Pt],"value");var ur=""+E[Pt];if(ur===Ct){b.push(Ci);break}}else B(E,"select.value"),""+E===Ct&&b.push(Ci)}else K&&b.push(Ci);return b.push(Rr),Rn(b,me,N),N}function ji(b,l,f){it("input",l),l.checked!==void 0&&l.defaultChecked!==void 0&&!ho&&(o("%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",l.type),ho=!0),l.value!==void 0&&l.defaultValue!==void 0&&!kn&&(o("%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",l.type),kn=!0),b.push(or("input"));var y=null,E=null,N=null,U=null;for(var K in l)if(G.call(l,K)){var me=l[K];if(me==null)continue;switch(K){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":U=me;break;case"defaultValue":E=me;break;case"checked":N=me;break;case"value":y=me;break;default:Vt(b,f,K,me);break}}return N!==null?Vt(b,f,"checked",N):U!==null&&Vt(b,f,"checked",U),y!==null?Vt(b,f,"value",y):E!==null&&Vt(b,f,"value",E),b.push(sn),null}function so(b,l,f){it("textarea",l),l.value!==void 0&&l.defaultValue!==void 0&&!Bo&&(o("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"),Bo=!0),b.push(or("textarea"));var y=null,E=null,N=null;for(var U in l)if(G.call(l,U)){var K=l[U];if(K==null)continue;switch(U){case"children":N=K;break;case"value":y=K;break;case"defaultValue":E=K;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:Vt(b,f,U,K);break}}if(y===null&&E!==null&&(y=E),b.push(Rr),N!=null){if(o("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(Ft(N)){if(N.length>1)throw new Error("<textarea> can only have at most one child.");j(N[0]),y=""+N[0]}j(N),y=""+N}return typeof y=="string"&&y[0]===`
|
131
131
|
`&&b.push(O),y!==null&&(B(y,"value"),b.push(_(Cn(""+y)))),null}function ao(b,l,f,y){b.push(or(f));for(var E in l)if(G.call(l,E)){var N=l[E];if(N==null)continue;switch(E){case"children":case"dangerouslySetInnerHTML":throw new Error(f+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Vt(b,y,E,N);break}}return b.push(sn),null}function oi(b,l,f){b.push(or("menuitem"));for(var y in l)if(G.call(l,y)){var E=l[y];if(E==null)continue;switch(y){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:Vt(b,f,y,E);break}}return b.push(Rr),null}function Hr(b,l,f){b.push(or("title"));var y=null;for(var E in l)if(G.call(l,E)){var N=l[E];if(N==null)continue;switch(E){case"children":y=N;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:Vt(b,f,E,N);break}}b.push(Rr);{var U=Array.isArray(y)&&y.length<2?y[0]||null:y;Array.isArray(y)&&y.length>1?o("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?o("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"&&o("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 Ir(b,l,f,y){b.push(or(f));var E=null,N=null;for(var U in l)if(G.call(l,U)){var K=l[U];if(K==null)continue;switch(U){case"children":E=K;break;case"dangerouslySetInnerHTML":N=K;break;default:Vt(b,y,U,K);break}}return b.push(Rr),Rn(b,N,E),typeof E=="string"?(b.push(_(Cn(E))),null):E}function Fr(b,l,f,y){b.push(or(f));var E=null,N=null;for(var U in l)if(G.call(l,U)){var K=l[U];if(K==null)continue;switch(U){case"children":E=K;break;case"dangerouslySetInnerHTML":N=K;break;case"style":Ne(b,y,K);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:ce(U)&&typeof K!="function"&&typeof K!="symbol"&&b.push(et,_(U),St,_(jt(K)),Ht);break}}return b.push(Rr),Rn(b,N,E),E}var O=A(`
|
132
132
|
`);function J(b,l,f,y){b.push(or(f));var E=null,N=null;for(var U in l)if(G.call(l,U)){var K=l[U];if(K==null)continue;switch(U){case"children":E=K;break;case"dangerouslySetInnerHTML":N=K;break;default:Vt(b,y,U,K);break}}if(b.push(Rr),N!=null){if(E!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof N!="object"||!("__html"in N))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 me=N.__html;me!=null&&(typeof me=="string"&&me.length>0&&me[0]===`
|
133
133
|
`?b.push(O,_(me)):(j(me),b.push(_(""+me))))}return typeof E=="string"&&E[0]===`
|
@@ -158,14 +158,14 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
158
158
|
Previous: %s
|
159
159
|
Incoming: %s`,li,"["+b.join(", ")+"]","["+l.join(", ")+"]");for(var f=0;f<l.length&&f<b.length;f++)if(!Or(b[f],l[f]))return!1;return!0}function hu(){if(Ti>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function qo(){return Ur===null?Us===null?(vs=!1,Us=Ur=hu()):(vs=!0,Ur=Us):Ur.next===null?(vs=!1,Ur=Ur.next=hu()):(vs=!0,Ur=Ur.next),Ur}function pu(b,l){$o=l,Pa=b,mo=!1,Ro=0}function Ws(b,l,f,y){for(;xl;)xl=!1,Ro=0,Ti+=1,Ur=null,f=b(l,y);return gu(),f}function vo(){var b=Ro!==0;return b}function gu(){mo=!1,$o=null,Pa=null,xl=!1,Us=null,Ti=0,Uo=null,Ur=null}function mu(b){return mo&&o("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()."),Na(b)}function vu(b){return li="useContext",qs(),Na(b)}function Vs(b,l){return typeof l=="function"?l(b):l}function ys(b){return li="useState",yu(Vs,b)}function yu(b,l,f){if(b!==Vs&&(li="useReducer"),$o=qs(),Ur=qo(),vs){var y=Ur.queue,E=y.dispatch;if(Uo!==null){var N=Uo.get(y);if(N!==void 0){Uo.delete(y);var U=Ur.memoizedState,K=N;do{var me=K.action;mo=!0,U=b(U,me),mo=!1,K=K.next}while(K!==null);return Ur.memoizedState=U,[U,E]}}return[Ur.memoizedState,E]}else{mo=!0;var Pe;b===Vs?Pe=typeof l=="function"?l():l:Pe=f!==void 0?f(l):l,mo=!1,Ur.memoizedState=Pe;var dt=Ur.queue={last:null,dispatch:null},Ct=dt.dispatch=gd.bind(null,$o,dt);return[Ur.memoizedState,Ct]}}function pd(b,l){$o=qs(),Ur=qo();var f=l===void 0?null:l;if(Ur!==null){var y=Ur.memoizedState;if(y!==null&&f!==null){var E=y[1];if(hd(f,E))return y[0]}}mo=!0;var N=b();return mo=!1,Ur.memoizedState=[N,f],N}function uc(b){$o=qs(),Ur=qo();var l=Ur.memoizedState;if(l===null){var f={current:b};return Object.seal(f),Ur.memoizedState=f,f}else return l}function Nf(b,l){li="useLayoutEffect",o("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 gd(b,l,f){if(Ti>=fu)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(b===$o){xl=!0;var y={action:f,next:null};Uo===null&&(Uo=new Map);var E=Uo.get(l);if(E===void 0)Uo.set(l,y);else{for(var N=E;N.next!==null;)N=N.next;N.next=y}}}function eo(b,l){return pd(function(){return b},l)}function bu(b,l,f){return qs(),l(b._source)}function md(b,l,f){if(f===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return f()}function Wo(b){return qs(),b}function dc(){throw new Error("startTransition cannot be called during server rendering.")}function Ba(){return qs(),[!1,dc]}function bs(){var b=Pa,l=Ji(b.treeContext),f=Gs;if(f===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var y=Ro++;return Fn(f,l,y)}function wl(){}var Wn={readContext:mu,useContext:vu,useMemo:pd,useReducer:yu,useRef:uc,useState:ys,useInsertionEffect:wl,useLayoutEffect:Nf,useCallback:eo,useImperativeHandle:wl,useEffect:wl,useDebugValue:wl,useDeferredValue:Wo,useTransition:Ba,useId:bs,useMutableSource:bu,useSyncExternalStore:md},Gs=null;function fc(b){Gs=b}function Fa(b){try{var l="",f=b;do{switch(f.tag){case 0:l+=ai(f.type,null,null);break;case 1:l+=Ia(f.type,null,null);break;case 2:l+=ad(f.type,null,null);break}f=f.parent}while(f);return l}catch(y){return`
|
160
160
|
Error generating stack: `+y.message+`
|
161
|
-
`+y.stack}}var hc=t.ReactCurrentDispatcher,ja=t.ReactDebugCurrentFrame,pc=0,Ri=1,gc=2,Ys=3,vd=4,Cl=0,Ha=1,za=2,xu=12800;function yd(b){return console.error(b),null}function Zs(){}function mc(b,l,f,y,E,N,U,K,me){var Pe=[],dt=new Set,Ct={destination:null,responseState:l,progressiveChunkSize:y===void 0?xu:y,status:Cl,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:dt,pingedTasks:Pe,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:E===void 0?yd:E,onAllReady:N===void 0?Zs:N,onShellReady:U===void 0?Zs:U,onShellError:K===void 0?Zs:K,onFatalError:me===void 0?Zs:me},Pt=Sl(Ct,0,null,f,!1,!1);Pt.parentFlushed=!0;var ur=es(Ct,b,null,Pt,dt,$n,ic,Mf);return Pe.push(ur),Ct}function Qi(b,l){var f=b.pingedTasks;f.push(l),f.length===1&&a(function(){return Tu(b)})}function vc(b,l){return{id:Po,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:l,errorDigest:null}}function es(b,l,f,y,E,N,U,K){b.allPendingTasks++,f===null?b.pendingRootTasks++:f.pendingTasks++;var me={node:l,ping:function(){return Qi(b,me)},blockedBoundary:f,blockedSegment:y,abortSet:E,legacyContext:N,context:U,treeContext:K};return me.componentStack=null,E.add(me),me}function Sl(b,l,f,y,E,N){return{status:pc,id:-1,index:l,parentFlushed:!1,chunks:[],children:[],formatContext:y,boundary:f,lastPushedText:E,textEmbedded:N}}var ci=null;function ui(){return ci===null||ci.componentStack===null?"":Fa(ci.componentStack)}function ki(b,l){b.componentStack={tag:0,parent:b.componentStack,type:l}}function _l(b,l){b.componentStack={tag:1,parent:b.componentStack,type:l}}function xs(b,l){b.componentStack={tag:2,parent:b.componentStack,type:l}}function di(b){b.componentStack===null?o("Unexpectedly popped too many stack frames. This is a bug in React."):b.componentStack=b.componentStack.parent}var $a=null;function yc(b,l){{var f;typeof l=="string"?f=l:l&&typeof l.message=="string"?f=l.message:f=String(l);var y=$a||ui();$a=null,b.errorMessage=f,b.errorComponentStack=y}}function Al(b,l){var f=b.onError(l);if(f!=null&&typeof f!="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 f+'" instead');return f}function Ua(b,l){var f=b.onShellError;f(l);var y=b.onFatalError;y(l),b.destination!==null?(b.status=za,R(b.destination,l)):(b.status=Ha,b.fatalError=l)}function bd(b,l,f){ki(l,"Suspense");var y=l.blockedBoundary,E=l.blockedSegment,N=f.fallback,U=f.children,K=new Set,me=vc(b,K),Pe=E.chunks.length,dt=Sl(b,Pe,me,E.formatContext,!1,!1);E.children.push(dt),E.lastPushedText=!1;var Ct=Sl(b,0,null,E.formatContext,!1,!1);Ct.parentFlushed=!0,l.blockedBoundary=me,l.blockedSegment=Ct;try{if(Vo(b,l,U),_n(Ct.chunks,b.responseState,Ct.lastPushedText,Ct.textEmbedded),Ct.status=Ri,Ss(me,Ct),me.pendingTasks===0){di(l);return}}catch(ur){Ct.status=vd,me.forceClientRender=!0,me.errorDigest=Al(b,ur),yc(me,ur)}finally{l.blockedBoundary=y,l.blockedSegment=E}var Pt=es(b,N,y,dt,K,l.legacyContext,l.context,l.treeContext);Pt.componentStack=l.componentStack,b.pingedTasks.push(Pt),di(l)}function wu(b,l,f,y){ki(l,f);var E=l.blockedSegment,N=_r(E.chunks,f,y,b.responseState,E.formatContext);E.lastPushedText=!1;var U=E.formatContext;E.formatContext=No(U,f,y),Vo(b,l,N),E.formatContext=U,Mr(E.chunks,f),E.lastPushedText=!1,di(l)}function Cu(b){return b.prototype&&b.prototype.isReactComponent}function Ks(b,l,f,y,E){var N={};pu(l,N);var U=f(y,E);return Ws(f,y,U,E)}function Su(b,l,f,y,E){var N=f.render();f.props!==E&&(xc||o("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",hn(y)||"a component"),xc=!0);{var U=y.childContextTypes;if(U!=null){var K=l.legacyContext,me=su(f,y,K,U);l.legacyContext=me,to(b,l,N),l.legacyContext=K;return}}to(b,l,N)}function bc(b,l,f,y){xs(l,f);var E=fs(f,l.legacyContext),N=Ei(f,y,E);bl(N,f,y,E),Su(b,l,N,f,y),di(l)}var Ar={},El={},_u={},Xs={},xc=!1,xd={},wd=!1,ko=!1,Cd=!1;function wc(b,l,f,y){var E;if(E=fs(f,l.legacyContext),_l(l,f),f.prototype&&typeof f.prototype.render=="function"){var N=hn(f)||"Unknown";Ar[N]||(o("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.",N,N),Ar[N]=!0)}var U=Ks(b,l,f,y,E),K=vo();if(typeof U=="object"&&U!==null&&typeof U.render=="function"&&U.$$typeof===void 0){var me=hn(f)||"Unknown";El[me]||(o("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.",me,me,me),El[me]=!0)}if(typeof U=="object"&&U!==null&&typeof U.render=="function"&&U.$$typeof===void 0){{var Pe=hn(f)||"Unknown";El[Pe]||(o("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.",Pe,Pe,Pe),El[Pe]=!0)}bl(U,f,y,E),Su(b,l,U,f,y)}else if(Au(f),K){var dt=l.treeContext,Ct=1,Pt=0;l.treeContext=uu(dt,Ct,Pt);try{to(b,l,U)}finally{l.treeContext=dt}}else to(b,l,U);di(l)}function Au(b){{if(b&&b.childContextTypes&&o("%s(...): childContextTypes cannot be defined on a function component.",b.displayName||b.name||"Component"),b.defaultProps!==void 0){var l=hn(b)||"Unknown";xd[l]||(o("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",l),xd[l]=!0)}if(typeof b.getDerivedStateFromProps=="function"){var f=hn(b)||"Unknown";Xs[f]||(o("%s: Function components do not support getDerivedStateFromProps.",f),Xs[f]=!0)}if(typeof b.contextType=="object"&&b.contextType!==null){var y=hn(b)||"Unknown";_u[y]||(o("%s: Function components do not support contextType.",y),_u[y]=!0)}}}function Eu(b,l){if(b&&b.defaultProps){var f=zo({},l),y=b.defaultProps;for(var E in y)f[E]===void 0&&(f[E]=y[E]);return f}return l}function Sd(b,l,f,y,E){_l(l,f.render);var N=Ks(b,l,f.render,y,E),U=vo();if(U){var K=l.treeContext,me=1,Pe=0;l.treeContext=uu(K,me,Pe);try{to(b,l,N)}finally{l.treeContext=K}}else to(b,l,N);di(l)}function yo(b,l,f,y,E){var N=f.type,U=Eu(N,y);Js(b,l,N,U,E)}function ws(b,l,f,y){f._context===void 0?f!==f.Consumer&&(Cd||(Cd=!0,o("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):f=f._context;var E=y.children;typeof E!="function"&&o("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 N=Na(f),U=E(N);to(b,l,U)}function bo(b,l,f,y){var E=f._context,N=y.value,U=y.children,K;K=l.context,l.context=au(E,N),to(b,l,U),l.context=Tf(E),K!==l.context&&o("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function _d(b,l,f,y,E){ki(l,"Lazy");var N=f._payload,U=f._init,K=U(N),me=Eu(K,y);Js(b,l,K,me,E),di(l)}function Js(b,l,f,y,E){if(typeof f=="function")if(Cu(f)){bc(b,l,f,y);return}else{wc(b,l,f,y);return}if(typeof f=="string"){wu(b,l,f,y);return}switch(f){case tc:case Xo:case Re:case ot:case qi:{to(b,l,y.children);return}case In:{ki(l,"SuspenseList"),to(b,l,y.children),di(l);return}case sd:throw new Error("ReactDOMServer does not yet support scope components.");case $r:{bd(b,l,y);return}}if(typeof f=="object"&&f!==null)switch(f.$$typeof){case fr:{Sd(b,l,f,y,E);return}case Qr:{yo(b,l,f,y,E);return}case Ke:{bo(b,l,f,y);return}case zt:{ws(b,l,f,y);return}case Ta:{_d(b,l,f,y);return}}var N="";throw(f===void 0||typeof f=="object"&&f!==null&&Object.keys(f).length===0)&&(N+=" 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: "+(f==null?f:typeof f)+"."+N))}function Ad(b,l){typeof Symbol=="function"&&b[Symbol.toStringTag]==="Generator"&&(wd||o("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."),wd=!0),b.entries===l&&(ko||o("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ko=!0)}function to(b,l,f){try{return Ed(b,l,f)}catch(y){throw typeof y=="object"&&y!==null&&typeof y.then=="function"||($a=$a!==null?$a:ui()),y}}function Ed(b,l,f){if(l.node=f,typeof f=="object"&&f!==null){switch(f.$$typeof){case id:{var y=f,E=y.type,N=y.props,U=y.ref;Js(b,l,E,N,U);return}case ec: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 Ta:{var K=f,me=K._payload,Pe=K._init,dt;try{dt=Pe(me)}catch(fi){throw typeof fi=="object"&&fi!==null&&typeof fi.then=="function"&&ki(l,"Lazy"),fi}to(b,l,dt);return}}if(Ft(f)){Cc(b,l,f);return}var Ct=us(f);if(Ct){Ad(f,Ct);var Pt=Ct.call(f);if(Pt){var ur=Pt.next();if(!ur.done){var Gr=[];do Gr.push(ur.value),ur=Pt.next();while(!ur.done);Cc(b,l,Gr);return}return}}var Vn=Object.prototype.toString.call(f);throw new Error("Objects are not valid as a React child (found: "+(Vn==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":Vn)+"). If you meant to render a collection of children, use an array instead.")}if(typeof f=="string"){var Ii=l.blockedSegment;Ii.lastPushedText=mn(l.blockedSegment.chunks,f,b.responseState,Ii.lastPushedText);return}if(typeof f=="number"){var _s=l.blockedSegment;_s.lastPushedText=mn(l.blockedSegment.chunks,""+f,b.responseState,_s.lastPushedText);return}typeof f=="function"&&o("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 Cc(b,l,f){for(var y=f.length,E=0;E<y;E++){var N=l.treeContext;l.treeContext=uu(N,y,E);try{Vo(b,l,f[E])}finally{l.treeContext=N}}}function Sc(b,l,f){var y=l.blockedSegment,E=y.chunks.length,N=Sl(b,E,null,y.formatContext,y.lastPushedText,!0);y.children.push(N),y.lastPushedText=!1;var U=es(b,l.node,l.blockedBoundary,N,l.abortSet,l.legacyContext,l.context,l.treeContext);l.componentStack!==null&&(U.componentStack=l.componentStack.parent);var K=U.ping;f.then(K,K)}function Vo(b,l,f){var y=l.blockedSegment.formatContext,E=l.legacyContext,N=l.context,U=null;U=l.componentStack;try{return to(b,l,f)}catch(K){if(gu(),typeof K=="object"&&K!==null&&typeof K.then=="function"){Sc(b,l,K),l.blockedSegment.formatContext=y,l.legacyContext=E,l.context=N,gs(N),l.componentStack=U;return}else throw l.blockedSegment.formatContext=y,l.legacyContext=E,l.context=N,gs(N),l.componentStack=U,K}}function Td(b,l,f,y){var E=Al(b,y);if(l===null?Ua(b,y):(l.pendingTasks--,l.forceClientRender||(l.forceClientRender=!0,l.errorDigest=E,yc(l,y),l.parentFlushed&&b.clientRenderedBoundaries.push(l))),b.allPendingTasks--,b.allPendingTasks===0){var N=b.onAllReady;N()}}function Cs(b){var l=this,f=b.blockedBoundary,y=b.blockedSegment;y.status=Ys,Qs(l,f,y)}function _c(b,l,f){var y=b.blockedBoundary,E=b.blockedSegment;if(E.status=Ys,y===null)l.allPendingTasks--,l.status!==za&&(l.status=za,l.destination!==null&&w(l.destination));else{if(y.pendingTasks--,!y.forceClientRender){y.forceClientRender=!0;var N=f===void 0?new Error("The render was aborted by the server without a reason."):f;y.errorDigest=l.onError(N);{var U="The server did not finish this Suspense boundary: ";N&&typeof N.message=="string"?N=U+N.message:N=U+String(N);var K=ci;ci=b;try{yc(y,N)}finally{ci=K}}y.parentFlushed&&l.clientRenderedBoundaries.push(y)}if(y.fallbackAbortableTasks.forEach(function(Pe){return _c(Pe,l,f)}),y.fallbackAbortableTasks.clear(),l.allPendingTasks--,l.allPendingTasks===0){var me=l.onAllReady;me()}}}function Ss(b,l){if(l.chunks.length===0&&l.children.length===1&&l.children[0].boundary===null){var f=l.children[0];f.id=l.id,f.parentFlushed=!0,f.status===Ri&&Ss(b,f)}else{var y=b.completedSegments;y.push(l)}}function Qs(b,l,f){if(l===null){if(f.parentFlushed){if(b.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");b.completedRootSegment=f}if(b.pendingRootTasks--,b.pendingRootTasks===0){b.onShellError=Zs;var y=b.onShellReady;y()}}else if(l.pendingTasks--,!l.forceClientRender){if(l.pendingTasks===0)f.parentFlushed&&f.status===Ri&&Ss(l,f),l.parentFlushed&&b.completedBoundaries.push(l),l.fallbackAbortableTasks.forEach(Cs,b),l.fallbackAbortableTasks.clear();else if(f.parentFlushed&&f.status===Ri){Ss(l,f);var E=l.completedSegments;E.length===1&&l.parentFlushed&&b.partialBoundaries.push(l)}}if(b.allPendingTasks--,b.allPendingTasks===0){var N=b.onAllReady;N()}}function Pf(b,l){var f=l.blockedSegment;if(f.status===pc){gs(l.context);var y=null;y=ci,ci=l;try{to(b,l,l.node),_n(f.chunks,b.responseState,f.lastPushedText,f.textEmbedded),l.abortSet.delete(l),f.status=Ri,Qs(b,l.blockedBoundary,f)}catch(N){if(gu(),typeof N=="object"&&N!==null&&typeof N.then=="function"){var E=l.ping;N.then(E,E)}else l.abortSet.delete(l),f.status=vd,Td(b,l.blockedBoundary,f,N)}finally{ci=y}}}function Tu(b){if(b.status!==za){var l=cd(),f=hc.current;hc.current=Wn;var y;y=ja.getCurrentStack,ja.getCurrentStack=ui;var E=Gs;fc(b.responseState);try{var N=b.pingedTasks,U;for(U=0;U<N.length;U++){var K=N[U];Pf(b,K)}N.splice(0,U),b.destination!==null&&Jo(b,b.destination)}catch(me){Al(b,me),Ua(b,me)}finally{fc(E),hc.current=f,ja.getCurrentStack=y,f===Wn&&gs(l)}}}function Tl(b,l,f){switch(f.parentFlushed=!0,f.status){case pc:{var y=f.id=b.nextSegmentId++;return f.lastPushedText=!1,f.textEmbedded=!1,Vr(l,b.responseState,y)}case Ri:{f.status=gc;for(var E=!0,N=f.chunks,U=0,K=f.children,me=0;me<K.length;me++){for(var Pe=K[me];U<Pe.index;U++)m(l,N[U]);E=Rl(b,l,Pe)}for(;U<N.length-1;U++)m(l,N[U]);return U<N.length&&(E=p(l,N[U])),E}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function Rl(b,l,f){var y=f.boundary;if(y===null)return Tl(b,l,f);if(y.parentFlushed=!0,y.forceClientRender)return Qn(l,b.responseState,y.errorDigest,y.errorMessage,y.errorComponentStack),Tl(b,l,f),cl(l,b.responseState);if(y.pendingTasks>0){y.rootSegmentID=b.nextSegmentId++,y.completedSegments.length>0&&b.partialBoundaries.push(y);var E=y.id=jn(b.responseState);return zi(l,b.responseState,E),Tl(b,l,f),Fo(l,b.responseState)}else{if(y.byteSize>b.progressiveChunkSize)return y.rootSegmentID=b.nextSegmentId++,b.completedBoundaries.push(y),zi(l,b.responseState,y.id),Tl(b,l,f),Fo(l,b.responseState);si(l,b.responseState);var N=y.completedSegments;if(N.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var U=N[0];return Rl(b,l,U),an(l,b.responseState)}}function Ru(b,l,f){return nd(l,b.responseState,f.id,f.errorDigest,f.errorMessage,f.errorComponentStack)}function Ac(b,l,f){return pr(l,b.responseState,f.formatContext,f.id),Rl(b,l,f),nn(l,f.formatContext)}function ku(b,l,f){for(var y=f.completedSegments,E=0;E<y.length;E++){var N=y[E];xo(b,l,f,N)}return y.length=0,dl(l,b.responseState,f.id,f.rootSegmentID)}function Rd(b,l,f){for(var y=f.completedSegments,E=0;E<y.length;E++){var N=y[E];if(!xo(b,l,f,N))return E++,y.splice(0,E),!1}return y.splice(0,E),!0}function xo(b,l,f,y){if(y.status===gc)return!0;var E=y.id;if(E===-1){var N=y.id=f.rootSegmentID;if(N===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return Ac(b,l,y)}else return Ac(b,l,y),wf(l,b.responseState,E)}function Jo(b,l){g();try{var f=b.completedRootSegment;f!==null&&b.pendingRootTasks===0&&(Rl(b,l,f),b.completedRootSegment=null,dn(l,b.responseState));var y=b.clientRenderedBoundaries,E;for(E=0;E<y.length;E++){var N=y[E];Ru(b,l,N)}y.splice(0,E);var U=b.completedBoundaries;for(E=0;E<U.length;E++){var K=U[E];ku(b,l,K)}U.splice(0,E),v(l),g(l);var me=b.partialBoundaries;for(E=0;E<me.length;E++){var Pe=me[E];if(!Rd(b,l,Pe)){b.destination=null,E++,me.splice(0,E);return}}me.splice(0,E);var dt=b.completedBoundaries;for(E=0;E<dt.length;E++){var Ct=dt[E];ku(b,l,Ct)}dt.splice(0,E)}finally{v(l),b.allPendingTasks===0&&b.pingedTasks.length===0&&b.clientRenderedBoundaries.length===0&&b.completedBoundaries.length===0&&(b.abortableTasks.size!==0&&o("There was still abortable task at the root when we closed. This is a bug in React."),w(l))}}function kd(b){a(function(){return Tu(b)})}function Bf(b,l){if(b.status===Ha){b.status=za,R(l,b.fatalError);return}if(b.status!==za&&b.destination===null){b.destination=l;try{Jo(b,l)}catch(f){Al(b,f),Ua(b,f)}}}function kl(b,l){try{var f=b.abortableTasks;f.forEach(function(y){return _c(y,b,l)}),f.clear(),b.destination!==null&&Jo(b,b.destination)}catch(y){Al(b,y),Ua(b,y)}}function qa(b,l){return new Promise(function(f,y){var E,N,U=new Promise(function(Pt,ur){N=Pt,E=ur});function K(){var Pt=new ReadableStream({type:"bytes",pull:function(ur){Bf(Pe,ur)},cancel:function(ur){kl(Pe)}},{highWaterMark:0});Pt.allReady=U,f(Pt)}function me(Pt){U.catch(function(){}),y(Pt)}var Pe=mc(b,Br(l?l.identifierPrefix:void 0,l?l.nonce:void 0,l?l.bootstrapScriptContent:void 0,l?l.bootstrapScripts:void 0,l?l.bootstrapModules:void 0),Ao(l?l.namespaceURI:void 0),l?l.progressiveChunkSize:void 0,l?l.onError:void 0,N,K,me,E);if(l&&l.signal){var dt=l.signal,Ct=function(){kl(Pe,dt.reason),dt.removeEventListener("abort",Ct)};dt.addEventListener("abort",Ct)}kd(Pe)})}Qh.renderToReadableStream=qa,Qh.version=e}()),Qh}var ey;function l4(){if(ey)return kc;ey=1;var r,e;return process.env.NODE_ENV==="production"?(r=o4(),e=i4()):(r=s4(),e=a4()),kc.version=r.version,kc.renderToString=r.renderToString,kc.renderToStaticMarkup=r.renderToStaticMarkup,kc.renderToNodeStream=r.renderToNodeStream,kc.renderToStaticNodeStream=r.renderToStaticNodeStream,kc.renderToReadableStream=e.renderToReadableStream,kc}var iw=l4();const Np=pf(iw);function eh(r,e,t){return e!==void 0&&r<e?e:t!==void 0&&r>t?t:r}const ju={_canvas:null,_cache:new Map,_fontCache:{value:"",timestamp:0},_charWidthMap:new Map,clearCache(){this._cache.clear(),this._canvas=null,this._fontCache={value:"",timestamp:0},this._charWidthMap.clear()},getDefaultFont(){const r=Date.now();if(this._fontCache.value&&r-this._fontCache.timestamp<3e5)return this._fontCache.value;try{const e=getComputedStyle(document.documentElement).getPropertyValue("--Font").trim()||"400 14px pretendard";return this._fontCache={value:e,timestamp:r},e}catch{return"400 14px pretendard"}},measureCharWidth(r,e){var o,i,a,c,d,h;const t=`${r}|${e}`;if(this._charWidthMap.has(t))return this._charWidthMap.get(t);try{this._canvas||(this._canvas=document.createElement("canvas"));const g=this._canvas.getContext("2d");if(g){g.font=e;const m=g.measureText(r).width;return this._charWidthMap.set(t,m),m}}catch{}let n;return r===" "?n=parseInt(((o=e.match(/(\d+)px/))==null?void 0:o[1])||"14")/3:/^[A-Z]$/.test(r)?n=parseInt(((i=e.match(/(\d+)px/))==null?void 0:i[1])||"14")*.67:/^[a-z]$/.test(r)?n=parseInt(((a=e.match(/(\d+)px/))==null?void 0:a[1])||"14")*.5:/^\d$/.test(r)?n=parseInt(((c=e.match(/(\d+)px/))==null?void 0:c[1])||"14")*.6:/^[.,;:!?]$/.test(r)?n=parseInt(((d=e.match(/(\d+)px/))==null?void 0:d[1])||"14")*.25:n=parseInt(((h=e.match(/(\d+)px/))==null?void 0:h[1])||"14")*.67,this._charWidthMap.set(t,n),n},extractTextFromNode(r){if(r==null)return"";if(typeof r=="string")return r;if(typeof r=="number"||typeof r=="boolean")return`${r}`;if(Array.isArray(r))return r.map(e=>this.extractTextFromNode(e)).join("");if(C.isValidElement(r))try{const t=iw.renderToString(r).replace(/<[^>]*>/g,""),n=document.createElement("div");return n.innerHTML=t,n.textContent||""}catch{return r.props&&r.props.children?this.extractTextFromNode(r.props.children):""}return""},measureTextWidth(r,e){var i;if(!r)return 0;const t=e||this.getDefaultFont(),n=`${r}|${t}`,o=this._cache.get(n);if(o!==void 0)return o;try{this._canvas||(this._canvas=document.createElement("canvas"));const a=this._canvas.getContext("2d");if(a){a.font=t;const c=a.measureText(r),d=Math.ceil(c.width);return this._cache.size>=300&&[...this._cache.keys()].slice(0,50).forEach(g=>this._cache.delete(g)),this._cache.set(n,d),d}}catch{}try{const a=document.createElement("span");a.style.font=t,a.style.position="absolute",a.style.visibility="hidden",a.style.whiteSpace="nowrap",a.textContent=r,document.body.appendChild(a);const c=Math.ceil(a.getBoundingClientRect().width);return document.body.removeChild(a),this._cache.set(n,c),c}catch{}try{let a=0;for(let d=0;d<r.length;d++)a+=this.measureCharWidth(r[d],t);a*=.95;const c=Math.ceil(a);return this._cache.set(n,c),c}catch{}try{const a=parseInt(((i=t.match(/(\d+)px/))==null?void 0:i[1])||"14");let c=0;for(let h=0;h<r.length;h++){const g=r[h];g===" "?c+=.33:/^[A-Z]$/.test(g)?c+=.67:/^[a-z]$/.test(g)?c+=.5:/^\d$/.test(g)?c+=.6:/^[.,;:!?]$/.test(g)?c+=.25:c+=.67}const d=Math.ceil(c*a);return this._cache.set(n,d),d}catch{const c=r.length*10;return this._cache.set(n,c),c}},measureTextWithElementStyle(r,e){if(!e)return 0;try{const t=window.getComputedStyle(r),n=t.getPropertyValue("--Font").trim()||`${t.fontWeight} ${t.fontSize} ${t.fontFamily}`;return this.measureTextWidth(e,n)}catch{return this.measureTextWidth(e)}},measureReactNodeWidth(r){const e=this.extractTextFromNode(r);return this.measureTextWidth(e)},measureRenderedOptionWidth(r,e){if(r==null)return 0;const t=e(r),n=this.extractTextFromNode(t);return this.measureTextWidth(n)},calculateOptimalSelectWidth({elementRef:r,options:e=[],selectedOption:t=null,selectedOptions:n=[],placeholder:o="",optionRenderer:i,type:a="Primary",isMulti:c=!1}){if(!r.current)return 200;try{let d=0;if(e&&e.length>0){const v=[...e.length>0?[e[0]]:[],...e.length>1?[e[e.length-1]]:[],...e.length>10?Array.from({length:8},(T,_)=>e[Math.floor(_*e.length/8)]):e,...e.length>20?Array.from({length:5},()=>e[Math.floor(Math.random()*e.length)]):[]],w=Array.from(new Set(v.filter(Boolean)));for(const T of w){if(!T)continue;const _=this.measureRenderedOptionWidth(T,i);d=Math.max(d,_)}}let h=0;if(!c&&t)h=this.measureRenderedOptionWidth(t,i);else if(c&&n&&n.length){if(n.length===1)h=this.measureRenderedOptionWidth(n[0],i);else if(h=this.measureTextWidth(`${n.length} selected`),n.length>0){let v=0;for(const w of n){const T=this.measureRenderedOptionWidth(w,i);v=Math.max(v,T)}h=Math.max(h,v)}}let g=0;o&&(g=this.measureReactNodeWidth(o));const p=Math.max(d,h,g,50);if(r.current){const v=window.getComputedStyle(r.current),w=parseFloat(v.paddingLeft||"0")+parseFloat(v.paddingRight||"0"),T=parseFloat(v.borderLeftWidth||"0")+parseFloat(v.borderRightWidth||"0"),_=a==="Primary"?30:20,A=c?24:0,R=Math.ceil(p*.05)+10;return Math.ceil(p+w+T+_+A+R)}return p+60}catch{return 200}}};var Mo=(r=>(r.E="East",r.N="North",r.S="South",r.W="West",r))(Mo||{}),gf=(r=>(r.E="East",r.EN="EastNorth",r.ES="EastSouth",r.N="North",r.NE="NorthEast",r.NW="NorthWest",r.S="South",r.SE="SouthEast",r.SW="SouthWest",r.W="West",r.WN="WestNorth",r.WS="WestSouth",r))(gf||{});function av(r,e,t,n){if(!r.current||!e.current)return;const o=r.current.getBoundingClientRect(),i=e.current.getBoundingClientRect();let a={bottom:void 0,left:void 0,right:void 0,top:void 0};switch(t){case"North":a=i?{bottom:window.innerHeight-o.top,left:o.left+o.width/2-i.width/2}:{bottom:window.innerHeight-o.top,left:o.left};break;case"NorthWest":a={bottom:window.innerHeight-o.top,left:o.left};break;case"NorthEast":a={bottom:window.innerHeight-o.top,right:window.innerWidth-o.left-o.width};break;case"South":a=i?{top:o.bottom,left:o.left+o.width/2-i.width/2}:{top:o.bottom,left:o.left};break;case"SouthWest":a={top:o.bottom,left:o.left};break;case"SouthEast":a={top:o.bottom,right:window.innerWidth-o.left-o.width};break;case"East":a=i?{top:o.top+o.height/2-i.height/2,left:o.right}:{top:o.top,left:o.right};break;case"EastNorth":a={bottom:window.innerHeight-o.top-o.height,left:o.right};break;case"EastSouth":a={top:o.top,left:o.right};break;case"West":a=i?{top:o.top+o.height/2-i.height/2,right:window.innerWidth-o.left}:{top:o.top,right:window.innerWidth-o.left};break;case"WestNorth":a={bottom:window.innerHeight-o.top-o.height,right:window.innerWidth-o.left};break;case"WestSouth":a={top:o.top,right:window.innerWidth-o.left};break;default:a={top:o.top,left:o.left}}n&&(n.x&&a.left&&(a.left+=n.x),n.y&&a.top&&(a.top+=n.y)),a=aw(a,i),e.current.style.top=a.top+"px",e.current.style.left=a.left+"px",e.current.style.bottom=a.bottom+"px",e.current.style.right=a.right+"px"}function sw(r,e,t,n){if(!r)return;const o=e instanceof HTMLElement?e:e==null?void 0:e.current;if(!o)return;const i=r.getBoundingClientRect(),a=o.getBoundingClientRect();let c={bottom:void 0,left:void 0,right:void 0,top:void 0};switch(t){case"North":c=a?{bottom:window.innerHeight-i.top,left:i.left+i.width/2-a.width/2}:{bottom:window.innerHeight-i.top,left:i.left};break;case"NorthWest":c={bottom:window.innerHeight-i.top,left:i.left};break;case"NorthEast":c={bottom:window.innerHeight-i.top,right:window.innerWidth-i.left-i.width};break;case"South":c=a?{top:i.bottom,left:i.left+i.width/2-a.width/2}:{top:i.bottom,left:i.left};break;case"SouthWest":c={top:i.bottom,left:i.left};break;case"SouthEast":c={top:i.bottom,right:window.innerWidth-i.left-i.width};break;case"East":c=a?{top:i.top+i.height/2-a.height/2,left:i.right}:{top:i.top,left:i.right};break;case"EastNorth":c={bottom:window.innerHeight-i.top-i.height,left:i.right};break;case"EastSouth":c={top:i.top,left:i.right};break;case"West":c=a?{top:i.top+i.height/2-a.height/2,right:window.innerWidth-i.left}:{top:i.top,right:window.innerWidth-i.left};break;case"WestNorth":c={bottom:window.innerHeight-i.top-i.height,right:window.innerWidth-i.left};break;case"WestSouth":c={top:i.top,right:window.innerWidth-i.left};break;default:c={top:i.top,left:i.left}}return n&&(n.x&&c.left&&(c.left+=n.x),n.y&&c.top&&(c.top+=n.y)),c=aw(c,a),o.style.top=c.top+"px",o.style.left=c.left+"px",o.style.bottom=c.bottom+"px",o.style.right=c.right+"px",c}function aw(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 Pu(){const r={preventDefault:!1};return{event:r,e:{preventDefault:()=>r.preventDefault=!0}}}const c4="_Tooltip_1khnz_1",u4="_Arrow_1khnz_17",ty={Tooltip:c4,Arrow:u4},lw=r=>{const{tooltip:e,targetRef:t,delay:n=0,distance:o=10,direction:i=Mo.S}=r,[a,c]=C.useState(!1),d=C.useRef(null),h=C.useRef(null),g=C.useRef(null),m=C.useCallback(()=>{c(!0),g.current&&(clearTimeout(g.current),g.current=null);const T=setTimeout(()=>ry(t,d,h,o,i),n);g.current=T},[t,n,o,i]),p=C.useCallback(()=>c(!1),[]);C.useEffect(()=>{const T=t.current;if(T)return T.addEventListener("mouseenter",m),T.addEventListener("mouseleave",p),()=>{T.removeEventListener("mouseenter",m),T.removeEventListener("mouseleave",p)}},[t,p,m]);const v=C.useCallback(()=>{ry(t,d,h,o,i)},[t,o,i]);C.useEffect(()=>{if(!t.current||!d.current||!a)return;const T=t.current.parentElement;let _=T;for(;_;)_.addEventListener("scroll",v),_=_.parentElement;return()=>{let A=T;for(;A;)A.removeEventListener("scroll",v),A=A.parentElement}},[t,v,a]),C.useEffect(()=>{v()},[e,v]);const w=C.useMemo(()=>{switch(typeof e){case"boolean":return!0;case"string":return e==="";case"number":return!1;default:return!e}},[e]);return!a||w?null:Ls.createPortal(S.jsxs("div",{ref:d,className:Ye.clsx(ty.Tooltip,"NoSelect"),children:[e,S.jsx("div",{ref:h,className:ty.Arrow})]}),document.body)},ep="5px solid var(--ATooltip_background-color)";function ry(r,e,t,n,o=Mo.S){if(!r.current||!e.current||!t.current)return;const i=d4(r.current,e.current,n,o);if(!i)return;const{left:a,top:c,arrowDir:d,arrow:h}=i;e.current.style.left=`${a}px`,e.current.style.top=`${c}px`,e.current.style.visibility="visible",e.current.style.opacity="1",t.current.style.border="5px solid transparent",d===Mo.N?(t.current.style.top="-9px",t.current.style.left=`calc(50% - 5px + ${h.left??0}px)`,t.current.style.borderBottom=ep):d===Mo.S?(t.current.style.top="100%",t.current.style.left=`calc(50% - 5px + ${h.left??0}px)`,t.current.style.borderTop=ep):d===Mo.W?(t.current.style.top=`calc(50% - 5px + ${h.top??0}px)`,t.current.style.left="-9px",t.current.style.borderRight=ep):d===Mo.E&&(t.current.style.top=`calc(50% - 5px + ${h.top??0}px)`,t.current.style.left="100%",t.current.style.borderLeft=ep)}const Ic=5;function d4(r,e,t,n){const o=r.getBoundingClientRect(),i=e.getBoundingClientRect();function a(){if(window.innerHeight-o.bottom>i.height+t){const g=o.bottom+t,m=o.left+(o.width-i.width)/2,p=eh(m,Ic,window.innerWidth-Ic-i.width),v=Mo.N;return{left:p,top:g,arrowDir:v,arrow:{left:m-p}}}}function c(){if(o.top>i.height+t){const g=o.top-i.height-t,m=o.left+(o.width-i.width)/2,p=eh(m,Ic,window.innerWidth-Ic-i.width),v=Mo.S;return{left:p,top:g,arrowDir:v,arrow:{left:m-p}}}}function d(){if(window.innerWidth-o.right>i.width+t){const g=o.right+t,m=o.top+(o.height-i.height)/2,p=eh(m,Ic,window.innerHeight-Ic-i.height),v=Mo.W;return{left:g,top:p,arrowDir:v,arrow:{top:m-p}}}}function h(){if(o.left>i.width+t){const g=o.left-i.width-t,m=o.top+(o.height-i.height)/2,p=eh(m,Ic,window.innerHeight-Ic-i.height),v=Mo.E;return{left:g,top:p,arrowDir:v,arrow:{top:m-p}}}}if(n===Mo.E)return d()||h()||a()||c();if(n===Mo.S)return a()||c()||d()||h();if(n===Mo.W)return h()||d()||a()||c();if(n===Mo.N)return c()||a()||d()||h()}const f4="_ABase_c7a1t_1",h4="_UseDimming_c7a1t_6",p4="_Dimmer_c7a1t_6",g4="_Spinner_c7a1t_9",m4="_Dimmed_c7a1t_12",v4="_HasProgress_c7a1t_18",y4="_IsDimmed_c7a1t_36",b4="_IsLoading_c7a1t_41",x4="_IsDisabled_c7a1t_46",Nd={ABase:f4,UseDimming:h4,Dimmer:p4,Spinner:g4,Dimmed:m4,HasProgress:v4,IsDimmed:y4,IsLoading:b4,IsDisabled:x4},Jr=r=>{const{children:e,abaseRef:t,abaseCallbackRef:n,isDisabled:o,isLoading:i,isDimmed:a,tooltip:c,tooltipDistance:d=10,tooltipDelay:h=0,tooltipDirection:g=Mo.S,progress:m,progressProps:p,...v}=r,w=C.useRef(null),T=C.useMemo(()=>t??w,[t]),_=C.useMemo(()=>typeof o=="string"&&o!==""?o:c!==void 0?c:"",[o,c]),A=C.useMemo(()=>o||i||a,[o,i,a]),R=C.useMemo(()=>o!==void 0||i!==void 0||a!==void 0,[o,i,a]),D=typeof m=="number"&&i;return S.jsxs("div",{...v,ref:n||T,className:Ye.clsx(v.className,Nd.ABase,R&&Nd.UseDimming,A&&Nd.Dimmed,D&&Nd.HasProgress),children:[e,R&&S.jsx("div",{className:Ye.sclsx(Nd,"Dimmer",o&&"IsDisabled",i&&"IsLoading",a&&"IsDimmed",D&&"HasProgress")}),i&&S.jsxs("div",{className:Ye.sclsx(Nd,"Spinner",o&&"IsDisabled",i&&"IsLoading",D&&"HasProgress"),children:[S.jsx(gn,{icon:"Spinner"}),D&&S.jsx(ow,{progress:m,...p})]}),S.jsx(lw,{delay:h,direction:g,distance:d,targetRef:T,tooltip:_})]})},w4="_AButton_vulhu_1",C4="_Primary_vulhu_14",S4="_Secondary_vulhu_19",_4="_Alter_vulhu_24",A4="_AIconButton_vulhu_30",E4="_AThemeButton_vulhu_71",ph={AButton:w4,Primary:C4,Secondary:S4,Alter:_4,AIconButton:A4,AThemeButton:E4},T4=["Primary","Secondary","Alter","Raw"],Zo=r=>{const{type:e="Primary",onClick:t,noInteractive:n,...o}=r,i=C.useMemo(()=>o.isDisabled||o.isLoading,[o.isDisabled,o.isLoading]),a=C.useCallback(c=>{i||t==null||t(c)},[i,t]);return S.jsx(Jr,{...o,className:Ye.clsx(o.className,ph.AButton,e!=="Raw"&&ph[e],"IsClickable",!i&&!n&&"IsInteractive"),onClick:a})},R4=["Primary","Secondary","Raw"],_o=r=>{const{icon:e,iconSize:t,type:n="Primary",onClick:o,isDisabled:i,isLoading:a,tooltip:c,className:d,...h}=r,g=C.useMemo(()=>i||a,[i,a]),m=C.useCallback(v=>{g||o==null||o(v)},[g,o]),p=C.useMemo(()=>sv.includes(e)?S.jsx(gn,{icon:e,size:t}):e,[e,t]);return S.jsx(Jr,{className:Ye.clsx(ph.AIconButton,!i&&!a&&"IsClickable",n!=="Raw"&&ph[n],d),isDisabled:i,isLoading:a,tooltip:c,onClick:m,...h,children:p})};function wn(r,e){r!==void 0&&r.length===1&&(e=r[0]);const t=C.useState(e);return C.useMemo(()=>r===void 0||r.length===1?t:r,[t,r])}const k4="_AWrap_u1f1h_1",I4="_Label_u1f1h_8",M4="_Asterisk_u1f1h_19",L4="_HelperTextConatiner_u1f1h_23",D4="_HelperText_u1f1h_23",Pd={AWrap:k4,Label:I4,Asterisk:M4,HelperTextConatiner:L4,HelperText:D4,Error:"_Error_u1f1h_38"},O4=["Default","Error"],Yu=r=>{if(!r)return[{},{}];const e={},t={},n=["errorMessage","helperText","label","labelProps","wrapId","wrapProps","wrapType"];for(const o in r)n.includes(o)?e[o]=r[o]:t[o]=r[o];return[e,t]},Yc=r=>{const{wrapProps:e,errorMessage:t,helperText:n,wrapType:o="Default",label:i,labelProps:a,wrapId:c,children:d}=r,h=C.useRef(null),[g,m]=C.useState({height:0}),p=C.useRef(null),[v,w]=C.useMemo(()=>{let _=n,A=o;if(Array.isArray(t)){const R=t.filter(Boolean);R.length>0&&([_,A]=[R,"Error"])}else t&&([_,A]=[t,"Error"]);return Array.isArray(_)&&(A!=="Error"&&(_=_.filter(Boolean)),_=_.map((R,D)=>S.jsxs(C.Fragment,{children:[R,S.jsx("br",{})]},D))),[_,A]},[n,t,o]);C.useEffect(()=>{if(!v||!h.current)m({height:0});else{const _=h.current.getBoundingClientRect();m({height:_.height,marginTop:_.height===0?0:6})}},[v]);const T=C.useMemo(()=>{switch(typeof(a==null?void 0:a.prefix)){case"string":return S.jsx(gn,{height:"1rem",icon:a.prefix,width:"1rem"});case"boolean":return S.jsx(gn,{height:10,icon:"Target",width:10});default:return a==null?void 0:a.prefix}},[a==null?void 0:a.prefix]);return S.jsxs("div",{...e,ref:p,className:Ye.clsx(e==null?void 0:e.className,Pd.AWrap),id:c,children:[i&&S.jsxs("div",{className:Ye.clsx(Pd.Label,"NoSelect",a==null?void 0:a.className),style:a==null?void 0:a.style,children:[T,i,(a==null?void 0:a.asterisk)&&S.jsx(Jr,{className:Pd.Asterisk,tooltip:wr.AWrap.Asterisk,children:"*"})]}),d,v!==void 0&&S.jsx("div",{className:Ye.clsx(Pd.HelperTextConatiner,"NoSelect"),style:g,children:S.jsx("div",{ref:h,className:Ye.clsx(Pd.HelperText,Pd[w]),children:v})})]})},N4="_ASwitch_nlcij_1",P4="_Track_nlcij_6",B4="_Truthy_nlcij_13",F4="_Thumb_nlcij_17",Uf={ASwitch:N4,Track:P4,Truthy:B4,Thumb:F4},cw=r=>{const{useCheck:e,...t}=r,[{wrapId:n,wrapProps:o,labelProps:i,...a},c]=Yu(t),[d,h]=wn(e,!1),g=C.useCallback(m=>{var p;c.isDisabled||c.isLoading||(h==null||h(!d),(p=c.onClick)==null||p.call(c,m))},[c,d,h]);return S.jsx(Yc,{wrapId:n,wrapProps:o,labelProps:i,...a,children:S.jsx(Jr,{...c,className:Uf.ASwitch,onClick:g,children:S.jsx("div",{className:Ye.clsx(Uf.Track,d&&Uf.Truthy),children:S.jsx("div",{className:Ye.clsx(Uf.Thumb,d&&Uf.Truthy)})})})})},j4={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","acent-brand-fill":"blue-95","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","acent-brand-fill":"blue-10","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"}}},Oo=Hc.cloneDeep(j4);ar.keys(Oo.semantic).forEach(r=>{const e=Oo.semantic[r];ar.keys(e).forEach(t=>{e[t]=`var(--${e[t]})`})});const lg=ar.keys(Oo.palette),uw=ar.keys(Oo.palette[lg[0]]);function H4(){return fo.paletteMode}function z4(r,e=fo.paletteMode){return Oo.palette[e][r]}function $4(r){return ug(r)}const Pp=[];function dw(r){fo.paletteMode=r,uw.forEach(e=>document.documentElement.style.setProperty(`--${e}`,Oo.palette[r][e])),Pp.forEach(e=>e(r))}function fw(r,e="all"){ar.keys(r).forEach(n=>{const o=r[n];o!==void 0&&(document.documentElement.style.setProperty(`--${n}`,o),e==="all"?lg.forEach(i=>{Oo.palette[i][n]=o}):Oo.palette[e][n]=o)})}const nf=ar.keys(Oo.semantic),hw=ar.keys(Oo.semantic[nf[0]]);function U4(){return fo.semanticMode}function q4(r,e=fo.semanticMode){return Oo.semantic[e][r]}function W4(r){return ug(r)}const Bp=[];function lv(r){fo.semanticMode=r,document.documentElement.setAttribute("data-theme",r),hw.forEach(e=>document.documentElement.style.setProperty(`--${e}`,Oo.semantic[r][e])),Bp.forEach(e=>e(r)),fo.save==="localStorage"?localStorage.setItem("semanticMode",r):fo.save==="sessionStorage"&&sessionStorage.setItem("semanticMode",r)}function pw(r,e=fo.semanticMode){ar.keys(r).forEach(n=>{const o=r[n];o!==void 0&&(document.documentElement.style.setProperty(`--${n}`,o),e==="all"?nf.forEach(i=>{Oo.semantic[i][n]=o}):Oo.semantic[e][n]=o)})}const gw=["Body-background-color","Body-color","Body-transition","Font","Scrollbar-handle","Scrollbar-handle-hover","Scrollbar-handle-active","Scrollbar-track","Scrollbar-border-radius","Scrollbar-width","Transition","Transition-Enabled"],mw=["ABase_Dimming_background-color"],vw=["ATooltip_background-color","ATooltip_color"],yw=["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"],bw=["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"],xw=["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"],ww=["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_hover_border","AEditor_Error_focus_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"],Cw=["ACheckBox_color"],Sw=["ADialog_Paper_background-color","ADialog_background-color","ADialog_border","ADialog_Action_background-color"],_w=["ASelect_Placeholder_color","ASelect_Primary_border","ASelect_Primary_hover_border","ASelect_Primary_Arrow_color","ASelect_Primary_Options_background-color","ASelect_Primary_Options_border","ASelect_Primary_Option_hover_background-color","ASelect_Primary_Option_active_background-color","ASelect_Primary_Option_Selected_background-color","ASelect_Secondary_border","ASelect_Secondary_hover_border","ASelect_Secondary_background-color","ASelect_Secondary_Arrow_color","ASelect_Secondary_Options_background-color","ASelect_Secondary_Options_border","ASelect_Secondary_Option_hover_background-color","ASelect_Secondary_Option_active_background-color","ASelect_Secondary_Option_Selected_background-color"],Aw=["AMultiSelect_Placeholder_color","AMultiSelect_Primary_border","AMultiSelect_Primary_hover_border","AMultiSelect_Primary_Arrow_color","AMultiSelect_Primary_Options_background-color","AMultiSelect_Primary_Options_border","AMultiSelect_Primary_Option_hover_background-color","AMultiSelect_Primary_Option_active_background-color","AMultiSelect_Primary_Option_Selected_background-color","AMultiSelect_Secondary_border","AMultiSelect_Secondary_hover_border","AMultiSelect_Secondary_background-color","AMultiSelect_Secondary_Arrow_color","AMultiSelect_Secondary_Options_background-color","AMultiSelect_Secondary_Options_border","AMultiSelect_Secondary_Option_hover_background-color","AMultiSelect_Secondary_Option_active_background-color","AMultiSelect_Secondary_Option_Selected_background-color"],Ew=["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"],Tw=["ASwitch_Track_Falsy_border","ASwitch_Track_Truthy_border","ASwitch_Thumb_border"],Rw=["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"],kw=["AFileBox_border","AFileBox_background-color","AFileBox_SelectedFile_color","AFileBox_Dropping_color"],Iw=["AFileUploader_background-color","AFileUploader_brand_color","AFileUploader_disabled_color","AFileUploader_error_color","AFileUploader_text_color"],Mw=["AListView_border-thin","AListView_border-thick"],Lw=["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"],Dw=["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"],Ow=["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"],Nw=["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"],Pw=["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"],Bw=["ADivideFrame_DividerInner_background-color"],Fw=["AFloatMenu_background-color","AFloatMenu_hover_background-color","AFloatMenu_color","AFloatMenu_border"],jw=["ALoadingBorder_background-color","ALoadingBorder_ProgressBar_background-color","ALoadingBorder_Cover_background-color"],Hw=["AWrap_Error_color"],zw=["ARadioSelect_RadioButton_border","ARadioSelect_RadioButton_InnerCircle_isChecked_background-color"],$w=["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"],V4=[...gw,...mw,...vw,...yw,...bw,...xw,...ww,...Cw,...Sw,..._w,...Aw,...Ew,...Tw,...Rw,...kw,...Iw,...Mw,...Lw,...Dw,...Ow,...Nw,...Pw,...Bw,...Fw,...jw,...Hw,...zw,...$w],cg={"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","Transition-Enabled":"1","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_hover_border:"1px solid var(--alert-danger)",AEditor_Error_focus_border:"1px solid var(--alert-danger)",AEditor_Error_placeholder_color:"var(--alert-danger)","AEditor_Addon_Primary_background-color":"var(--background-normal)",AEditor_Addon_Primary_border:"1px solid var(--line-normal)",AEditor_Addon_Primary_color:"var(--label-normal)","AEditor_Addon_Secondary_background-color":"var(--background-normal)",AEditor_Addon_Secondary_border:"1px solid var(--line-strong)",AEditor_Addon_Secondary_color:"var(--label-neutral)","AEditor_Addon_hover_background-color":"var(--elevation-10)",AEditor_Addon_hover_color:"var(--acent-brand)",AEditor_Addon_focus_border:"1px solid var(--line-strong)","AEditor_border-radius":"2px","AEditor_Select_border-radius":"6px","AEditor_Option_border-radius":"6px",ACheckBox_color:"var(--label-normal)","ADialog_Paper_background-color":"#00000060","ADialog_background-color":"var(--elevation-0)",ADialog_border:"1px solid var(--line-neutral)","ADialog_Action_background-color":"var(--elevation-0)",ASelect_Placeholder_color:"var(--label-neutral)",ASelect_Primary_border:"1px solid var(--line-normal)",ASelect_Primary_hover_border:"1px solid var(--line-strong)",ASelect_Primary_Arrow_color:"var(--label-normal)","ASelect_Primary_Options_background-color":"var(--elevation-0)",ASelect_Primary_Options_border:"1px solid var(--line-normal)","ASelect_Primary_Option_hover_background-color":"var(--elevation-10)","ASelect_Primary_Option_active_background-color":"var(--elevation-10)","ASelect_Primary_Option_Selected_background-color":"var(--elevation-20)",ASelect_Secondary_border:"1px solid var(--elevation-10)",ASelect_Secondary_hover_border:"1px solid var(--elevation-10)","ASelect_Secondary_background-color":"var(--elevation-10)",ASelect_Secondary_Arrow_color:"var(--label-normal)","ASelect_Secondary_Options_background-color":"var(--elevation-0)",ASelect_Secondary_Options_border:"var(--line-normal)","ASelect_Secondary_Option_hover_background-color":"var(--elevation-10)","ASelect_Secondary_Option_active_background-color":"var(--elevation-10)","ASelect_Secondary_Option_Selected_background-color":"var(--elevation-20)",AMultiSelect_Placeholder_color:"var(--label-neutral)",AMultiSelect_Primary_border:"1px solid var(--line-normal)",AMultiSelect_Primary_hover_border:"1px solid var(--line-strong)",AMultiSelect_Primary_Arrow_color:"var(--label-normal)","AMultiSelect_Primary_Options_background-color":"var(--elevation-0)",AMultiSelect_Primary_Options_border:"1px solid var(--line-normal)","AMultiSelect_Primary_Option_hover_background-color":"var(--elevation-10)","AMultiSelect_Primary_Option_active_background-color":"var(--elevation-10)","AMultiSelect_Primary_Option_Selected_background-color":"var(--elevation-20)",AMultiSelect_Secondary_border:"1px solid var(--elevation-10)",AMultiSelect_Secondary_hover_border:"1px solid var(--elevation-10)","AMultiSelect_Secondary_background-color":"var(--elevation-10)",AMultiSelect_Secondary_Arrow_color:"var(--label-normal)","AMultiSelect_Secondary_Options_background-color":"var(--elevation-0)",AMultiSelect_Secondary_Options_border:"1px solid var(--line-normal)","AMultiSelect_Secondary_Option_hover_background-color":"var(--elevation-10)","AMultiSelect_Secondary_Option_active_background-color":"var(--elevation-10)","AMultiSelect_Secondary_Option_Selected_background-color":"var(--elevation-20)","ATree_background-color":"var(--elevation-0)",ATree_Indent_border:"1px solid var(--line-normal)","ATreeBodyHeader_border-bottom":"1px solid var(--line-normal)","ATreeItem_hover_background-color":"var(--elevation-10)","ATreeItem_active_background-color":"var(--elevation-10)","ATreeItem_select_background-color":"var(--elevation-10)","ATreeItem_search_background-color":"yellow","ATreeItem_search_border-top":"1px dashed var(--label-normal)","ATreeItem_search_border-bottom":"1px dashed var(--label-normal)",ATreeItem_select_color:"var(--label-normal)",ASwitch_Track_Falsy_border:"12px solid var(--elevation-20)",ASwitch_Track_Truthy_border:"12px solid var(--acent-brand)",ASwitch_Thumb_border:"9px solid var(--static-white)","ATab_IndicatorTrack_Primary_border-bottom":"1px solid var(--line-normal)","ATab_Indicator_Primary_background-color":"var(--label-normal)",ATab_Option_Secondary_border:"2px solid var(--label-normal)","ATab_Option_Secondary_IsSelected_border-bottom":"2px solid var(--elevation-0)",ATab_Option_Secondary_IsDisabled_border:"2px solid var(--line-neutral)","ATab_IndicatorTrack_Tertiary_background-color":"var(--line-normal)","ATab_Indicator_Tertiary_background-color":"var(--elevation-0)",ATab_Option_Tertiary_color:"var(--line-strong)",ATab_Option_Tertiary_IsSelected_color:"var(--label-strong)",ATab_Option_Quaternary_color:"var(--label-neutral)",ATab_Option_Quaternary_IsSelected_color:"var(--label-normal)",AFileBox_border:"1px dashed var(--label-normal)","AFileBox_background-color":"var(--elevation-10)",AFileBox_SelectedFile_color:"var(--label-normal)",AFileBox_Dropping_color:"var(--label-normal)","AFileUploader_background-color":"var(--background-normal)",AFileUploader_brand_color:"var(--acent-brand)",AFileUploader_disabled_color:"var(--label-neutral)",AFileUploader_error_color:"var(--alert-danger)",AFileUploader_text_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 G4(r){return cg[r]}function Y4(r){return ug(r)}function Uw(r){ar.keys(r).forEach(t=>{const n=r[t];n!==void 0&&(document.documentElement.style.setProperty(`--${t}`,n),cg[t]=n)})}function Z4(r){ar.keys(r).forEach(t=>{const n=r[t];if(n===void 0)return;const o=Oo.semantic[fo.semanticMode][n];o!==void 0&&(document.documentElement.style.setProperty(t,o),cg[t]=o)})}const fo={paletteMode:lg[0],semanticMode:nf[0],save:"",followDeviceSetting:!1};function K4({semanticMode:r,save:e,followDeviceSetting:t}){if(t!==void 0&&(fo.followDeviceSetting=t,t)){const n=window.matchMedia("(prefers-color-scheme: dark)"),o=a=>{fo.semanticMode=a.matches?"dark":"light"};o(n);const i=a=>o(a);n.addEventListener("change",i)}if(e!==void 0){if(fo.save=e,e==="localStorage"){const n=localStorage.getItem("semanticMode");nf.includes(n)&&(fo.semanticMode=n)}else if(e==="sessionStorage"){const n=sessionStorage.getItem("semanticMode");nf.includes(n)&&(fo.semanticMode=n)}}r!==void 0&&(fo.semanticMode=r),dw(fo.paletteMode),lv(fo.semanticMode),fw(Oo.palette[fo.paletteMode]),pw(Oo.semantic[fo.semanticMode]),Uw(cg)}function X4(r){r.type==="semanticModeChange"?Bp.push(r.listener):r.type==="paletteModeChange"?Pp.push(r.listener):console.error("AThemes.addEventListener : parameter is not valid")}function J4(r){if(r.type==="semanticModeChange"){const e=Bp.indexOf(r.listener);e!==-1&&Bp.splice(e,1)}else if(r.type==="paletteModeChange"){const e=Pp.indexOf(r.listener);e!==-1&&Pp.splice(e,1)}else console.error("AThemes.removeEventListener : parameter is not valid")}function ug(r){const e=window.getComputedStyle(document.documentElement);let t=e.getPropertyValue(r);return t===""&&(t=e.getPropertyValue(`--${r}`)),t}function Q4(r){Object.assign(Ye.additionalClasses,r),Ye.updateKeys(),Ye.additionalClasses=Ye.additionalClasses}const th={getCurrentPaletteMode:H4,getPaletteValue:z4,getPaletteDeepValue:$4,changePaletteMode:dw,editPalette:fw,getCurrentSemanticMode:U4,getSemanticValue:q4,getSemanticDeepValue:W4,changeSemanticMode:lv,editSemantic:pw,getComponentStyleValue:G4,getComponentStyleDeepValue:Y4,editComponentStyle:Uw,editComponentStyleWithSemantic:Z4,init:K4,addEventListener:X4,removeEventListener:J4,getDeepValue:ug,addClasses:Q4},e5=r=>{const{onChange:e,onClick:t,type:n="Icon",...o}=r,[i,a]=C.useState(th.getCurrentSemanticMode()==="dark"?"Moon":"Sun"),c=C.useCallback(d=>{const h=th.getCurrentSemanticMode();let g="light";h==="light"?g="dark":h==="dark"&&(g="light"),th.changeSemanticMode(g),a(t5[g]),e==null||e(g),t==null||t(d)},[e,t]);if(n==="Icon")return S.jsx(_o,{...o,className:Ye.clsx(ph.AThemeButton,o.className,"IsInteractive"),icon:i,type:"Raw",onClick:c});if(n==="Switch")return S.jsx(cw,{...o,useCheck:[th.getCurrentSemanticMode()==="dark",c]})},t5={light:"Sun",dark:"Moon"},r5="_ACheckBoxWrap_1ozuz_1",n5="_ACheckBox_1ozuz_1",ny={ACheckBoxWrap:r5,ACheckBox:n5},of=r=>{const{useCheck:e,isIndeterminate:t,isDisabled:n,isLoading:o,onClick:i,...a}=r,[c,d]=wn(e,!1),h=C.useCallback(g=>{n||o||(d==null||d(!c),i==null||i(g))},[n,o,i,c,d]);return S.jsx(Jr,{...a,className:Ye.clsx(a.className,ny.ACheckBoxWrap),isDisabled:n,isLoading:o,onClick:h,children:S.jsx(gn,{className:ny.ACheckBox,icon:t?"Check.Indeterminate":c?"Check.Checked":"Check.UnChecked"})})};function o5(r){return typeof r=="function"}function i5(r,e){return o5(r)?r(e):r}const Pr={getContent:i5};class oy{constructor(e){de(this,"capacity");de(this,"cache",new Map);this.capacity=e}get(e){if(!this.cache.has(e))return;const t=this.cache.get(e);return this.cache.delete(e),this.cache.set(e,t),t}put(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.capacity){const n=this.cache.keys().next().value;n!==void 0&&this.cache.delete(n)}this.cache.set(e,t)}delete(e){return this.cache.delete(e)}clear(){this.cache.clear()}entries(){return Array.from(this.cache.entries())}}const Fu=class Fu{constructor(){de(this,"databases",{});de(this,"caches",{});de(this,"DEFAULT_CACHE_SIZE",100)}static getInstance(){return Fu.instance||(Fu.instance=new Fu),Fu.instance}getCache(e,t){const n=`${e}_${t}`;return this.caches[n]||(this.caches[n]=new oy(this.DEFAULT_CACHE_SIZE)),this.caches[n]}async getDB(e,t,n=1){return this.databases[e]?this.databases[e]:new Promise((o,i)=>{if(!window.indexedDB){console.error("이 브라우저는 IndexedDB를 지원하지 않습니다."),i(new Error("IndexedDB not supported"));return}const a=window.indexedDB.open(e,n);a.onerror=c=>{console.error("IndexedDB 연결 오류:",c.target.error),i(c.target.error)},a.onsuccess=c=>{const d=c.target.result;this.databases[e]=d,o(d)},a.onupgradeneeded=c=>{const d=c.target.result;d.objectStoreNames.contains(t)||d.createObjectStore(t,{keyPath:"id"}).createIndex("updatedAt_idx","updatedAt",{unique:!1})}})}async save(e,t,n){this.getCache(e,t).put(n.id,{...n});const c=(await this.getDB(e,t)).transaction([t],"readwrite").objectStore(t);return new Promise((d,h)=>{const g=c.put(n);g.onsuccess=()=>d(),g.onerror=m=>{console.error("데이터 저장 오류:",m.target.error),h(m.target.error)}})}async batchSave(e,t,n){if(n.length===0)return;const o=this.getCache(e,t);n.forEach(d=>o.put(d.id,{...d}));const a=(await this.getDB(e,t)).transaction([t],"readwrite"),c=a.objectStore(t);return new Promise((d,h)=>{a.oncomplete=()=>d(),a.onerror=g=>{console.error("배치 저장 오류:",g.target.error),h(g.target.error)},n.forEach(g=>c.put(g))})}async get(e,t,n){const o=this.getCache(e,t),i=o.get(n);if(i)return i;const d=(await this.getDB(e,t)).transaction([t],"readonly").objectStore(t);return new Promise((h,g)=>{const m=d.get(n);m.onsuccess=()=>{const p=m.result;p&&o.put(n,p),h(p||null)},m.onerror=p=>{console.error("데이터 조회 오류:",p.target.error),g(p.target.error)}})}async getByIndex(e,t,n,o){const d=(await this.getDB(e,t)).transaction([t],"readonly").objectStore(t).index(n);return new Promise((h,g)=>{const m=d.getAll(o);m.onsuccess=()=>{const p=m.result,v=this.getCache(e,t);p.forEach(w=>{w&&w.id&&v.put(w.id,w)}),h(p)},m.onerror=p=>{console.error("인덱스 조회 오류:",p.target.error),g(p.target.error)}})}async delete(e,t,n){this.getCache(e,t).delete(n);const c=(await this.getDB(e,t)).transaction([t],"readwrite").objectStore(t);return new Promise((d,h)=>{const g=c.delete(n);g.onsuccess=()=>d(),g.onerror=m=>{console.error("데이터 삭제 오류:",m.target.error),h(m.target.error)}})}async batchDelete(e,t,n){if(n.length===0)return;const o=this.getCache(e,t);n.forEach(d=>o.delete(d));const a=(await this.getDB(e,t)).transaction([t],"readwrite"),c=a.objectStore(t);return new Promise((d,h)=>{a.oncomplete=()=>d(),a.onerror=g=>{console.error("배치 삭제 오류:",g.target.error),h(g.target.error)},n.forEach(g=>c.delete(g))})}async getAll(e,t){const i=(await this.getDB(e,t)).transaction([t],"readonly").objectStore(t);return new Promise((a,c)=>{const d=i.getAll();d.onsuccess=()=>{const h=d.result,g={},m=this.getCache(e,t);h.forEach(p=>{p.id&&(g[p.id]=p,m.put(p.id,p))}),a(g)},d.onerror=h=>{console.error("데이터 전체 조회 오류:",h.target.error),c(h.target.error)}})}async clear(e,t){this.getCache(e,t).clear();const a=(await this.getDB(e,t)).transaction([t],"readwrite").objectStore(t);return new Promise((c,d)=>{const h=a.clear();h.onsuccess=()=>c(),h.onerror=g=>{console.error("데이터 초기화 오류:",g.target.error),d(g.target.error)}})}getCached(e,t,n){return this.getCache(e,t).get(n)||null}clearCached(e,t){this.getCache(e,t).clear()}setCacheSize(e,t,n){const o=`${e}_${t}`,a=this.getCache(e,t).entries();this.caches[o]=new oy(n);for(const[c,d]of a)this.caches[o].get(c)===void 0&&c!==void 0&&this.caches[o].put(c,d)}};de(Fu,"instance");let w1=Fu;const na=w1.getInstance(),sa={save:(r,e,t)=>na.save(r,e,t),get:(r,e,t)=>na.get(r,e,t),delete:(r,e,t)=>na.delete(r,e,t),getAll:(r,e)=>na.getAll(r,e),clear:(r,e)=>na.clear(r,e),batchSave:(r,e,t)=>na.batchSave(r,e,t),batchDelete:(r,e,t)=>na.batchDelete(r,e,t),getByIndex:(r,e,t,n)=>na.getByIndex(r,e,t,n),getCached:(r,e,t)=>na.getCached(r,e,t),clearCached:(r,e)=>na.clearCached(r,e),setCacheSize:(r,e,t)=>na.setCacheSize(r,e,t)};function qw(r,e,t={}){const{dataFieldName:n="data"}=t,[o,i]=C.useState(!1),[a,c]=C.useState(null),d=C.useRef(new Map);C.useEffect(()=>{const j=d.current;return()=>{j.forEach(G=>G.abort()),j.clear()}},[]);const h=C.useCallback(j=>{const G=d.current,ge=G.get(j);ge&&ge.abort();const P=new AbortController;return G.set(j,P),P},[]),g=C.useCallback(j=>{d.current.delete(j)},[]),m=C.useCallback(async(j,G)=>{try{i(!0),c(null),h(j);const ge=await G();return g(j),ge}catch(ge){return ge instanceof Error&&ge.name==="AbortError"||c(ge instanceof Error?ge:new Error(String(ge))),null}finally{i(!1)}},[h,g]),p=C.useCallback(async(j,G)=>j?await m(`save_${j}`,async()=>(await sa.save(r,e,{id:j,[n]:G,updatedAt:new Date().toISOString()}),!0))===!0:!1,[r,e,n,m]),v=C.useCallback(async j=>j.length?await m(`batch_save_${Date.now()}`,async()=>{const G=j.map(ge=>({id:ge.id,[n]:ge.data,updatedAt:new Date().toISOString()}));return await sa.batchSave(r,e,G),!0})===!0:!1,[r,e,n,m]),w=C.useCallback(async j=>j?await m(`get_${j}`,async()=>{const G=await sa.get(r,e,j);return(G==null?void 0:G[n])||null}):null,[r,e,n,m]),T=C.useCallback(j=>{if(!j)return null;const G=sa.getCached(r,e,j);return(G==null?void 0:G[n])||null},[r,e,n]),_=C.useCallback(async j=>j?await m(`delete_${j}`,async()=>(await sa.delete(r,e,j),!0))===!0:!1,[r,e,m]),A=C.useCallback(async j=>j.length?await m(`batch_delete_${Date.now()}`,async()=>(await sa.batchDelete(r,e,j),!0))===!0:!1,[r,e,m]),R=C.useCallback(async()=>await m(`get_all_${Date.now()}`,async()=>{const j=await sa.getAll(r,e);return Object.entries(j).reduce((G,[ge,P])=>(G[ge]=P[n],G),{})})||{},[r,e,n,m]),D=C.useCallback(async()=>await m(`clear_all_${Date.now()}`,async()=>(await sa.clear(r,e),!0))===!0,[r,e,m]),I=C.useCallback(j=>{const G=d.current.get(j);G&&(G.abort(),d.current.delete(j))},[]),F=C.useCallback(()=>{new Map(d.current).forEach(G=>G.abort()),d.current.clear()},[]),B=C.useCallback(j=>{sa.setCacheSize(r,e,j)},[r,e]),H=C.useCallback(()=>{sa.clearCached(r,e)},[r,e]);return{save:p,get:w,delete:_,getAll:R,clearAll:D,batchSave:v,batchDelete:A,getCached:T,setCacheSize:B,clearCache:H,cancelOperation:I,cancelAllOperations:F,isLoading:o,error:a}}const s5="LayoutDB",a5="layouts";function Ww(){const r=qw(s5,a5,{dataFieldName:"lengths"}),[e,t]=C.useState({}),n=C.useRef({}),o=async(g,m)=>await r.save(g,m),i=async g=>await r.get(g),a=g=>r.getCached(g),c=g=>{const m=a(g);return m?{data:m,isLoaded:!0}:n.current[g]!==void 0?{data:n.current[g],isLoaded:!!e[g]}:(e[g]||(n.current[g]=null,i(g).then(p=>{n.current[g]=p,t(v=>({...v,[g]:!0}))})),{data:null,isLoaded:!1})},d=async g=>(t(m=>{const p={...m};return delete p[g],p}),n.current[g]!==void 0&&delete n.current[g],await r.delete(g)),h=C.useCallback(()=>{t({}),n.current={}},[]);return{save:o,get:i,getCached:a,getSync:c,deleteItem:d,resetSyncState:h,isLoading:r.isLoading,error:r.error}}const l5="_ARowFrame_1vo43_1",c5="_AColFrame_1vo43_7",u5="_AOverflowFrame_1vo43_13",d5="_ADivideFrame_1vo43_22",f5="_Row_1vo43_30",h5="_Col_1vo43_33",p5="_FadeIn_1vo43_36",g5="_NoTransition_1vo43_39",m5="_ChildFrame_1vo43_43",v5="_Divider_1vo43_61",y5="_IsMoving_1vo43_69",b5="_NoDraggable_1vo43_69",x5="_DividerInner_1vo43_72",w5="_IsClicked_1vo43_97",C5="_RemoteButton_1vo43_132",S5="_isExpanded_1vo43_139",uo={ARowFrame:l5,AColFrame:c5,AOverflowFrame:u5,ADivideFrame:d5,Row:f5,Col:h5,FadeIn:p5,NoTransition:g5,ChildFrame:m5,Divider:v5,IsMoving:y5,NoDraggable:b5,DividerInner:x5,IsClicked:w5,RemoteButton:C5,isExpanded:S5},On=r=>S.jsx(Jr,{...r,className:Ye.clsx(uo.ARowFrame,r.className),children:r.children}),Vw=r=>S.jsx("div",{...r,className:Ye.clsx(uo.AColFrame,r.className),children:r.children}),tl=r=>{const{tooltip:e,children:t,abaseRef:n,isDisabled:o,className:i,noOverflowTooltip:a,...c}=r,d=C.useRef(null),h=C.useMemo(()=>n??d,[n]),[g,m]=C.useState(!1),p=C.useCallback(()=>m(!0),[]),v=C.useCallback(()=>m(!1),[]);C.useEffect(()=>{const T=h.current;if(T)return T.addEventListener("mouseenter",p),T.addEventListener("mouseleave",v),()=>{T.removeEventListener("mouseenter",p),T.removeEventListener("mouseleave",v)}},[h,p,v]);const w=C.useMemo(()=>o?"":a||!g||!h.current?e:h.current.scrollWidth>h.current.clientWidth?t:e,[h,o,t,e,a,g]);return S.jsx(Jr,{...c,children:t,abaseRef:h,className:Ye.clsx(uo.AOverflowFrame,i),isDisabled:o,tooltip:w})},Gw=r=>{const{value:e,map:t}=r;return t[e]===void 0?t.fallback:S.jsx(C.Suspense,{children:t[e]})},Yw=C.memo(r=>{const{pk:e,direction:t="Row",lefts:n,minLength:o=40,children:i,childStyle:a,childClassName:c,dividerStyle:d,dividerClassName:h,dividerPadding:g,dividerInnerClassName:m,dividerInnerStyle:p,showRemote:v,ShowRemoteRenderer:w=_5,noDividerDraggable:T,resources:_,...A}=r,R=C.useMemo(()=>({...wr.ADivideFrame,..._}),[_]),D=C.useRef(null),I=C.useRef(!1),F=C.useRef(!0),B=C.useRef(n),[H,j]=C.useState(),[G,ge]=C.useState(n),[P,q]=C.useState("FadeOut"),[V,Q]=C.useState(!1),{save:ie,getSync:se,deleteItem:ae}=Ww(),le=C.useCallback(()=>{F.current&&requestAnimationFrame(()=>{F.current=!1,q("FadeIn")})},[]),fe=C.useMemo(()=>{let we;return Array.isArray(i)?we=i:we=[i],we.filter(Boolean)},[i]),ee=C.useMemo(()=>e&&!v,[e,v]),ne=C.useCallback(()=>{if(!ee){le();return}try{const we=String(e),{data:_e,isLoaded:Ae}=se(we);_e?(ge(_e),Ae&&le()):Ae?(ge(n),ie(String(e),n),le()):ge(n)}catch{ge(n),le()}},[ee,le,e,se,n,ie]);C.useEffect(()=>{if(ee){ne();const we=String(e),_e=()=>{const{isLoaded:Ae}=se(we);Ae?le():requestAnimationFrame(_e)};_e()}else le()},[ee,ne,le,e,se]),C.useEffect(()=>{B.current!==n&&(B.current=n,I.current||(ge(n),ee&&ie(String(e),n)),I.current=!1)},[ee,n,e,ie]);const ce=C.useMemo(()=>{const we=g??0;return typeof o=="number"?Array(fe.length).fill(o+we):o.map(_e=>_e+we)},[o,fe.length,g]),xe=C.useMemo(()=>(H==null?void 0:H.lefts)||G,[H,G]),Me=C.useRef({x:0,y:0}),oe=C.useCallback((we,_e,Ae)=>{const Ie=xe[we],je=we===0?0:xe[we-1],it=Ie-je,Ue={...a,...A5(t,it,_e)};return g!==void 0&&(t==="Row"?(Ae||(Ue.paddingLeft=g),_e||(Ue.paddingRight=g)):(Ae||(Ue.paddingTop=g),_e||(Ue.paddingBottom=g))),Ue},[xe,a,t,g]),Se=C.useCallback(()=>{if(!(!v||t!=="Row")){if(V)ge(n),I.current=!1;else{const we=fe.length;if(we<=1)return;const _e=[],Ae=[];for(let je=0;je<we;je++)typeof o=="number"?Ae.push(o):Ae.push(o[je]||o[0]);let Ie=0;for(let je=0;je<we-1;je++)Ie+=Ae[je],_e.push(Ie);ge(_e),I.current=!0}Q(we=>!we),F.current=!1}},[v,t,V,fe.length,n,o]),Le=C.useCallback((we,_e)=>{if(_e)return Ae=>{if(!D.current)return;F.current=!1;const Ie=D.current;Me.current={x:Ae.clientX,y:Ae.clientY},j({idx:we,lefts:[...G]});let je=[...G];const it=tt=>{const lt=Ie.getBoundingClientRect(),bt=t==="Row"?lt.left:lt.top,Mt=t==="Row"?lt.width:lt.height;je=T5(G,t,we,tt,bt,Mt,ce),j({idx:we,lefts:je})},Ue=()=>{j(void 0),ge(je),I.current=!0,ee&&ie(String(e),je),window.removeEventListener("mousemove",it),window.removeEventListener("mouseup",Ue)};window.addEventListener("mousemove",it),window.addEventListener("mouseup",Ue)}},[G,t,ce,ee,e,ie]),We=C.useCallback(we=>{if(we)return()=>{ge(n),I.current=!1,j(void 0),ee&&ae(String(e))}},[n,ee,e,ae]),Ve=C.useMemo(()=>fe.map((we,_e)=>{const Ae=v&&(V||!V&&_e===fe.length-2);return!(T||Ae)}),[fe,v,V,T]);return S.jsx("div",{...A,ref:D,className:Ye.clsx(uo.ADivideFrame,r.className,uo[t],uo[P],F.current&&uo.NoTransition),children:fe.map((we,_e)=>{const Ae=_e===0,Ie=_e===fe.length-1,je=oe(_e,Ie,Ae),it=xe[_e],Ue=Ve[_e],tt=Le(_e,Ue),lt=We(Ue);return S.jsxs(C.Fragment,{children:[S.jsxs("div",{style:je,className:Ye.clsx(uo.ChildFrame,c,H&&uo.IsMoving,F.current&&uo.NoTransition,uo[t]),children:[Ie&&v&&t==="Row"&&S.jsx(w,{handleToggleExpand:Se,isExpanded:V,resources:R}),we]}),!Ie&&S.jsx("div",{"data-nodraggable":Ue?void 0:"true",className:Ye.clsx(uo.Divider,uo[t],"NoSelect",H&&uo.IsMoving,(H==null?void 0:H.idx)===_e&&uo.IsClicked,F.current&&uo.NoTransition,!Ue&&uo.NoDraggable,h),style:{...d,...E5(t,it)},onDoubleClick:lt,onMouseDown:tt,children:S.jsx("div",{className:Ye.clsx(uo.DividerInner,m),style:{...p}})})]},_e)})})});Yw.displayName="ADivideFrame";const _5=r=>{const{handleToggleExpand:e,isExpanded:t,resources:n}=r;return S.jsx(_o,{className:Ye.clsx(uo.RemoteButton,t&&uo.isExpanded),icon:"DividerExpand",iconSize:"md",tabIndex:0,tooltip:t?n.Collapse:n.Expand,type:"Raw",onClick:e})};function A5(r,e,t){return t?{}:r==="Col"?{height:e,minHeight:e,maxHeight:e}:{maxWidth:e,width:e,minWidth:e}}function E5(r,e){return r==="Col"?{top:e}:{left:e}}function T5(r,e,t,n,o,i,a){const c=[...r];let d=e==="Row"?n.clientX-o-r[t]:n.clientY-o-r[t];const h=[],g=[];let m=0;for(let v=0;v<=a.length;v++)h[v]=m,v<a.length&&(m+=a[v]);let p=0;for(let v=a.length-2;v>=0;v--)p+=a[v],g[v]=p;if(g[a.length-1]=0,d<0){let v=c[t]+d;if(v<=h[t+1])for(let w=0;w<=t;w++)c[w]=h[w+1];else if(c[t]=v,t>0)for(let w=t-1;w>=0&&v-c[w]<a[w];w--)c[w]=v-a[t],v=c[w]}else if(d>0){let v=c[t]+d;const w=t===a.length-2?a[a.length-1]:0;if(v>=i-g[t]-w)for(let T=t;T<r.length;T++)c[T]=i-g[T]-(T===r.length-1?0:w);else if(c[t]=v,t<r.length-1)for(let T=t+1;T<r.length&&c[T]-v<a[T];T++)c[T]=v+a[T],v=c[T]}return c}const Zu=()=>S.jsx("div",{style:{display:"flex",flexGrow:1}}),R5="_ASpace_1okqf_1",k5={ASpace:R5},Nn=r=>{const{h:e,w:t,...n}=r;return S.jsx("div",{...n,className:Ye.clsx(k5.ASpace,n.className),style:{height:e,minHeight:e,maxHeight:e,width:t,minWidth:t,maxWidth:t,...n.style}})},I5="_AChipsContainer_1ag9v_1",M5="_AChip_1ag9v_1",L5="_Clickable_1ag9v_21",D5="_AChipDelete_1ag9v_26",O5="_IsHover_1ag9v_40",N5="_AChipDeleteIcon_1ag9v_45",Yd={AChipsContainer:I5,AChip:M5,Clickable:L5,AChipDelete:D5,IsHover:O5,AChipDeleteIcon:N5},P5=r=>{const{useLabels:e,alignItems:t="flex-start",ChipStyle:n,ChipClassName:o,ChipOnDelete:i,ChipOnClick:a,ChipIcon:c,className:d,style:h,ButtonRenderer:g=Zw,gap:m=8,...p}=r,[v,w]=wn(e,[]),T=C.useCallback(A=>{!w||!i||(i({label:A}),w(v.filter(R=>R!==A)))},[w,i,v]),_=C.useCallback(A=>{const R={label:A};return{label:A,useLabel:[A,()=>{}],style:Pr.getContent(n,R),className:Pr.getContent(o,R),icon:Pr.getContent(c,R),onDelete:()=>T(A),onClick:a?()=>a({label:A}):void 0}},[o,c,a,n,T]);return S.jsx(Jr,{...p,className:Ye.clsx(Yd.AChipsContainer,d),style:{...h,alignItems:t,gap:m},children:v.map((A,R)=>S.jsx(cv,{..._(A),ButtonRenderer:g},R))})},cv=r=>{const{label:e,useLabel:t,icon:n,className:o,onDelete:i,onClick:a,ButtonRenderer:c=Zw,width:d="fit-content",style:h,...g}=r;return e===void 0?S.jsx(S.Fragment,{}):S.jsxs(Jr,{...g,className:Ye.clsx("NoSelect",Yd.AChip,a&&Yd.Clickable,a&&"IsClickable",o),style:{...h,width:d},onClick:a,children:[S.jsx(tl,{children:e}),c({...r})]})},Zw=r=>{const{label:e,icon:t,onDelete:n,useLabel:o}=r,[,i]=wn(o,e),[a,c]=C.useState(!1),d=C.useCallback(m=>{n&&(m.stopPropagation(),i==null||i(void 0),n(r))},[n,r,i]),h=()=>{c(!0)},g=()=>{c(!1)};return S.jsx(S.Fragment,{children:n&&S.jsxs(S.Fragment,{children:[S.jsx(Zu,{}),S.jsx(Nn,{w:24}),S.jsx(Jr,{className:Ye.clsx(Yd.AChipDelete,"IsClickable",a&&Yd.IsHover)}),S.jsx(_o,{className:Yd.AChipDeleteIcon,icon:t||S.jsx(gn,{height:14,icon:"Close",stroke:"currentColor",width:14}),type:"Raw",onClick:d,onMouseEnter:h,onMouseLeave:g})]})})},Hu=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]}`},B5=r=>{let e="";r<0&&(e+="-",r=-r);const t=Math.floor(r/3600),n=Math.floor(r%3600/60),o=r%60;return t>0&&(e+=t.toString().padStart(2,"0")+":"),e+=n.toString().padStart(2,"0")+":",e+=o.toString().padStart(2,"0"),e},F5=/[a-zA-Z0-9]/,j5=/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9]{2,}$/,H5=/^[a-zA-Z0-9._-]+$/,z5=/^[0-9a-fA-F-]+$/i,$5=/[가-힣ㄱ-ㅎㅏ-ㅣ]/,U5=/^\S*$/,q5=/^([^ㄱ-ㅎㅏ-ㅣ])*$/i,W5=/[!@#$%^&*+=;:?/<>\\[\](){}~\-_.(),]/,V5=/^(?=.*[A-Za-z])(?=.*\d)(?=.*[\W_])[A-Za-z\d\W_]{8,}$/,G5=/^[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}$/,Y5={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)},Z5=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){const e=Math.random()*16|0;return(r=="x"?e:e&3|8).toString(16)}),uv={secondToTime:B5,validate:Y5,FileSizeTrans:Hu,uuid:Z5},K5=r=>{const{maxTicks:e=300,interval:t=1e3,onFinish:n,noStartOnRender:o,actionRef:i,...a}=r,[{wrapId:c,wrapProps:d,labelProps:h,...g},m]=Yu(a),[p,v]=C.useState(0),[w,T]=C.useState(!o);C.useEffect(()=>{if(!w||m.isDisabled||m.isLoading)return;const F=setInterval(()=>v(B=>B+1),t);return()=>clearInterval(F)},[t,w,m.isDisabled,m.isLoading]);const _=C.useCallback(()=>{n==null||n(),T(!1)},[n]);C.useEffect(()=>{p>=e&&!m.isDisabled&&!m.isLoading&&_()},[p,e,_,m.isDisabled,m.isLoading]);const A=C.useCallback(()=>{m.isDisabled||T(!0)},[m.isDisabled]),R=C.useCallback(()=>{m.isDisabled||T(!1)},[m.isDisabled]),D=C.useCallback(()=>{m.isDisabled||(T(!1),v(0))},[m.isDisabled]);C.useEffect(()=>{i&&(i.current={start:A,stop:R,reset:D,setTicks:v})},[i,A,R,D]);const I=e-p;return S.jsx(Yc,{wrapId:c,wrapProps:d,labelProps:h,...g,children:S.jsx(Jr,{...m,children:uv.secondToTime(I>0?I:0)})})};function ma(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 X5(r){try{if(!r)return;const e=new Date(r);return isNaN(e.getTime())?void 0:e}catch{return}}function J5(r){return new Date(r.getFullYear(),r.getMonth(),r.getDate(),0,0,0,0)}function Q5(r){return new Date(r.getFullYear(),r.getMonth(),r.getDate(),23,59,59,999)}function iy(r,e){return ma(r)===ma(e)}function Zd(r,e){return ma(r)>ma(e)}function Fp(r,e){return ma(r)>=ma(e)}function jp(r,e){return ma(r)<ma(e)}function Hp(r,e){return ma(r)<=ma(e)}function sy(r,e,t){return Zd(r,t)?Zd(e,t)&&jp(e,r):Zd(e,r)&&jp(e,t)}function ay(r,e,t){return Zd(r,t)?Fp(e,t)&&Hp(e,r):Fp(e,r)&&Hp(e,t)}const tr={toString:ma,toDate:X5,makeSDate:J5,makeEDate:Q5,"===":iy,">":Zd,">=":Fp,"<":jp,"<=":Hp,"s<d<e|e<d<s":sy,"s<=d<=e|e<=d<=s":ay,eq:iy,g:Zd,ge:Fp,l:jp,le:Hp,b:sy,be:ay},e6="_InputContainer_44opg_7",t6="_AInput_44opg_21",r6="_LeftAddon_44opg_43",n6="_RightAddon_44opg_49",o6="_ErrorHelperText_44opg_55",i6="_Primary_44opg_59",s6="_UnAvailable_44opg_64",a6="_Secondary_44opg_75",l6="_ReadOnly_44opg_90",yi={InputContainer:e6,AInput:t6,LeftAddon:r6,RightAddon:n6,ErrorHelperText:o6,Primary:i6,UnAvailable:s6,Secondary:a6,ReadOnly:l6,Error:"_Error_44opg_55"},c6=["Primary","Secondary","ReadOnly","Error"],Zc=r=>{const{onEnterPress:e,type:t="Primary",inputRef:n,useValue:o,isReadonly:i,placeholder:a,minLength:c,maxLength:d,tabIndex:h,autoFocus:g,isPassword:m,autoComplete:p="off",inputProps:v,LeftAddon:w,RightAddon:T,dataList:_=[],id:A=(v==null?void 0:v.id)??uv.uuid(),...R}=r,[{wrapId:D,wrapProps:I,labelProps:F,...B},H]=Yu(R),j=C.useMemo(()=>u6(B.errorMessage)?"Error":t,[B.errorMessage,t]),G=C.useMemo(()=>j==="ReadOnly"?!0:i,[j,i]),ge=C.useMemo(()=>H.isDisabled||H.isLoading,[H.isDisabled,H.isLoading]),[P,q]=wn(o,""),V=C.useCallback(ie=>{var se;ge||((se=v==null?void 0:v.onKeyDown)==null||se.call(v,ie),["Escape","Enter","ArrowUp","ArrowDown"].includes(ie.key)||ie.stopPropagation(),ie.key==="Enter"&&e&&e(ie.currentTarget.value))},[ge,v,e]),Q=C.useCallback(ie=>{var se;ge||c&&ie.target.value.length<c||(q==null||q(ie.target.value),(se=v==null?void 0:v.onChange)==null||se.call(v,ie))},[ge,c,q,v]);return m?S.jsx(Yc,{wrapId:D,wrapProps:I,labelProps:F,...B,children:S.jsx("form",{onSubmit:ie=>ie.preventDefault(),children:S.jsxs(Jr,{...H,className:Ye.clsx(yi.InputContainer,yi[j],ge&&yi.UnAvailable,H.className),children:[w&&S.jsx("div",{className:yi.LeftAddon,children:w}),S.jsx("input",{...v,ref:n,autoComplete:p,autoFocus:g,className:Ye.clsx(yi.AInput,j==="Error"&&yi.InputError,v==null?void 0:v.className),id:A,list:`${A}-datalist`,maxLength:d,placeholder:a,readOnly:G,tabIndex:H.isDisabled||H.isLoading?-1:h,type:"password",value:P,onChange:Q,onKeyDown:V}),_.length>0&&S.jsx("datalist",{id:`${A}-datalist`,children:_.map((ie,se)=>S.jsx("option",{value:ie},se))}),T&&S.jsx("div",{className:Ye.clsx(yi.RightAddon,"NoSelect"),children:T})]})})}):S.jsx(Yc,{wrapId:D,wrapProps:I,labelProps:F,...B,children:S.jsxs(Jr,{...H,className:Ye.clsx(yi.InputContainer,yi[j],ge&&yi.UnAvailable,H.className),children:[w&&S.jsx("div",{className:yi.LeftAddon,children:w}),S.jsx("input",{...v,ref:n,autoComplete:p,autoFocus:g,className:Ye.clsx(yi.AInput,j==="Error"&&yi.InputError,v==null?void 0:v.className),id:A,list:`${A}-datalist`,maxLength:d,placeholder:a,readOnly:G,tabIndex:H.isDisabled||H.isLoading?-1:h,value:P,onChange:Q,onKeyDown:V}),_.length>0&&S.jsx("datalist",{id:`${A}-datalist`,children:_.map((ie,se)=>S.jsx("option",{value:ie},se))}),T&&S.jsx("div",{className:yi.RightAddon,children:T})]})})};function u6(r){return Array.isArray(r)?r.filter(Boolean).length>0:!!r}const d6="_ASelect_vvzf4_1",f6="_Arrow_vvzf4_14",h6="_Primary_vvzf4_23",p6="_UnAvailable_vvzf4_34",g6="_IsOpen_vvzf4_34",m6="_Secondary_vvzf4_41",v6="_Placeholder_vvzf4_57",y6="_ValuesContainer_vvzf4_61",b6="_Values_vvzf4_61",x6="_Options_vvzf4_80",w6="_Option_vvzf4_80",C6="_Selected_vvzf4_122",S6="_CheckBox_vvzf4_129",os={ASelect:d6,Arrow:f6,Primary:h6,UnAvailable:p6,IsOpen:g6,Secondary:m6,Placeholder:v6,ValuesContainer:y6,Values:b6,Options:x6,Option:w6,Selected:C6,CheckBox:S6},_6=["Primary","Secondary"],Kc=r=>{const{options:e,useSelect:t,type:n="Primary",placeholder:o=wr.ASelect["Select(Placeholder)"],onClose:i,OptionRenderer:a=E6,SelectedRenderer:c=T6,minShowRows:d=2,maxShowRows:h=6,arrowProps:g,isAutoWidth:m=!1,...p}=r,v=C.useRef(null),w=C.useMemo(()=>p.abaseRef??v,[p.abaseRef]),T=C.useRef(null),[_,A]=wn(t,e[0]),[R,D]=C.useState(void 0),[I,F]=C.useState(!1),[B,H]=C.useState(!1),j=C.useRef(e),G=C.useRef(null),ge=C.useCallback(()=>H(!1),[]),P=C.useCallback(()=>{p.isDisabled||p.isLoading||e.length<1||(H(!0),setTimeout(()=>F(!0),0),setTimeout(()=>Kg(T,w,e,d,h),0))},[w,p.isDisabled,p.isLoading,e,d,h]),q=C.useCallback(()=>{F(!1),H(!0),i==null||i()},[i]),V=C.useCallback(ee=>{var ne;I?q():P(),setTimeout(()=>Kg(T,w,e,d,h),0),(ne=p.onClick)==null||ne.call(p,ee)},[w,p,e,I,q,P,d,h]),Q=C.useCallback(()=>{Kg(T,w,e,d,h)},[w,e,d,h]);C.useEffect(()=>{if(!I||!w.current)return;const ee=w.current;let ne=ee.parentElement;for(;ne;)ne.addEventListener("scroll",Q),ne=ne.parentElement;return()=>{let ce=ee.parentElement;for(;ce;)ce.removeEventListener("scroll",Q),ce=ce.parentElement}},[w,I,Q]),C.useEffect(()=>{if(I)return window.addEventListener("resize",Q),()=>window.removeEventListener("resize",Q)},[I,Q]);const ie=C.useCallback(ee=>{ee[0].intersectionRatio===0&&q()},[q]);C.useEffect(()=>{if(!I)return;const ee=new IntersectionObserver(ie,{threshold:0});return w.current&&ee.observe(w.current),()=>ee.disconnect()},[w,I,ie]);const se=C.useCallback(ee=>{const ne=ee.target,ce=w.current,xe=T.current;!ce||!ne||!xe||!ce.contains(ne)&&!xe.contains(ne)&&q()},[w,q]),ae=C.useMemo(()=>p.isDisabled||p.isLoading||e.length<1,[p.isDisabled,p.isLoading,e]);C.useEffect(()=>{if(I)return setTimeout(()=>document.addEventListener("mousedown",se),0),()=>document.removeEventListener("mousedown",se)},[I,se]);const le=C.useCallback((ee,ne)=>{ee.stopPropagation(),ee.preventDefault(),A==null||A(ne),q()},[A,q]),fe=C.useCallback(()=>{if(!m||!w.current)return;const ee=ju.calculateOptimalSelectWidth({elementRef:w,options:e,selectedOption:_,placeholder:o,optionRenderer:ne=>ne===null?null:a({option:ne}),type:n,isMulti:!1});D(ee)},[m,w,e,_,o,a,n]);return C.useEffect(()=>m?((e!==j.current||R===void 0)&&(G.current!==null&&cancelAnimationFrame(G.current),G.current=requestAnimationFrame(()=>{fe(),G.current=null,j.current=[...e]})),()=>{G.current!==null&&(cancelAnimationFrame(G.current),G.current=null)}):void 0,[m,e,fe,R]),C.useEffect(()=>()=>{typeof ju.clearCache=="function"&&ju.clearCache()},[]),S.jsxs(S.Fragment,{children:[S.jsxs(Jr,{...p,abaseRef:w,isDisabled:p.isDisabled||e.length<1,className:Ye.clsx(p.className,os.ASelect,"NoSelect",I&&os.IsOpen,ae&&os.UnAvailable,os[n]),style:{padding:n==="Secondary"?"8px 8px 8px 0":0,width:R?`${R}px`:m?"100px":void 0,...p.style},onClick:V,children:[S.jsx("div",{className:os.ValuesContainer,children:S.jsx("div",{className:Ye.clsx(os.Values,(_==null||_==="")&&os.Placeholder),children:S.jsx(c,{OptionRenderer:a,placeholder:o,selectedOption:_})})}),S.jsx("div",{...g,className:Ye.clsx(os.Arrow,g==null?void 0:g.className),children:S.jsx(gn,{icon:"TriangleDown",style:{transform:I?"rotate(180deg)":"",transition:"var(--Transition)"}})})]}),e.length>0&&(I||B)&&Ls.createPortal(S.jsx("div",{ref:T,className:Ye.clsx(os.Options,os[n]),style:{opacity:+I,visibility:I?"visible":"hidden",pointerEvents:I?void 0:"none",borderRadius:w.current?window.getComputedStyle(w.current).borderRadius:void 0,width:R?`${R}px`:m?"100px":void 0},onTransitionEnd:ge,children:e.map((ee,ne)=>{const ce=_===ee,xe=w.current?window.getComputedStyle(w.current):void 0;return ee===null?null:S.jsx("div",{className:Ye.clsx(os.Option,ce&&os.Selected,"NoSelect",os[n]),style:{height:xe==null?void 0:xe.height},onClick:Me=>le(Me,ee),children:S.jsx(a,{option:ee})},ne)})}),document.body)]})};function Kg(r,e,t,n,o){if(!e.current||!r.current||!t||t.length<1)return;const i=e.current.getBoundingClientRect(),a=A6(i,t.length,n,o),c=window.getComputedStyle(e.current);r.current.style.top=`calc(${a.top??0}px - ${c.borderTopWidth})`,r.current.style.bottom=a.bottom?a.bottom+"px":"",r.current.style.left=a.left+"px",r.current.style.width||(r.current.style.minWidth=a.minWidth+"px"),r.current.style.minHeight=a.minHeight+"px",r.current.style.maxHeight=a.maxHeight+"px",r.current.style.visibility="visible"}function A6(r,e,t,n){const o={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<o.height&&(window.innerHeight-r.bottom-10<o.minHeight?(o.top=r.top-e*r.height,o.top<0&&(o.top=10,o.minHeight=r.top-10,o.height=r.top-10)):o.height=window.innerHeight-r.bottom-10),o}const E6=r=>{const{option:e}=r;return ar.isReactNode(e)?e:null},T6=r=>{const{selectedOption:e,OptionRenderer:t,placeholder:n}=r;return e==null||e===""?n:S.jsx(t,{option:e})},R6="_Anchor_27s50_1",k6="_Primary_27s50_18",I6="_Secondary_27s50_21",M6="_Placeholder_27s50_25",L6="_Icon_27s50_30",D6="_ADatePicker_27s50_37",O6="_StringInputWrap_27s50_48",N6="_StringInputContainer_27s50_53",P6="_StringInput_27s50_48",B6="_IsIdx_27s50_68",F6="_CalendarContainer_27s50_72",j6="_Header_27s50_78",H6="_Prev_27s50_82",z6="_Next_27s50_83",$6="_MonthYear_27s50_116",U6="_Select_27s50_121",q6="_Calendar_27s50_72",W6="_Cell_27s50_131",V6="_IsNotCurrentMonth_27s50_143",G6="_IsSelected_27s50_147",Y6="_IsDisabled_27s50_151",Z6="_IsHovered_27s50_154",K6="_Week_27s50_158",X6="_WeekDay_27s50_163",bn={Anchor:R6,Primary:k6,Secondary:I6,Placeholder:M6,Icon:L6,ADatePicker:D6,StringInputWrap:O6,StringInputContainer:N6,StringInput:P6,String:"_String_27s50_48",IsIdx:B6,CalendarContainer:F6,Header:j6,Prev:H6,Next:z6,MonthYear:$6,Select:U6,Calendar:q6,Cell:W6,IsNotCurrentMonth:V6,IsSelected:G6,IsDisabled:Y6,IsHovered:Z6,Week:K6,WeekDay:X6},J6="_Anchor_1x8q1_1",Q6="_Primary_1x8q1_18",eR="_Secondary_1x8q1_22",tR="_Placeholder_1x8q1_26",rR="_Icon_1x8q1_31",nR="_ADateRangePicker_1x8q1_38",oR="_StringInputWrap_1x8q1_49",iR="_StringInputContainer_1x8q1_53",sR="_StringInput_1x8q1_49",aR="_IsIdx_1x8q1_69",lR="_CalendarContainer_1x8q1_73",cR="_Header_1x8q1_79",uR="_Prev_1x8q1_83",dR="_Next_1x8q1_84",fR="_MonthYear_1x8q1_117",hR="_Select_1x8q1_122",pR="_Calendar_1x8q1_73",gR="_Cell_1x8q1_132",mR="_IsNotCurrentMonth_1x8q1_144",vR="_IsSelected_1x8q1_148",yR="_IsDisabled_1x8q1_152",bR="_IsHovered_1x8q1_155",xR="_Week_1x8q1_159",wR="_WeekDay_1x8q1_164",CR="_ChoiceButton_1x8q1_168",Zr={Anchor:J6,Primary:Q6,Secondary:eR,Placeholder:tR,Icon:rR,ADateRangePicker:nR,StringInputWrap:oR,StringInputContainer:iR,StringInput:sR,String:"_String_1x8q1_49",IsIdx:aR,CalendarContainer:lR,Header:cR,Prev:uR,Next:dR,MonthYear:fR,Select:hR,Calendar:pR,Cell:gR,IsNotCurrentMonth:mR,IsSelected:vR,IsDisabled:yR,IsHovered:bR,Week:xR,WeekDay:wR,ChoiceButton:CR},dv=r=>{const{type:e="Primary",className:t,useDateRange:n,actionRef:o,position:i=gf.SE,minDate:a,maxDate:c,isDisabled:d,isLoading:h,yearsOptionSize:g,noDefaultChoices:m,LeftAddon:p,RightAddon:v,placeholder:w,noClearButton:T,resources:_,onClick:A,...R}=r,D=C.useMemo(()=>({...wr.ADateRangePicker,..._}),[_]),I=C.useMemo(()=>w??D["Select DateRange"],[w,D]),[F,B]=C.useMemo(()=>{let ue,st;if(a&&(ue=tr.makeSDate(a)),c&&(st=tr.makeEDate(c)),ue&&st&&tr["<"](st,ue)){console.warn("ADateRangePicker: maxDate should be greater than minDate. maxDate and minDate are swapped.");const ze=ue;ue=st,st=ze}return[ue,st]},[a,c]),[H,j]=C.useState("sD"),[G,ge]=wn(n,void 0),P=C.useCallback(ue=>{ge&&(ue===void 0?(ge(void 0),Ae(""),it("")):(ge({sDate:tr.makeSDate(ue.sDate),eDate:tr.makeEDate(ue.eDate)}),Ae(tr.toString(ue.sDate)),it(tr.toString(ue.eDate))))},[ge]);C.useEffect(()=>{G&&(Ae(tr.toString(G.sDate)),it(tr.toString(G.eDate)))},[G]);const q=C.useCallback(ue=>{if(!ge)return;let st=G?G.sDate:tr.makeSDate(ue);ue=tr.makeEDate(ue),ge({sDate:st,eDate:ue}),Ae(tr.toString(st)),it(tr.toString(ue))},[ge,G]),[V,Q]=C.useState(),[ie,se]=C.useState(),ae=C.useCallback(ue=>{H==="sD"&&P({sDate:ue,eDate:ue}),Q(ue),se(ue)},[H,P,Q]),le=C.useCallback(ue=>{H==="sD"?V&&(tr.eq(V,ue)?j("eD"):tr[">"](ue,V)?(q(ue),Q(void 0)):(P({sDate:ue,eDate:V}),Q(void 0))):(G?tr["<"](ue,G.sDate)?P({sDate:ue,eDate:G.eDate}):q(ue):P({sDate:ue,eDate:ue}),Q(void 0),j("sD"))},[q,V,j,H,P,G,Q]),fe=C.useCallback(ue=>{V&&se(ue)},[V]),ee=C.useCallback(()=>{se(void 0),Q(void 0),j("sD")},[j,Q]),[ne,ce]=C.useState(ly(G,F,B)),xe=C.useMemo(()=>fv(ne.year,F,B,g),[ne.year,F,B,g]),Me=C.useMemo(()=>gh(ne.year,F,B),[F,B,ne.year]),oe=C.useCallback(ue=>{if(!xe.includes(ue))return;const st={month:ne.month,year:ue},ze=gh(st.year,F,B);ze.length<1||(ze.includes(st.month)||(st.month<ze[0]?st.month=ze[0]:st.month>ze[ze.length-1]&&(st.month=ze[ze.length-1])),ce(st))},[F,B,xe,ne.month]),Se=C.useCallback(ue=>{Me.includes(ue)&&ce({month:ue,year:ne.year})},[Me,ne.year]),Le=C.useMemo(()=>B?new Date(ne.year,ne.month+1,1)>B:!1,[ne,B]),We=C.useCallback(()=>{if(Le||Me.length<1)return;const ue=ne.month+1;ue>11?ce({month:Me[0],year:ne.year+1}):ce({month:ue,year:ne.year})},[Le,Me,ne]),Ve=C.useMemo(()=>F?new Date(ne.year,ne.month,0)<F:!1,[ne,F]),we=C.useCallback(()=>{if(Ve||Me.length<1)return;const ue=ne.month-1;ue<Me[0]?ce({month:Me[Me.length-1],year:ne.year-1}):ce({month:ue,year:ne.year})},[Ve,Me,ne]),[_e,Ae]=C.useState(G!=null&&G.sDate?tr.toString(G.sDate):""),Ie=C.useCallback(ue=>{if(ue.length>10||(Ae(ue),ue.length<10)||!ge)return;let st=tr.toDate(ue);if(!st)return;F&&st<F&&(st=F),B&&st>B&&(st=B);let ze=G?G.eDate:st;G&&tr[">"](st,ze)&&([st,ze]=cy(st,ze)),P({sDate:st,eDate:ze}),ce({month:st.getMonth(),year:st.getFullYear()})},[ge,P,G,F,B]),[je,it]=C.useState(G!=null&&G.eDate?tr.toString(G.eDate):""),Ue=C.useCallback(ue=>{if(ue.length>10||(it(ue),ue.length<10)||!ge)return;let st=tr.toDate(ue);if(!st)return;F&&st<F&&(st=F),B&&st>B&&(st=B);let ze=G?G.sDate:st;G&&tr[">"](ze,st)&&([ze,st]=cy(ze,st)),P({sDate:ze,eDate:st}),ce({month:st.getMonth(),year:st.getFullYear()})},[ge,P,G,F,B]),tt=C.useCallback(()=>{G&&(Ae(tr.toString(G.sDate)),it(tr.toString(G.eDate)))},[G]),lt=C.useMemo(()=>{const{month:ue,year:st}=ne,ze=new Date(st,ue,1),vt=new Date(st,ue+1,0),_t=[];for(let Ut=0;Ut<ze.getDay();Ut++){const at=new Date(st,ue,0).getDate()-ze.getDay()+Ut+1,ct=new Date(st,ue-1,at),xt=F&&F>ct||B&&B<ct,Nt=G?tr.be(G.sDate,ct,G.eDate):!1,Bt=ie&&G&&tr.be(G.sDate,ct,ie);_t.push({day:at,isSelected:Nt,isHovered:Bt,date:ct,isDisabled:xt,isCurrentMonth:!1})}for(let Ut=1;Ut<=vt.getDate();Ut++){const Ge=new Date(st,ue,Ut),at=F&&F>Ge||B&&B<Ge,ct=G?tr.be(G.sDate,Ge,G.eDate):!1,xt=ie&&G&&tr.be(G.sDate,Ge,ie);_t.push({day:Ut,isSelected:ct,isHovered:xt,date:Ge,isDisabled:at,isCurrentMonth:!0})}for(let Ut=0;Ut<7-vt.getDay()-1;Ut++){const Ge=new Date(st,ue+1,Ut+1),at=F&&F>Ge||B&&B<Ge,ct=G?tr.be(G.sDate,Ge,G.eDate):!1,xt=ie&&G&&tr.be(G.sDate,Ge,ie);_t.push({day:Ut+1,isSelected:ct,isHovered:xt,date:Ge,isDisabled:at,isCurrentMonth:!1})}const Tt=[];for(let Ut=0;Ut<_t.length/7;Ut++)Tt.push(S.jsx("div",{className:Zr.Week,children:_t.slice(Ut*7,Ut*7+7).map((Ge,at)=>S.jsx(Zo,{isDisabled:Ge.isDisabled,type:"Raw",className:Ye.clsx(Zr.Cell,Ge.isDisabled?Zr.IsDisabled:Ge.isCurrentMonth?Ge.isSelected?Zr.IsSelected:Ge.isHovered&&Zr.IsHovered:Zr.IsNotCurrentMonth),onMouseDown:()=>Ge.isCurrentMonth&&ae(Ge.date),onMouseEnter:()=>Ge.isCurrentMonth&&fe(Ge.date),onMouseUp:()=>Ge.isCurrentMonth&&le(Ge.date),children:Ge.day},at))},Ut));return Tt},[ne,ie,G,F,B,ae,le,fe]),bt=C.useRef(null),Mt=C.useCallback(()=>{bt&&av(bt,Oe,i)},[bt,i]),[Qe,Xe]=C.useState(!1),[ht,ft]=C.useState(!1),Oe=C.useRef(null),Je=C.useCallback(()=>{d||h||(Xe(!0),setTimeout(()=>ft(!0),0),setTimeout(()=>Mt(),0),ce(ly(G,F,B)))},[d,h,G,Mt,F,B]),gt=C.useCallback(()=>{d||h||(Xe(!0),ft(!1))},[d,h]),It=C.useMemo(()=>ht?gt:Je,[ht,Je,gt]),Et=C.useCallback(()=>Xe(!1),[]),Dt=C.useCallback(ue=>{const st=document.getElementById("root"),ze=ue.target,vt=Oe.current,_t=bt.current;!st||!vt||!ze||!_t||!vt.contains(ze)&&st.contains(ze)&&!_t.contains(ze)&>()},[gt]);C.useEffect(()=>{if(ht)return setTimeout(()=>document.addEventListener("mousedown",Dt),0),()=>document.removeEventListener("mousedown",Dt)},[ht,Dt]);const Xt=C.useCallback(()=>{Mt()},[Mt]);C.useEffect(()=>{if(!ht||!(bt!=null&&bt.current))return;const ue=bt.current;let st=ue.parentElement;for(;st;)st.addEventListener("scroll",Xt),st=st.parentElement;return()=>{let ze=ue.parentElement;for(;ze;)ze.removeEventListener("scroll",Xt),ze=ze.parentElement}},[bt,ht,Xt]),C.useEffect(()=>{if(ht)return window.addEventListener("resize",Xt),()=>window.removeEventListener("resize",Xt)},[ht,Xt]);const Wt=C.useCallback(ue=>{ue[0].intersectionRatio===0&>()},[gt]);C.useEffect(()=>{if(!ht)return;const ue=new IntersectionObserver(Wt,{threshold:0});return Oe.current&&ue.observe(Oe.current),()=>ue.disconnect()},[Oe,ht,Wt]),C.useEffect(()=>{o&&(o.current={open:Je,close:gt,toggle:It})},[o,Je,gt,It]),C.useEffect(()=>{if(!G)return;let ue={sDate:G.sDate,eDate:G.eDate};F&&(tr["<"](G.sDate,F)&&(ue.sDate=F),tr["<"](G.eDate,F)&&(ue.eDate=F)),B&&(tr[">"](G.sDate,B)&&(ue.sDate=B),tr[">"](G.eDate,B)&&(ue.eDate=B)),(ue.sDate!==G.sDate||ue.eDate!==G.eDate)&&P(ue)},[F,B,G,P]);const hr=C.useCallback(ue=>{A==null||A(ue),It()},[A,It]),dr=C.useCallback(ue=>{P(void 0),gt(),ue.stopPropagation()},[P,gt]),cr=C.useCallback(()=>G?S.jsx(_o,{icon:"Close",style:{scale:"0.8"},type:"Raw",onClick:dr}):null,[G,dr]),Te=C.useMemo(()=>G?`${tr.toString(G.sDate)} ~ ${tr.toString(G.eDate)}`:S.jsx("span",{className:Zr.Placeholder,children:I}),[G,I]);return S.jsxs(S.Fragment,{children:[S.jsxs(Jr,{...R,abaseRef:bt,className:Ye.clsx(Zr.Anchor,"IsClickable",Zr[e],t),isDisabled:d,isLoading:h,onClick:hr,children:[p,e==="Primary"&&S.jsxs(S.Fragment,{children:[S.jsx(gn,{className:Ye.clsx(Zr.Icon,Zr[e]),icon:"CalendarDay"}),S.jsx(Nn,{w:4})]}),Te,S.jsx(Zu,{}),!T&&S.jsx(cr,{}),e==="Secondary"&&S.jsx(gn,{className:Ye.clsx(Zr.Icon,Zr[e]),icon:"CalendarDay"}),v&&v]}),(ht||Qe)&&Ls.createPortal(S.jsxs("div",{ref:Oe,className:Zr.ADateRangePicker,style:{opacity:+ht,visibility:ht?"visible":"hidden"},onMouseLeave:ee,onTransitionEnd:Et,children:[S.jsxs("div",{className:Zr.StringInputContainer,children:[S.jsxs(On,{children:[S.jsx(Zc,{className:Ye.clsx(Zr.String,H==="sD"&&ie&&Zr.IsIdx),inputProps:{className:Zr.StringInput},maxLength:11,placeholder:"YYYY-MM-DD",useValue:[_e,Ie],wrapProps:{className:Zr.StringInputWrap},onBlur:tt}),S.jsx(Nn,{w:8}),S.jsx(Zc,{className:Ye.clsx(Zr.String,H==="eD"&&ie&&Zr.IsIdx),inputProps:{className:Zr.StringInput},maxLength:11,placeholder:"YYYY-MM-DD",useValue:[je,Ue],wrapProps:{className:Zr.StringInputWrap},onBlur:tt})]}),!m&&S.jsxs(On,{style:{marginTop:4},children:[S.jsx(tp,{children:D["1일"],onClick:()=>P({sDate:new Date,eDate:new Date})}),S.jsx(tp,{children:D["1주일"],onClick:()=>P({sDate:new Date(new Date().setDate(new Date().getDate()-7)),eDate:new Date})}),S.jsx(tp,{children:D["1개월"],onClick:()=>P({sDate:new Date(new Date().setMonth(new Date().getMonth()-1)),eDate:new Date})}),S.jsx(tp,{children:D["3개월"],onClick:()=>P({sDate:new Date(new Date().setMonth(new Date().getMonth()-3)),eDate:new Date})})]})]}),S.jsxs("div",{className:Zr.CalendarContainer,children:[S.jsxs(On,{className:Zr.Header,children:[S.jsx(Zo,{className:Zr.Prev,isDisabled:Ve,type:"Raw",onClick:we}),S.jsxs("div",{className:Zr.MonthYear,children:[S.jsx(Kc,{isAutoWidth:!0,className:Zr.Select,OptionRenderer:ue=>D.months(ue.option),options:Me,SelectedRenderer:ue=>D.months(ue.selectedOption),type:"Secondary",useSelect:[ne.month,Se]}),S.jsx(Nn,{w:8}),S.jsx(Kc,{isAutoWidth:!0,className:Zr.Select,options:xe,type:"Secondary",useSelect:[ne.year,oe]})]}),S.jsx(Zo,{className:Zr.Next,isDisabled:Le,type:"Raw",onClick:We})]}),S.jsx(Nn,{h:10}),S.jsxs("div",{className:Zr.Calendar,children:[S.jsx("div",{className:Zr.Week,children:[0,1,2,3,4,5,6].map(ue=>S.jsx("div",{className:Ye.clsx(Zr.WeekDay,Zr.Cell),children:D.weekDays(ue)},ue))}),lt]})]})]}),document.body)]})};function gh(r,e,t){let n=0;e&&e.getFullYear()===r&&(n=e.getMonth());let o=11;t&&t.getFullYear()===r&&(o=t.getMonth());const i=[];for(let a=n;a<=o;a++)i.push(a);return i}function fv(r,e,t,n=5){const o=[];let i=r-n/2+n%2/2;e&&i<e.getFullYear()&&(i=e.getFullYear());let a=i+n-1;t&&a>t.getFullYear()&&(a=t.getFullYear());for(let c=i;c<=a;c++)o.push(c);return o}function ly(r,e,t){return r??(r={sDate:new Date,eDate:new Date}),e&&tr["<"](r.sDate,e)?{month:e.getMonth(),year:e.getFullYear()}:t&&tr[">"](r.eDate,t)?{month:t.getMonth(),year:t.getFullYear()}:{month:r.sDate.getMonth(),year:r.sDate.getFullYear()}}function cy(r,e){return[e,r]}const tp=r=>S.jsx(Zo,{className:Ye.clsx(Zr.ChoiceButton,"Headline2"),type:"Secondary",...r}),SR=["Primary","Secondary","Raw"],hv=r=>{const{type:e="Primary",className:t,useDate:n,actionRef:o,position:i=gf.SE,minDate:a,maxDate:c,isDisabled:d,isLoading:h,placeholder:g,LeftAddon:m,RightAddon:p,resources:v,noClearButton:w,onClick:T,..._}=r,A=C.useMemo(()=>({...wr.ADatePicker,...v}),[v]),R=C.useMemo(()=>g??A["Select Date"],[g,A]),[D,I]=C.useMemo(()=>{let Oe,Je;return a&&(Oe=tr.makeSDate(a)),c&&(Je=tr.makeEDate(c)),Oe&&Je&&tr["<"](Je,Oe)?(console.warn("ADatePicker: maxDate should be greater than minDate. maxDate and minDate are swapped."),[tr.makeSDate(Je),tr.makeEDate(Oe)]):[Oe,Je]},[a,c]),[F,B]=wn(n,null),[H,j]=C.useState(F?tr.toString(F):""),[G,ge]=C.useState(()=>{const Oe=F??new Date;return D&&Oe<D?D.getMonth():I&&Oe>I?I.getMonth():(Oe??new Date).getMonth()}),[P,q]=C.useState(()=>{const Oe=F??new Date;return D&&Oe<D?D.getFullYear():I&&Oe>I?I.getFullYear():(Oe??new Date).getFullYear()}),V=C.useCallback(Oe=>{q(Oe);const Je=gh(Oe,D,I);Je.includes(G)||(G<Je[0]?ge(Je[0]):G>Je[Je.length-1]&&ge(Je[Je.length-1]))},[D,I,G]),Q=C.useCallback(Oe=>{if(Oe.length>10||(j(Oe),Oe.length<10)||!B)return;let Je=tr.toDate(Oe);Je&&(D&&Je<D&&(Je=D),I&&Je>I&&(Je=I),B(Je),q(Je.getFullYear()),ge(Je.getMonth()))},[B,D,I]),ie=C.useCallback(Oe=>{const Je=P+Oe;Je<0||q(Je)},[P]),se=C.useCallback(Oe=>{const Je=G+Oe;Je<0?(ge(11),ie(-1)):Je>11?(ge(0),ie(1)):ge(Je)},[G,ie]),ae=C.useCallback(Oe=>{B&&(Oe===void 0?(B(void 0),j("")):(B(Oe),j(tr.toString(Oe))))},[B]),le=C.useMemo(()=>{const Oe=new Date(P,G,0);return D&&Oe<D},[P,G,D]),fe=C.useMemo(()=>{const Oe=new Date(P,G+1,1);return I&&Oe>I},[P,G,I]),ee=C.useCallback(()=>{le||se(-1)},[se,le]),ne=C.useCallback(()=>{fe||se(1)},[se,fe]),[ce,xe]=C.useState(null),Me=C.useCallback(()=>{B&&xe(null)},[B]),oe=C.useCallback(Oe=>{B&&xe(Oe)},[B]),Se=C.useMemo(()=>{const Oe=new Date(P,G,1),Je=new Date(P,G+1,0),gt=[];for(let Et=0;Et<Oe.getDay();Et++){const Xt=new Date(P,G,0).getDate()-Oe.getDay()+Et+1,Wt=new Date(P,G-1,Xt),hr=D&&D>Wt||I&&I<Wt,dr=F&&tr.eq(Wt,F),cr=ce&&tr.eq(Wt,ce);gt.push({day:Xt,isSelected:dr,date:Wt,isDisabled:hr,isHovered:cr,isCurrentMonth:!1})}for(let Et=1;Et<=Je.getDate();Et++){const Dt=new Date(P,G,Et),Xt=D&&D>Dt||I&&I<Dt,Wt=F&&tr.eq(Dt,F),hr=ce&&tr.eq(Dt,ce);gt.push({day:Et,isSelected:Wt,date:Dt,isDisabled:Xt,isHovered:hr,isCurrentMonth:!0})}for(let Et=0;Et<7-Je.getDay()-1;Et++){const Dt=new Date(P,G+1,Et+1),Xt=D&&D>Dt||I&&I<Dt,Wt=F&&tr.eq(Dt,F),hr=ce&&tr.eq(Dt,ce);gt.push({day:Et+1,isSelected:Wt,date:Dt,isDisabled:Xt,isHovered:hr,isCurrentMonth:!1})}const It=[];for(let Et=0;Et<gt.length/7;Et++)It.push(S.jsx("div",{className:bn.Week,children:gt.slice(Et*7,Et*7+7).map((Dt,Xt)=>S.jsx(Zo,{isDisabled:Dt.isDisabled,type:"Raw",className:Ye.clsx(bn.Cell,Dt.isDisabled?bn.IsDisabled:Dt.isCurrentMonth?Dt.isSelected?bn.IsSelected:Dt.isHovered&&bn.IsHovered:bn.IsNotCurrentMonth),onClick:()=>Dt.isCurrentMonth&&ae(Dt.date),onMouseEnter:()=>Dt.isCurrentMonth&&oe(Dt.date),onMouseLeave:()=>Dt.isCurrentMonth&&Me(),children:Dt.day},Xt))},Et));return It},[G,ae,F,P,D,I,ce,Me,oe]),Le=C.useRef(null),We=C.useCallback(()=>{Le&&av(Le,Ie,i)},[Le,i]),[Ve,we]=C.useState(!1),[_e,Ae]=C.useState(!1),Ie=C.useRef(null),je=C.useCallback(()=>{d||h||(we(!0),setTimeout(()=>Ae(!0),0),setTimeout(()=>We(),0),j(F?tr.toString(F):""),ge(()=>{const Oe=F??new Date;return D&&Oe<D?D.getMonth():I&&Oe>I?I.getMonth():Oe.getMonth()}),q(()=>{const Oe=F??new Date;return D&&Oe<D?D.getFullYear():I&&Oe>I?I.getFullYear():Oe.getFullYear()}))},[d,h,F,We,D,I]),it=C.useCallback(()=>{d||h||(we(!0),Ae(!1))},[d,h]),Ue=C.useMemo(()=>_e?it:je,[_e,je,it]),tt=C.useCallback(()=>we(!1),[]),lt=C.useCallback(Oe=>{const Je=document.getElementById("root"),gt=Oe.target,It=Ie.current,Et=Le.current;!Je||!It||!gt||!Et||!It.contains(gt)&&Je.contains(gt)&&!Et.contains(gt)&&it()},[it]);C.useEffect(()=>{if(_e)return setTimeout(()=>document.addEventListener("mousedown",lt),0),()=>document.removeEventListener("mousedown",lt)},[_e,lt]);const bt=C.useCallback(()=>{We()},[We]);C.useEffect(()=>{if(!_e||!(Le!=null&&Le.current))return;const Oe=Le.current;let Je=Oe.parentElement;for(;Je;)Je.addEventListener("scroll",bt),Je=Je.parentElement;return()=>{let gt=Oe.parentElement;for(;gt;)gt.removeEventListener("scroll",bt),gt=gt.parentElement}},[Le,_e,bt]),C.useEffect(()=>{if(_e)return window.addEventListener("resize",bt),()=>window.removeEventListener("resize",bt)},[_e,bt]);const Mt=C.useCallback(Oe=>{Oe[0].intersectionRatio===0&&it()},[it]);C.useEffect(()=>{if(!_e)return;const Oe=new IntersectionObserver(Mt,{threshold:0});return Ie.current&&Oe.observe(Ie.current),()=>Oe.disconnect()},[Ie,_e,Mt]),C.useEffect(()=>{o&&(o.current={open:je,close:it,toggle:Ue})},[o,je,it,Ue]);const Qe=C.useCallback(Oe=>{T==null||T(Oe),Ue()},[T,Ue]),Xe=C.useCallback(Oe=>{ae(void 0),it(),Oe.stopPropagation()},[ae,it]),ht=C.useCallback(()=>F?S.jsx(_o,{icon:"Close",style:{scale:"0.8"},type:"Raw",onClick:Xe}):null,[F,Xe]),ft=C.useMemo(()=>F?tr.toString(F):S.jsx("span",{className:bn.Placeholder,children:R}),[F,R]);return S.jsxs(S.Fragment,{children:[S.jsxs(Jr,{..._,abaseRef:Le,className:Ye.clsx(bn.Anchor,"IsClickable",bn[e],t),isDisabled:d,isLoading:h,onClick:Qe,children:[m,e==="Primary"&&S.jsxs(S.Fragment,{children:[S.jsx(gn,{className:Ye.clsx(bn.Icon,bn[e]),icon:"CalendarDay"}),S.jsx(Nn,{w:4})]}),ft,S.jsx(Zu,{}),!w&&S.jsx(ht,{}),e==="Secondary"&&S.jsx(gn,{className:Ye.clsx(bn.Icon,bn[e]),icon:"CalendarDay"}),p&&p]}),(_e||Ve)&&Ls.createPortal(S.jsxs("div",{ref:Ie,className:bn.ADatePicker,style:{opacity:+_e,visibility:_e?"visible":"hidden"},onTransitionEnd:tt,children:[S.jsx("div",{className:bn.StringInputContainer,children:S.jsx(Zc,{className:bn.String,inputProps:{className:bn.StringInput},maxLength:F?30:11,placeholder:"YYYY-MM-DD",useValue:[H,Q],wrapProps:{className:bn.StringInputWrap}})}),S.jsxs("div",{className:bn.CalendarContainer,children:[S.jsxs(On,{className:bn.Header,children:[S.jsx(Zo,{className:bn.Prev,isDisabled:le,type:"Raw",onClick:ee}),S.jsxs("div",{className:bn.MonthYear,children:[S.jsx(Kc,{isAutoWidth:!0,className:bn.Select,OptionRenderer:Oe=>A.months(Oe.option),options:gh(P,D,I),SelectedRenderer:Oe=>A.months(Oe.selectedOption),type:"Secondary",useSelect:[G,ge]}),S.jsx(Nn,{w:8}),S.jsx(Kc,{isAutoWidth:!0,className:bn.Select,options:fv(P,D,I),type:"Secondary",useSelect:[P,V]})]}),S.jsx(Zo,{className:bn.Next,isDisabled:fe,type:"Raw",onClick:ne})]}),S.jsx(Nn,{h:10}),S.jsxs("div",{className:bn.Calendar,children:[S.jsx("div",{className:bn.Week,children:[0,1,2,3,4,5,6].map(Oe=>S.jsx("div",{className:Ye.clsx(bn.WeekDay,bn.Cell),children:A.weekDays(Oe)},Oe))}),Se]})]})]}),document.body)]})},_R="_Paper_e69j5_1",AR="_Card_e69j5_15",ER="_Body_e69j5_26",TR="_Title_e69j5_35",RR="_Content_e69j5_42",kR="_Action_e69j5_45",IR="_Button_e69j5_58",Ka={Paper:_R,Card:AR,Body:ER,Title:TR,Content:RR,Action:kR,Button:IR},MR=["okCancel","cancelOk","ok","cancel","none"],LR=r=>{const{dlgCore:e,type:t="okCancel",title:n,children:o,style:i,titleStyle:a,bodyStyle:c,contentStyle:d,okButtonStyle:h,cancelButtonStyle:g,actionStyle:m,onOk:p,onCancel:v,onClose:w,onEnterPress:T,onEscPress:_,onSpacePress:A,onPaperClick:R,noDim:D=!1,isLoading:I,isOkDisabled:F,isOkLoading:B,isCancelDisabled:H,isCancelLoading:j,buttonNoInteractive:G,okButtonClassName:ge,cancelButtonClassName:P,progress:q,progressProps:V,resources:Q}=r,ie=C.useMemo(()=>({...wr.ADialog,...Q}),[Q]),[se,ae]=C.useState(0);C.useEffect(()=>ae(1),[]);const le=C.useCallback(()=>{ae(0)},[]),fe=C.useCallback(()=>{if(!se){const[,Ie]=e.state.useIsOpen;Ie==null||Ie(!1),w==null||w()}},[se,w,e]),ee=C.useCallback(async()=>{if(!se||t==="cancel"||t==="none"||I||F||B)return;const{event:Ie,e:je}=Pu();await(p==null?void 0:p(je)),!Ie.preventDefault&&le()},[se,t,le,p,F,I,B]),ne=C.useCallback(async()=>{if(!se||t==="ok"||t==="none"||I||H||j)return;const{event:Ie,e:je}=Pu();await(v==null?void 0:v(je)),!Ie.preventDefault&&le()},[se,t,le,v,H,I,j]);C.useEffect(()=>{e&&e.state.setAction({close:le,ok:ee,cancel:ne})},[e,le,ee,ne]);const ce=C.useCallback(async()=>{if(I)return;const{event:Ie,e:je}=Pu();await(T==null?void 0:T(je)),!Ie.preventDefault&&ee()},[T,I,ee]),xe=C.useCallback(async()=>{if(I)return;const{event:Ie,e:je}=Pu();await(A==null?void 0:A(je)),!Ie.preventDefault&&ee()},[A,I,ee]),Me=C.useCallback(async()=>{if(I)return;const{event:Ie,e:je}=Pu();await(_==null?void 0:_(je)),!Ie.preventDefault&&ne()},[_,I,ne]),oe=C.useRef(null),Se=C.useCallback(Ie=>{const je=document.body.getElementsByClassName(Ka.Paper);je.length===0||je[je.length-1]!==oe.current||(Ie.key==="Enter"&&se?ce():Ie.key===" "&&se?xe():Ie.key==="Escape"&&se&&Me())},[se,ce,xe,Me]);C.useEffect(()=>{if(se)return window.addEventListener("keydown",Se),()=>window.removeEventListener("keydown",Se)},[se,Se]);const Le=C.useRef(!1),We=C.useRef(!1),Ve=C.useCallback(()=>{Le.current=!0},[]),we=C.useCallback(()=>{Le.current=!1,We.current=!1},[]),_e=C.useCallback(()=>{We.current=!0},[]),Ae=C.useCallback(async()=>{if(I)return;const Ie=!We.current||Le.current;if(Le.current=!1,We.current=!1,Ie)return;const{event:je,e:it}=Pu();await(R==null?void 0:R(it)),!je.preventDefault&&ne()},[R,I,ne]);return Ls.createPortal(S.jsx("div",{ref:oe,className:Ka.Paper,style:{backgroundColor:D?"transparent":void 0,pointerEvents:se?void 0:"none",opacity:se},onMouseDown:_e,onMouseUp:Ae,onTransitionEnd:fe,children:S.jsxs(Jr,{className:Ka.Card,isLoading:I,progress:q,progressProps:V,style:i,onMouseDown:Ve,onMouseUp:we,children:[S.jsxs("div",{className:Ka.Body,style:c,children:[n&&S.jsx(DR,{title:n,titleStyle:a}),o&&S.jsx("div",{className:Ka.Content,style:d,children:o})]}),t!=="none"&&S.jsx(OR,{type:t,ok:ee,cancel:ne,resources:ie,isOkDisabled:F,isOkLoading:B,isCancelDisabled:H,isCancelLoading:j,okButtonStyle:h,cancelButtonStyle:g,actionStyle:m,buttonNoInteractive:G,okButtonClassName:ge,cancelButtonClassName:P})]})}),document.body)},DR=r=>{const{title:e,titleStyle:t}=r;return S.jsx("div",{className:Ye.clsx(Ka.Title,"NoSelect","Title3"),style:t,children:e})},OR=r=>{const{type:e,ok:t,cancel:n,resources:o,isOkDisabled:i,isOkLoading:a,isCancelDisabled:c,isCancelLoading:d,okButtonStyle:h,cancelButtonStyle:g,actionStyle:m,buttonNoInteractive:p,okButtonClassName:v,cancelButtonClassName:w}=r,T=C.useMemo(()=>({onClick:t,isDisabled:i,isLoading:a,children:o.Ok,style:h,noInteractive:p,className:Ye.clsx(Ka.Button,v)}),[t,i,a,o.Ok,h,p,v]),_=C.useMemo(()=>({type:"Secondary",onClick:n,isDisabled:c,isLoading:d,children:o.Cancel,style:g,noInteractive:p,className:Ye.clsx(Ka.Button,w)}),[n,c,d,o.Cancel,g,p,w]);if(e==="okCancel"||e==="ok")return S.jsxs("div",{className:Ka.Action,style:{...m},children:[S.jsx(Zo,{...T}),e==="okCancel"&&S.jsxs(S.Fragment,{children:[S.jsx(Nn,{w:8}),S.jsx(Zo,{..._})]})]},e);if(e==="cancelOk"||e==="cancel")return S.jsxs("div",{className:Ka.Action,children:[S.jsx(Zo,{..._}),e==="cancelOk"&&S.jsxs(S.Fragment,{children:[S.jsx(Nn,{w:8}),S.jsx(Zo,{...T})]})]},e)},NR=r=>{const e=C.useMemo(()=>Math.random().toFixed(32),[]),t=C.useMemo(()=>{const v={};return r.forEach(w=>{v[w]=w+e}),v},[r,e]),n=C.useMemo(()=>[],[]),o=C.useMemo(()=>(n.length=0,n.push(...r),n),[n,r]),[i,a]=C.useState([]),c=C.useRef((()=>{const v={};return o.forEach(w=>{v[w]={open:()=>a(T=>[...T,w]),close:()=>{},ok:()=>{},cancel:()=>{}}}),v})()),d=C.useMemo(()=>{const v={};return o.forEach(w=>{v[w]=T=>{a(_=>!T&&_.includes(w)?_.filter(A=>A!==w):T&&!_.includes(w)?[..._,w]:_)}}),v},[o]),h=C.useMemo(()=>{const v={};return o.forEach(w=>{const _=[i.includes(w),d[w]],A=R=>{c.current[w]={...c.current[w],...R}};v[w]={useIsOpen:_,setAction:A}}),v},[i,d,o]),g=C.useMemo(()=>{const v={};return o.forEach(w=>{const T=()=>c.current[w].open(),_=()=>c.current[w].close(),A=()=>c.current[w].ok(),R=()=>c.current[w].cancel();v[w]={open:T,close:_,ok:A,cancel:R}}),v},[o]),m=C.useMemo(()=>({}),[]),p=C.useMemo(()=>(o.forEach(v=>{m[v]={state:h[v],action:g[v]}}),m),[m,o,h,g]);return C.useEffect(()=>(Object.keys(p).forEach(w=>{const T=p[w],_=t[w],A=ua.find(R=>{R.id});A?A.core=T:ua.push({id:_,core:T})}),()=>{const w=Object.keys(p),T=ua.filter(_=>w.includes(_.id));ua.length=0,ua.push(...T)}),[p,t]),p},PR=()=>{const r=C.useMemo(()=>Math.random().toFixed(32),[]),[e,t]=C.useState(!1),n=C.useRef({open:()=>t(!0),close:()=>{},ok:()=>{},cancel:()=>{}}),o=C.useMemo(()=>({useIsOpen:[e,t],setAction:d=>{n.current={...n.current,...d}}}),[e]),i=C.useMemo(()=>({open:()=>n.current.open(),close:()=>n.current.close(),ok:()=>n.current.ok(),cancel:()=>n.current.cancel()}),[]),a=C.useMemo(()=>({}),[]),c=C.useMemo(()=>(a.state=o,a.action=i,a),[a,o,i]);return C.useEffect(()=>{const d=ua.find(h=>h.id===r);return d?d.core=c:ua.push({id:r,core:c}),()=>{const h=ua.filter(g=>g.id!==r);ua.length=0,ua.push(...h)}},[r,c]),c},BR=r=>{const{dlgCore:e,children:t}=r,[n,o]=C.useMemo(()=>e.state.useIsOpen,[e.state.useIsOpen]);return C.useEffect(()=>()=>o==null?void 0:o(!1),[o]),S.jsx(C.Suspense,{children:n&&t})},FR=r=>e=>{const{dlgCore:t}=e;return S.jsx(BR,{dlgCore:t,children:C.cloneElement(S.jsx(r,{...e}),{dlgCore:t})})},ua=[],jR={closeAllDlgs:()=>{ua.forEach(r=>{r.core.action.close()})}},HR="_AFileBox_1hlo1_1",zR="_SelectedFile_1hlo1_16",$R="_Dropping_1hlo1_26",pv={AFileBox:HR,SelectedFile:zR,Dropping:$R},UR=r=>{const{useFile:e,FileRenderer:t=qR,SelectRenderer:n=WR,DropRenderer:o=VR,resources:i,accept:a="",onInvalidFileFormat:c,fileSelectButtonClassName:d,isDisabled:h,isLoading:g,className:m,...p}=r,v=C.useMemo(()=>({...wr.AFileBox,...i}),[i]),w=C.useRef(null),T=C.useRef(null),[_,A]=wn(e,null),[R,D]=C.useState(!1),I=C.useMemo(()=>a.split(",").map(Q=>Q.trim()).filter(Q=>Q.length>0&&Q.startsWith(".")),[a]),F=C.useCallback(Q=>{if(I.length===0)return!1;const ie=Q.name.split(".").pop();return ie?!I.includes(`.${ie}`):!0},[I]),B=C.useCallback(Q=>{if(A)if(F(Q)){c==null||c();return}else A(Q);else return},[A,F,c]),H=C.useCallback(Q=>{Q.target.files&&Q.target.files.length>0&&B(Q.target.files[0])},[B]),j=C.useCallback(Q=>{Q.preventDefault(),D(!1),!(h||g)&&Q.dataTransfer.files&&Q.dataTransfer.files.length>0&&B(Q.dataTransfer.files[0])},[B,h,g]),G=C.useCallback(Q=>{Q.preventDefault(),!(h||g)&&D(!0)},[h,g]),ge=C.useCallback(Q=>{Q.target===w.current&&Q.relatedTarget.contains(w.current.parentElement)&&(Q.preventDefault(),D(!1))},[]),P=C.useCallback(Q=>Q.preventDefault(),[]),q=C.useCallback(()=>{var Q;(Q=T.current)==null||Q.click()},[]),V=C.useMemo(()=>R?S.jsx(o,{resources:v}):_?S.jsx(t,{file:_,useFile:e}):S.jsx(n,{fileSelectButtonClassName:d,resources:v,onClick:q}),[t,n,o,v,R,_,e,d,q]);return S.jsxs(Jr,{...p,abaseRef:w,className:Ye.clsx(pv.AFileBox,m),isDisabled:h,isLoading:g,onDragEnter:G,onDragLeave:ge,onDragOver:P,onDrop:j,children:[S.jsx("input",{ref:T,accept:a,style:{display:"none"},type:"file",value:"",onChange:H}),V]})},qR=r=>{const{file:e,useFile:t}=r,[,n]=wn(t,null);return S.jsxs(On,{className:pv.SelectedFile,style:{backgroundColor:""},children:[S.jsx(gn,{icon:"File"}),S.jsx(tl,{children:e.name}),S.jsx(_o,{icon:"Close",style:{marginLeft:2,transform:"scale(0.8)"},type:"Raw",onClick:()=>n==null?void 0:n(null)})]})},WR=r=>{const{onClick:e,resources:t,fileSelectButtonClassName:n}=r;return S.jsxs(On,{className:Ye.clsx("NoSelect"),style:{gap:4},children:[S.jsx(Zo,{className:n,onClick:e,children:t["Select File"]}),t["or Drag & Drop"]]})},VR=r=>{const{resources:e}=r;return S.jsxs(Vw,{className:Ye.clsx(pv.Dropping,"NoSelect","Headline2"),children:[S.jsx(gn,{icon:"FileDownload"}),e["drop file to select"]]})};async function GR(r){const e=new Promise((t,n)=>{const o=new FileReader;o.onloadend=()=>{o.result?typeof o.result=="string"?t(o.result):n(new Error("Failed to convert file to Base64: Invalid result type.")):n(new Error("Failed to convert file to Base64: Empty result."))},o.onerror=n,o.readAsDataURL(r)});try{return await e}catch{return}}function YR(r,e){var c,d;const t=r.split(","),n=(d=(c=t[0])==null?void 0:c.match(/:(.*?);/))==null?void 0:d[1],o=atob(t[1]);let i=o.length;const a=new Uint8Array(i);for(;i--;)a[i]=o.charCodeAt(i);return new File([a],e,{type:n})}const Kw=r=>r.idx!==void 0?r.idx.toString():`${r.name}-${r.size}-${r.lastModified||""}`,Bu={toBase64:GR,toFile:YR,getFileKey:Kw},ZR="_AFileUploader_62tvx_1",KR="_LabelContainer_62tvx_15",XR="_LabelButton_62tvx_24",JR="_Disabled_62tvx_30",QR="_Delete_62tvx_33",ek="_FileSize_62tvx_37",tk="_TotalFileSize_62tvx_44",rk="_FileBox_62tvx_48",nk="_SelectRenderer_62tvx_67",ok="_ChipsContainer_62tvx_78",ik="_FileChip_62tvx_89",sk="_FileChipContent_62tvx_101",ak="_FileNameContainer_62tvx_112",lk="_ButtonRenderer_62tvx_118",ck="_ErrorBorder_62tvx_129",uk="_ErrorColor_62tvx_133",dk="_ErrorCursor_62tvx_137",Mn={AFileUploader:ZR,LabelContainer:KR,LabelButton:XR,Disabled:JR,Delete:QR,FileSize:ek,TotalFileSize:tk,FileBox:rk,SelectRenderer:nk,ChipsContainer:ok,FileChip:ik,FileChipContent:sk,FileNameContainer:ak,ButtonRenderer:lk,ErrorBorder:ck,ErrorColor:uk,ErrorCursor:dk},fk=({file:r,baseClass:e,errorClass:t,errorCursorClass:n,resources:o,onDownload:i})=>{const[a,c]=C.useState(!1);return S.jsx(_o,{className:Ye.clsx(e,t,n),icon:a?"FileDownload":"CircleAlertOutline",iconSize:"sm",tooltip:o["Fail Download"],type:"Raw",onClick:()=>i(r),onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1)})},hk=r=>{const{useFiles:e,accept:t,onInvalidFileFormat:n,onDownload:o,onDownloadCsv:i,onDelete:a,type:c,limit:d=1024*1024*1024,maxFileCount:h,useError:g,isLoading:m,resources:p,className:v,onDownloadAll:w,csvFilename:T,..._}=r,[{wrapId:A,wrapProps:R,labelProps:D,...I},F]=Yu(_),B=C.useMemo(()=>({...wr.AFileUploader,...p}),[p]),[H,j]=wn(e,void 0),[G,ge]=wn(g,!1),[P,q]=C.useState({}),[V,Q]=C.useState(!1),ie=C.useRef(0),se=C.useRef({}),ae=C.useRef(null),le=C.useRef(null),fe=C.useMemo(()=>(H==null?void 0:H.reduce((Qe,Xe)=>Qe+Xe.size,0))||0,[H]);C.useEffect(()=>{ge&&ge(fe>d)},[fe,d,ge]);const ee=C.useCallback(Qe=>{var ft;if(!t||t==="*"||t==="")return!0;const Xe=t.split(",").map(Oe=>Oe.trim()),ht=`.${(ft=Qe.name.split(".").pop())==null?void 0:ft.toLowerCase()}`;return Xe.includes(ht)?!0:Xe.some(Oe=>{var Je;if(Oe.startsWith("."))return!1;if(Oe.endsWith("/*")){const gt=Oe.split("/")[0];return(Je=Qe.type)==null?void 0:Je.startsWith(`${gt}/`)}return Qe.type===Oe})},[t]),ne=C.useCallback((Qe,Xe)=>{const ht={...se.current};ht[Qe]=Xe,se.current=ht,q(ht)},[q]),ce=C.useCallback(Qe=>{const Xe=Bu.getFileKey(Qe);return P[Xe]||"Normal"},[P]),xe=C.useCallback(Qe=>m||ce(Qe)==="Loading",[m,ce]),Me=C.useCallback(Qe=>ce(Qe)==="Error"||c==="Upload"&&Qe.size>d,[ce,d,c]),oe=C.useMemo(()=>H!=null&&H.length?c==="Download"?H.every(Me):!1:!0,[H,c,Me]),Se=C.useCallback(()=>{ae.current&&(ae.current.value="")},[]),Le=C.useMemo(()=>!h||!(H!=null&&H.length)?!1:H.length>=h,[H,h]),We=C.useCallback(Qe=>{if(!j)return;const Xe=[];let ht=!1,ft=[],Oe=h?h-((H==null?void 0:H.length)||0):1/0;if(!(Oe<=0)){if(Array.from(Qe).forEach((Je,gt)=>{if(gt>=Oe)return;if(!ee(Je)){ht=!0,ft.push(Je.name);return}const It=Je;It.uniqueId=`file-${Date.now()}-${ie.current++}`,Xe.push(It)}),ht)if(n)n();else{const Je=t?t.replace(/,/g,", "):"",gt=Je?`${B["Supported file format(s)"]}: ${Je}`:"",It=ft.length>3?`${ft.slice(0,3).join(", ")} ${B.and} ${ft.length-3} ${B["more file(s)"]}`:ft.join(", ");alert(`${B["Unsupported file format detected."]}
|
161
|
+
`+y.stack}}var hc=t.ReactCurrentDispatcher,ja=t.ReactDebugCurrentFrame,pc=0,Ri=1,gc=2,Ys=3,vd=4,Cl=0,Ha=1,za=2,xu=12800;function yd(b){return console.error(b),null}function Zs(){}function mc(b,l,f,y,E,N,U,K,me){var Pe=[],dt=new Set,Ct={destination:null,responseState:l,progressiveChunkSize:y===void 0?xu:y,status:Cl,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:dt,pingedTasks:Pe,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:E===void 0?yd:E,onAllReady:N===void 0?Zs:N,onShellReady:U===void 0?Zs:U,onShellError:K===void 0?Zs:K,onFatalError:me===void 0?Zs:me},Pt=Sl(Ct,0,null,f,!1,!1);Pt.parentFlushed=!0;var ur=es(Ct,b,null,Pt,dt,$n,ic,Mf);return Pe.push(ur),Ct}function Qi(b,l){var f=b.pingedTasks;f.push(l),f.length===1&&a(function(){return Tu(b)})}function vc(b,l){return{id:Po,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:l,errorDigest:null}}function es(b,l,f,y,E,N,U,K){b.allPendingTasks++,f===null?b.pendingRootTasks++:f.pendingTasks++;var me={node:l,ping:function(){return Qi(b,me)},blockedBoundary:f,blockedSegment:y,abortSet:E,legacyContext:N,context:U,treeContext:K};return me.componentStack=null,E.add(me),me}function Sl(b,l,f,y,E,N){return{status:pc,id:-1,index:l,parentFlushed:!1,chunks:[],children:[],formatContext:y,boundary:f,lastPushedText:E,textEmbedded:N}}var ci=null;function ui(){return ci===null||ci.componentStack===null?"":Fa(ci.componentStack)}function ki(b,l){b.componentStack={tag:0,parent:b.componentStack,type:l}}function _l(b,l){b.componentStack={tag:1,parent:b.componentStack,type:l}}function xs(b,l){b.componentStack={tag:2,parent:b.componentStack,type:l}}function di(b){b.componentStack===null?o("Unexpectedly popped too many stack frames. This is a bug in React."):b.componentStack=b.componentStack.parent}var $a=null;function yc(b,l){{var f;typeof l=="string"?f=l:l&&typeof l.message=="string"?f=l.message:f=String(l);var y=$a||ui();$a=null,b.errorMessage=f,b.errorComponentStack=y}}function Al(b,l){var f=b.onError(l);if(f!=null&&typeof f!="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 f+'" instead');return f}function Ua(b,l){var f=b.onShellError;f(l);var y=b.onFatalError;y(l),b.destination!==null?(b.status=za,R(b.destination,l)):(b.status=Ha,b.fatalError=l)}function bd(b,l,f){ki(l,"Suspense");var y=l.blockedBoundary,E=l.blockedSegment,N=f.fallback,U=f.children,K=new Set,me=vc(b,K),Pe=E.chunks.length,dt=Sl(b,Pe,me,E.formatContext,!1,!1);E.children.push(dt),E.lastPushedText=!1;var Ct=Sl(b,0,null,E.formatContext,!1,!1);Ct.parentFlushed=!0,l.blockedBoundary=me,l.blockedSegment=Ct;try{if(Vo(b,l,U),_n(Ct.chunks,b.responseState,Ct.lastPushedText,Ct.textEmbedded),Ct.status=Ri,Ss(me,Ct),me.pendingTasks===0){di(l);return}}catch(ur){Ct.status=vd,me.forceClientRender=!0,me.errorDigest=Al(b,ur),yc(me,ur)}finally{l.blockedBoundary=y,l.blockedSegment=E}var Pt=es(b,N,y,dt,K,l.legacyContext,l.context,l.treeContext);Pt.componentStack=l.componentStack,b.pingedTasks.push(Pt),di(l)}function wu(b,l,f,y){ki(l,f);var E=l.blockedSegment,N=_r(E.chunks,f,y,b.responseState,E.formatContext);E.lastPushedText=!1;var U=E.formatContext;E.formatContext=No(U,f,y),Vo(b,l,N),E.formatContext=U,Mr(E.chunks,f),E.lastPushedText=!1,di(l)}function Cu(b){return b.prototype&&b.prototype.isReactComponent}function Ks(b,l,f,y,E){var N={};pu(l,N);var U=f(y,E);return Ws(f,y,U,E)}function Su(b,l,f,y,E){var N=f.render();f.props!==E&&(xc||o("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",hn(y)||"a component"),xc=!0);{var U=y.childContextTypes;if(U!=null){var K=l.legacyContext,me=su(f,y,K,U);l.legacyContext=me,to(b,l,N),l.legacyContext=K;return}}to(b,l,N)}function bc(b,l,f,y){xs(l,f);var E=fs(f,l.legacyContext),N=Ei(f,y,E);bl(N,f,y,E),Su(b,l,N,f,y),di(l)}var Ar={},El={},_u={},Xs={},xc=!1,xd={},wd=!1,ko=!1,Cd=!1;function wc(b,l,f,y){var E;if(E=fs(f,l.legacyContext),_l(l,f),f.prototype&&typeof f.prototype.render=="function"){var N=hn(f)||"Unknown";Ar[N]||(o("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.",N,N),Ar[N]=!0)}var U=Ks(b,l,f,y,E),K=vo();if(typeof U=="object"&&U!==null&&typeof U.render=="function"&&U.$$typeof===void 0){var me=hn(f)||"Unknown";El[me]||(o("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.",me,me,me),El[me]=!0)}if(typeof U=="object"&&U!==null&&typeof U.render=="function"&&U.$$typeof===void 0){{var Pe=hn(f)||"Unknown";El[Pe]||(o("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.",Pe,Pe,Pe),El[Pe]=!0)}bl(U,f,y,E),Su(b,l,U,f,y)}else if(Au(f),K){var dt=l.treeContext,Ct=1,Pt=0;l.treeContext=uu(dt,Ct,Pt);try{to(b,l,U)}finally{l.treeContext=dt}}else to(b,l,U);di(l)}function Au(b){{if(b&&b.childContextTypes&&o("%s(...): childContextTypes cannot be defined on a function component.",b.displayName||b.name||"Component"),b.defaultProps!==void 0){var l=hn(b)||"Unknown";xd[l]||(o("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",l),xd[l]=!0)}if(typeof b.getDerivedStateFromProps=="function"){var f=hn(b)||"Unknown";Xs[f]||(o("%s: Function components do not support getDerivedStateFromProps.",f),Xs[f]=!0)}if(typeof b.contextType=="object"&&b.contextType!==null){var y=hn(b)||"Unknown";_u[y]||(o("%s: Function components do not support contextType.",y),_u[y]=!0)}}}function Eu(b,l){if(b&&b.defaultProps){var f=zo({},l),y=b.defaultProps;for(var E in y)f[E]===void 0&&(f[E]=y[E]);return f}return l}function Sd(b,l,f,y,E){_l(l,f.render);var N=Ks(b,l,f.render,y,E),U=vo();if(U){var K=l.treeContext,me=1,Pe=0;l.treeContext=uu(K,me,Pe);try{to(b,l,N)}finally{l.treeContext=K}}else to(b,l,N);di(l)}function yo(b,l,f,y,E){var N=f.type,U=Eu(N,y);Js(b,l,N,U,E)}function ws(b,l,f,y){f._context===void 0?f!==f.Consumer&&(Cd||(Cd=!0,o("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):f=f._context;var E=y.children;typeof E!="function"&&o("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 N=Na(f),U=E(N);to(b,l,U)}function bo(b,l,f,y){var E=f._context,N=y.value,U=y.children,K;K=l.context,l.context=au(E,N),to(b,l,U),l.context=Tf(E),K!==l.context&&o("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function _d(b,l,f,y,E){ki(l,"Lazy");var N=f._payload,U=f._init,K=U(N),me=Eu(K,y);Js(b,l,K,me,E),di(l)}function Js(b,l,f,y,E){if(typeof f=="function")if(Cu(f)){bc(b,l,f,y);return}else{wc(b,l,f,y);return}if(typeof f=="string"){wu(b,l,f,y);return}switch(f){case tc:case Xo:case Re:case ot:case qi:{to(b,l,y.children);return}case In:{ki(l,"SuspenseList"),to(b,l,y.children),di(l);return}case sd:throw new Error("ReactDOMServer does not yet support scope components.");case $r:{bd(b,l,y);return}}if(typeof f=="object"&&f!==null)switch(f.$$typeof){case fr:{Sd(b,l,f,y,E);return}case Qr:{yo(b,l,f,y,E);return}case Ke:{bo(b,l,f,y);return}case zt:{ws(b,l,f,y);return}case Ta:{_d(b,l,f,y);return}}var N="";throw(f===void 0||typeof f=="object"&&f!==null&&Object.keys(f).length===0)&&(N+=" 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: "+(f==null?f:typeof f)+"."+N))}function Ad(b,l){typeof Symbol=="function"&&b[Symbol.toStringTag]==="Generator"&&(wd||o("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."),wd=!0),b.entries===l&&(ko||o("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ko=!0)}function to(b,l,f){try{return Ed(b,l,f)}catch(y){throw typeof y=="object"&&y!==null&&typeof y.then=="function"||($a=$a!==null?$a:ui()),y}}function Ed(b,l,f){if(l.node=f,typeof f=="object"&&f!==null){switch(f.$$typeof){case id:{var y=f,E=y.type,N=y.props,U=y.ref;Js(b,l,E,N,U);return}case ec: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 Ta:{var K=f,me=K._payload,Pe=K._init,dt;try{dt=Pe(me)}catch(fi){throw typeof fi=="object"&&fi!==null&&typeof fi.then=="function"&&ki(l,"Lazy"),fi}to(b,l,dt);return}}if(Ft(f)){Cc(b,l,f);return}var Ct=us(f);if(Ct){Ad(f,Ct);var Pt=Ct.call(f);if(Pt){var ur=Pt.next();if(!ur.done){var Gr=[];do Gr.push(ur.value),ur=Pt.next();while(!ur.done);Cc(b,l,Gr);return}return}}var Vn=Object.prototype.toString.call(f);throw new Error("Objects are not valid as a React child (found: "+(Vn==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":Vn)+"). If you meant to render a collection of children, use an array instead.")}if(typeof f=="string"){var Ii=l.blockedSegment;Ii.lastPushedText=mn(l.blockedSegment.chunks,f,b.responseState,Ii.lastPushedText);return}if(typeof f=="number"){var _s=l.blockedSegment;_s.lastPushedText=mn(l.blockedSegment.chunks,""+f,b.responseState,_s.lastPushedText);return}typeof f=="function"&&o("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 Cc(b,l,f){for(var y=f.length,E=0;E<y;E++){var N=l.treeContext;l.treeContext=uu(N,y,E);try{Vo(b,l,f[E])}finally{l.treeContext=N}}}function Sc(b,l,f){var y=l.blockedSegment,E=y.chunks.length,N=Sl(b,E,null,y.formatContext,y.lastPushedText,!0);y.children.push(N),y.lastPushedText=!1;var U=es(b,l.node,l.blockedBoundary,N,l.abortSet,l.legacyContext,l.context,l.treeContext);l.componentStack!==null&&(U.componentStack=l.componentStack.parent);var K=U.ping;f.then(K,K)}function Vo(b,l,f){var y=l.blockedSegment.formatContext,E=l.legacyContext,N=l.context,U=null;U=l.componentStack;try{return to(b,l,f)}catch(K){if(gu(),typeof K=="object"&&K!==null&&typeof K.then=="function"){Sc(b,l,K),l.blockedSegment.formatContext=y,l.legacyContext=E,l.context=N,gs(N),l.componentStack=U;return}else throw l.blockedSegment.formatContext=y,l.legacyContext=E,l.context=N,gs(N),l.componentStack=U,K}}function Td(b,l,f,y){var E=Al(b,y);if(l===null?Ua(b,y):(l.pendingTasks--,l.forceClientRender||(l.forceClientRender=!0,l.errorDigest=E,yc(l,y),l.parentFlushed&&b.clientRenderedBoundaries.push(l))),b.allPendingTasks--,b.allPendingTasks===0){var N=b.onAllReady;N()}}function Cs(b){var l=this,f=b.blockedBoundary,y=b.blockedSegment;y.status=Ys,Qs(l,f,y)}function _c(b,l,f){var y=b.blockedBoundary,E=b.blockedSegment;if(E.status=Ys,y===null)l.allPendingTasks--,l.status!==za&&(l.status=za,l.destination!==null&&w(l.destination));else{if(y.pendingTasks--,!y.forceClientRender){y.forceClientRender=!0;var N=f===void 0?new Error("The render was aborted by the server without a reason."):f;y.errorDigest=l.onError(N);{var U="The server did not finish this Suspense boundary: ";N&&typeof N.message=="string"?N=U+N.message:N=U+String(N);var K=ci;ci=b;try{yc(y,N)}finally{ci=K}}y.parentFlushed&&l.clientRenderedBoundaries.push(y)}if(y.fallbackAbortableTasks.forEach(function(Pe){return _c(Pe,l,f)}),y.fallbackAbortableTasks.clear(),l.allPendingTasks--,l.allPendingTasks===0){var me=l.onAllReady;me()}}}function Ss(b,l){if(l.chunks.length===0&&l.children.length===1&&l.children[0].boundary===null){var f=l.children[0];f.id=l.id,f.parentFlushed=!0,f.status===Ri&&Ss(b,f)}else{var y=b.completedSegments;y.push(l)}}function Qs(b,l,f){if(l===null){if(f.parentFlushed){if(b.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");b.completedRootSegment=f}if(b.pendingRootTasks--,b.pendingRootTasks===0){b.onShellError=Zs;var y=b.onShellReady;y()}}else if(l.pendingTasks--,!l.forceClientRender){if(l.pendingTasks===0)f.parentFlushed&&f.status===Ri&&Ss(l,f),l.parentFlushed&&b.completedBoundaries.push(l),l.fallbackAbortableTasks.forEach(Cs,b),l.fallbackAbortableTasks.clear();else if(f.parentFlushed&&f.status===Ri){Ss(l,f);var E=l.completedSegments;E.length===1&&l.parentFlushed&&b.partialBoundaries.push(l)}}if(b.allPendingTasks--,b.allPendingTasks===0){var N=b.onAllReady;N()}}function Pf(b,l){var f=l.blockedSegment;if(f.status===pc){gs(l.context);var y=null;y=ci,ci=l;try{to(b,l,l.node),_n(f.chunks,b.responseState,f.lastPushedText,f.textEmbedded),l.abortSet.delete(l),f.status=Ri,Qs(b,l.blockedBoundary,f)}catch(N){if(gu(),typeof N=="object"&&N!==null&&typeof N.then=="function"){var E=l.ping;N.then(E,E)}else l.abortSet.delete(l),f.status=vd,Td(b,l.blockedBoundary,f,N)}finally{ci=y}}}function Tu(b){if(b.status!==za){var l=cd(),f=hc.current;hc.current=Wn;var y;y=ja.getCurrentStack,ja.getCurrentStack=ui;var E=Gs;fc(b.responseState);try{var N=b.pingedTasks,U;for(U=0;U<N.length;U++){var K=N[U];Pf(b,K)}N.splice(0,U),b.destination!==null&&Jo(b,b.destination)}catch(me){Al(b,me),Ua(b,me)}finally{fc(E),hc.current=f,ja.getCurrentStack=y,f===Wn&&gs(l)}}}function Tl(b,l,f){switch(f.parentFlushed=!0,f.status){case pc:{var y=f.id=b.nextSegmentId++;return f.lastPushedText=!1,f.textEmbedded=!1,Vr(l,b.responseState,y)}case Ri:{f.status=gc;for(var E=!0,N=f.chunks,U=0,K=f.children,me=0;me<K.length;me++){for(var Pe=K[me];U<Pe.index;U++)m(l,N[U]);E=Rl(b,l,Pe)}for(;U<N.length-1;U++)m(l,N[U]);return U<N.length&&(E=p(l,N[U])),E}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function Rl(b,l,f){var y=f.boundary;if(y===null)return Tl(b,l,f);if(y.parentFlushed=!0,y.forceClientRender)return Qn(l,b.responseState,y.errorDigest,y.errorMessage,y.errorComponentStack),Tl(b,l,f),cl(l,b.responseState);if(y.pendingTasks>0){y.rootSegmentID=b.nextSegmentId++,y.completedSegments.length>0&&b.partialBoundaries.push(y);var E=y.id=jn(b.responseState);return zi(l,b.responseState,E),Tl(b,l,f),Fo(l,b.responseState)}else{if(y.byteSize>b.progressiveChunkSize)return y.rootSegmentID=b.nextSegmentId++,b.completedBoundaries.push(y),zi(l,b.responseState,y.id),Tl(b,l,f),Fo(l,b.responseState);si(l,b.responseState);var N=y.completedSegments;if(N.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var U=N[0];return Rl(b,l,U),an(l,b.responseState)}}function Ru(b,l,f){return nd(l,b.responseState,f.id,f.errorDigest,f.errorMessage,f.errorComponentStack)}function Ac(b,l,f){return pr(l,b.responseState,f.formatContext,f.id),Rl(b,l,f),nn(l,f.formatContext)}function ku(b,l,f){for(var y=f.completedSegments,E=0;E<y.length;E++){var N=y[E];xo(b,l,f,N)}return y.length=0,dl(l,b.responseState,f.id,f.rootSegmentID)}function Rd(b,l,f){for(var y=f.completedSegments,E=0;E<y.length;E++){var N=y[E];if(!xo(b,l,f,N))return E++,y.splice(0,E),!1}return y.splice(0,E),!0}function xo(b,l,f,y){if(y.status===gc)return!0;var E=y.id;if(E===-1){var N=y.id=f.rootSegmentID;if(N===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return Ac(b,l,y)}else return Ac(b,l,y),wf(l,b.responseState,E)}function Jo(b,l){g();try{var f=b.completedRootSegment;f!==null&&b.pendingRootTasks===0&&(Rl(b,l,f),b.completedRootSegment=null,dn(l,b.responseState));var y=b.clientRenderedBoundaries,E;for(E=0;E<y.length;E++){var N=y[E];Ru(b,l,N)}y.splice(0,E);var U=b.completedBoundaries;for(E=0;E<U.length;E++){var K=U[E];ku(b,l,K)}U.splice(0,E),v(l),g(l);var me=b.partialBoundaries;for(E=0;E<me.length;E++){var Pe=me[E];if(!Rd(b,l,Pe)){b.destination=null,E++,me.splice(0,E);return}}me.splice(0,E);var dt=b.completedBoundaries;for(E=0;E<dt.length;E++){var Ct=dt[E];ku(b,l,Ct)}dt.splice(0,E)}finally{v(l),b.allPendingTasks===0&&b.pingedTasks.length===0&&b.clientRenderedBoundaries.length===0&&b.completedBoundaries.length===0&&(b.abortableTasks.size!==0&&o("There was still abortable task at the root when we closed. This is a bug in React."),w(l))}}function kd(b){a(function(){return Tu(b)})}function Bf(b,l){if(b.status===Ha){b.status=za,R(l,b.fatalError);return}if(b.status!==za&&b.destination===null){b.destination=l;try{Jo(b,l)}catch(f){Al(b,f),Ua(b,f)}}}function kl(b,l){try{var f=b.abortableTasks;f.forEach(function(y){return _c(y,b,l)}),f.clear(),b.destination!==null&&Jo(b,b.destination)}catch(y){Al(b,y),Ua(b,y)}}function qa(b,l){return new Promise(function(f,y){var E,N,U=new Promise(function(Pt,ur){N=Pt,E=ur});function K(){var Pt=new ReadableStream({type:"bytes",pull:function(ur){Bf(Pe,ur)},cancel:function(ur){kl(Pe)}},{highWaterMark:0});Pt.allReady=U,f(Pt)}function me(Pt){U.catch(function(){}),y(Pt)}var Pe=mc(b,Br(l?l.identifierPrefix:void 0,l?l.nonce:void 0,l?l.bootstrapScriptContent:void 0,l?l.bootstrapScripts:void 0,l?l.bootstrapModules:void 0),Ao(l?l.namespaceURI:void 0),l?l.progressiveChunkSize:void 0,l?l.onError:void 0,N,K,me,E);if(l&&l.signal){var dt=l.signal,Ct=function(){kl(Pe,dt.reason),dt.removeEventListener("abort",Ct)};dt.addEventListener("abort",Ct)}kd(Pe)})}Qh.renderToReadableStream=qa,Qh.version=e}()),Qh}var ey;function l4(){if(ey)return kc;ey=1;var r,e;return process.env.NODE_ENV==="production"?(r=o4(),e=i4()):(r=s4(),e=a4()),kc.version=r.version,kc.renderToString=r.renderToString,kc.renderToStaticMarkup=r.renderToStaticMarkup,kc.renderToNodeStream=r.renderToNodeStream,kc.renderToStaticNodeStream=r.renderToStaticNodeStream,kc.renderToReadableStream=e.renderToReadableStream,kc}var iw=l4();const Np=pf(iw);function eh(r,e,t){return e!==void 0&&r<e?e:t!==void 0&&r>t?t:r}const ju={_canvas:null,_cache:new Map,_fontCache:{value:"",timestamp:0},_charWidthMap:new Map,clearCache(){this._cache.clear(),this._canvas=null,this._fontCache={value:"",timestamp:0},this._charWidthMap.clear()},getDefaultFont(){const r=Date.now();if(this._fontCache.value&&r-this._fontCache.timestamp<3e5)return this._fontCache.value;try{const e=getComputedStyle(document.documentElement).getPropertyValue("--Font").trim()||"400 14px pretendard";return this._fontCache={value:e,timestamp:r},e}catch{return"400 14px pretendard"}},measureCharWidth(r,e){var o,i,a,c,d,h;const t=`${r}|${e}`;if(this._charWidthMap.has(t))return this._charWidthMap.get(t);try{this._canvas||(this._canvas=document.createElement("canvas"));const g=this._canvas.getContext("2d");if(g){g.font=e;const m=g.measureText(r).width;return this._charWidthMap.set(t,m),m}}catch{}let n;return r===" "?n=parseInt(((o=e.match(/(\d+)px/))==null?void 0:o[1])||"14")/3:/^[A-Z]$/.test(r)?n=parseInt(((i=e.match(/(\d+)px/))==null?void 0:i[1])||"14")*.67:/^[a-z]$/.test(r)?n=parseInt(((a=e.match(/(\d+)px/))==null?void 0:a[1])||"14")*.5:/^\d$/.test(r)?n=parseInt(((c=e.match(/(\d+)px/))==null?void 0:c[1])||"14")*.6:/^[.,;:!?]$/.test(r)?n=parseInt(((d=e.match(/(\d+)px/))==null?void 0:d[1])||"14")*.25:n=parseInt(((h=e.match(/(\d+)px/))==null?void 0:h[1])||"14")*.67,this._charWidthMap.set(t,n),n},extractTextFromNode(r){if(r==null)return"";if(typeof r=="string")return r;if(typeof r=="number"||typeof r=="boolean")return`${r}`;if(Array.isArray(r))return r.map(e=>this.extractTextFromNode(e)).join("");if(C.isValidElement(r))try{const t=iw.renderToString(r).replace(/<[^>]*>/g,""),n=document.createElement("div");return n.innerHTML=t,n.textContent||""}catch{return r.props&&r.props.children?this.extractTextFromNode(r.props.children):""}return""},measureTextWidth(r,e){var i;if(!r)return 0;const t=e||this.getDefaultFont(),n=`${r}|${t}`,o=this._cache.get(n);if(o!==void 0)return o;try{this._canvas||(this._canvas=document.createElement("canvas"));const a=this._canvas.getContext("2d");if(a){a.font=t;const c=a.measureText(r),d=Math.ceil(c.width);return this._cache.size>=300&&[...this._cache.keys()].slice(0,50).forEach(g=>this._cache.delete(g)),this._cache.set(n,d),d}}catch{}try{const a=document.createElement("span");a.style.font=t,a.style.position="absolute",a.style.visibility="hidden",a.style.whiteSpace="nowrap",a.textContent=r,document.body.appendChild(a);const c=Math.ceil(a.getBoundingClientRect().width);return document.body.removeChild(a),this._cache.set(n,c),c}catch{}try{let a=0;for(let d=0;d<r.length;d++)a+=this.measureCharWidth(r[d],t);a*=.95;const c=Math.ceil(a);return this._cache.set(n,c),c}catch{}try{const a=parseInt(((i=t.match(/(\d+)px/))==null?void 0:i[1])||"14");let c=0;for(let h=0;h<r.length;h++){const g=r[h];g===" "?c+=.33:/^[A-Z]$/.test(g)?c+=.67:/^[a-z]$/.test(g)?c+=.5:/^\d$/.test(g)?c+=.6:/^[.,;:!?]$/.test(g)?c+=.25:c+=.67}const d=Math.ceil(c*a);return this._cache.set(n,d),d}catch{const c=r.length*10;return this._cache.set(n,c),c}},measureTextWithElementStyle(r,e){if(!e)return 0;try{const t=window.getComputedStyle(r),n=t.getPropertyValue("--Font").trim()||`${t.fontWeight} ${t.fontSize} ${t.fontFamily}`;return this.measureTextWidth(e,n)}catch{return this.measureTextWidth(e)}},measureReactNodeWidth(r){const e=this.extractTextFromNode(r);return this.measureTextWidth(e)},measureRenderedOptionWidth(r,e){if(r==null)return 0;const t=e(r),n=this.extractTextFromNode(t);return this.measureTextWidth(n)},calculateOptimalSelectWidth({elementRef:r,options:e=[],selectedOption:t=null,selectedOptions:n=[],placeholder:o="",optionRenderer:i,type:a="Primary",isMulti:c=!1}){if(!r.current)return 200;try{let d=0;if(e&&e.length>0){const v=[...e.length>0?[e[0]]:[],...e.length>1?[e[e.length-1]]:[],...e.length>10?Array.from({length:8},(T,_)=>e[Math.floor(_*e.length/8)]):e,...e.length>20?Array.from({length:5},()=>e[Math.floor(Math.random()*e.length)]):[]],w=Array.from(new Set(v.filter(Boolean)));for(const T of w){if(!T)continue;const _=this.measureRenderedOptionWidth(T,i);d=Math.max(d,_)}}let h=0;if(!c&&t)h=this.measureRenderedOptionWidth(t,i);else if(c&&n&&n.length){if(n.length===1)h=this.measureRenderedOptionWidth(n[0],i);else if(h=this.measureTextWidth(`${n.length} selected`),n.length>0){let v=0;for(const w of n){const T=this.measureRenderedOptionWidth(w,i);v=Math.max(v,T)}h=Math.max(h,v)}}let g=0;o&&(g=this.measureReactNodeWidth(o));const p=Math.max(d,h,g,50);if(r.current){const v=window.getComputedStyle(r.current),w=parseFloat(v.paddingLeft||"0")+parseFloat(v.paddingRight||"0"),T=parseFloat(v.borderLeftWidth||"0")+parseFloat(v.borderRightWidth||"0"),_=a==="Primary"?30:20,A=c?24:0,R=Math.ceil(p*.05)+10;return Math.ceil(p+w+T+_+A+R)}return p+60}catch{return 200}}};var Mo=(r=>(r.E="East",r.N="North",r.S="South",r.W="West",r))(Mo||{}),gf=(r=>(r.E="East",r.EN="EastNorth",r.ES="EastSouth",r.N="North",r.NE="NorthEast",r.NW="NorthWest",r.S="South",r.SE="SouthEast",r.SW="SouthWest",r.W="West",r.WN="WestNorth",r.WS="WestSouth",r))(gf||{});function av(r,e,t,n){if(!r.current||!e.current)return;const o=r.current.getBoundingClientRect(),i=e.current.getBoundingClientRect();let a={bottom:void 0,left:void 0,right:void 0,top:void 0};switch(t){case"North":a=i?{bottom:window.innerHeight-o.top,left:o.left+o.width/2-i.width/2}:{bottom:window.innerHeight-o.top,left:o.left};break;case"NorthWest":a={bottom:window.innerHeight-o.top,left:o.left};break;case"NorthEast":a={bottom:window.innerHeight-o.top,right:window.innerWidth-o.left-o.width};break;case"South":a=i?{top:o.bottom,left:o.left+o.width/2-i.width/2}:{top:o.bottom,left:o.left};break;case"SouthWest":a={top:o.bottom,left:o.left};break;case"SouthEast":a={top:o.bottom,right:window.innerWidth-o.left-o.width};break;case"East":a=i?{top:o.top+o.height/2-i.height/2,left:o.right}:{top:o.top,left:o.right};break;case"EastNorth":a={bottom:window.innerHeight-o.top-o.height,left:o.right};break;case"EastSouth":a={top:o.top,left:o.right};break;case"West":a=i?{top:o.top+o.height/2-i.height/2,right:window.innerWidth-o.left}:{top:o.top,right:window.innerWidth-o.left};break;case"WestNorth":a={bottom:window.innerHeight-o.top-o.height,right:window.innerWidth-o.left};break;case"WestSouth":a={top:o.top,right:window.innerWidth-o.left};break;default:a={top:o.top,left:o.left}}n&&(n.x&&a.left&&(a.left+=n.x),n.y&&a.top&&(a.top+=n.y)),a=aw(a,i),e.current.style.top=a.top+"px",e.current.style.left=a.left+"px",e.current.style.bottom=a.bottom+"px",e.current.style.right=a.right+"px"}function sw(r,e,t,n){if(!r)return;const o=e instanceof HTMLElement?e:e==null?void 0:e.current;if(!o)return;const i=r.getBoundingClientRect(),a=o.getBoundingClientRect();let c={bottom:void 0,left:void 0,right:void 0,top:void 0};switch(t){case"North":c=a?{bottom:window.innerHeight-i.top,left:i.left+i.width/2-a.width/2}:{bottom:window.innerHeight-i.top,left:i.left};break;case"NorthWest":c={bottom:window.innerHeight-i.top,left:i.left};break;case"NorthEast":c={bottom:window.innerHeight-i.top,right:window.innerWidth-i.left-i.width};break;case"South":c=a?{top:i.bottom,left:i.left+i.width/2-a.width/2}:{top:i.bottom,left:i.left};break;case"SouthWest":c={top:i.bottom,left:i.left};break;case"SouthEast":c={top:i.bottom,right:window.innerWidth-i.left-i.width};break;case"East":c=a?{top:i.top+i.height/2-a.height/2,left:i.right}:{top:i.top,left:i.right};break;case"EastNorth":c={bottom:window.innerHeight-i.top-i.height,left:i.right};break;case"EastSouth":c={top:i.top,left:i.right};break;case"West":c=a?{top:i.top+i.height/2-a.height/2,right:window.innerWidth-i.left}:{top:i.top,right:window.innerWidth-i.left};break;case"WestNorth":c={bottom:window.innerHeight-i.top-i.height,right:window.innerWidth-i.left};break;case"WestSouth":c={top:i.top,right:window.innerWidth-i.left};break;default:c={top:i.top,left:i.left}}return n&&(n.x&&c.left&&(c.left+=n.x),n.y&&c.top&&(c.top+=n.y)),c=aw(c,a),o.style.top=c.top+"px",o.style.left=c.left+"px",o.style.bottom=c.bottom+"px",o.style.right=c.right+"px",c}function aw(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 Pu(){const r={preventDefault:!1};return{event:r,e:{preventDefault:()=>r.preventDefault=!0}}}const c4="_Tooltip_1khnz_1",u4="_Arrow_1khnz_17",ty={Tooltip:c4,Arrow:u4},lw=r=>{const{tooltip:e,targetRef:t,delay:n=0,distance:o=10,direction:i=Mo.S}=r,[a,c]=C.useState(!1),d=C.useRef(null),h=C.useRef(null),g=C.useRef(null),m=C.useCallback(()=>{c(!0),g.current&&(clearTimeout(g.current),g.current=null);const T=setTimeout(()=>ry(t,d,h,o,i),n);g.current=T},[t,n,o,i]),p=C.useCallback(()=>c(!1),[]);C.useEffect(()=>{const T=t.current;if(T)return T.addEventListener("mouseenter",m),T.addEventListener("mouseleave",p),()=>{T.removeEventListener("mouseenter",m),T.removeEventListener("mouseleave",p)}},[t,p,m]);const v=C.useCallback(()=>{ry(t,d,h,o,i)},[t,o,i]);C.useEffect(()=>{if(!t.current||!d.current||!a)return;const T=t.current.parentElement;let _=T;for(;_;)_.addEventListener("scroll",v),_=_.parentElement;return()=>{let A=T;for(;A;)A.removeEventListener("scroll",v),A=A.parentElement}},[t,v,a]),C.useEffect(()=>{v()},[e,v]);const w=C.useMemo(()=>{switch(typeof e){case"boolean":return!0;case"string":return e==="";case"number":return!1;default:return!e}},[e]);return!a||w?null:Ls.createPortal(S.jsxs("div",{ref:d,className:Ye.clsx(ty.Tooltip,"NoSelect"),children:[e,S.jsx("div",{ref:h,className:ty.Arrow})]}),document.body)},ep="5px solid var(--ATooltip_background-color)";function ry(r,e,t,n,o=Mo.S){if(!r.current||!e.current||!t.current)return;const i=d4(r.current,e.current,n,o);if(!i)return;const{left:a,top:c,arrowDir:d,arrow:h}=i;e.current.style.left=`${a}px`,e.current.style.top=`${c}px`,e.current.style.visibility="visible",e.current.style.opacity="1",t.current.style.border="5px solid transparent",d===Mo.N?(t.current.style.top="-9px",t.current.style.left=`calc(50% - 5px + ${h.left??0}px)`,t.current.style.borderBottom=ep):d===Mo.S?(t.current.style.top="100%",t.current.style.left=`calc(50% - 5px + ${h.left??0}px)`,t.current.style.borderTop=ep):d===Mo.W?(t.current.style.top=`calc(50% - 5px + ${h.top??0}px)`,t.current.style.left="-9px",t.current.style.borderRight=ep):d===Mo.E&&(t.current.style.top=`calc(50% - 5px + ${h.top??0}px)`,t.current.style.left="100%",t.current.style.borderLeft=ep)}const Ic=5;function d4(r,e,t,n){const o=r.getBoundingClientRect(),i=e.getBoundingClientRect();function a(){if(window.innerHeight-o.bottom>i.height+t){const g=o.bottom+t,m=o.left+(o.width-i.width)/2,p=eh(m,Ic,window.innerWidth-Ic-i.width),v=Mo.N;return{left:p,top:g,arrowDir:v,arrow:{left:m-p}}}}function c(){if(o.top>i.height+t){const g=o.top-i.height-t,m=o.left+(o.width-i.width)/2,p=eh(m,Ic,window.innerWidth-Ic-i.width),v=Mo.S;return{left:p,top:g,arrowDir:v,arrow:{left:m-p}}}}function d(){if(window.innerWidth-o.right>i.width+t){const g=o.right+t,m=o.top+(o.height-i.height)/2,p=eh(m,Ic,window.innerHeight-Ic-i.height),v=Mo.W;return{left:g,top:p,arrowDir:v,arrow:{top:m-p}}}}function h(){if(o.left>i.width+t){const g=o.left-i.width-t,m=o.top+(o.height-i.height)/2,p=eh(m,Ic,window.innerHeight-Ic-i.height),v=Mo.E;return{left:g,top:p,arrowDir:v,arrow:{top:m-p}}}}if(n===Mo.E)return d()||h()||a()||c();if(n===Mo.S)return a()||c()||d()||h();if(n===Mo.W)return h()||d()||a()||c();if(n===Mo.N)return c()||a()||d()||h()}const f4="_ABase_c7a1t_1",h4="_UseDimming_c7a1t_6",p4="_Dimmer_c7a1t_6",g4="_Spinner_c7a1t_9",m4="_Dimmed_c7a1t_12",v4="_HasProgress_c7a1t_18",y4="_IsDimmed_c7a1t_36",b4="_IsLoading_c7a1t_41",x4="_IsDisabled_c7a1t_46",Nd={ABase:f4,UseDimming:h4,Dimmer:p4,Spinner:g4,Dimmed:m4,HasProgress:v4,IsDimmed:y4,IsLoading:b4,IsDisabled:x4},Jr=r=>{const{children:e,abaseRef:t,abaseCallbackRef:n,isDisabled:o,isLoading:i,isDimmed:a,tooltip:c,tooltipDistance:d=10,tooltipDelay:h=0,tooltipDirection:g=Mo.S,progress:m,progressProps:p,...v}=r,w=C.useRef(null),T=C.useMemo(()=>t??w,[t]),_=C.useMemo(()=>typeof o=="string"&&o!==""?o:c!==void 0?c:"",[o,c]),A=C.useMemo(()=>o||i||a,[o,i,a]),R=C.useMemo(()=>o!==void 0||i!==void 0||a!==void 0,[o,i,a]),D=typeof m=="number"&&i;return S.jsxs("div",{...v,ref:n||T,className:Ye.clsx(v.className,Nd.ABase,R&&Nd.UseDimming,A&&Nd.Dimmed,D&&Nd.HasProgress),children:[e,R&&S.jsx("div",{className:Ye.sclsx(Nd,"Dimmer",o&&"IsDisabled",i&&"IsLoading",a&&"IsDimmed",D&&"HasProgress")}),i&&S.jsxs("div",{className:Ye.sclsx(Nd,"Spinner",o&&"IsDisabled",i&&"IsLoading",D&&"HasProgress"),children:[S.jsx(gn,{icon:"Spinner"}),D&&S.jsx(ow,{progress:m,...p})]}),S.jsx(lw,{delay:h,direction:g,distance:d,targetRef:T,tooltip:_})]})},w4="_AButton_vulhu_1",C4="_Primary_vulhu_14",S4="_Secondary_vulhu_19",_4="_Alter_vulhu_24",A4="_AIconButton_vulhu_30",E4="_AThemeButton_vulhu_71",ph={AButton:w4,Primary:C4,Secondary:S4,Alter:_4,AIconButton:A4,AThemeButton:E4},T4=["Primary","Secondary","Alter","Raw"],Zo=r=>{const{type:e="Primary",onClick:t,noInteractive:n,...o}=r,i=C.useMemo(()=>o.isDisabled||o.isLoading,[o.isDisabled,o.isLoading]),a=C.useCallback(c=>{i||t==null||t(c)},[i,t]);return S.jsx(Jr,{...o,className:Ye.clsx(o.className,ph.AButton,e!=="Raw"&&ph[e],"IsClickable",!i&&!n&&"IsInteractive"),onClick:a})},R4=["Primary","Secondary","Raw"],_o=r=>{const{icon:e,iconSize:t,type:n="Primary",onClick:o,isDisabled:i,isLoading:a,tooltip:c,className:d,...h}=r,g=C.useMemo(()=>i||a,[i,a]),m=C.useCallback(v=>{g||o==null||o(v)},[g,o]),p=C.useMemo(()=>sv.includes(e)?S.jsx(gn,{icon:e,size:t}):e,[e,t]);return S.jsx(Jr,{className:Ye.clsx(ph.AIconButton,!i&&!a&&"IsClickable",n!=="Raw"&&ph[n],d),isDisabled:i,isLoading:a,tooltip:c,onClick:m,...h,children:p})};function wn(r,e){r!==void 0&&r.length===1&&(e=r[0]);const t=C.useState(e);return C.useMemo(()=>r===void 0||r.length===1?t:r,[t,r])}const k4="_AWrap_u1f1h_1",I4="_Label_u1f1h_8",M4="_Asterisk_u1f1h_19",L4="_HelperTextConatiner_u1f1h_23",D4="_HelperText_u1f1h_23",Pd={AWrap:k4,Label:I4,Asterisk:M4,HelperTextConatiner:L4,HelperText:D4,Error:"_Error_u1f1h_38"},O4=["Default","Error"],Yu=r=>{if(!r)return[{},{}];const e={},t={},n=["errorMessage","helperText","label","labelProps","wrapId","wrapProps","wrapType"];for(const o in r)n.includes(o)?e[o]=r[o]:t[o]=r[o];return[e,t]},Yc=r=>{const{wrapProps:e,errorMessage:t,helperText:n,wrapType:o="Default",label:i,labelProps:a,wrapId:c,children:d}=r,h=C.useRef(null),[g,m]=C.useState({height:0}),p=C.useRef(null),[v,w]=C.useMemo(()=>{let _=n,A=o;if(Array.isArray(t)){const R=t.filter(Boolean);R.length>0&&([_,A]=[R,"Error"])}else t&&([_,A]=[t,"Error"]);return Array.isArray(_)&&(A!=="Error"&&(_=_.filter(Boolean)),_=_.map((R,D)=>S.jsxs(C.Fragment,{children:[R,S.jsx("br",{})]},D))),[_,A]},[n,t,o]);C.useEffect(()=>{if(!v||!h.current)m({height:0});else{const _=h.current.getBoundingClientRect();m({height:_.height,marginTop:_.height===0?0:6})}},[v]);const T=C.useMemo(()=>{switch(typeof(a==null?void 0:a.prefix)){case"string":return S.jsx(gn,{height:"1rem",icon:a.prefix,width:"1rem"});case"boolean":return S.jsx(gn,{height:10,icon:"Target",width:10});default:return a==null?void 0:a.prefix}},[a==null?void 0:a.prefix]);return S.jsxs("div",{...e,ref:p,className:Ye.clsx(e==null?void 0:e.className,Pd.AWrap),id:c,children:[i&&S.jsxs("div",{className:Ye.clsx(Pd.Label,"NoSelect",a==null?void 0:a.className),style:a==null?void 0:a.style,children:[T,i,(a==null?void 0:a.asterisk)&&S.jsx(Jr,{className:Pd.Asterisk,tooltip:wr.AWrap.Asterisk,children:"*"})]}),d,v!==void 0&&S.jsx("div",{className:Ye.clsx(Pd.HelperTextConatiner,"NoSelect"),style:g,children:S.jsx("div",{ref:h,className:Ye.clsx(Pd.HelperText,Pd[w]),children:v})})]})},N4="_ASwitch_nlcij_1",P4="_Track_nlcij_6",B4="_Truthy_nlcij_13",F4="_Thumb_nlcij_17",Uf={ASwitch:N4,Track:P4,Truthy:B4,Thumb:F4},cw=r=>{const{useCheck:e,...t}=r,[{wrapId:n,wrapProps:o,labelProps:i,...a},c]=Yu(t),[d,h]=wn(e,!1),g=C.useCallback(m=>{var p;c.isDisabled||c.isLoading||(h==null||h(!d),(p=c.onClick)==null||p.call(c,m))},[c,d,h]);return S.jsx(Yc,{wrapId:n,wrapProps:o,labelProps:i,...a,children:S.jsx(Jr,{...c,className:Uf.ASwitch,onClick:g,children:S.jsx("div",{className:Ye.clsx(Uf.Track,d&&Uf.Truthy),children:S.jsx("div",{className:Ye.clsx(Uf.Thumb,d&&Uf.Truthy)})})})})},j4={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","acent-brand-fill":"blue-95","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","acent-brand-fill":"blue-10","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"}}},Oo=Hc.cloneDeep(j4);ar.keys(Oo.semantic).forEach(r=>{const e=Oo.semantic[r];ar.keys(e).forEach(t=>{e[t]=`var(--${e[t]})`})});const lg=ar.keys(Oo.palette),uw=ar.keys(Oo.palette[lg[0]]);function H4(){return fo.paletteMode}function z4(r,e=fo.paletteMode){return Oo.palette[e][r]}function $4(r){return ug(r)}const Pp=[];function dw(r){fo.paletteMode=r,uw.forEach(e=>document.documentElement.style.setProperty(`--${e}`,Oo.palette[r][e])),Pp.forEach(e=>e(r))}function fw(r,e="all"){ar.keys(r).forEach(n=>{const o=r[n];o!==void 0&&(document.documentElement.style.setProperty(`--${n}`,o),e==="all"?lg.forEach(i=>{Oo.palette[i][n]=o}):Oo.palette[e][n]=o)})}const nf=ar.keys(Oo.semantic),hw=ar.keys(Oo.semantic[nf[0]]);function U4(){return fo.semanticMode}function q4(r,e=fo.semanticMode){return Oo.semantic[e][r]}function W4(r){return ug(r)}const Bp=[];function lv(r){fo.semanticMode=r,document.documentElement.setAttribute("data-theme",r),hw.forEach(e=>document.documentElement.style.setProperty(`--${e}`,Oo.semantic[r][e])),Bp.forEach(e=>e(r)),fo.save==="localStorage"?localStorage.setItem("semanticMode",r):fo.save==="sessionStorage"&&sessionStorage.setItem("semanticMode",r)}function pw(r,e=fo.semanticMode){ar.keys(r).forEach(n=>{const o=r[n];o!==void 0&&(document.documentElement.style.setProperty(`--${n}`,o),e==="all"?nf.forEach(i=>{Oo.semantic[i][n]=o}):Oo.semantic[e][n]=o)})}const gw=["Body-background-color","Body-color","Body-transition","Font","Scrollbar-handle","Scrollbar-handle-hover","Scrollbar-handle-active","Scrollbar-track","Scrollbar-border-radius","Scrollbar-width","Transition","Transition-Enabled"],mw=["ABase_Dimming_background-color"],vw=["ATooltip_background-color","ATooltip_color"],yw=["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"],bw=["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"],xw=["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"],ww=["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_hover_border","AEditor_Error_focus_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"],Cw=["ACheckBox_color"],Sw=["ADialog_Paper_background-color","ADialog_background-color","ADialog_border","ADialog_Action_background-color"],_w=["ASelect_Placeholder_color","ASelect_Primary_border","ASelect_Primary_hover_border","ASelect_Primary_Arrow_color","ASelect_Primary_Options_background-color","ASelect_Primary_Options_border","ASelect_Primary_Option_hover_background-color","ASelect_Primary_Option_active_background-color","ASelect_Primary_Option_Selected_background-color","ASelect_Secondary_border","ASelect_Secondary_hover_border","ASelect_Secondary_background-color","ASelect_Secondary_Arrow_color","ASelect_Secondary_Options_background-color","ASelect_Secondary_Options_border","ASelect_Secondary_Option_hover_background-color","ASelect_Secondary_Option_active_background-color","ASelect_Secondary_Option_Selected_background-color"],Aw=["AMultiSelect_Placeholder_color","AMultiSelect_Primary_border","AMultiSelect_Primary_hover_border","AMultiSelect_Primary_Arrow_color","AMultiSelect_Primary_Options_background-color","AMultiSelect_Primary_Options_border","AMultiSelect_Primary_Option_hover_background-color","AMultiSelect_Primary_Option_active_background-color","AMultiSelect_Primary_Option_Selected_background-color","AMultiSelect_Secondary_border","AMultiSelect_Secondary_hover_border","AMultiSelect_Secondary_background-color","AMultiSelect_Secondary_Arrow_color","AMultiSelect_Secondary_Options_background-color","AMultiSelect_Secondary_Options_border","AMultiSelect_Secondary_Option_hover_background-color","AMultiSelect_Secondary_Option_active_background-color","AMultiSelect_Secondary_Option_Selected_background-color"],Ew=["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"],Tw=["ASwitch_Track_Falsy_border","ASwitch_Track_Truthy_border","ASwitch_Thumb_border"],Rw=["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"],kw=["AFileBox_border","AFileBox_background-color","AFileBox_SelectedFile_color","AFileBox_Dropping_color"],Iw=["AFileUploader_background-color","AFileUploader_brand_color","AFileUploader_disabled_color","AFileUploader_error_color","AFileUploader_text_color"],Mw=["AListView_border-thin","AListView_border-thick"],Lw=["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"],Dw=["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"],Ow=["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"],Nw=["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"],Pw=["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"],Bw=["ADivideFrame_DividerInner_background-color"],Fw=["AFloatMenu_background-color","AFloatMenu_hover_background-color","AFloatMenu_color","AFloatMenu_border"],jw=["ALoadingBorder_background-color","ALoadingBorder_ProgressBar_background-color","ALoadingBorder_Cover_background-color"],Hw=["AWrap_Error_color"],zw=["ARadioSelect_RadioButton_border","ARadioSelect_RadioButton_InnerCircle_isChecked_background-color"],$w=["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"],V4=[...gw,...mw,...vw,...yw,...bw,...xw,...ww,...Cw,...Sw,..._w,...Aw,...Ew,...Tw,...Rw,...kw,...Iw,...Mw,...Lw,...Dw,...Ow,...Nw,...Pw,...Bw,...Fw,...jw,...Hw,...zw,...$w],cg={"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","Transition-Enabled":"1","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_hover_border:"1px solid var(--alert-danger)",AEditor_Error_focus_border:"1px solid var(--alert-danger)",AEditor_Error_placeholder_color:"var(--alert-danger)","AEditor_Addon_Primary_background-color":"var(--background-normal)",AEditor_Addon_Primary_border:"1px solid var(--line-normal)",AEditor_Addon_Primary_color:"var(--label-normal)","AEditor_Addon_Secondary_background-color":"var(--background-normal)",AEditor_Addon_Secondary_border:"1px solid var(--line-strong)",AEditor_Addon_Secondary_color:"var(--label-neutral)","AEditor_Addon_hover_background-color":"var(--elevation-10)",AEditor_Addon_hover_color:"var(--acent-brand)",AEditor_Addon_focus_border:"1px solid var(--line-strong)","AEditor_border-radius":"2px","AEditor_Select_border-radius":"6px","AEditor_Option_border-radius":"6px",ACheckBox_color:"var(--label-normal)","ADialog_Paper_background-color":"#00000060","ADialog_background-color":"var(--elevation-0)",ADialog_border:"1px solid var(--line-neutral)","ADialog_Action_background-color":"var(--elevation-0)",ASelect_Placeholder_color:"var(--label-neutral)",ASelect_Primary_border:"1px solid var(--line-normal)",ASelect_Primary_hover_border:"1px solid var(--line-strong)",ASelect_Primary_Arrow_color:"var(--label-normal)","ASelect_Primary_Options_background-color":"var(--elevation-0)",ASelect_Primary_Options_border:"1px solid var(--line-normal)","ASelect_Primary_Option_hover_background-color":"var(--elevation-10)","ASelect_Primary_Option_active_background-color":"var(--elevation-10)","ASelect_Primary_Option_Selected_background-color":"var(--elevation-20)",ASelect_Secondary_border:"1px solid var(--elevation-10)",ASelect_Secondary_hover_border:"1px solid var(--elevation-10)","ASelect_Secondary_background-color":"var(--elevation-10)",ASelect_Secondary_Arrow_color:"var(--label-normal)","ASelect_Secondary_Options_background-color":"var(--elevation-0)",ASelect_Secondary_Options_border:"var(--line-normal)","ASelect_Secondary_Option_hover_background-color":"var(--elevation-10)","ASelect_Secondary_Option_active_background-color":"var(--elevation-10)","ASelect_Secondary_Option_Selected_background-color":"var(--elevation-20)",AMultiSelect_Placeholder_color:"var(--label-neutral)",AMultiSelect_Primary_border:"1px solid var(--line-normal)",AMultiSelect_Primary_hover_border:"1px solid var(--line-strong)",AMultiSelect_Primary_Arrow_color:"var(--label-normal)","AMultiSelect_Primary_Options_background-color":"var(--elevation-0)",AMultiSelect_Primary_Options_border:"1px solid var(--line-normal)","AMultiSelect_Primary_Option_hover_background-color":"var(--elevation-10)","AMultiSelect_Primary_Option_active_background-color":"var(--elevation-10)","AMultiSelect_Primary_Option_Selected_background-color":"var(--elevation-20)",AMultiSelect_Secondary_border:"1px solid var(--elevation-10)",AMultiSelect_Secondary_hover_border:"1px solid var(--elevation-10)","AMultiSelect_Secondary_background-color":"var(--elevation-10)",AMultiSelect_Secondary_Arrow_color:"var(--label-normal)","AMultiSelect_Secondary_Options_background-color":"var(--elevation-0)",AMultiSelect_Secondary_Options_border:"1px solid var(--line-normal)","AMultiSelect_Secondary_Option_hover_background-color":"var(--elevation-10)","AMultiSelect_Secondary_Option_active_background-color":"var(--elevation-10)","AMultiSelect_Secondary_Option_Selected_background-color":"var(--elevation-20)","ATree_background-color":"var(--elevation-0)",ATree_Indent_border:"1px solid var(--line-normal)","ATreeBodyHeader_border-bottom":"1px solid var(--line-normal)","ATreeItem_hover_background-color":"var(--elevation-10)","ATreeItem_active_background-color":"var(--elevation-10)","ATreeItem_select_background-color":"var(--elevation-10)","ATreeItem_search_background-color":"yellow","ATreeItem_search_border-top":"1px dashed var(--label-normal)","ATreeItem_search_border-bottom":"1px dashed var(--label-normal)",ATreeItem_select_color:"var(--label-normal)",ASwitch_Track_Falsy_border:"12px solid var(--elevation-20)",ASwitch_Track_Truthy_border:"12px solid var(--acent-brand)",ASwitch_Thumb_border:"9px solid var(--static-white)","ATab_IndicatorTrack_Primary_border-bottom":"1px solid var(--line-normal)","ATab_Indicator_Primary_background-color":"var(--label-normal)",ATab_Option_Secondary_border:"2px solid var(--label-normal)","ATab_Option_Secondary_IsSelected_border-bottom":"2px solid var(--elevation-0)",ATab_Option_Secondary_IsDisabled_border:"2px solid var(--line-neutral)","ATab_IndicatorTrack_Tertiary_background-color":"var(--line-normal)","ATab_Indicator_Tertiary_background-color":"var(--elevation-0)",ATab_Option_Tertiary_color:"var(--line-strong)",ATab_Option_Tertiary_IsSelected_color:"var(--label-strong)",ATab_Option_Quaternary_color:"var(--label-neutral)",ATab_Option_Quaternary_IsSelected_color:"var(--label-normal)",AFileBox_border:"1px dashed var(--label-normal)","AFileBox_background-color":"var(--elevation-10)",AFileBox_SelectedFile_color:"var(--label-normal)",AFileBox_Dropping_color:"var(--label-normal)","AFileUploader_background-color":"var(--background-normal)",AFileUploader_brand_color:"var(--acent-brand)",AFileUploader_disabled_color:"var(--label-neutral)",AFileUploader_error_color:"var(--alert-danger)",AFileUploader_text_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 G4(r){return cg[r]}function Y4(r){return ug(r)}function Uw(r){ar.keys(r).forEach(t=>{const n=r[t];n!==void 0&&(document.documentElement.style.setProperty(`--${t}`,n),cg[t]=n)})}function Z4(r){ar.keys(r).forEach(t=>{const n=r[t];if(n===void 0)return;const o=Oo.semantic[fo.semanticMode][n];o!==void 0&&(document.documentElement.style.setProperty(t,o),cg[t]=o)})}const fo={paletteMode:lg[0],semanticMode:nf[0],save:"",followDeviceSetting:!1};function K4({semanticMode:r,save:e,followDeviceSetting:t}){if(t!==void 0&&(fo.followDeviceSetting=t,t)){const n=window.matchMedia("(prefers-color-scheme: dark)"),o=a=>{fo.semanticMode=a.matches?"dark":"light"};o(n);const i=a=>o(a);n.addEventListener("change",i)}if(e!==void 0){if(fo.save=e,e==="localStorage"){const n=localStorage.getItem("semanticMode");nf.includes(n)&&(fo.semanticMode=n)}else if(e==="sessionStorage"){const n=sessionStorage.getItem("semanticMode");nf.includes(n)&&(fo.semanticMode=n)}}r!==void 0&&(fo.semanticMode=r),dw(fo.paletteMode),lv(fo.semanticMode),fw(Oo.palette[fo.paletteMode]),pw(Oo.semantic[fo.semanticMode]),Uw(cg)}function X4(r){r.type==="semanticModeChange"?Bp.push(r.listener):r.type==="paletteModeChange"?Pp.push(r.listener):console.error("AThemes.addEventListener : parameter is not valid")}function J4(r){if(r.type==="semanticModeChange"){const e=Bp.indexOf(r.listener);e!==-1&&Bp.splice(e,1)}else if(r.type==="paletteModeChange"){const e=Pp.indexOf(r.listener);e!==-1&&Pp.splice(e,1)}else console.error("AThemes.removeEventListener : parameter is not valid")}function ug(r){const e=window.getComputedStyle(document.documentElement);let t=e.getPropertyValue(r);return t===""&&(t=e.getPropertyValue(`--${r}`)),t}function Q4(r){Object.assign(Ye.additionalClasses,r),Ye.updateKeys(),Ye.additionalClasses=Ye.additionalClasses}const th={getCurrentPaletteMode:H4,getPaletteValue:z4,getPaletteDeepValue:$4,changePaletteMode:dw,editPalette:fw,getCurrentSemanticMode:U4,getSemanticValue:q4,getSemanticDeepValue:W4,changeSemanticMode:lv,editSemantic:pw,getComponentStyleValue:G4,getComponentStyleDeepValue:Y4,editComponentStyle:Uw,editComponentStyleWithSemantic:Z4,init:K4,addEventListener:X4,removeEventListener:J4,getDeepValue:ug,addClasses:Q4},e5=r=>{const{onChange:e,onClick:t,type:n="Icon",...o}=r,[i,a]=C.useState(th.getCurrentSemanticMode()==="dark"?"Moon":"Sun"),c=C.useCallback(d=>{const h=th.getCurrentSemanticMode();let g="light";h==="light"?g="dark":h==="dark"&&(g="light"),th.changeSemanticMode(g),a(t5[g]),e==null||e(g),t==null||t(d)},[e,t]);if(n==="Icon")return S.jsx(_o,{...o,className:Ye.clsx(ph.AThemeButton,o.className,"IsInteractive"),icon:i,type:"Raw",onClick:c});if(n==="Switch")return S.jsx(cw,{...o,useCheck:[th.getCurrentSemanticMode()==="dark",c]})},t5={light:"Sun",dark:"Moon"},r5="_ACheckBoxWrap_1ozuz_1",n5="_ACheckBox_1ozuz_1",ny={ACheckBoxWrap:r5,ACheckBox:n5},of=r=>{const{useCheck:e,isIndeterminate:t,isDisabled:n,isLoading:o,onClick:i,...a}=r,[c,d]=wn(e,!1),h=C.useCallback(g=>{n||o||(d==null||d(!c),i==null||i(g))},[n,o,i,c,d]);return S.jsx(Jr,{...a,className:Ye.clsx(a.className,ny.ACheckBoxWrap),isDisabled:n,isLoading:o,onClick:h,children:S.jsx(gn,{className:ny.ACheckBox,icon:t?"Check.Indeterminate":c?"Check.Checked":"Check.UnChecked"})})};function o5(r){return typeof r=="function"}function i5(r,e){return o5(r)?r(e):r}const Pr={getContent:i5};class oy{constructor(e){de(this,"capacity");de(this,"cache",new Map);this.capacity=e}get(e){if(!this.cache.has(e))return;const t=this.cache.get(e);return this.cache.delete(e),this.cache.set(e,t),t}put(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.capacity){const n=this.cache.keys().next().value;n!==void 0&&this.cache.delete(n)}this.cache.set(e,t)}delete(e){return this.cache.delete(e)}clear(){this.cache.clear()}entries(){return Array.from(this.cache.entries())}}const Fu=class Fu{constructor(){de(this,"databases",{});de(this,"caches",{});de(this,"DEFAULT_CACHE_SIZE",100)}static getInstance(){return Fu.instance||(Fu.instance=new Fu),Fu.instance}getCache(e,t){const n=`${e}_${t}`;return this.caches[n]||(this.caches[n]=new oy(this.DEFAULT_CACHE_SIZE)),this.caches[n]}async getDB(e,t,n=1){return this.databases[e]?this.databases[e]:new Promise((o,i)=>{if(!window.indexedDB){console.error("이 브라우저는 IndexedDB를 지원하지 않습니다."),i(new Error("IndexedDB not supported"));return}const a=window.indexedDB.open(e,n);a.onerror=c=>{console.error("IndexedDB 연결 오류:",c.target.error),i(c.target.error)},a.onsuccess=c=>{const d=c.target.result;this.databases[e]=d,o(d)},a.onupgradeneeded=c=>{const d=c.target.result;d.objectStoreNames.contains(t)||d.createObjectStore(t,{keyPath:"id"}).createIndex("updatedAt_idx","updatedAt",{unique:!1})}})}async save(e,t,n){this.getCache(e,t).put(n.id,{...n});const c=(await this.getDB(e,t)).transaction([t],"readwrite").objectStore(t);return new Promise((d,h)=>{const g=c.put(n);g.onsuccess=()=>d(),g.onerror=m=>{console.error("데이터 저장 오류:",m.target.error),h(m.target.error)}})}async batchSave(e,t,n){if(n.length===0)return;const o=this.getCache(e,t);n.forEach(d=>o.put(d.id,{...d}));const a=(await this.getDB(e,t)).transaction([t],"readwrite"),c=a.objectStore(t);return new Promise((d,h)=>{a.oncomplete=()=>d(),a.onerror=g=>{console.error("배치 저장 오류:",g.target.error),h(g.target.error)},n.forEach(g=>c.put(g))})}async get(e,t,n){const o=this.getCache(e,t),i=o.get(n);if(i)return i;const d=(await this.getDB(e,t)).transaction([t],"readonly").objectStore(t);return new Promise((h,g)=>{const m=d.get(n);m.onsuccess=()=>{const p=m.result;p&&o.put(n,p),h(p||null)},m.onerror=p=>{console.error("데이터 조회 오류:",p.target.error),g(p.target.error)}})}async getByIndex(e,t,n,o){const d=(await this.getDB(e,t)).transaction([t],"readonly").objectStore(t).index(n);return new Promise((h,g)=>{const m=d.getAll(o);m.onsuccess=()=>{const p=m.result,v=this.getCache(e,t);p.forEach(w=>{w&&w.id&&v.put(w.id,w)}),h(p)},m.onerror=p=>{console.error("인덱스 조회 오류:",p.target.error),g(p.target.error)}})}async delete(e,t,n){this.getCache(e,t).delete(n);const c=(await this.getDB(e,t)).transaction([t],"readwrite").objectStore(t);return new Promise((d,h)=>{const g=c.delete(n);g.onsuccess=()=>d(),g.onerror=m=>{console.error("데이터 삭제 오류:",m.target.error),h(m.target.error)}})}async batchDelete(e,t,n){if(n.length===0)return;const o=this.getCache(e,t);n.forEach(d=>o.delete(d));const a=(await this.getDB(e,t)).transaction([t],"readwrite"),c=a.objectStore(t);return new Promise((d,h)=>{a.oncomplete=()=>d(),a.onerror=g=>{console.error("배치 삭제 오류:",g.target.error),h(g.target.error)},n.forEach(g=>c.delete(g))})}async getAll(e,t){const i=(await this.getDB(e,t)).transaction([t],"readonly").objectStore(t);return new Promise((a,c)=>{const d=i.getAll();d.onsuccess=()=>{const h=d.result,g={},m=this.getCache(e,t);h.forEach(p=>{p.id&&(g[p.id]=p,m.put(p.id,p))}),a(g)},d.onerror=h=>{console.error("데이터 전체 조회 오류:",h.target.error),c(h.target.error)}})}async clear(e,t){this.getCache(e,t).clear();const a=(await this.getDB(e,t)).transaction([t],"readwrite").objectStore(t);return new Promise((c,d)=>{const h=a.clear();h.onsuccess=()=>c(),h.onerror=g=>{console.error("데이터 초기화 오류:",g.target.error),d(g.target.error)}})}getCached(e,t,n){return this.getCache(e,t).get(n)||null}clearCached(e,t){this.getCache(e,t).clear()}setCacheSize(e,t,n){const o=`${e}_${t}`,a=this.getCache(e,t).entries();this.caches[o]=new oy(n);for(const[c,d]of a)this.caches[o].get(c)===void 0&&c!==void 0&&this.caches[o].put(c,d)}};de(Fu,"instance");let w1=Fu;const na=w1.getInstance(),sa={save:(r,e,t)=>na.save(r,e,t),get:(r,e,t)=>na.get(r,e,t),delete:(r,e,t)=>na.delete(r,e,t),getAll:(r,e)=>na.getAll(r,e),clear:(r,e)=>na.clear(r,e),batchSave:(r,e,t)=>na.batchSave(r,e,t),batchDelete:(r,e,t)=>na.batchDelete(r,e,t),getByIndex:(r,e,t,n)=>na.getByIndex(r,e,t,n),getCached:(r,e,t)=>na.getCached(r,e,t),clearCached:(r,e)=>na.clearCached(r,e),setCacheSize:(r,e,t)=>na.setCacheSize(r,e,t)};function qw(r,e,t={}){const{dataFieldName:n="data"}=t,[o,i]=C.useState(!1),[a,c]=C.useState(null),d=C.useRef(new Map);C.useEffect(()=>{const j=d.current;return()=>{j.forEach(G=>G.abort()),j.clear()}},[]);const h=C.useCallback(j=>{const G=d.current,ge=G.get(j);ge&&ge.abort();const P=new AbortController;return G.set(j,P),P},[]),g=C.useCallback(j=>{d.current.delete(j)},[]),m=C.useCallback(async(j,G)=>{try{i(!0),c(null),h(j);const ge=await G();return g(j),ge}catch(ge){return ge instanceof Error&&ge.name==="AbortError"||c(ge instanceof Error?ge:new Error(String(ge))),null}finally{i(!1)}},[h,g]),p=C.useCallback(async(j,G)=>j?await m(`save_${j}`,async()=>(await sa.save(r,e,{id:j,[n]:G,updatedAt:new Date().toISOString()}),!0))===!0:!1,[r,e,n,m]),v=C.useCallback(async j=>j.length?await m(`batch_save_${Date.now()}`,async()=>{const G=j.map(ge=>({id:ge.id,[n]:ge.data,updatedAt:new Date().toISOString()}));return await sa.batchSave(r,e,G),!0})===!0:!1,[r,e,n,m]),w=C.useCallback(async j=>j?await m(`get_${j}`,async()=>{const G=await sa.get(r,e,j);return(G==null?void 0:G[n])||null}):null,[r,e,n,m]),T=C.useCallback(j=>{if(!j)return null;const G=sa.getCached(r,e,j);return(G==null?void 0:G[n])||null},[r,e,n]),_=C.useCallback(async j=>j?await m(`delete_${j}`,async()=>(await sa.delete(r,e,j),!0))===!0:!1,[r,e,m]),A=C.useCallback(async j=>j.length?await m(`batch_delete_${Date.now()}`,async()=>(await sa.batchDelete(r,e,j),!0))===!0:!1,[r,e,m]),R=C.useCallback(async()=>await m(`get_all_${Date.now()}`,async()=>{const j=await sa.getAll(r,e);return Object.entries(j).reduce((G,[ge,P])=>(G[ge]=P[n],G),{})})||{},[r,e,n,m]),D=C.useCallback(async()=>await m(`clear_all_${Date.now()}`,async()=>(await sa.clear(r,e),!0))===!0,[r,e,m]),I=C.useCallback(j=>{const G=d.current.get(j);G&&(G.abort(),d.current.delete(j))},[]),F=C.useCallback(()=>{new Map(d.current).forEach(G=>G.abort()),d.current.clear()},[]),B=C.useCallback(j=>{sa.setCacheSize(r,e,j)},[r,e]),H=C.useCallback(()=>{sa.clearCached(r,e)},[r,e]);return{save:p,get:w,delete:_,getAll:R,clearAll:D,batchSave:v,batchDelete:A,getCached:T,setCacheSize:B,clearCache:H,cancelOperation:I,cancelAllOperations:F,isLoading:o,error:a}}const s5="LayoutDB",a5="layouts";function Ww(){const r=qw(s5,a5,{dataFieldName:"lengths"}),[e,t]=C.useState({}),n=C.useRef({}),o=async(g,m)=>await r.save(g,m),i=async g=>await r.get(g),a=g=>r.getCached(g),c=g=>{const m=a(g);return m?{data:m,isLoaded:!0}:n.current[g]!==void 0?{data:n.current[g],isLoaded:!!e[g]}:(e[g]||(n.current[g]=null,i(g).then(p=>{n.current[g]=p,t(v=>({...v,[g]:!0}))})),{data:null,isLoaded:!1})},d=async g=>(t(m=>{const p={...m};return delete p[g],p}),n.current[g]!==void 0&&delete n.current[g],await r.delete(g)),h=C.useCallback(()=>{t({}),n.current={}},[]);return{save:o,get:i,getCached:a,getSync:c,deleteItem:d,resetSyncState:h,isLoading:r.isLoading,error:r.error}}const l5="_ARowFrame_1vo43_1",c5="_AColFrame_1vo43_7",u5="_AOverflowFrame_1vo43_13",d5="_ADivideFrame_1vo43_22",f5="_Row_1vo43_30",h5="_Col_1vo43_33",p5="_FadeIn_1vo43_36",g5="_NoTransition_1vo43_39",m5="_ChildFrame_1vo43_43",v5="_Divider_1vo43_61",y5="_IsMoving_1vo43_69",b5="_NoDraggable_1vo43_69",x5="_DividerInner_1vo43_72",w5="_IsClicked_1vo43_97",C5="_RemoteButton_1vo43_132",S5="_isExpanded_1vo43_139",uo={ARowFrame:l5,AColFrame:c5,AOverflowFrame:u5,ADivideFrame:d5,Row:f5,Col:h5,FadeIn:p5,NoTransition:g5,ChildFrame:m5,Divider:v5,IsMoving:y5,NoDraggable:b5,DividerInner:x5,IsClicked:w5,RemoteButton:C5,isExpanded:S5},On=r=>S.jsx(Jr,{...r,className:Ye.clsx(uo.ARowFrame,r.className),children:r.children}),Vw=r=>S.jsx("div",{...r,className:Ye.clsx(uo.AColFrame,r.className),children:r.children}),tl=r=>{const{tooltip:e,children:t,abaseRef:n,isDisabled:o,className:i,noOverflowTooltip:a,...c}=r,d=C.useRef(null),h=C.useMemo(()=>n??d,[n]),[g,m]=C.useState(!1),p=C.useCallback(()=>m(!0),[]),v=C.useCallback(()=>m(!1),[]);C.useEffect(()=>{const T=h.current;if(T)return T.addEventListener("mouseenter",p),T.addEventListener("mouseleave",v),()=>{T.removeEventListener("mouseenter",p),T.removeEventListener("mouseleave",v)}},[h,p,v]);const w=C.useMemo(()=>o?"":a||!g||!h.current?e:h.current.scrollWidth>h.current.clientWidth?t:e,[h,o,t,e,a,g]);return S.jsx(Jr,{...c,children:t,abaseRef:h,className:Ye.clsx(uo.AOverflowFrame,i),isDisabled:o,tooltip:w})},Gw=r=>{const{value:e,map:t}=r;return t[e]===void 0?t.fallback:S.jsx(C.Suspense,{children:t[e]})},Yw=C.memo(r=>{const{pk:e,direction:t="Row",lefts:n,minLength:o=40,children:i,childStyle:a,childClassName:c,dividerStyle:d,dividerClassName:h,dividerPadding:g,dividerInnerClassName:m,dividerInnerStyle:p,showRemote:v,ShowRemoteRenderer:w=_5,noDividerDraggable:T,resources:_,...A}=r,R=C.useMemo(()=>({...wr.ADivideFrame,..._}),[_]),D=C.useRef(null),I=C.useRef(!1),F=C.useRef(!0),B=C.useRef(n),[H,j]=C.useState(),[G,ge]=C.useState(n),[P,q]=C.useState("FadeOut"),[V,Q]=C.useState(!1),{save:ie,getSync:se,deleteItem:ae}=Ww(),le=C.useCallback(()=>{F.current&&requestAnimationFrame(()=>{F.current=!1,q("FadeIn")})},[]),fe=C.useMemo(()=>{let we;return Array.isArray(i)?we=i:we=[i],we.filter(Boolean)},[i]),ee=C.useMemo(()=>e&&!v,[e,v]),ne=C.useCallback(()=>{if(!ee){le();return}try{const we=String(e),{data:_e,isLoaded:Ae}=se(we);_e?(ge(_e),Ae&&le()):Ae?(ge(n),ie(String(e),n),le()):ge(n)}catch{ge(n),le()}},[ee,le,e,se,n,ie]);C.useEffect(()=>{if(ee){ne();const we=String(e),_e=()=>{const{isLoaded:Ae}=se(we);Ae?le():requestAnimationFrame(_e)};_e()}else le()},[ee,ne,le,e,se]),C.useEffect(()=>{B.current!==n&&(B.current=n,I.current||(ge(n),ee&&ie(String(e),n)),I.current=!1)},[ee,n,e,ie]);const ce=C.useMemo(()=>{const we=g??0;return typeof o=="number"?Array(fe.length).fill(o+we):o.map(_e=>_e+we)},[o,fe.length,g]),xe=C.useMemo(()=>(H==null?void 0:H.lefts)||G,[H,G]),Me=C.useRef({x:0,y:0}),oe=C.useCallback((we,_e,Ae)=>{const Ie=xe[we],je=we===0?0:xe[we-1],it=Ie-je,Ue={...a,...A5(t,it,_e)};return g!==void 0&&(t==="Row"?(Ae||(Ue.paddingLeft=g),_e||(Ue.paddingRight=g)):(Ae||(Ue.paddingTop=g),_e||(Ue.paddingBottom=g))),Ue},[xe,a,t,g]),Se=C.useCallback(()=>{if(!(!v||t!=="Row")){if(V)ge(n),I.current=!1;else{const we=fe.length;if(we<=1)return;const _e=[],Ae=[];for(let je=0;je<we;je++)typeof o=="number"?Ae.push(o):Ae.push(o[je]||o[0]);let Ie=0;for(let je=0;je<we-1;je++)Ie+=Ae[je],_e.push(Ie);ge(_e),I.current=!0}Q(we=>!we),F.current=!1}},[v,t,V,fe.length,n,o]),Le=C.useCallback((we,_e)=>{if(_e)return Ae=>{if(!D.current)return;F.current=!1;const Ie=D.current;Me.current={x:Ae.clientX,y:Ae.clientY},j({idx:we,lefts:[...G]});let je=[...G];const it=tt=>{const lt=Ie.getBoundingClientRect(),bt=t==="Row"?lt.left:lt.top,Mt=t==="Row"?lt.width:lt.height;je=T5(G,t,we,tt,bt,Mt,ce),j({idx:we,lefts:je})},Ue=()=>{j(void 0),ge(je),I.current=!0,ee&&ie(String(e),je),window.removeEventListener("mousemove",it),window.removeEventListener("mouseup",Ue)};window.addEventListener("mousemove",it),window.addEventListener("mouseup",Ue)}},[G,t,ce,ee,e,ie]),We=C.useCallback(we=>{if(we)return()=>{ge(n),I.current=!1,j(void 0),ee&&ae(String(e))}},[n,ee,e,ae]),Ve=C.useMemo(()=>fe.map((we,_e)=>{const Ae=v&&(V||!V&&_e===fe.length-2);return!(T||Ae)}),[fe,v,V,T]);return S.jsx("div",{...A,ref:D,className:Ye.clsx(uo.ADivideFrame,r.className,uo[t],uo[P],F.current&&uo.NoTransition),children:fe.map((we,_e)=>{const Ae=_e===0,Ie=_e===fe.length-1,je=oe(_e,Ie,Ae),it=xe[_e],Ue=Ve[_e],tt=Le(_e,Ue),lt=We(Ue);return S.jsxs(C.Fragment,{children:[S.jsxs("div",{style:je,className:Ye.clsx(uo.ChildFrame,c,H&&uo.IsMoving,F.current&&uo.NoTransition,uo[t]),children:[Ie&&v&&t==="Row"&&S.jsx(w,{handleToggleExpand:Se,isExpanded:V,resources:R}),we]}),!Ie&&S.jsx("div",{"data-nodraggable":Ue?void 0:"true",className:Ye.clsx(uo.Divider,uo[t],"NoSelect",H&&uo.IsMoving,(H==null?void 0:H.idx)===_e&&uo.IsClicked,F.current&&uo.NoTransition,!Ue&&uo.NoDraggable,h),style:{...d,...E5(t,it)},onDoubleClick:lt,onMouseDown:tt,children:S.jsx("div",{className:Ye.clsx(uo.DividerInner,m),style:{...p}})})]},_e)})})});Yw.displayName="ADivideFrame";const _5=r=>{const{handleToggleExpand:e,isExpanded:t,resources:n}=r;return S.jsx(_o,{className:Ye.clsx(uo.RemoteButton,t&&uo.isExpanded),icon:"DividerExpand",iconSize:"md",tabIndex:0,tooltip:t?n.Collapse:n.Expand,type:"Raw",onClick:e})};function A5(r,e,t){return t?{}:r==="Col"?{height:e,minHeight:e,maxHeight:e}:{maxWidth:e,width:e,minWidth:e}}function E5(r,e){return r==="Col"?{top:e}:{left:e}}function T5(r,e,t,n,o,i,a){const c=[...r];let d=e==="Row"?n.clientX-o-r[t]:n.clientY-o-r[t];const h=[],g=[];let m=0;for(let v=0;v<=a.length;v++)h[v]=m,v<a.length&&(m+=a[v]);let p=0;for(let v=a.length-2;v>=0;v--)p+=a[v],g[v]=p;if(g[a.length-1]=0,d<0){let v=c[t]+d;if(v<=h[t+1])for(let w=0;w<=t;w++)c[w]=h[w+1];else if(c[t]=v,t>0)for(let w=t-1;w>=0&&v-c[w]<a[w];w--)c[w]=v-a[t],v=c[w]}else if(d>0){let v=c[t]+d;const w=t===a.length-2?a[a.length-1]:0;if(v>=i-g[t]-w)for(let T=t;T<r.length;T++)c[T]=i-g[T]-(T===r.length-1?0:w);else if(c[t]=v,t<r.length-1)for(let T=t+1;T<r.length&&c[T]-v<a[T];T++)c[T]=v+a[T],v=c[T]}return c}const Zu=()=>S.jsx("div",{style:{display:"flex",flexGrow:1}}),R5="_ASpace_1okqf_1",k5={ASpace:R5},Nn=r=>{const{h:e,w:t,...n}=r;return S.jsx("div",{...n,className:Ye.clsx(k5.ASpace,n.className),style:{height:e,minHeight:e,maxHeight:e,width:t,minWidth:t,maxWidth:t,...n.style}})},I5="_AChipsContainer_1ag9v_1",M5="_AChip_1ag9v_1",L5="_Clickable_1ag9v_21",D5="_AChipDelete_1ag9v_26",O5="_IsHover_1ag9v_40",N5="_AChipDeleteIcon_1ag9v_45",Yd={AChipsContainer:I5,AChip:M5,Clickable:L5,AChipDelete:D5,IsHover:O5,AChipDeleteIcon:N5},P5=r=>{const{useLabels:e,alignItems:t="flex-start",ChipStyle:n,ChipClassName:o,ChipOnDelete:i,ChipOnClick:a,ChipIcon:c,className:d,style:h,ButtonRenderer:g=Zw,gap:m=8,...p}=r,[v,w]=wn(e,[]),T=C.useCallback(A=>{!w||!i||(i({label:A}),w(v.filter(R=>R!==A)))},[w,i,v]),_=C.useCallback(A=>{const R={label:A};return{label:A,useLabel:[A,()=>{}],style:Pr.getContent(n,R),className:Pr.getContent(o,R),icon:Pr.getContent(c,R),onDelete:()=>T(A),onClick:a?()=>a({label:A}):void 0}},[o,c,a,n,T]);return S.jsx(Jr,{...p,className:Ye.clsx(Yd.AChipsContainer,d),style:{...h,alignItems:t,gap:m},children:v.map((A,R)=>S.jsx(cv,{..._(A),ButtonRenderer:g},R))})},cv=r=>{const{label:e,useLabel:t,icon:n,className:o,onDelete:i,onClick:a,ButtonRenderer:c=Zw,width:d="fit-content",style:h,...g}=r;return e===void 0?S.jsx(S.Fragment,{}):S.jsxs(Jr,{...g,className:Ye.clsx("NoSelect",Yd.AChip,a&&Yd.Clickable,a&&"IsClickable",o),style:{...h,width:d},onClick:a,children:[S.jsx(tl,{children:e}),c({...r})]})},Zw=r=>{const{label:e,icon:t,onDelete:n,useLabel:o}=r,[,i]=wn(o,e),[a,c]=C.useState(!1),d=C.useCallback(m=>{n&&(m.stopPropagation(),i==null||i(void 0),n(r))},[n,r,i]),h=()=>{c(!0)},g=()=>{c(!1)};return S.jsx(S.Fragment,{children:n&&S.jsxs(S.Fragment,{children:[S.jsx(Zu,{}),S.jsx(Nn,{w:24}),S.jsx(Jr,{className:Ye.clsx(Yd.AChipDelete,"IsClickable",a&&Yd.IsHover)}),S.jsx(_o,{className:Yd.AChipDeleteIcon,icon:t||S.jsx(gn,{height:14,icon:"Close",stroke:"currentColor",width:14}),type:"Raw",onClick:d,onMouseEnter:h,onMouseLeave:g})]})})},Hu=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]}`},B5=r=>{let e="";r<0&&(e+="-",r=-r);const t=Math.floor(r/3600),n=Math.floor(r%3600/60),o=r%60;return t>0&&(e+=t.toString().padStart(2,"0")+":"),e+=n.toString().padStart(2,"0")+":",e+=o.toString().padStart(2,"0"),e},F5=/[a-zA-Z0-9]/,j5=/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9]{2,}$/,H5=/^[a-zA-Z0-9._-]+$/,z5=/^[0-9a-fA-F-]+$/i,$5=/[가-힣ㄱ-ㅎㅏ-ㅣ]/,U5=/^\S*$/,q5=/^([^ㄱ-ㅎㅏ-ㅣ])*$/i,W5=/[!@#$%^&*+=;:?/<>\\[\](){}~\-_.(),]/,V5=/^(?=.*[A-Za-z])(?=.*\d)(?=.*[\W_])[A-Za-z\d\W_]{8,}$/,G5=/^[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}$/,Y5={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)},Z5=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){const e=Math.random()*16|0;return(r=="x"?e:e&3|8).toString(16)}),uv={secondToTime:B5,validate:Y5,FileSizeTrans:Hu,uuid:Z5},K5=r=>{const{maxTicks:e=300,interval:t=1e3,onFinish:n,noStartOnRender:o,actionRef:i,...a}=r,[{wrapId:c,wrapProps:d,labelProps:h,...g},m]=Yu(a),[p,v]=C.useState(0),[w,T]=C.useState(!o);C.useEffect(()=>{if(!w||m.isDisabled||m.isLoading)return;const F=setInterval(()=>v(B=>B+1),t);return()=>clearInterval(F)},[t,w,m.isDisabled,m.isLoading]);const _=C.useCallback(()=>{n==null||n(),T(!1)},[n]);C.useEffect(()=>{p>=e&&!m.isDisabled&&!m.isLoading&&_()},[p,e,_,m.isDisabled,m.isLoading]);const A=C.useCallback(()=>{m.isDisabled||T(!0)},[m.isDisabled]),R=C.useCallback(()=>{m.isDisabled||T(!1)},[m.isDisabled]),D=C.useCallback(()=>{m.isDisabled||(T(!1),v(0))},[m.isDisabled]);C.useEffect(()=>{i&&(i.current={start:A,stop:R,reset:D,setTicks:v})},[i,A,R,D]);const I=e-p;return S.jsx(Yc,{wrapId:c,wrapProps:d,labelProps:h,...g,children:S.jsx(Jr,{...m,children:uv.secondToTime(I>0?I:0)})})};function ma(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 X5(r){try{if(!r)return;const e=new Date(r);return isNaN(e.getTime())?void 0:e}catch{return}}function J5(r){return new Date(r.getFullYear(),r.getMonth(),r.getDate(),0,0,0,0)}function Q5(r){return new Date(r.getFullYear(),r.getMonth(),r.getDate(),23,59,59,999)}function iy(r,e){return ma(r)===ma(e)}function Zd(r,e){return ma(r)>ma(e)}function Fp(r,e){return ma(r)>=ma(e)}function jp(r,e){return ma(r)<ma(e)}function Hp(r,e){return ma(r)<=ma(e)}function sy(r,e,t){return Zd(r,t)?Zd(e,t)&&jp(e,r):Zd(e,r)&&jp(e,t)}function ay(r,e,t){return Zd(r,t)?Fp(e,t)&&Hp(e,r):Fp(e,r)&&Hp(e,t)}const tr={toString:ma,toDate:X5,makeSDate:J5,makeEDate:Q5,"===":iy,">":Zd,">=":Fp,"<":jp,"<=":Hp,"s<d<e|e<d<s":sy,"s<=d<=e|e<=d<=s":ay,eq:iy,g:Zd,ge:Fp,l:jp,le:Hp,b:sy,be:ay},e6="_InputContainer_44opg_7",t6="_AInput_44opg_21",r6="_LeftAddon_44opg_43",n6="_RightAddon_44opg_49",o6="_ErrorHelperText_44opg_55",i6="_Primary_44opg_59",s6="_UnAvailable_44opg_64",a6="_Secondary_44opg_75",l6="_ReadOnly_44opg_90",yi={InputContainer:e6,AInput:t6,LeftAddon:r6,RightAddon:n6,ErrorHelperText:o6,Primary:i6,UnAvailable:s6,Secondary:a6,ReadOnly:l6,Error:"_Error_44opg_55"},c6=["Primary","Secondary","ReadOnly","Error"],Zc=r=>{const{onEnterPress:e,type:t="Primary",inputRef:n,useValue:o,isReadonly:i,placeholder:a,minLength:c,maxLength:d,tabIndex:h,autoFocus:g,isPassword:m,autoComplete:p="off",inputProps:v,LeftAddon:w,RightAddon:T,dataList:_=[],id:A=(v==null?void 0:v.id)??uv.uuid(),...R}=r,[{wrapId:D,wrapProps:I,labelProps:F,...B},H]=Yu(R),j=C.useMemo(()=>u6(B.errorMessage)?"Error":t,[B.errorMessage,t]),G=C.useMemo(()=>j==="ReadOnly"?!0:i,[j,i]),ge=C.useMemo(()=>H.isDisabled||H.isLoading,[H.isDisabled,H.isLoading]),[P,q]=wn(o,""),V=C.useCallback(ie=>{var se;ge||((se=v==null?void 0:v.onKeyDown)==null||se.call(v,ie),["Escape","Enter","ArrowUp","ArrowDown"].includes(ie.key)||ie.stopPropagation(),ie.key==="Enter"&&e&&e(ie.currentTarget.value))},[ge,v,e]),Q=C.useCallback(ie=>{var se;ge||c&&ie.target.value.length<c||(q==null||q(ie.target.value),(se=v==null?void 0:v.onChange)==null||se.call(v,ie))},[ge,c,q,v]);return m?S.jsx(Yc,{wrapId:D,wrapProps:I,labelProps:F,...B,children:S.jsx("form",{onSubmit:ie=>ie.preventDefault(),children:S.jsxs(Jr,{...H,className:Ye.clsx(yi.InputContainer,yi[j],ge&&yi.UnAvailable,H.className),children:[w&&S.jsx("div",{className:yi.LeftAddon,children:w}),S.jsx("input",{...v,ref:n,autoComplete:p,autoFocus:g,className:Ye.clsx(yi.AInput,j==="Error"&&yi.InputError,v==null?void 0:v.className),id:A,list:`${A}-datalist`,maxLength:d,placeholder:a,readOnly:G,tabIndex:H.isDisabled||H.isLoading?-1:h,type:"password",value:P,onChange:Q,onKeyDown:V}),_.length>0&&S.jsx("datalist",{id:`${A}-datalist`,children:_.map((ie,se)=>S.jsx("option",{value:ie},se))}),T&&S.jsx("div",{className:Ye.clsx(yi.RightAddon,"NoSelect"),children:T})]})})}):S.jsx(Yc,{wrapId:D,wrapProps:I,labelProps:F,...B,children:S.jsxs(Jr,{...H,className:Ye.clsx(yi.InputContainer,yi[j],ge&&yi.UnAvailable,H.className),children:[w&&S.jsx("div",{className:yi.LeftAddon,children:w}),S.jsx("input",{...v,ref:n,autoComplete:p,autoFocus:g,className:Ye.clsx(yi.AInput,j==="Error"&&yi.InputError,v==null?void 0:v.className),id:A,list:`${A}-datalist`,maxLength:d,placeholder:a,readOnly:G,tabIndex:H.isDisabled||H.isLoading?-1:h,value:P,onChange:Q,onKeyDown:V}),_.length>0&&S.jsx("datalist",{id:`${A}-datalist`,children:_.map((ie,se)=>S.jsx("option",{value:ie},se))}),T&&S.jsx("div",{className:yi.RightAddon,children:T})]})})};function u6(r){return Array.isArray(r)?r.filter(Boolean).length>0:!!r}const d6="_ASelect_vvzf4_1",f6="_Arrow_vvzf4_14",h6="_Primary_vvzf4_23",p6="_UnAvailable_vvzf4_34",g6="_IsOpen_vvzf4_34",m6="_Secondary_vvzf4_41",v6="_Placeholder_vvzf4_57",y6="_ValuesContainer_vvzf4_61",b6="_Values_vvzf4_61",x6="_Options_vvzf4_80",w6="_Option_vvzf4_80",C6="_Selected_vvzf4_122",S6="_CheckBox_vvzf4_129",os={ASelect:d6,Arrow:f6,Primary:h6,UnAvailable:p6,IsOpen:g6,Secondary:m6,Placeholder:v6,ValuesContainer:y6,Values:b6,Options:x6,Option:w6,Selected:C6,CheckBox:S6},_6=["Primary","Secondary"],Kc=r=>{const{options:e,useSelect:t,type:n="Primary",placeholder:o=wr.ASelect["Select(Placeholder)"],onClose:i,OptionRenderer:a=E6,SelectedRenderer:c=T6,minShowRows:d=2,maxShowRows:h=6,arrowProps:g,isAutoWidth:m=!1,...p}=r,v=C.useRef(null),w=C.useMemo(()=>p.abaseRef??v,[p.abaseRef]),T=C.useRef(null),[_,A]=wn(t,e[0]),[R,D]=C.useState(void 0),[I,F]=C.useState(!1),[B,H]=C.useState(!1),j=C.useRef(e),G=C.useRef(null),ge=C.useCallback(()=>H(!1),[]),P=C.useCallback(()=>{p.isDisabled||p.isLoading||e.length<1||(H(!0),setTimeout(()=>F(!0),0),setTimeout(()=>Kg(T,w,e,d,h),0))},[w,p.isDisabled,p.isLoading,e,d,h]),q=C.useCallback(()=>{F(!1),H(!0),i==null||i()},[i]),V=C.useCallback(ee=>{var ne;I?q():P(),setTimeout(()=>Kg(T,w,e,d,h),0),(ne=p.onClick)==null||ne.call(p,ee)},[w,p,e,I,q,P,d,h]),Q=C.useCallback(()=>{Kg(T,w,e,d,h)},[w,e,d,h]);C.useEffect(()=>{if(!I||!w.current)return;const ee=w.current;let ne=ee.parentElement;for(;ne;)ne.addEventListener("scroll",Q),ne=ne.parentElement;return()=>{let ce=ee.parentElement;for(;ce;)ce.removeEventListener("scroll",Q),ce=ce.parentElement}},[w,I,Q]),C.useEffect(()=>{if(I)return window.addEventListener("resize",Q),()=>window.removeEventListener("resize",Q)},[I,Q]);const ie=C.useCallback(ee=>{ee[0].intersectionRatio===0&&q()},[q]);C.useEffect(()=>{if(!I)return;const ee=new IntersectionObserver(ie,{threshold:0});return w.current&&ee.observe(w.current),()=>ee.disconnect()},[w,I,ie]);const se=C.useCallback(ee=>{const ne=ee.target,ce=w.current,xe=T.current;!ce||!ne||!xe||!ce.contains(ne)&&!xe.contains(ne)&&q()},[w,q]),ae=C.useMemo(()=>p.isDisabled||p.isLoading||e.length<1,[p.isDisabled,p.isLoading,e]);C.useEffect(()=>{if(I)return setTimeout(()=>document.addEventListener("mousedown",se),0),()=>document.removeEventListener("mousedown",se)},[I,se]);const le=C.useCallback((ee,ne)=>{ee.stopPropagation(),ee.preventDefault(),A==null||A(ne),q()},[A,q]),fe=C.useCallback(()=>{if(!m||!w.current)return;const ee=ju.calculateOptimalSelectWidth({elementRef:w,options:e,selectedOption:_,placeholder:o,optionRenderer:ne=>ne===null?null:a({option:ne}),type:n,isMulti:!1});D(ee)},[m,w,e,_,o,a,n]);return C.useEffect(()=>m?((e!==j.current||R===void 0)&&(G.current!==null&&cancelAnimationFrame(G.current),G.current=requestAnimationFrame(()=>{fe(),G.current=null,j.current=[...e]})),()=>{G.current!==null&&(cancelAnimationFrame(G.current),G.current=null)}):void 0,[m,e,fe,R]),C.useEffect(()=>()=>{typeof ju.clearCache=="function"&&ju.clearCache()},[]),S.jsxs(S.Fragment,{children:[S.jsxs(Jr,{...p,abaseRef:w,isDisabled:p.isDisabled||e.length<1,className:Ye.clsx(p.className,os.ASelect,"NoSelect",I&&os.IsOpen,ae&&os.UnAvailable,os[n]),style:{padding:n==="Secondary"?"8px 8px 8px 0":0,width:R?`${R}px`:m?"100px":void 0,...p.style},onClick:V,children:[S.jsx("div",{className:os.ValuesContainer,children:S.jsx("div",{className:Ye.clsx(os.Values,(_==null||_==="")&&os.Placeholder),children:S.jsx(c,{OptionRenderer:a,placeholder:o,selectedOption:_})})}),S.jsx("div",{...g,className:Ye.clsx(os.Arrow,g==null?void 0:g.className),children:S.jsx(gn,{icon:"TriangleDown",style:{transform:I?"rotate(180deg)":"",transition:"var(--Transition)"}})})]}),e.length>0&&(I||B)&&Ls.createPortal(S.jsx("div",{ref:T,className:Ye.clsx(os.Options,os[n]),style:{opacity:+I,visibility:I?"visible":"hidden",pointerEvents:I?void 0:"none",borderRadius:w.current?window.getComputedStyle(w.current).borderRadius:void 0,width:R?`${R}px`:m?"100px":void 0},onTransitionEnd:ge,children:e.map((ee,ne)=>{const ce=_===ee,xe=w.current?window.getComputedStyle(w.current):void 0;return ee===null?null:S.jsx("div",{className:Ye.clsx(os.Option,ce&&os.Selected,"NoSelect",os[n]),style:{height:xe==null?void 0:xe.height},onClick:Me=>le(Me,ee),children:S.jsx(a,{option:ee})},ne)})}),document.body)]})};function Kg(r,e,t,n,o){if(!e.current||!r.current||!t||t.length<1)return;const i=e.current.getBoundingClientRect(),a=A6(i,t.length,n,o),c=window.getComputedStyle(e.current);r.current.style.top=`calc(${a.top??0}px - ${c.borderTopWidth})`,r.current.style.bottom=a.bottom?a.bottom+"px":"",r.current.style.left=a.left+"px",r.current.style.width||(r.current.style.minWidth=a.minWidth+"px"),r.current.style.minHeight=a.minHeight+"px",r.current.style.maxHeight=a.maxHeight+"px",r.current.style.visibility="visible"}function A6(r,e,t,n){const o={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<o.height&&(window.innerHeight-r.bottom-10<o.minHeight?(o.top=r.top-e*r.height,o.top<0&&(o.top=10,o.minHeight=r.top-10,o.height=r.top-10)):o.height=window.innerHeight-r.bottom-10),o}const E6=r=>{const{option:e}=r;return ar.isReactNode(e)?e:null},T6=r=>{const{selectedOption:e,OptionRenderer:t,placeholder:n}=r;return e==null||e===""?n:S.jsx(t,{option:e})},R6="_Anchor_27s50_1",k6="_Primary_27s50_18",I6="_Secondary_27s50_21",M6="_Placeholder_27s50_25",L6="_Icon_27s50_30",D6="_ADatePicker_27s50_37",O6="_StringInputWrap_27s50_48",N6="_StringInputContainer_27s50_53",P6="_StringInput_27s50_48",B6="_IsIdx_27s50_68",F6="_CalendarContainer_27s50_72",j6="_Header_27s50_78",H6="_Prev_27s50_82",z6="_Next_27s50_83",$6="_MonthYear_27s50_116",U6="_Select_27s50_121",q6="_Calendar_27s50_72",W6="_Cell_27s50_131",V6="_IsNotCurrentMonth_27s50_143",G6="_IsSelected_27s50_147",Y6="_IsDisabled_27s50_151",Z6="_IsHovered_27s50_154",K6="_Week_27s50_158",X6="_WeekDay_27s50_163",bn={Anchor:R6,Primary:k6,Secondary:I6,Placeholder:M6,Icon:L6,ADatePicker:D6,StringInputWrap:O6,StringInputContainer:N6,StringInput:P6,String:"_String_27s50_48",IsIdx:B6,CalendarContainer:F6,Header:j6,Prev:H6,Next:z6,MonthYear:$6,Select:U6,Calendar:q6,Cell:W6,IsNotCurrentMonth:V6,IsSelected:G6,IsDisabled:Y6,IsHovered:Z6,Week:K6,WeekDay:X6},J6="_Anchor_1x8q1_1",Q6="_Primary_1x8q1_18",eR="_Secondary_1x8q1_22",tR="_Placeholder_1x8q1_26",rR="_Icon_1x8q1_31",nR="_ADateRangePicker_1x8q1_38",oR="_StringInputWrap_1x8q1_49",iR="_StringInputContainer_1x8q1_53",sR="_StringInput_1x8q1_49",aR="_IsIdx_1x8q1_69",lR="_CalendarContainer_1x8q1_73",cR="_Header_1x8q1_79",uR="_Prev_1x8q1_83",dR="_Next_1x8q1_84",fR="_MonthYear_1x8q1_117",hR="_Select_1x8q1_122",pR="_Calendar_1x8q1_73",gR="_Cell_1x8q1_132",mR="_IsNotCurrentMonth_1x8q1_144",vR="_IsSelected_1x8q1_148",yR="_IsDisabled_1x8q1_152",bR="_IsHovered_1x8q1_155",xR="_Week_1x8q1_159",wR="_WeekDay_1x8q1_164",CR="_ChoiceButton_1x8q1_168",Zr={Anchor:J6,Primary:Q6,Secondary:eR,Placeholder:tR,Icon:rR,ADateRangePicker:nR,StringInputWrap:oR,StringInputContainer:iR,StringInput:sR,String:"_String_1x8q1_49",IsIdx:aR,CalendarContainer:lR,Header:cR,Prev:uR,Next:dR,MonthYear:fR,Select:hR,Calendar:pR,Cell:gR,IsNotCurrentMonth:mR,IsSelected:vR,IsDisabled:yR,IsHovered:bR,Week:xR,WeekDay:wR,ChoiceButton:CR},dv=r=>{const{type:e="Primary",className:t,useDateRange:n,actionRef:o,position:i=gf.SE,minDate:a,maxDate:c,isDisabled:d,isLoading:h,yearsOptionSize:g,noDefaultChoices:m,LeftAddon:p,RightAddon:v,placeholder:w,noClearButton:T,resources:_,onClick:A,...R}=r,D=C.useMemo(()=>({...wr.ADateRangePicker,..._}),[_]),I=C.useMemo(()=>w??D["Select DateRange"],[w,D]),[F,B]=C.useMemo(()=>{let ue,at;if(a&&(ue=tr.makeSDate(a)),c&&(at=tr.makeEDate(c)),ue&&at&&tr["<"](at,ue)){console.warn("ADateRangePicker: maxDate should be greater than minDate. maxDate and minDate are swapped.");const ze=ue;ue=at,at=ze}return[ue,at]},[a,c]),[H,j]=C.useState("sD"),[G,ge]=wn(n,void 0),P=C.useCallback(ue=>{ge&&(ue===void 0?(ge(void 0),Ae(""),it("")):(ge({sDate:tr.makeSDate(ue.sDate),eDate:tr.makeEDate(ue.eDate)}),Ae(tr.toString(ue.sDate)),it(tr.toString(ue.eDate))))},[ge]);C.useEffect(()=>{G&&(Ae(tr.toString(G.sDate)),it(tr.toString(G.eDate)))},[G]);const q=C.useCallback(ue=>{if(!ge)return;let at=G?G.sDate:tr.makeSDate(ue);ue=tr.makeEDate(ue),ge({sDate:at,eDate:ue}),Ae(tr.toString(at)),it(tr.toString(ue))},[ge,G]),[V,Q]=C.useState(),[ie,se]=C.useState(),ae=C.useCallback(ue=>{H==="sD"&&P({sDate:ue,eDate:ue}),Q(ue),se(ue)},[H,P,Q]),le=C.useCallback(ue=>{H==="sD"?V&&(tr.eq(V,ue)?j("eD"):tr[">"](ue,V)?(q(ue),Q(void 0)):(P({sDate:ue,eDate:V}),Q(void 0))):(G?tr["<"](ue,G.sDate)?P({sDate:ue,eDate:G.eDate}):q(ue):P({sDate:ue,eDate:ue}),Q(void 0),j("sD"))},[q,V,j,H,P,G,Q]),fe=C.useCallback(ue=>{V&&se(ue)},[V]),ee=C.useCallback(()=>{se(void 0),Q(void 0),j("sD")},[j,Q]),[ne,ce]=C.useState(ly(G,F,B)),xe=C.useMemo(()=>fv(ne.year,F,B,g),[ne.year,F,B,g]),Me=C.useMemo(()=>gh(ne.year,F,B),[F,B,ne.year]),oe=C.useCallback(ue=>{if(!xe.includes(ue))return;const at={month:ne.month,year:ue},ze=gh(at.year,F,B);ze.length<1||(ze.includes(at.month)||(at.month<ze[0]?at.month=ze[0]:at.month>ze[ze.length-1]&&(at.month=ze[ze.length-1])),ce(at))},[F,B,xe,ne.month]),Se=C.useCallback(ue=>{Me.includes(ue)&&ce({month:ue,year:ne.year})},[Me,ne.year]),Le=C.useMemo(()=>B?new Date(ne.year,ne.month+1,1)>B:!1,[ne,B]),We=C.useCallback(()=>{if(Le||Me.length<1)return;const ue=ne.month+1;ue>11?ce({month:Me[0],year:ne.year+1}):ce({month:ue,year:ne.year})},[Le,Me,ne]),Ve=C.useMemo(()=>F?new Date(ne.year,ne.month,0)<F:!1,[ne,F]),we=C.useCallback(()=>{if(Ve||Me.length<1)return;const ue=ne.month-1;ue<Me[0]?ce({month:Me[Me.length-1],year:ne.year-1}):ce({month:ue,year:ne.year})},[Ve,Me,ne]),[_e,Ae]=C.useState(G!=null&&G.sDate?tr.toString(G.sDate):""),Ie=C.useCallback(ue=>{if(ue.length>10||(Ae(ue),ue.length<10)||!ge)return;let at=tr.toDate(ue);if(!at)return;F&&at<F&&(at=F),B&&at>B&&(at=B);let ze=G?G.eDate:at;G&&tr[">"](at,ze)&&([at,ze]=cy(at,ze)),P({sDate:at,eDate:ze}),ce({month:at.getMonth(),year:at.getFullYear()})},[ge,P,G,F,B]),[je,it]=C.useState(G!=null&&G.eDate?tr.toString(G.eDate):""),Ue=C.useCallback(ue=>{if(ue.length>10||(it(ue),ue.length<10)||!ge)return;let at=tr.toDate(ue);if(!at)return;F&&at<F&&(at=F),B&&at>B&&(at=B);let ze=G?G.sDate:at;G&&tr[">"](ze,at)&&([ze,at]=cy(ze,at)),P({sDate:ze,eDate:at}),ce({month:at.getMonth(),year:at.getFullYear()})},[ge,P,G,F,B]),tt=C.useCallback(()=>{G&&(Ae(tr.toString(G.sDate)),it(tr.toString(G.eDate)))},[G]),lt=C.useMemo(()=>{const{month:ue,year:at}=ne,ze=new Date(at,ue,1),vt=new Date(at,ue+1,0),_t=[];for(let Ut=0;Ut<ze.getDay();Ut++){const st=new Date(at,ue,0).getDate()-ze.getDay()+Ut+1,ct=new Date(at,ue-1,st),xt=F&&F>ct||B&&B<ct,Nt=G?tr.be(G.sDate,ct,G.eDate):!1,Bt=ie&&G&&tr.be(G.sDate,ct,ie);_t.push({day:st,isSelected:Nt,isHovered:Bt,date:ct,isDisabled:xt,isCurrentMonth:!1})}for(let Ut=1;Ut<=vt.getDate();Ut++){const Ge=new Date(at,ue,Ut),st=F&&F>Ge||B&&B<Ge,ct=G?tr.be(G.sDate,Ge,G.eDate):!1,xt=ie&&G&&tr.be(G.sDate,Ge,ie);_t.push({day:Ut,isSelected:ct,isHovered:xt,date:Ge,isDisabled:st,isCurrentMonth:!0})}for(let Ut=0;Ut<7-vt.getDay()-1;Ut++){const Ge=new Date(at,ue+1,Ut+1),st=F&&F>Ge||B&&B<Ge,ct=G?tr.be(G.sDate,Ge,G.eDate):!1,xt=ie&&G&&tr.be(G.sDate,Ge,ie);_t.push({day:Ut+1,isSelected:ct,isHovered:xt,date:Ge,isDisabled:st,isCurrentMonth:!1})}const Tt=[];for(let Ut=0;Ut<_t.length/7;Ut++)Tt.push(S.jsx("div",{className:Zr.Week,children:_t.slice(Ut*7,Ut*7+7).map((Ge,st)=>S.jsx(Zo,{isDisabled:Ge.isDisabled,type:"Raw",className:Ye.clsx(Zr.Cell,Ge.isDisabled?Zr.IsDisabled:Ge.isCurrentMonth?Ge.isSelected?Zr.IsSelected:Ge.isHovered&&Zr.IsHovered:Zr.IsNotCurrentMonth),onMouseDown:()=>Ge.isCurrentMonth&&ae(Ge.date),onMouseEnter:()=>Ge.isCurrentMonth&&fe(Ge.date),onMouseUp:()=>Ge.isCurrentMonth&&le(Ge.date),children:Ge.day},st))},Ut));return Tt},[ne,ie,G,F,B,ae,le,fe]),bt=C.useRef(null),Mt=C.useCallback(()=>{bt&&av(bt,Oe,i)},[bt,i]),[Qe,Xe]=C.useState(!1),[ht,ft]=C.useState(!1),Oe=C.useRef(null),Je=C.useCallback(()=>{d||h||(Xe(!0),setTimeout(()=>ft(!0),0),setTimeout(()=>Mt(),0),ce(ly(G,F,B)))},[d,h,G,Mt,F,B]),gt=C.useCallback(()=>{d||h||(Xe(!0),ft(!1))},[d,h]),It=C.useMemo(()=>ht?gt:Je,[ht,Je,gt]),Et=C.useCallback(()=>Xe(!1),[]),Dt=C.useCallback(ue=>{const at=document.getElementById("root"),ze=ue.target,vt=Oe.current,_t=bt.current;!at||!vt||!ze||!_t||!vt.contains(ze)&&at.contains(ze)&&!_t.contains(ze)&>()},[gt]);C.useEffect(()=>{if(ht)return setTimeout(()=>document.addEventListener("mousedown",Dt),0),()=>document.removeEventListener("mousedown",Dt)},[ht,Dt]);const Xt=C.useCallback(()=>{Mt()},[Mt]);C.useEffect(()=>{if(!ht||!(bt!=null&&bt.current))return;const ue=bt.current;let at=ue.parentElement;for(;at;)at.addEventListener("scroll",Xt),at=at.parentElement;return()=>{let ze=ue.parentElement;for(;ze;)ze.removeEventListener("scroll",Xt),ze=ze.parentElement}},[bt,ht,Xt]),C.useEffect(()=>{if(ht)return window.addEventListener("resize",Xt),()=>window.removeEventListener("resize",Xt)},[ht,Xt]);const Wt=C.useCallback(ue=>{ue[0].intersectionRatio===0&>()},[gt]);C.useEffect(()=>{if(!ht)return;const ue=new IntersectionObserver(Wt,{threshold:0});return Oe.current&&ue.observe(Oe.current),()=>ue.disconnect()},[Oe,ht,Wt]),C.useEffect(()=>{o&&(o.current={open:Je,close:gt,toggle:It})},[o,Je,gt,It]),C.useEffect(()=>{if(!G)return;let ue={sDate:G.sDate,eDate:G.eDate};F&&(tr["<"](G.sDate,F)&&(ue.sDate=F),tr["<"](G.eDate,F)&&(ue.eDate=F)),B&&(tr[">"](G.sDate,B)&&(ue.sDate=B),tr[">"](G.eDate,B)&&(ue.eDate=B)),(ue.sDate!==G.sDate||ue.eDate!==G.eDate)&&P(ue)},[F,B,G,P]);const hr=C.useCallback(ue=>{A==null||A(ue),It()},[A,It]),dr=C.useCallback(ue=>{P(void 0),gt(),ue.stopPropagation()},[P,gt]),cr=C.useCallback(()=>G?S.jsx(_o,{icon:"Close",style:{scale:"0.8"},type:"Raw",onClick:dr}):null,[G,dr]),Te=C.useMemo(()=>G?`${tr.toString(G.sDate)} ~ ${tr.toString(G.eDate)}`:S.jsx("span",{className:Zr.Placeholder,children:I}),[G,I]);return S.jsxs(S.Fragment,{children:[S.jsxs(Jr,{...R,abaseRef:bt,className:Ye.clsx(Zr.Anchor,"IsClickable",Zr[e],t),isDisabled:d,isLoading:h,onClick:hr,children:[p,e==="Primary"&&S.jsxs(S.Fragment,{children:[S.jsx(gn,{className:Ye.clsx(Zr.Icon,Zr[e]),icon:"CalendarDay"}),S.jsx(Nn,{w:4})]}),Te,S.jsx(Zu,{}),!T&&S.jsx(cr,{}),e==="Secondary"&&S.jsx(gn,{className:Ye.clsx(Zr.Icon,Zr[e]),icon:"CalendarDay"}),v&&v]}),(ht||Qe)&&Ls.createPortal(S.jsxs("div",{ref:Oe,className:Zr.ADateRangePicker,style:{opacity:+ht,visibility:ht?"visible":"hidden"},onMouseLeave:ee,onTransitionEnd:Et,children:[S.jsxs("div",{className:Zr.StringInputContainer,children:[S.jsxs(On,{children:[S.jsx(Zc,{className:Ye.clsx(Zr.String,H==="sD"&&ie&&Zr.IsIdx),inputProps:{className:Zr.StringInput},maxLength:11,placeholder:"YYYY-MM-DD",useValue:[_e,Ie],wrapProps:{className:Zr.StringInputWrap},onBlur:tt}),S.jsx(Nn,{w:8}),S.jsx(Zc,{className:Ye.clsx(Zr.String,H==="eD"&&ie&&Zr.IsIdx),inputProps:{className:Zr.StringInput},maxLength:11,placeholder:"YYYY-MM-DD",useValue:[je,Ue],wrapProps:{className:Zr.StringInputWrap},onBlur:tt})]}),!m&&S.jsxs(On,{style:{marginTop:4},children:[S.jsx(tp,{children:D["1일"],onClick:()=>P({sDate:new Date,eDate:new Date})}),S.jsx(tp,{children:D["1주일"],onClick:()=>P({sDate:new Date(new Date().setDate(new Date().getDate()-7)),eDate:new Date})}),S.jsx(tp,{children:D["1개월"],onClick:()=>P({sDate:new Date(new Date().setMonth(new Date().getMonth()-1)),eDate:new Date})}),S.jsx(tp,{children:D["3개월"],onClick:()=>P({sDate:new Date(new Date().setMonth(new Date().getMonth()-3)),eDate:new Date})})]})]}),S.jsxs("div",{className:Zr.CalendarContainer,children:[S.jsxs(On,{className:Zr.Header,children:[S.jsx(Zo,{className:Zr.Prev,isDisabled:Ve,type:"Raw",onClick:we}),S.jsxs("div",{className:Zr.MonthYear,children:[S.jsx(Kc,{isAutoWidth:!0,className:Zr.Select,OptionRenderer:ue=>D.months(ue.option),options:Me,SelectedRenderer:ue=>D.months(ue.selectedOption),type:"Secondary",useSelect:[ne.month,Se]}),S.jsx(Nn,{w:8}),S.jsx(Kc,{isAutoWidth:!0,className:Zr.Select,options:xe,type:"Secondary",useSelect:[ne.year,oe]})]}),S.jsx(Zo,{className:Zr.Next,isDisabled:Le,type:"Raw",onClick:We})]}),S.jsx(Nn,{h:10}),S.jsxs("div",{className:Zr.Calendar,children:[S.jsx("div",{className:Zr.Week,children:[0,1,2,3,4,5,6].map(ue=>S.jsx("div",{className:Ye.clsx(Zr.WeekDay,Zr.Cell),children:D.weekDays(ue)},ue))}),lt]})]})]}),document.body)]})};function gh(r,e,t){let n=0;e&&e.getFullYear()===r&&(n=e.getMonth());let o=11;t&&t.getFullYear()===r&&(o=t.getMonth());const i=[];for(let a=n;a<=o;a++)i.push(a);return i}function fv(r,e,t,n=5){const o=[];let i=r-n/2+n%2/2;e&&i<e.getFullYear()&&(i=e.getFullYear());let a=i+n-1;t&&a>t.getFullYear()&&(a=t.getFullYear());for(let c=i;c<=a;c++)o.push(c);return o}function ly(r,e,t){return r??(r={sDate:new Date,eDate:new Date}),e&&tr["<"](r.sDate,e)?{month:e.getMonth(),year:e.getFullYear()}:t&&tr[">"](r.eDate,t)?{month:t.getMonth(),year:t.getFullYear()}:{month:r.sDate.getMonth(),year:r.sDate.getFullYear()}}function cy(r,e){return[e,r]}const tp=r=>S.jsx(Zo,{className:Ye.clsx(Zr.ChoiceButton,"Headline2"),type:"Secondary",...r}),SR=["Primary","Secondary","Raw"],hv=r=>{const{type:e="Primary",className:t,useDate:n,actionRef:o,position:i=gf.SE,minDate:a,maxDate:c,isDisabled:d,isLoading:h,placeholder:g,LeftAddon:m,RightAddon:p,resources:v,noClearButton:w,onClick:T,..._}=r,A=C.useMemo(()=>({...wr.ADatePicker,...v}),[v]),R=C.useMemo(()=>g??A["Select Date"],[g,A]),[D,I]=C.useMemo(()=>{let Oe,Je;return a&&(Oe=tr.makeSDate(a)),c&&(Je=tr.makeEDate(c)),Oe&&Je&&tr["<"](Je,Oe)?(console.warn("ADatePicker: maxDate should be greater than minDate. maxDate and minDate are swapped."),[tr.makeSDate(Je),tr.makeEDate(Oe)]):[Oe,Je]},[a,c]),[F,B]=wn(n,null),[H,j]=C.useState(F?tr.toString(F):""),[G,ge]=C.useState(()=>{const Oe=F??new Date;return D&&Oe<D?D.getMonth():I&&Oe>I?I.getMonth():(Oe??new Date).getMonth()}),[P,q]=C.useState(()=>{const Oe=F??new Date;return D&&Oe<D?D.getFullYear():I&&Oe>I?I.getFullYear():(Oe??new Date).getFullYear()}),V=C.useCallback(Oe=>{q(Oe);const Je=gh(Oe,D,I);Je.includes(G)||(G<Je[0]?ge(Je[0]):G>Je[Je.length-1]&&ge(Je[Je.length-1]))},[D,I,G]),Q=C.useCallback(Oe=>{if(Oe.length>10||(j(Oe),Oe.length<10)||!B)return;let Je=tr.toDate(Oe);Je&&(D&&Je<D&&(Je=D),I&&Je>I&&(Je=I),B(Je),q(Je.getFullYear()),ge(Je.getMonth()))},[B,D,I]),ie=C.useCallback(Oe=>{const Je=P+Oe;Je<0||q(Je)},[P]),se=C.useCallback(Oe=>{const Je=G+Oe;Je<0?(ge(11),ie(-1)):Je>11?(ge(0),ie(1)):ge(Je)},[G,ie]),ae=C.useCallback(Oe=>{B&&(Oe===void 0?(B(void 0),j("")):(B(Oe),j(tr.toString(Oe))))},[B]),le=C.useMemo(()=>{const Oe=new Date(P,G,0);return D&&Oe<D},[P,G,D]),fe=C.useMemo(()=>{const Oe=new Date(P,G+1,1);return I&&Oe>I},[P,G,I]),ee=C.useCallback(()=>{le||se(-1)},[se,le]),ne=C.useCallback(()=>{fe||se(1)},[se,fe]),[ce,xe]=C.useState(null),Me=C.useCallback(()=>{B&&xe(null)},[B]),oe=C.useCallback(Oe=>{B&&xe(Oe)},[B]),Se=C.useMemo(()=>{const Oe=new Date(P,G,1),Je=new Date(P,G+1,0),gt=[];for(let Et=0;Et<Oe.getDay();Et++){const Xt=new Date(P,G,0).getDate()-Oe.getDay()+Et+1,Wt=new Date(P,G-1,Xt),hr=D&&D>Wt||I&&I<Wt,dr=F&&tr.eq(Wt,F),cr=ce&&tr.eq(Wt,ce);gt.push({day:Xt,isSelected:dr,date:Wt,isDisabled:hr,isHovered:cr,isCurrentMonth:!1})}for(let Et=1;Et<=Je.getDate();Et++){const Dt=new Date(P,G,Et),Xt=D&&D>Dt||I&&I<Dt,Wt=F&&tr.eq(Dt,F),hr=ce&&tr.eq(Dt,ce);gt.push({day:Et,isSelected:Wt,date:Dt,isDisabled:Xt,isHovered:hr,isCurrentMonth:!0})}for(let Et=0;Et<7-Je.getDay()-1;Et++){const Dt=new Date(P,G+1,Et+1),Xt=D&&D>Dt||I&&I<Dt,Wt=F&&tr.eq(Dt,F),hr=ce&&tr.eq(Dt,ce);gt.push({day:Et+1,isSelected:Wt,date:Dt,isDisabled:Xt,isHovered:hr,isCurrentMonth:!1})}const It=[];for(let Et=0;Et<gt.length/7;Et++)It.push(S.jsx("div",{className:bn.Week,children:gt.slice(Et*7,Et*7+7).map((Dt,Xt)=>S.jsx(Zo,{isDisabled:Dt.isDisabled,type:"Raw",className:Ye.clsx(bn.Cell,Dt.isDisabled?bn.IsDisabled:Dt.isCurrentMonth?Dt.isSelected?bn.IsSelected:Dt.isHovered&&bn.IsHovered:bn.IsNotCurrentMonth),onClick:()=>Dt.isCurrentMonth&&ae(Dt.date),onMouseEnter:()=>Dt.isCurrentMonth&&oe(Dt.date),onMouseLeave:()=>Dt.isCurrentMonth&&Me(),children:Dt.day},Xt))},Et));return It},[G,ae,F,P,D,I,ce,Me,oe]),Le=C.useRef(null),We=C.useCallback(()=>{Le&&av(Le,Ie,i)},[Le,i]),[Ve,we]=C.useState(!1),[_e,Ae]=C.useState(!1),Ie=C.useRef(null),je=C.useCallback(()=>{d||h||(we(!0),setTimeout(()=>Ae(!0),0),setTimeout(()=>We(),0),j(F?tr.toString(F):""),ge(()=>{const Oe=F??new Date;return D&&Oe<D?D.getMonth():I&&Oe>I?I.getMonth():Oe.getMonth()}),q(()=>{const Oe=F??new Date;return D&&Oe<D?D.getFullYear():I&&Oe>I?I.getFullYear():Oe.getFullYear()}))},[d,h,F,We,D,I]),it=C.useCallback(()=>{d||h||(we(!0),Ae(!1))},[d,h]),Ue=C.useMemo(()=>_e?it:je,[_e,je,it]),tt=C.useCallback(()=>we(!1),[]),lt=C.useCallback(Oe=>{const Je=document.getElementById("root"),gt=Oe.target,It=Ie.current,Et=Le.current;!Je||!It||!gt||!Et||!It.contains(gt)&&Je.contains(gt)&&!Et.contains(gt)&&it()},[it]);C.useEffect(()=>{if(_e)return setTimeout(()=>document.addEventListener("mousedown",lt),0),()=>document.removeEventListener("mousedown",lt)},[_e,lt]);const bt=C.useCallback(()=>{We()},[We]);C.useEffect(()=>{if(!_e||!(Le!=null&&Le.current))return;const Oe=Le.current;let Je=Oe.parentElement;for(;Je;)Je.addEventListener("scroll",bt),Je=Je.parentElement;return()=>{let gt=Oe.parentElement;for(;gt;)gt.removeEventListener("scroll",bt),gt=gt.parentElement}},[Le,_e,bt]),C.useEffect(()=>{if(_e)return window.addEventListener("resize",bt),()=>window.removeEventListener("resize",bt)},[_e,bt]);const Mt=C.useCallback(Oe=>{Oe[0].intersectionRatio===0&&it()},[it]);C.useEffect(()=>{if(!_e)return;const Oe=new IntersectionObserver(Mt,{threshold:0});return Ie.current&&Oe.observe(Ie.current),()=>Oe.disconnect()},[Ie,_e,Mt]),C.useEffect(()=>{o&&(o.current={open:je,close:it,toggle:Ue})},[o,je,it,Ue]);const Qe=C.useCallback(Oe=>{T==null||T(Oe),Ue()},[T,Ue]),Xe=C.useCallback(Oe=>{ae(void 0),it(),Oe.stopPropagation()},[ae,it]),ht=C.useCallback(()=>F?S.jsx(_o,{icon:"Close",style:{scale:"0.8"},type:"Raw",onClick:Xe}):null,[F,Xe]),ft=C.useMemo(()=>F?tr.toString(F):S.jsx("span",{className:bn.Placeholder,children:R}),[F,R]);return S.jsxs(S.Fragment,{children:[S.jsxs(Jr,{..._,abaseRef:Le,className:Ye.clsx(bn.Anchor,"IsClickable",bn[e],t),isDisabled:d,isLoading:h,onClick:Qe,children:[m,e==="Primary"&&S.jsxs(S.Fragment,{children:[S.jsx(gn,{className:Ye.clsx(bn.Icon,bn[e]),icon:"CalendarDay"}),S.jsx(Nn,{w:4})]}),ft,S.jsx(Zu,{}),!w&&S.jsx(ht,{}),e==="Secondary"&&S.jsx(gn,{className:Ye.clsx(bn.Icon,bn[e]),icon:"CalendarDay"}),p&&p]}),(_e||Ve)&&Ls.createPortal(S.jsxs("div",{ref:Ie,className:bn.ADatePicker,style:{opacity:+_e,visibility:_e?"visible":"hidden"},onTransitionEnd:tt,children:[S.jsx("div",{className:bn.StringInputContainer,children:S.jsx(Zc,{className:bn.String,inputProps:{className:bn.StringInput},maxLength:F?30:11,placeholder:"YYYY-MM-DD",useValue:[H,Q],wrapProps:{className:bn.StringInputWrap}})}),S.jsxs("div",{className:bn.CalendarContainer,children:[S.jsxs(On,{className:bn.Header,children:[S.jsx(Zo,{className:bn.Prev,isDisabled:le,type:"Raw",onClick:ee}),S.jsxs("div",{className:bn.MonthYear,children:[S.jsx(Kc,{isAutoWidth:!0,className:bn.Select,OptionRenderer:Oe=>A.months(Oe.option),options:gh(P,D,I),SelectedRenderer:Oe=>A.months(Oe.selectedOption),type:"Secondary",useSelect:[G,ge]}),S.jsx(Nn,{w:8}),S.jsx(Kc,{isAutoWidth:!0,className:bn.Select,options:fv(P,D,I),type:"Secondary",useSelect:[P,V]})]}),S.jsx(Zo,{className:bn.Next,isDisabled:fe,type:"Raw",onClick:ne})]}),S.jsx(Nn,{h:10}),S.jsxs("div",{className:bn.Calendar,children:[S.jsx("div",{className:bn.Week,children:[0,1,2,3,4,5,6].map(Oe=>S.jsx("div",{className:Ye.clsx(bn.WeekDay,bn.Cell),children:A.weekDays(Oe)},Oe))}),Se]})]})]}),document.body)]})},_R="_Paper_e69j5_1",AR="_Card_e69j5_15",ER="_Body_e69j5_26",TR="_Title_e69j5_35",RR="_Content_e69j5_42",kR="_Action_e69j5_45",IR="_Button_e69j5_58",Ka={Paper:_R,Card:AR,Body:ER,Title:TR,Content:RR,Action:kR,Button:IR},MR=["okCancel","cancelOk","ok","cancel","none"],LR=r=>{const{dlgCore:e,type:t="okCancel",title:n,children:o,style:i,titleStyle:a,bodyStyle:c,contentStyle:d,okButtonStyle:h,cancelButtonStyle:g,actionStyle:m,onOk:p,onCancel:v,onClose:w,onEnterPress:T,onEscPress:_,onSpacePress:A,onPaperClick:R,noDim:D=!1,isLoading:I,isOkDisabled:F,isOkLoading:B,isCancelDisabled:H,isCancelLoading:j,buttonNoInteractive:G,okButtonClassName:ge,cancelButtonClassName:P,progress:q,progressProps:V,resources:Q}=r,ie=C.useMemo(()=>({...wr.ADialog,...Q}),[Q]),[se,ae]=C.useState(0);C.useEffect(()=>ae(1),[]);const le=C.useCallback(()=>{ae(0)},[]),fe=C.useCallback(()=>{if(!se){const[,Ie]=e.state.useIsOpen;Ie==null||Ie(!1),w==null||w()}},[se,w,e]),ee=C.useCallback(async()=>{if(!se||t==="cancel"||t==="none"||I||F||B)return;const{event:Ie,e:je}=Pu();await(p==null?void 0:p(je)),!Ie.preventDefault&&le()},[se,t,le,p,F,I,B]),ne=C.useCallback(async()=>{if(!se||t==="ok"||t==="none"||I||H||j)return;const{event:Ie,e:je}=Pu();await(v==null?void 0:v(je)),!Ie.preventDefault&&le()},[se,t,le,v,H,I,j]);C.useEffect(()=>{e&&e.state.setAction({close:le,ok:ee,cancel:ne})},[e,le,ee,ne]);const ce=C.useCallback(async()=>{if(I)return;const{event:Ie,e:je}=Pu();await(T==null?void 0:T(je)),!Ie.preventDefault&&ee()},[T,I,ee]),xe=C.useCallback(async()=>{if(I)return;const{event:Ie,e:je}=Pu();await(A==null?void 0:A(je)),!Ie.preventDefault&&ee()},[A,I,ee]),Me=C.useCallback(async()=>{if(I)return;const{event:Ie,e:je}=Pu();await(_==null?void 0:_(je)),!Ie.preventDefault&&ne()},[_,I,ne]),oe=C.useRef(null),Se=C.useCallback(Ie=>{const je=document.body.getElementsByClassName(Ka.Paper);je.length===0||je[je.length-1]!==oe.current||(Ie.key==="Enter"&&se?ce():Ie.key===" "&&se?xe():Ie.key==="Escape"&&se&&Me())},[se,ce,xe,Me]);C.useEffect(()=>{if(se)return window.addEventListener("keydown",Se),()=>window.removeEventListener("keydown",Se)},[se,Se]);const Le=C.useRef(!1),We=C.useRef(!1),Ve=C.useCallback(()=>{Le.current=!0},[]),we=C.useCallback(()=>{Le.current=!1,We.current=!1},[]),_e=C.useCallback(()=>{We.current=!0},[]),Ae=C.useCallback(async()=>{if(I)return;const Ie=!We.current||Le.current;if(Le.current=!1,We.current=!1,Ie)return;const{event:je,e:it}=Pu();await(R==null?void 0:R(it)),!je.preventDefault&&ne()},[R,I,ne]);return Ls.createPortal(S.jsx("div",{ref:oe,className:Ka.Paper,style:{backgroundColor:D?"transparent":void 0,pointerEvents:se?void 0:"none",opacity:se},onMouseDown:_e,onMouseUp:Ae,onTransitionEnd:fe,children:S.jsxs(Jr,{className:Ka.Card,isLoading:I,progress:q,progressProps:V,style:i,onMouseDown:Ve,onMouseUp:we,children:[S.jsxs("div",{className:Ka.Body,style:c,children:[n&&S.jsx(DR,{title:n,titleStyle:a}),o&&S.jsx("div",{className:Ka.Content,style:d,children:o})]}),t!=="none"&&S.jsx(OR,{type:t,ok:ee,cancel:ne,resources:ie,isOkDisabled:F,isOkLoading:B,isCancelDisabled:H,isCancelLoading:j,okButtonStyle:h,cancelButtonStyle:g,actionStyle:m,buttonNoInteractive:G,okButtonClassName:ge,cancelButtonClassName:P})]})}),document.body)},DR=r=>{const{title:e,titleStyle:t}=r;return S.jsx("div",{className:Ye.clsx(Ka.Title,"NoSelect","Title3"),style:t,children:e})},OR=r=>{const{type:e,ok:t,cancel:n,resources:o,isOkDisabled:i,isOkLoading:a,isCancelDisabled:c,isCancelLoading:d,okButtonStyle:h,cancelButtonStyle:g,actionStyle:m,buttonNoInteractive:p,okButtonClassName:v,cancelButtonClassName:w}=r,T=C.useMemo(()=>({onClick:t,isDisabled:i,isLoading:a,children:o.Ok,style:h,noInteractive:p,className:Ye.clsx(Ka.Button,v)}),[t,i,a,o.Ok,h,p,v]),_=C.useMemo(()=>({type:"Secondary",onClick:n,isDisabled:c,isLoading:d,children:o.Cancel,style:g,noInteractive:p,className:Ye.clsx(Ka.Button,w)}),[n,c,d,o.Cancel,g,p,w]);if(e==="okCancel"||e==="ok")return S.jsxs("div",{className:Ka.Action,style:{...m},children:[S.jsx(Zo,{...T}),e==="okCancel"&&S.jsxs(S.Fragment,{children:[S.jsx(Nn,{w:8}),S.jsx(Zo,{..._})]})]},e);if(e==="cancelOk"||e==="cancel")return S.jsxs("div",{className:Ka.Action,children:[S.jsx(Zo,{..._}),e==="cancelOk"&&S.jsxs(S.Fragment,{children:[S.jsx(Nn,{w:8}),S.jsx(Zo,{...T})]})]},e)},NR=r=>{const e=C.useMemo(()=>Math.random().toFixed(32),[]),t=C.useMemo(()=>{const v={};return r.forEach(w=>{v[w]=w+e}),v},[r,e]),n=C.useMemo(()=>[],[]),o=C.useMemo(()=>(n.length=0,n.push(...r),n),[n,r]),[i,a]=C.useState([]),c=C.useRef((()=>{const v={};return o.forEach(w=>{v[w]={open:()=>a(T=>[...T,w]),close:()=>{},ok:()=>{},cancel:()=>{}}}),v})()),d=C.useMemo(()=>{const v={};return o.forEach(w=>{v[w]=T=>{a(_=>!T&&_.includes(w)?_.filter(A=>A!==w):T&&!_.includes(w)?[..._,w]:_)}}),v},[o]),h=C.useMemo(()=>{const v={};return o.forEach(w=>{const _=[i.includes(w),d[w]],A=R=>{c.current[w]={...c.current[w],...R}};v[w]={useIsOpen:_,setAction:A}}),v},[i,d,o]),g=C.useMemo(()=>{const v={};return o.forEach(w=>{const T=()=>c.current[w].open(),_=()=>c.current[w].close(),A=()=>c.current[w].ok(),R=()=>c.current[w].cancel();v[w]={open:T,close:_,ok:A,cancel:R}}),v},[o]),m=C.useMemo(()=>({}),[]),p=C.useMemo(()=>(o.forEach(v=>{m[v]={state:h[v],action:g[v]}}),m),[m,o,h,g]);return C.useEffect(()=>(Object.keys(p).forEach(w=>{const T=p[w],_=t[w],A=ua.find(R=>{R.id});A?A.core=T:ua.push({id:_,core:T})}),()=>{const w=Object.keys(p),T=ua.filter(_=>w.includes(_.id));ua.length=0,ua.push(...T)}),[p,t]),p},PR=()=>{const r=C.useMemo(()=>Math.random().toFixed(32),[]),[e,t]=C.useState(!1),n=C.useRef({open:()=>t(!0),close:()=>{},ok:()=>{},cancel:()=>{}}),o=C.useMemo(()=>({useIsOpen:[e,t],setAction:d=>{n.current={...n.current,...d}}}),[e]),i=C.useMemo(()=>({open:()=>n.current.open(),close:()=>n.current.close(),ok:()=>n.current.ok(),cancel:()=>n.current.cancel()}),[]),a=C.useMemo(()=>({}),[]),c=C.useMemo(()=>(a.state=o,a.action=i,a),[a,o,i]);return C.useEffect(()=>{const d=ua.find(h=>h.id===r);return d?d.core=c:ua.push({id:r,core:c}),()=>{const h=ua.filter(g=>g.id!==r);ua.length=0,ua.push(...h)}},[r,c]),c},BR=r=>{const{dlgCore:e,children:t}=r,[n,o]=C.useMemo(()=>e.state.useIsOpen,[e.state.useIsOpen]);return C.useEffect(()=>()=>o==null?void 0:o(!1),[o]),S.jsx(C.Suspense,{children:n&&t})},FR=r=>e=>{const{dlgCore:t}=e;return S.jsx(BR,{dlgCore:t,children:C.cloneElement(S.jsx(r,{...e}),{dlgCore:t})})},ua=[],jR={closeAllDlgs:()=>{ua.forEach(r=>{r.core.action.close()})}},HR="_AFileBox_1hlo1_1",zR="_SelectedFile_1hlo1_16",$R="_Dropping_1hlo1_26",pv={AFileBox:HR,SelectedFile:zR,Dropping:$R},UR=r=>{const{useFile:e,FileRenderer:t=qR,SelectRenderer:n=WR,DropRenderer:o=VR,resources:i,accept:a="",onInvalidFileFormat:c,fileSelectButtonClassName:d,isDisabled:h,isLoading:g,className:m,...p}=r,v=C.useMemo(()=>({...wr.AFileBox,...i}),[i]),w=C.useRef(null),T=C.useRef(null),[_,A]=wn(e,null),[R,D]=C.useState(!1),I=C.useMemo(()=>a.split(",").map(Q=>Q.trim()).filter(Q=>Q.length>0&&Q.startsWith(".")),[a]),F=C.useCallback(Q=>{if(I.length===0)return!1;const ie=Q.name.split(".").pop();return ie?!I.includes(`.${ie}`):!0},[I]),B=C.useCallback(Q=>{if(A)if(F(Q)){c==null||c();return}else A(Q);else return},[A,F,c]),H=C.useCallback(Q=>{Q.target.files&&Q.target.files.length>0&&B(Q.target.files[0])},[B]),j=C.useCallback(Q=>{Q.preventDefault(),D(!1),!(h||g)&&Q.dataTransfer.files&&Q.dataTransfer.files.length>0&&B(Q.dataTransfer.files[0])},[B,h,g]),G=C.useCallback(Q=>{Q.preventDefault(),!(h||g)&&D(!0)},[h,g]),ge=C.useCallback(Q=>{Q.target===w.current&&Q.relatedTarget.contains(w.current.parentElement)&&(Q.preventDefault(),D(!1))},[]),P=C.useCallback(Q=>Q.preventDefault(),[]),q=C.useCallback(()=>{var Q;(Q=T.current)==null||Q.click()},[]),V=C.useMemo(()=>R?S.jsx(o,{resources:v}):_?S.jsx(t,{file:_,useFile:e}):S.jsx(n,{fileSelectButtonClassName:d,resources:v,onClick:q}),[t,n,o,v,R,_,e,d,q]);return S.jsxs(Jr,{...p,abaseRef:w,className:Ye.clsx(pv.AFileBox,m),isDisabled:h,isLoading:g,onDragEnter:G,onDragLeave:ge,onDragOver:P,onDrop:j,children:[S.jsx("input",{ref:T,accept:a,style:{display:"none"},type:"file",value:"",onChange:H}),V]})},qR=r=>{const{file:e,useFile:t}=r,[,n]=wn(t,null);return S.jsxs(On,{className:pv.SelectedFile,style:{backgroundColor:""},children:[S.jsx(gn,{icon:"File"}),S.jsx(tl,{children:e.name}),S.jsx(_o,{icon:"Close",style:{marginLeft:2,transform:"scale(0.8)"},type:"Raw",onClick:()=>n==null?void 0:n(null)})]})},WR=r=>{const{onClick:e,resources:t,fileSelectButtonClassName:n}=r;return S.jsxs(On,{className:Ye.clsx("NoSelect"),style:{gap:4},children:[S.jsx(Zo,{className:n,onClick:e,children:t["Select File"]}),t["or Drag & Drop"]]})},VR=r=>{const{resources:e}=r;return S.jsxs(Vw,{className:Ye.clsx(pv.Dropping,"NoSelect","Headline2"),children:[S.jsx(gn,{icon:"FileDownload"}),e["drop file to select"]]})};async function GR(r){const e=new Promise((t,n)=>{const o=new FileReader;o.onloadend=()=>{o.result?typeof o.result=="string"?t(o.result):n(new Error("Failed to convert file to Base64: Invalid result type.")):n(new Error("Failed to convert file to Base64: Empty result."))},o.onerror=n,o.readAsDataURL(r)});try{return await e}catch{return}}function YR(r,e){var c,d;const t=r.split(","),n=(d=(c=t[0])==null?void 0:c.match(/:(.*?);/))==null?void 0:d[1],o=atob(t[1]);let i=o.length;const a=new Uint8Array(i);for(;i--;)a[i]=o.charCodeAt(i);return new File([a],e,{type:n})}const Kw=r=>r.idx!==void 0?r.idx.toString():`${r.name}-${r.size}-${r.lastModified||""}`,Bu={toBase64:GR,toFile:YR,getFileKey:Kw},ZR="_AFileUploader_62tvx_1",KR="_LabelContainer_62tvx_15",XR="_LabelButton_62tvx_24",JR="_Disabled_62tvx_30",QR="_Delete_62tvx_33",ek="_FileSize_62tvx_37",tk="_TotalFileSize_62tvx_44",rk="_FileBox_62tvx_48",nk="_SelectRenderer_62tvx_67",ok="_ChipsContainer_62tvx_78",ik="_FileChip_62tvx_89",sk="_FileChipContent_62tvx_101",ak="_FileNameContainer_62tvx_112",lk="_ButtonRenderer_62tvx_118",ck="_ErrorBorder_62tvx_129",uk="_ErrorColor_62tvx_133",dk="_ErrorCursor_62tvx_137",Mn={AFileUploader:ZR,LabelContainer:KR,LabelButton:XR,Disabled:JR,Delete:QR,FileSize:ek,TotalFileSize:tk,FileBox:rk,SelectRenderer:nk,ChipsContainer:ok,FileChip:ik,FileChipContent:sk,FileNameContainer:ak,ButtonRenderer:lk,ErrorBorder:ck,ErrorColor:uk,ErrorCursor:dk},fk=({file:r,baseClass:e,errorClass:t,errorCursorClass:n,resources:o,onDownload:i})=>{const[a,c]=C.useState(!1);return S.jsx(_o,{className:Ye.clsx(e,t,n),icon:a?"FileDownload":"CircleAlertOutline",iconSize:"sm",tooltip:o["Fail Download"],type:"Raw",onClick:()=>i(r),onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1)})},hk=r=>{const{useFiles:e,accept:t,onInvalidFileFormat:n,onDownload:o,onDownloadCsv:i,onDelete:a,type:c,limit:d=1024*1024*1024,maxFileCount:h,useError:g,isLoading:m,resources:p,className:v,onDownloadAll:w,csvFilename:T,..._}=r,[{wrapId:A,wrapProps:R,labelProps:D,...I},F]=Yu(_),B=C.useMemo(()=>({...wr.AFileUploader,...p}),[p]),[H,j]=wn(e,void 0),[G,ge]=wn(g,!1),[P,q]=C.useState({}),[V,Q]=C.useState(!1),ie=C.useRef(0),se=C.useRef({}),ae=C.useRef(null),le=C.useRef(null),fe=C.useMemo(()=>(H==null?void 0:H.reduce((Qe,Xe)=>Qe+Xe.size,0))||0,[H]);C.useEffect(()=>{ge&&ge(fe>d)},[fe,d,ge]);const ee=C.useCallback(Qe=>{var ft;if(!t||t==="*"||t==="")return!0;const Xe=t.split(",").map(Oe=>Oe.trim()),ht=`.${(ft=Qe.name.split(".").pop())==null?void 0:ft.toLowerCase()}`;return Xe.includes(ht)?!0:Xe.some(Oe=>{var Je;if(Oe.startsWith("."))return!1;if(Oe.endsWith("/*")){const gt=Oe.split("/")[0];return(Je=Qe.type)==null?void 0:Je.startsWith(`${gt}/`)}return Qe.type===Oe})},[t]),ne=C.useCallback((Qe,Xe)=>{const ht={...se.current};ht[Qe]=Xe,se.current=ht,q(ht)},[q]),ce=C.useCallback(Qe=>{const Xe=Bu.getFileKey(Qe);return P[Xe]||"Normal"},[P]),xe=C.useCallback(Qe=>m||ce(Qe)==="Loading",[m,ce]),Me=C.useCallback(Qe=>ce(Qe)==="Error"||c==="Upload"&&Qe.size>d,[ce,d,c]),oe=C.useMemo(()=>H!=null&&H.length?c==="Download"?H.every(Me):!1:!0,[H,c,Me]),Se=C.useCallback(()=>{ae.current&&(ae.current.value="")},[]),Le=C.useMemo(()=>!h||!(H!=null&&H.length)?!1:H.length>=h,[H,h]),We=C.useCallback(Qe=>{if(!j)return;const Xe=[];let ht=!1,ft=[],Oe=h?h-((H==null?void 0:H.length)||0):1/0;if(!(Oe<=0)){if(Array.from(Qe).forEach((Je,gt)=>{if(gt>=Oe)return;if(!ee(Je)){ht=!0,ft.push(Je.name);return}const It=Je;It.uniqueId=`file-${Date.now()}-${ie.current++}`,Xe.push(It)}),ht)if(n)n();else{const Je=t?t.replace(/,/g,", "):"",gt=Je?`${B["Supported file format(s)"]}: ${Je}`:"",It=ft.length>3?`${ft.slice(0,3).join(", ")} ${B.and} ${ft.length-3} ${B["more file(s)"]}`:ft.join(", ");alert(`${B["Unsupported file format detected."]}
|
162
162
|
|
163
163
|
${B["Invalid file(s)"]}: ${It}${gt?`
|
164
164
|
|
165
165
|
`+gt:""}`)}Xe.length>0&&j([...H||[],...Xe])}},[j,ee,n,t,B,H,h]),Ve=C.useCallback(()=>{var Qe;return(Qe=ae.current)==null?void 0:Qe.click()},[]),we=C.useCallback(Qe=>{const Xe=Qe.target.files;Xe!=null&&Xe.length&&(We(Xe),Se())},[We,Se]),_e=C.useCallback(Qe=>{if(a==null||a(Qe),!j||!H)return;const Xe=Bu.getFileKey(Qe),ht=H.filter(ft=>Bu.getFileKey(ft)!==Xe);j(ht),Se()},[a,j,H,Se]),Ae=C.useCallback(()=>{j&&(j([]),Se())},[j,Se]),Ie=C.useCallback(Qe=>{if(!o)return Promise.resolve();const Xe=Bu.getFileKey(Qe);return se.current[Xe]==="Loading"?Promise.resolve():(ne(Xe,"Loading"),new Promise(ht=>{o(Qe,ft=>{ne(Xe,ft),ht()})}))},[o,ne]),je=C.useCallback(async()=>{if(H!=null&&H.length){if(q){const Qe={...se.current};H.forEach(Xe=>{Qe[Bu.getFileKey(Xe)]="Loading"}),se.current=Qe,q(Qe)}if(w){w(H,Qe=>{if(q){const Xe={...se.current,...Qe};se.current=Xe,q(Xe)}});return}for(const Qe of H){if(!o)continue;const Xe=Bu.getFileKey(Qe);await new Promise(ht=>{o(Qe,ft=>{if(q){const Oe={...se.current};Oe[Xe]=ft,se.current=Oe,q(Oe)}ht()})})}}},[H,o,w,q]),it=C.useCallback(()=>{!(H!=null&&H.length)||!i||i(H)},[H,i]),Ue=C.useMemo(()=>{const Qe=Xe=>(Xe.preventDefault(),Xe.stopPropagation(),Xe);return{onDragEnter:Xe=>{Qe(Xe),!G&&!m&&Q(!0)},onDragOver:Xe=>{Qe(Xe),!G&&!m&&Xe.dataTransfer&&(Xe.dataTransfer.dropEffect="copy")},onDragLeave:Xe=>{var ft;Qe(Xe);const ht=(ft=le.current)==null?void 0:ft.contains(Xe.relatedTarget);(!Xe.relatedTarget||!ht)&&Q(!1)},onDrop:Xe=>{var ht;Qe(Xe),Q(!1),!G&&!m&&((ht=Xe.dataTransfer.files)!=null&&ht.length)&&We(Xe.dataTransfer.files)}}},[G,m,We]),tt=C.useMemo(()=>{const Qe=Ye.clsx(Mn.ButtonRenderer,"NoSelect");return{upload:Xe=>S.jsx(_o,{className:Qe,icon:"X",iconSize:"sm",style:{color:"var(--AFileUploader_text_color)"},tooltip:B.Delete,type:"Raw",onClick:()=>_e(Xe)}),loading:()=>S.jsx(_o,{className:Qe,icon:"Spinner",iconSize:"sm",type:"Raw"}),error:Xe=>S.jsx(fk,{baseClass:Qe,errorClass:Mn.ErrorColor,errorCursorClass:Mn.ErrorCursor,file:Xe,resources:B,onDownload:Ie}),download:Xe=>S.jsx(_o,{className:Qe,icon:"FileDownload",iconSize:"sm",style:{color:"var(--AFileUploader_brand_color)"},tooltip:B.Download,type:"Raw",onClick:()=>Ie(Xe)}),view:()=>null}},[B,_e,Ie]),lt=C.useCallback((Qe,Xe)=>{const ht=xe(Qe),ft=Me(Qe),Oe=()=>c==="Upload"?tt.upload(Qe):c==="View"?tt.view():ht?tt.loading():ft?tt.error(Qe):tt.download(Qe);return S.jsx(cv,{ButtonRenderer:Oe,className:Ye.clsx(Mn.FileChip,ft&&Mn.ErrorBorder),label:S.jsx("div",{className:Mn.FileChipContent,children:S.jsxs(On,{className:Mn.FileNameContainer,children:[S.jsx(tl,{children:Qe.name,className:Ye.clsx(ft&&Mn.ErrorColor)}),S.jsx("span",{children:Hu(Qe.size),className:Mn.FileSize})]})})},Xe)},[xe,Me,c,tt]),bt=C.useCallback(()=>S.jsx("div",{className:Ye.clsx(Mn.FileBox,G&&Mn.ErrorBorder,G&&Mn.ErrorColor,G&&Mn.ErrorCursor,Le&&Mn.Disabled),...Ue,ref:le,children:V?S.jsxs(On,{className:Ye.clsx("NoSelect"),style:{gap:4},children:[S.jsx(gn,{icon:"FileDownload"}),S.jsx("span",{children:B["Drop file to select"]})]}):S.jsxs(Zo,{className:Ye.clsx(Mn.SelectRenderer,"NoSelect"),isDisabled:G||m||Le,type:"Raw",onClick:Ve,children:[B["Insert File"],h&&` ${(H==null?void 0:H.length)||0} / ${h}`]})}),[G,V,B,Ve,m,Ue,H,h,Le]),Mt=C.useMemo(()=>{const Qe=c==="Upload",Xe=c==="View",ht=Qe?B["Delete All"]:B["Download All"],ft=Qe?Ae:je,Oe=(H==null?void 0:H.some(Je=>xe(Je)))||!1;return S.jsxs(On,{className:Mn.LabelContainer,children:[I.label,c==="Upload"&&S.jsxs(tl,{className:Ye.clsx(Mn.TotalFileSize,"NoSelect"),children:["(",S.jsx("span",{className:Ye.clsx(G&&Mn.ErrorColor),children:Hu(fe)})," / ",Hu(d),")"]}),!Xe&&S.jsx("span",{children:ht,className:Ye.clsx(Mn.LabelButton,"Label1",(oe||Oe)&&Mn.Disabled,Qe&&Mn.Delete),onClick:!oe&&!Oe?ft:void 0}),i&&S.jsx("span",{children:B["Download List"]||"Download List",className:Ye.clsx(Mn.LabelButton,"Label1",!(H!=null&&H.length)&&Mn.Disabled),style:{marginLeft:"auto"},onClick:H!=null&&H.length?it:void 0})]})},[c,B,Ae,je,H,I.label,G,fe,d,oe,i,it,xe]);return c==="Download"&&!(H!=null&&H.length)?null:S.jsxs(Yc,{wrapId:A,wrapProps:R,labelProps:D,...I,label:Mt,children:[S.jsx("input",{ref:ae,multiple:!0,accept:t||"",style:{display:"none"},type:"file",onChange:we}),S.jsx(Jr,{...F,className:Ye.clsx(Mn.AFileUploader,v),children:S.jsxs(On,{className:Mn.ChipsContainer,children:[c==="Upload"&&bt(),H==null?void 0:H.map(lt)]})})]})},pk="_AFloatMenu_xco8u_1",gk="_Content_xco8u_10",uy={AFloatMenu:pk,Content:gk},Xw=r=>{const{defs:e,defaultDef:t,actionRef:n,offset:o,onClose:i,onClick:a,onPaperClick:c,position:d=gf.ES,width:h=137}=r,g=C.useMemo(()=>({content:mk,...t}),[t]),m=C.useMemo(()=>{const P={};return ar.keys(e).forEach(q=>{const V=e[q],Q={...g,...V};Q.noDisplay||(P[q]=Q)}),P},[g,e]),[p,v]=C.useState(null),w=C.useCallback(P=>{sw(P,D,d,o),v(P)},[d,o]),[T,_]=C.useState(!1),[A,R]=C.useState(!1),D=C.useRef(null),I=C.useCallback(P=>{R(!0),setTimeout(()=>_(!0),0),setTimeout(()=>w(P),0)},[w]),F=C.useCallback(()=>{_(!1),R(!0),i==null||i()},[i]),B=C.useCallback(()=>R(!1),[]),H=C.useCallback(async P=>{const q=document.getElementById("root"),V=P.target,Q=D.current;!q||!Q||!V||!Q.contains(V)&&q.contains(V)&&(await(c==null?void 0:c(P)),F())},[F,c]);C.useEffect(()=>{if(T)return setTimeout(()=>document.addEventListener("mousedown",H),0),()=>document.removeEventListener("mousedown",H)},[T,H]);const j=C.useCallback(()=>{p&&w(p)},[w,p]);C.useEffect(()=>{if(!T||!p)return;let P=p.parentElement;for(;P;)P.addEventListener("scroll",j),P=P.parentElement;return()=>{let q=p.parentElement;for(;q;)q.removeEventListener("scroll",j),q=q.parentElement}},[p,T,j]),C.useEffect(()=>{if(T)return window.addEventListener("resize",j),()=>window.removeEventListener("resize",j)},[T,j]);const G=C.useCallback(P=>{P[0].intersectionRatio===0&&F()},[F]);C.useEffect(()=>{if(!T)return;const P=new IntersectionObserver(G,{threshold:0});return D.current&&P.observe(D.current),()=>P.disconnect()},[D,T,G]),C.useEffect(()=>{n&&(n.current={open:I,close:F})},[n,I,F]);const ge=C.useCallback(P=>{var q;if(T){if((q=m[P])!=null&&q.isDisabled)return}else return;a==null||a(P),F()},[T,a,F,m]);return!T&&!A?null:Ls.createPortal(S.jsx("div",{ref:D,className:uy.AFloatMenu,style:{opacity:+T,visibility:T&&Object.keys(m).length>0?"visible":"hidden",minWidth:h},onTransitionEnd:B,children:ar.map(m,([P],q)=>{const V={...g,...m[P]};let{content:Q,noDisplay:ie,tooltipDirection:se=Mo.E,...ae}=V;return ie?null:(Q=Pr.getContent(V.content,{defKey:P,def:V}),C.createElement(Jr,{...ae,key:q,className:Ye.clsx(uy.Content,"Label2","IsClickable",ae.className),tooltipDirection:se,onClick:le=>{var fe;ge==null||ge(P),(fe=ae.onClick)==null||fe.call(ae,le)}},Q))})}),document.body)},mk=r=>r.defKey;function vk(r){try{const e=Number.parseInt(r);return isNaN(e)?void 0:e}catch{return}}const Jw={parseInt:vk},yk=`${Number.MAX_SAFE_INTEGER}`.length-1,bk=r=>{const{unit:e,type:t="Secondary",min:n,max:o,useValue:i,onEnterPress:a,canAsterisk:c=!1,onFocus:d,...h}=r,g=C.useMemo(()=>o!==void 0&&n!==void 0?Math.max(`${o}`.length+1,`${n}`.length+1):yk,[n,o]),[m,p]=wn(i,""),v=C.useCallback(A=>{if(p)if(c&&A.startsWith("*"))p("*");else if(A==="")p("");else if(A==="-")p("-");else{A=A.replace(/[^0-9-]/g,"");try{const R=Jw.parseInt(A);R!==void 0&&(n!==void 0&&R<n?p(`${n}`):o!==void 0&&R>o?p(`${o}`):p(`${R}`))}catch(R){console.error("ANumInput : ",R)}}},[p,c,n,o]),w=C.useRef(null),T=C.useCallback(A=>{var R;(R=w.current)==null||R.blur(),a==null||a(A)},[a]),_=C.useMemo(()=>n===void 0&&o===void 0?e??"number":`${n??""}~${o??""}`,[n,o,e]);return S.jsx(Zc,{...h,autoComplete:"off",className:Ye.clsx(yi.ANumInput,r.className),inputRef:w,maxLength:g,placeholder:_,RightAddon:r.unit&&S.jsx("span",{style:{marginRight:4},children:r.unit}),type:t,useValue:[m,v],onEnterPress:T})},xk="_AListView_k7t2d_1",wk="_Row_k7t2d_10",Ck="_Label_k7t2d_20",Sk="_Content_k7t2d_30",rp={AListView:xk,Row:wk,Label:Ck,Content:Sk},_k=r=>{const{defs:e,defaultDef:t,item:n,rowHeight:o,labelWidth:i,noBorder:a,style:c,...d}=r,h=a?"":"var(--AListView_border-thin)",g=a?"":"var(--AListView_border-thick)",m=C.useMemo(()=>({content:Ek,label:Ak,...t}),[t]),p=C.useMemo(()=>{const v={};return ar.keys(e).forEach(w=>{const T=e[w],_={...m,...T};v[w]=_}),v},[m,e]);return S.jsx(Jr,{...d,className:Ye.clsx(rp.AListView,d.className),style:{...c,borderTop:h},children:ar.map(p,([v])=>{const w={...m,...p[v]},T=Pr.getContent(w.label,{defKey:v,item:n,def:w}),_=Pr.getContent(w.content,{defKey:v,item:n||{[v]:""},def:w}),A=Pr.getContent(w.bold||"label",{defKey:v,item:n,def:w});return S.jsxs("div",{className:rp.Row,style:{height:o,borderBottom:h},children:[S.jsx("div",{className:Ye.clsx(rp.Label,"NoSelect",A!=="content"&&"Bold"),style:{width:i,minWidth:i,maxWidth:i,borderLeft:g,paddingLeft:a?0:10},children:S.jsx(tl,{children:T})}),S.jsx("div",{className:Ye.clsx(rp.Content,A!=="label"&&"Bold"),style:{borderLeft:g,borderRight:g},children:S.jsx(tl,{style:{width:"100%",padding:a?0:10},children:_})})]},v)})})},Ak=r=>r.defKey,Ek=r=>{const{defKey:e,item:t}=r;if(t)if(ar.hasKey(t,e)){const n=t[e];return ar.isReactNode(n)?n:null}else return null;else return null},Tk="_ALoadingBorder_kwc1g_1",Rk="_ProgressBar_kwc1g_9",kk="_IsLoading_kwc1g_15",Ik="_Cover_kwc1g_19",qf={ALoadingBorder:Tk,ProgressBar:Rk,IsLoading:kk,Cover:Ik},gv=r=>{const{isLoading:e}=r,[t,n]=C.useState(!1),o=C.useRef(null);return C.useEffect(()=>{e?(n(!0),o.current&&clearTimeout(o.current)):o.current=setTimeout(()=>n(!1),300)},[e]),S.jsxs("div",{className:qf.ALoadingBorder,children:[S.jsx("div",{className:Ye.clsx(qf.ProgressBar,t&&qf.IsLoading)}),S.jsx("div",{className:Ye.clsx(qf.Cover,e&&qf.IsLoading),style:{transition:"all 300ms"}})]})},Mk="_Container_ez8dc_1",Lk="_Option_ez8dc_7",Dk="_RadioButton_ez8dc_14",Ok="_InnerCircle_ez8dc_24",Nk="_isChecked_ez8dc_29",qd={Container:Mk,Option:Lk,RadioButton:Dk,InnerCircle:Ok,isChecked:Nk},Pk=r=>{const{options:e,useSelect:t,selectDisabled:n,radius:o=23,innerRadius:i=o*.6,OptionRenderer:a=Qw}=r,[c,d]=wn(t,e[0]);return S.jsx("div",{className:qd.Container,children:e.map((h,g)=>{const m=n==null?void 0:n(h),p=()=>m?null:d==null?void 0:d(h);return S.jsxs(On,{className:Ye.clsx(qd.Option,"IsClickable"),isDisabled:m,onClick:p,children:[S.jsx(Bk,{innerRadius:i,isChecked:c===h,radius:o},g),S.jsx(a,{option:h})]},g)})})},Qw=({option:r})=>r,Bk=({isChecked:r,radius:e,innerRadius:t})=>S.jsx(Jr,{className:Ye.clsx(qd.RadioButton,r&&qd.isChecked),style:{width:e,height:e},children:S.jsx(Jr,{className:Ye.clsx(qd.InnerCircle,r&&qd.isChecked),style:{width:t,height:t}})}),Fk="_AMultiSelect_19uuu_1",jk="_Arrow_19uuu_15",Hk="_Primary_19uuu_24",zk="_UnAvailable_19uuu_35",$k="_IsOpen_19uuu_35",Uk="_Secondary_19uuu_42",qk="_Placeholder_19uuu_58",Wk="_ValuesContainer_19uuu_63",Vk="_Values_19uuu_63",Gk="_Options_19uuu_82",Yk="_Option_19uuu_82",Zk="_Selected_19uuu_124",Kk="_CheckBox_19uuu_131",Oi={AMultiSelect:Fk,Arrow:jk,Primary:Hk,UnAvailable:zk,IsOpen:$k,Secondary:Uk,Placeholder:qk,ValuesContainer:Wk,Values:Vk,Options:Gk,Option:Yk,Selected:Zk,CheckBox:Kk},Xk=r=>{const{options:e,useSelect:t,type:n="Primary",placeholder:o=wr.AMultiSelect["Select(Placeholder)"],onClose:i,SelectedRenderer:a=Qk,OptionRenderer:c=eI,minShowRows:d=2,maxShowRows:h=6,arrowProps:g,isAutoWidth:m=!1,...p}=r,v=C.useRef(null),w=C.useMemo(()=>p.abaseRef??v,[p.abaseRef]),T=C.useRef(null),[_,A]=wn(t,[]),[R,D]=C.useState(void 0),I=C.useRef(e),F=C.useRef(null),[B,H]=C.useState(!1),[j,G]=C.useState(!1),ge=C.useCallback(()=>G(!1),[]),P=C.useCallback(()=>{p.isDisabled||p.isLoading||e.length<1||(G(!0),setTimeout(()=>H(!0),0),setTimeout(()=>Xg(T,w,e,d,h),0))},[w,p.isDisabled,p.isLoading,e,d,h]),q=C.useCallback(()=>{H(!1),G(!0),i==null||i()},[i]),V=C.useCallback(ee=>{var ne;B?q():P(),setTimeout(()=>Xg(T,w,e,d,h),0),(ne=p.onClick)==null||ne.call(p,ee)},[w,p,e,B,q,P,d,h]),Q=C.useCallback(()=>{Xg(T,w,e,d,h)},[w,e,d,h]);C.useEffect(()=>{if(!B||!w.current)return;const ee=w.current;let ne=ee.parentElement;for(;ne;)ne.addEventListener("scroll",Q),ne=ne.parentElement;return()=>{let ce=ee.parentElement;for(;ce;)ce.removeEventListener("scroll",Q),ce=ce.parentElement}},[w,B,Q]),C.useEffect(()=>{if(B)return window.addEventListener("resize",Q),()=>window.removeEventListener("resize",Q)},[B,Q]);const ie=C.useCallback(ee=>{ee[0].intersectionRatio===0&&q()},[q]);C.useEffect(()=>{if(!B)return;const ee=new IntersectionObserver(ie,{threshold:0});return w.current&&ee.observe(w.current),()=>ee.disconnect()},[w,B,ie]);const se=C.useCallback(ee=>{const ne=ee.target,ce=w.current,xe=T.current;!ce||!ne||!xe||!ce.contains(ne)&&!xe.contains(ne)&&q()},[w,q]),ae=C.useMemo(()=>p.isDisabled||p.isLoading||e.length<1,[p.isDisabled,p.isLoading,e]);C.useEffect(()=>{if(B)return setTimeout(()=>document.addEventListener("mousedown",se),0),()=>document.removeEventListener("mousedown",se)},[B,se]);const le=C.useCallback((ee,ne)=>{ee.stopPropagation(),ee.preventDefault();let ce=[..._];ce.includes(ne)?ce=ce.filter(xe=>xe!==ne):ce.push(ne),A==null||A(ce)},[_,A]),fe=C.useCallback(()=>{if(!m||!w.current)return;const ee=ju.calculateOptimalSelectWidth({elementRef:w,options:e,selectedOptions:_,placeholder:o,optionRenderer:ne=>c({option:ne}),type:n,isMulti:!0});D(ee)},[m,w,e,_,o,c,n]);return C.useEffect(()=>m?((e!==I.current||R===void 0)&&(F.current!==null&&cancelAnimationFrame(F.current),F.current=requestAnimationFrame(()=>{fe(),F.current=null,I.current=[...e]})),()=>{F.current!==null&&(cancelAnimationFrame(F.current),F.current=null)}):void 0,[m,e,fe,R]),C.useEffect(()=>()=>{typeof ju.clearCache=="function"&&ju.clearCache()},[]),S.jsxs(S.Fragment,{children:[S.jsxs(Jr,{...p,abaseRef:w,isDisabled:p.isDisabled||e.length<1,className:Ye.clsx(p.className,Oi.AMultiSelect,"NoSelect",B&&Oi.IsOpen,ae&&Oi.UnAvailable,Oi[n]),style:{padding:n==="Secondary"?"8px 8px 8px 0":0,width:R?`${R}px`:m?"100px":void 0,...p.style},onClick:V,children:[S.jsx("div",{className:Oi.ValuesContainer,children:S.jsx("div",{className:Ye.clsx(Oi.Values,_.length<1&&Oi.Placeholder),children:S.jsx(a,{OptionRenderer:c,placeholder:o,selectedOptions:_})})}),S.jsx("div",{...g,className:Ye.clsx(Oi.Arrow,g==null?void 0:g.className),children:S.jsx(gn,{icon:"TriangleDown",style:{transform:B?"rotate(180deg)":"",transition:"var(--Transition)"}})})]}),e.length>0&&(B||j)&&Ls.createPortal(S.jsx("div",{ref:T,className:Ye.clsx(Oi.Options,Oi[n]),style:{opacity:+B,visibility:B?"visible":"hidden",pointerEvents:B?void 0:"none",width:R?`${R}px`:m?"100px":void 0,borderRadius:w.current?window.getComputedStyle(w.current).borderRadius:void 0},onTransitionEnd:ge,children:e.map((ee,ne)=>{var xe;const ce=_.includes(ee);return S.jsxs("div",{className:Ye.clsx(Oi.Option,ce&&Oi.Selected,"NoSelect",Oi[n]),style:{height:(xe=w.current)==null?void 0:xe.getBoundingClientRect().height},onClick:Me=>le(Me,ee),children:[S.jsx(of,{className:Oi.CheckBox,useCheck:[+ce,void 0]}),S.jsx(c,{option:ee})]},ne)})}),document.body)]})};function Xg(r,e,t,n,o){if(!e.current||!r.current||!t||t.length<1)return;const i=e.current.getBoundingClientRect(),a=Jk(i,t.length,n,o),c=window.getComputedStyle(e.current);r.current.style.top=`calc(${a.top??0}px - ${c.borderTopWidth})`,r.current.style.bottom=a.bottom?a.bottom+"px":"",r.current.style.left=a.left+"px",r.current.style.width||(r.current.style.minWidth=a.minWidth+"px"),r.current.style.minHeight=a.minHeight+"px",r.current.style.maxHeight=a.maxHeight+"px",r.current.style.visibility="visible"}function Jk(r,e,t,n){const o={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<o.height&&(window.innerHeight-r.bottom-10<o.minHeight?(o.top=r.top-e*r.height,o.top<0&&(o.top=10,o.minHeight=r.top-10,o.height=r.top-10)):o.height=window.innerHeight-r.bottom-10),o}const Qk=r=>{const{OptionRenderer:e,selectedOptions:t,placeholder:n}=r;return t.length<1?n:t.length===1?S.jsx(e,{option:t[0]}):`${t.length} selected`},eI=r=>{const{option:e}=r;return ar.isReactNode(e)?e:null},tI="_Container_10ion_1",rI="_Steps_10ion_9",nI="_Step_10ion_9",oI="_OutCircle_10ion_26",iI="_IsOver_10ion_37",sI="_InCircle_10ion_41",aI="_Line_10ion_54",lI="_Left_10ion_66",cI="_Right_10ion_69",uI="_ContentContainer_10ion_73",dI="_Content_10ion_73",gi={Container:tI,Steps:rI,Step:nI,OutCircle:oI,IsOver:iI,InCircle:sI,Line:aI,Left:lI,Right:cI,ContentContainer:uI,Content:dI},fI=r=>{const{useSelect:e,steps:t,StepRenderer:n=dy,ContentRenderer:o=dy}=r;if(t.length===0)throw new Error("steps should have at least one element");const i=C.useRef(null),[a,c]=wn(e,t[0]),d=C.useCallback(g=>c==null?void 0:c(g),[c]),h=C.useMemo(()=>t.indexOf(a),[a,t]);return C.useEffect(()=>{h<0&&d(t[0])},[h,t,d]),S.jsxs("div",{className:gi.Container,children:[S.jsx("div",{className:gi.Steps,children:t.map((g,m)=>{const p=t.indexOf(g),v=h>=m,w=h>m;return S.jsxs("div",{className:gi.Step,children:[m!==0&&S.jsx("div",{className:Ye.clsx(gi.Line,gi.Left,v&&gi.IsOver)}),m!==t.length-1&&S.jsx("div",{className:Ye.clsx(gi.Line,gi.Right,w&&gi.IsOver)}),S.jsx(Zo,{className:Ye.clsx(gi.OutCircle,v&&gi.IsOver),type:"Raw",onClick:()=>d(g),children:S.jsx("div",{className:Ye.clsx(gi.InCircle,v&&gi.IsOver)})}),S.jsx(n,{step:g,stepIdx:p})]},m)})}),S.jsx("div",{ref:i,className:gi.ContentContainer,children:t.map((g,m)=>{const p=t.indexOf(g);return S.jsx("div",{className:gi.Content,style:m===0?{marginLeft:`${h*-100}%`}:{},children:S.jsx(o,{step:g,stepIdx:p})},m)})})]})},dy=r=>{const{step:e}=r;return typeof e=="object"?ar.stringify(e):e},hI="_ATab_2c2d2_1",pI="_Option_2c2d2_9",gI="_Underline_2c2d2_23",mI="_IsSelected_2c2d2_23",vI="_IndicatorTrack_2c2d2_34",yI="_Indicator_2c2d2_34",bI="_Primary_2c2d2_50",xI="_Secondary_2c2d2_57",wI="_IsDisabled_2c2d2_67",CI="_Tertiary_2c2d2_81",SI="_Quaternary_2c2d2_111",Mc={ATab:hI,Option:pI,Underline:gI,IsSelected:mI,IndicatorTrack:vI,Indicator:yI,Primary:bI,Secondary:xI,IsDisabled:wI,Tertiary:CI,Quaternary:SI},_I=["Primary","Secondary","Tertiary","Quaternary"],e2=r=>{const{options:e,useSelect:t,selectDisabled:n,type:o="Primary",tabProps:i,optionProps:a,optionWidth:c,OptionRenderer:d=AI,RightAddon:h,color:g,selectedColor:m,underline:p,indicatorProps:v,indicatorTrackProps:w}=r;if(e.length===0)throw new Error("options should have at least one element");const T=C.useMemo(()=>e.findIndex(ne=>!(n!=null&&n(ne))),[e,n]),_=o==="Tertiary"?2:0,A=o==="Secondary"?8:0,R=C.useMemo(()=>_+A,[_,A]),D=o==="Tertiary"?2:0,I=C.useMemo(()=>(A-_-D-D)/e.length,[e.length,_,A,D]),[F,B]=wn(t,e[T]),H=C.useRef([]),j=C.useCallback(ne=>B==null?void 0:B(ne),[B]),G=C.useMemo(()=>typeof c=="number"?c+"px":c,[c]),ge=C.useMemo(()=>e.indexOf(F),[e,F]),P=C.useMemo(()=>`calc(${100/e.length}% + ${I}px)`,[e.length,I]),q=C.useMemo(()=>G||`calc(${P} - ${R}px)`,[P,R,G]),[V,Q]=C.useState(0),[ie,se]=C.useState(0),[ae,le]=C.useState(q),fe=C.useMemo(()=>{let ne;switch(G){case void 0:ne=`calc(${P} * ${ge})`;break;case"fit-content":ne=`calc(${V}px)`;break;default:ne=`calc((${G} + ${R}px) * ${ge})`;break}return`calc(${ne} + ${D}px)`},[G,D,P,ge,V,R]),ee=C.useMemo(()=>{switch(G){case void 0:return;case"fit-content":return`calc(${ie}px)`;default:return`calc((${G} + ${R}px - ${I}px) * ${e.length})`}},[G,I,R,e,ie]);return C.useEffect(()=>{var ce,xe;if(e.includes(F)||B==null||B(e[T]),G!=="fit-content"){le(q);return}let ne=0;H.current.forEach((Me,oe)=>{oe<ge&&Me.current&&(ne+=Me.current.offsetWidth+R)}),Q(ne),le(`calc(${((xe=(ce=H.current[ge])==null?void 0:ce.current)==null?void 0:xe.offsetWidth)||0}px)`),se(H.current.reduce((Me,oe)=>{var Se;return Me+((((Se=oe.current)==null?void 0:Se.offsetWidth)||0)+R-I)},0))},[G,H,e,F,B,T,I,R,ge,q]),S.jsxs("div",{...i,className:Ye.clsx(Mc.ATab,"Headline2",Mc[o],i==null?void 0:i.className),children:[S.jsx("div",{...v,className:Ye.clsx(Mc.Indicator,v==null?void 0:v.className),style:{minWidth:ae,left:fe,marginLeft:_,...v==null?void 0:v.style}}),S.jsx("div",{...w,className:Ye.clsx(Mc.IndicatorTrack,w==null?void 0:w.className),style:{width:ee,...w==null?void 0:w.style}}),S.jsx(Nn,{w:D}),e.map((ne,ce)=>{const xe=n==null?void 0:n(ne);return H.current[ce]||(H.current[ce]=C.createRef()),S.jsx(Jr,{abaseRef:H.current[ce],...a,isDisabled:xe,className:Ye.clsx(Mc.Option,xe&&Mc.IsDiabled,ne===F&&Mc.IsSelected,"IsClickable",p&&Mc.Underline,a==null?void 0:a.className),style:{minWidth:q,maxWidth:q,marginLeft:_,marginRight:A,"--color":ne===F&&m||g,...a==null?void 0:a.style},onClick:Me=>{!xe&&j(ne),a&&a.onClick&&a.onClick(Me)},children:S.jsx(d,{option:ne})},ce)}),S.jsx(Nn,{w:D+D+_}),h&&S.jsxs(S.Fragment,{children:[S.jsx(Zu,{}),h]})]})},AI=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=ar.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 t2(...r){const e=C.useRef(!1);C.useEffect(()=>{e.current||(e.current=!0,r.forEach(t=>t()))},[r])}const r2={String:(r,e,t,n)=>{const{value:o}=n;if(o===void 0)return!1;if(t==="")return ar.keys(e).some(g=>{const m=e[g],p=Pr.getContent(m.asText,{defKey:g,def:m,item:r});if(p!==void 0)return p.toString().toLowerCase().includes(o.toLowerCase());const v=Pr.getContent(m.content,{defKey:g,def:m,item:r});return["string","number"].includes(typeof v)&&v!==void 0&&v!==null?v.toString().toLowerCase().includes(o.toLowerCase()):!1});const i=ar.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],d=Pr.getContent(c.asText,{defKey:a,def:c,item:r});if(d!==void 0)return d.toString().toLowerCase().includes(o.toLowerCase());const h=Pr.getContent(c.content,{defKey:a,def:c,item:r});return["string","number"].includes(typeof h)&&h!==void 0&&h!==null?h.toString().toLowerCase().includes(o.toLowerCase()):!1},Select:(r,e,t,n)=>{const{value:o}=n;if(o==null)return!1;const i=ar.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],d=Pr.getContent(c.asText,{defKey:a,def:c,item:r});if(d!==void 0)return o.toString().toLowerCase()===d.toString().toLowerCase();const h=Pr.getContent(c.content,{defKey:a,def:c,item:r});return["string","number"].includes(typeof h)&&h!==void 0&&h!==null?o.toString().toLowerCase()===h.toString().toLowerCase():!1},Date:(r,e,t,n)=>{const{value:o}=n;if(o===void 0)return!1;const i=ar.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],d=Pr.getContent(c.asText,{defKey:a,def:c,item:r});if(d!==void 0){const g=tr.toDate(d.toString());return g&&tr.eq(g,o)}const h=Pr.getContent(c.content,{defKey:a,def:c,item:r});if(["string","number"].includes(typeof h)&&h!==void 0&&h!==null){const g=tr.toDate(h.toString());return g&&tr.eq(g,o)}return!1},DateRange:(r,e,t,n)=>{const{value:o}=n;if(o===void 0)return!1;const i=ar.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],d=Pr.getContent(c.asText,{defKey:a,def:c,item:r});if(d!==void 0){const g=tr.toDate(d.toString());return g&&tr.be(o.sDate,g,o.eDate)}const h=Pr.getContent(c.content,{defKey:a,def:c,item:r});if(["string","number"].includes(typeof h)&&h!==void 0&&h!==null){const g=tr.toDate(h.toString());return g&&tr.be(o.sDate,g,o.eDate)}return!1}},EI=(r,e,t)=>{let n=r;return ar.keys(t).forEach(i=>{const a=t[i];a.value===void 0||a.value===null||a.value===""||(n=n.filter(c=>{var d;return(d=a.predicate??r2[a.type])==null?void 0:d(c,e,i,a)}))}),n},TI=(r,e,t)=>{if(!t)return r;const n=t.defKey,o=e[n];if(n===void 0)return r;const i=t.sortF??((a,c)=>{const d=Pr.getContent(o.content,{defKey:n,def:o,item:a}),h=Pr.getContent(o.content,{defKey:n,def:o,item:c});return typeof d=="string"&&typeof h=="string"?d<h?-1:d>h?1:0:typeof d=="number"&&typeof h=="number"?d-h:typeof d=="string"&&typeof h=="number"?-1:typeof d=="number"&&typeof h=="string"||d===void 0&&h!==void 0?1:d!==void 0&&h===void 0?-1:0});return typeof i=="function"&&i.length>=3?r.slice().sort((a,c)=>i(a,c,t.isAsc)):r.slice().sort((a,c)=>{const d=i(a,c);return t.isAsc?d:-d})},RI=(r,e,t)=>r.slice((e-1)*t,e*t),n2=(r,e)=>{const t=Math.max(Math.ceil(r/e),1);return Array.from({length:t},(n,o)=>o+1)},kI=(r,e,t,n)=>{const o=n2(e,t),i=Math.floor((r-1)/n),a=i*n+1,c=(i+1)*n,d=o.slice(a-1,c);return{pages:o,rangedPages:d}},II=(r,e,t)=>{const n=[],o=Object.keys(t),i=[];o.forEach(p=>{const v=t[p],w=Pr.getContent(v.hContent,{defKey:p,def:v});if(w!==void 0){if(typeof w=="string"){i.push(w);return}else if(typeof w=="number"){i.push(w.toString());return}}const T=Pr.getContent(v.name,{defKey:p,def:v});if(T!==void 0&&typeof T=="string"){i.push(T);return}i.push(p)});const a=i.map(p=>`"${p.replaceAll('"','""')}"`);n.push(a.join(",")),e.forEach(p=>{const v=[];o.forEach(T=>{const _=t[T],A=Pr.getContent(_.content,{defKey:T,def:_,item:p});if(A!==void 0){if(typeof A=="string"){v.push(A);return}else if(typeof A=="number"){v.push(A.toString());return}}const R=p[T];typeof R=="string"?v.push(R):typeof R=="number"?v.push(R.toString()):v.push("")});const w=v.map(T=>`"${T.replaceAll('"','""')}"`);n.push(w.join(","))});const c=`${r}.csv`,d="\uFEFF"+n.join(`
|
166
|
-
`),h=new Blob([d],{type:"text/csv;charset=UTF-8"}),g=URL.createObjectURL(h),m=document.createElement("a");m.href=g,m.download=c,m.click(),URL.revokeObjectURL(g)},MI=r=>{const e=ar.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},LI=r=>{const e=Object.entries(r);let t={};return e.forEach(([n,o])=>{!o||o.value===void 0||o.value===null||o.value===""||(o.type==="DateRange"?(t[o.sFilterKey]=o.value.sDate,t[o.eFilterKey]=o.value.eDate):t[o.filterKey??n]=o.value)}),t},DI=r=>{const e=ar.keys(r).filter(o=>o!=="");if(e.length!==1)return;const t=e[0],n=r[t];return!n||n.value===void 0||n.value===null||n.value===""?{selectedKey:t,value:void 0}:{selectedKey:t,value:n.value}},Bl={applyFilteration:EI,applySortation:TI,applyPagination:RI,getPages:n2,getRangedPages:kI,downloadCsv:II,getSingleFilterValue:MI,getMultiFilterValues:LI,getSelectFilterValue:DI},OI="_ATable_12zow_1",NI={ATable:OI};function o2(r,e,t,n){C.useEffect(()=>{if(r)return r.addEventListener(e,t,n),()=>{r.removeEventListener(e,t,n)}},[r,e,t,n])}const PI="_BodyHeader_ys4y0_1",BI="_TRow_ys4y0_7",FI="_OverflowSpace_ys4y0_11",jI="_BodyBody_ys4y0_16",HI="_IsSelected_ys4y0_35",zI="_IsSelectable_ys4y0_39",$I="_IsRowMarked_ys4y0_47",UI="_TH_ys4y0_52",qI="_TD_ys4y0_57",WI="_IsMarked_ys4y0_57",VI="_Resizer_ys4y0_76",GI="_IsMoving_ys4y0_88",YI="_IsResizable_ys4y0_91",ZI="_ResizerCenter_ys4y0_94",KI="_ResizerOut_ys4y0_100",XI="_ResizerIn_ys4y0_104",JI="_IsClicked_ys4y0_139",QI="_NoItems_ys4y0_146",e8="_Content_ys4y0_152",Ln={BodyHeader:PI,TRow:BI,OverflowSpace:FI,BodyBody:jI,IsSelected:HI,IsSelectable:zI,IsRowMarked:$I,TH:UI,TD:qI,IsMarked:WI,Resizer:VI,IsMoving:GI,IsResizable:YI,ResizerCenter:ZI,ResizerOut:KI,ResizerIn:XI,IsClicked:JI,NoItems:QI,Content:e8},Fc=25,Jg=50,t8=r=>{const{defs:e,isEqual:t,rProps:n,useSelect:o,isTableDisabled:i,isSelectMulti:a,selectDisabled:c,appliedFilteration:d,useSortation:h,pagination:g,pagedItems:m,noMarking:p,noDefHeader:v,isLoading:w,showRows:T,RowRenderer:_=o8,isRowRendered:A,rowHeight:R,resources:D}=r,[I,F]=C.useMemo(()=>o??[],[o]),B=C.useCallback(Ue=>{i||!F||!I||c!=null&&c(Ue)||(a?I.some(tt=>t(tt,Ue))?F(I.filter(tt=>!t(tt,Ue))):F([...I,Ue]):F([Ue]))},[I,c,F,t,i,a]);C.useEffect(()=>{a||!I||!F||I.length>1&&F([I[I.length-1]])},[I,F,a]),C.useEffect(()=>{if(!I||!F)return;I.filter(tt=>c==null?void 0:c(tt)).length>0&&F(I.filter(tt=>!(c!=null&&c(tt))))},[I,F,c]);const[H,j]=h,G=C.useCallback((Ue,tt)=>{j&&((H==null?void 0:H.defKey)===Ue?H.isAsc===!0?j({defKey:Ue,isAsc:!1,sortF:tt}):H.isAsc===!1?j(void 0):j({defKey:Ue,isAsc:!0,sortF:tt}):j({defKey:Ue,isAsc:!0,sortF:tt}))},[H,j]),[ge,P]=C.useState({elem:null,row:null}),q=C.useRef(null),V=C.useRef(null),Q=C.useCallback(()=>P({elem:q.current,row:V.current}),[]);C.useEffect(()=>Q(),[m.length,Q]),o2(window,"resize",Q);const[ie,se]=C.useState(R);C.useEffect(()=>{const{row:Ue}=ge;Ue!=null&&se(Ue.clientHeight)},[ge,ie]);const ae=C.useMemo(()=>{const{elem:Ue}=ge;return Ue?Math.floor(Ue.clientHeight/ie):0},[ge,ie]),le=C.useMemo(()=>T||(m.length<=ae?ae:m.length),[ae,T,m]),fe=C.useMemo(()=>{if(T!==void 0)return T*ie},[T,ie]),ee=C.useMemo(()=>fe,[fe]),ne=C.useMemo(()=>{const{elem:Ue}=ge;return Ue?Ue.getBoundingClientRect().height/ie<m.length:!1},[ge,ie,m.length]),[ce,xe]=C.useState(),Me=C.useMemo(()=>{const{elem:Ue}=ge;return!ce||!Ue?"100%":Ue.clientHeight+(A?0:50)},[ce,A,ge]),oe=C.useRef(null),[Se,Le]=C.useState({}),We=C.useRef({x:0,y:0}),Ve=C.useRef({}),we=C.useMemo(()=>ar.keys(Se),[Se]),_e=C.useCallback((Ue,tt)=>{const lt=oe.current;if(!lt)return;const bt=[];lt.childNodes.forEach(ht=>{ht.classList.contains(Ln.TH)&&bt.push(ht)});const Mt={};ar.keys(e).forEach((ht,ft)=>{const Oe=bt[ft];if(!Oe)return;const Je=Oe.getBoundingClientRect().width;Mt[ht]=Je}),Ve.current=Mt,xe(tt),We.current={x:Ue.clientX,y:Ue.clientY};const Qe=ht=>{if(!oe.current)return;const Oe=ht.clientX-We.current.x,Je=n8(e,tt,Ve.current,Oe);Le(Je)};document.addEventListener("mousemove",Qe);const Xe=()=>{xe(void 0),document.removeEventListener("mousemove",Qe),document.removeEventListener("mouseup",Xe)};document.addEventListener("mouseup",Xe)},[e]),Ae=C.useCallback(()=>{xe(void 0),Le({})},[]),Ie=C.useMemo(()=>{if(we.length===0){const lt={},bt=ar.keys(e);for(let Mt=0;Mt<bt.length;Mt++){const Qe=bt[Mt],Xe=e[Qe],ht=Pr.getContent(Xe.colSpan,{defKey:Qe,def:Xe}),ft=Xe.width??80,Oe=Xe.minWidth??Fc,Je=Xe.maxWidth,gt={width:ft,minWidth:Oe,maxWidth:Je,flexGrow:ht??1};if(lt[Qe]=gt,ht!==void 0){for(let It=1;It<Math.min(ht,bt.length-Mt);It++){const Et=e[bt[Mt+It]],Dt=Et.width??80,Xt=Et.minWidth??Fc,Wt=Et.maxWidth;gt.width+=Dt,gt.minWidth+=Xt,gt.maxWidth!==void 0&&(Wt!==void 0?gt.maxWidth+=Wt:gt.maxWidth=void 0)}Mt+=ht-1}}return lt}const Ue={},tt=ar.keys(e);for(let lt=0;lt<tt.length;lt++){let bt=tt[lt];const Mt=e[bt];let Qe=Se[bt];const Xe=Pr.getContent(Mt.colSpan,{defKey:bt,def:Mt}),ht=Mt.minWidth??Fc,ft=Mt.maxWidth,Oe={width:Qe,minWidth:ht,maxWidth:ft,flexGrow:Xe??1};if(Ue[bt]=Oe,Xe!==void 0){for(let Je=1;Je<Math.min(Xe,tt.length-lt);Je++){const gt=e[tt[lt+Je]],It=Se[tt[lt+Je]],Et=gt.minWidth??Fc,Dt=gt.maxWidth;Oe.width+=It,Oe.minWidth+=Et,Oe.maxWidth!==void 0&&(Dt!==void 0?Oe.maxWidth+=Dt:Oe.maxWidth=void 0)}lt+=Xe-1}}return Ue},[e,we,Se]),je=C.useRef(null),it=C.useMemo(()=>Bl.getSingleFilterValue(d),[d]);return C.useEffect(()=>{q.current&&q.current.scrollTo({top:0})},[g.page]),C.useEffect(()=>{A&&V.current&&V.current.scrollIntoView({behavior:"smooth",block:"center"})},[I,m,A]),S.jsxs(S.Fragment,{children:[S.jsx(gv,{isLoading:w}),S.jsx("div",{ref:je,className:Ye.clsx(Ln.BodyHeader,ce!==void 0&&Ln.IsClicked),style:{display:v||A?"none":"flex"},onResizeCapture:Q,children:S.jsx("div",{ref:oe,className:Ln.TRow,style:{minHeight:Jg,maxHeight:Jg},children:ar.map(e,([Ue],tt)=>{const lt=e[Ue],bt=Pr.getContent(lt.hContent,{defKey:Ue,def:lt}),Mt=lt.name,Qe=tt===ar.keys(e).length-1,Xe=lt.width??80,ht=lt.minWidth??Fc,ft=lt.maxWidth,Oe={width:Xe,minWidth:ht,maxWidth:ft,justifyContent:Pr.getContent(lt.hAlign,{defKey:Ue,def:lt})??"flex-start",...Pr.getContent(lt.hStyle,{defKey:Ue,def:lt})};we.includes(Ue)&&(Oe.width=Se[Ue]);const Je=lt.isSortable,gt=(H==null?void 0:H.defKey)===Ue,It=H==null?void 0:H.isAsc;return S.jsxs(C.Fragment,{children:[S.jsxs("div",{className:Ye.clsx(Ln.TH,"Label1",Je?"IsClickable":"NoSelect"),style:Oe,onClick:()=>Je&&G(Ue,lt.sortF),children:[S.jsx(tl,{children:bt??Mt,className:Ln.Content}),Je&&S.jsx(gn,{icon:gt?It?"SortUp":"SortDown":"SortBoth",style:{width:16,height:16}})]}),!Qe&&S.jsxs("div",{className:Ye.sclsx(Ln,"Resizer","IsResizable","NoSelect",ce!==void 0&&"IsMoving"),onDoubleClick:Ae,onMouseDown:Et=>_e(Et,Ue),children:[S.jsx("div",{className:Ln.ResizerOut}),S.jsx("div",{className:Ln.ResizerIn}),S.jsx("div",{className:Ln.ResizerCenter,style:{height:Me}}),S.jsx("div",{className:Ln.ResizerIn}),S.jsx("div",{className:Ln.ResizerOut})]}),Qe&&S.jsx(Nn,{className:Ln.OverflowSpace,h:Jg,style:{color:Oe.color,backgroundColor:Oe.backgroundColor,transition:Oe.transition},w:"var(--Scrollbar-width)"})]},Ue)})})}),S.jsxs("div",{ref:q,className:Ye.clsx(Ln.BodyBody,ce!==void 0&&Ln.IsClicked),style:{overflowY:ne?"scroll":"hidden",minHeight:fe,maxHeight:ee},children:[m.map((Ue,tt)=>{const lt=Pr.getContent(n,{item:Ue}),bt=F&&!i,Mt=I==null?void 0:I.some(ft=>t(ft,Ue)),Qe=I&&(c==null?void 0:c(Ue)),Xe=typeof Qe=="string"?Qe:void 0,ht={...Ue};return A&&ar.keys(e).forEach(ft=>{const Oe=e[ft],Je=Pr.getContent(Oe.content,{defKey:ft,def:Oe,item:Ue});let gt=!1;if(it&&!p){const It=Pr.getContent(Oe.asText,{defKey:ft,def:Oe,item:Ue});It!==void 0?gt=It.toString().toLowerCase().includes(it.toLowerCase()):["string","number"].includes(typeof Je)&&Je!==void 0&&Je!==null&&(gt=Je.toString().toLowerCase().includes(it.toLowerCase()))}ht[ft]=S.jsx("span",{className:Ye.clsx(gt&&Ln.IsRowMarked),children:ht[ft]})}),S.jsx(Jr,{isDisabled:Qe,tooltip:Xe,...lt,abaseRef:Mt?V:void 0,className:Ye.clsx(lt==null?void 0:lt.className,bt&&Ln.IsSelectable,Mt&&Ln.IsSelected),onClick:ft=>{var Oe;B(Ue),(Oe=lt==null?void 0:lt.onClick)==null||Oe.call(lt,ft)},children:S.jsx(_,{defs:e,isBodyBodyOverflowed:ne,item:Ue,markedItem:ht,noMarking:p,rowHeight:R,singleFilterValue:it,spanWidths:Ie})},tt)}),S.jsx(r8,{isRowRendered:A,itemsLength:m.length,resources:D,rowHeight:ie,showRows:le})]})]})},r8=r=>{const{showRows:e,itemsLength:t,resources:n,isRowRendered:o,rowHeight:i}=r,a=C.useMemo(()=>t===0?e:e-t,[e,t]);return Array.from({length:a},(c,d)=>S.jsx("div",{className:Ye.clsx(Ln.TRow,"NoSelect"),style:{minHeight:i,maxHeight:i,...o&&{border:"none"}},children:t===0&&d===Math.floor(e/2)&&S.jsx(On,{className:Ln.NoItems,children:n["No Items"]})},d))};function n8(r,e,t,n){const o={...t},i=ar.keys(r).findIndex(h=>h===e)+1,a=Object.entries(r);let c=i-1,d=i;if(n<0){for(;n<0&&!(c<0||d>=a.length);){const[h,g]=[a[c][0],a[c][1]],[m,p]=[a[d][0],a[d][1]],v=g.minWidth??Fc,w=p.maxWidth,T=o[h],_=o[m];let A=T-v;w!==void 0&&(A=Math.min(A,w-_));let R=-n;R=Math.min(R,A),T-R<=v&&c--,w!==void 0&&_+R>=w&&d++,o[h]=T-R,o[m]=_+R,n+=R}return o}else if(n>0){for(;n>0&&!(c<0||d>=a.length);){const[h,g]=[a[c][0],a[c][1]],[m,p]=[a[d][0],a[d][1]],v=p.minWidth??Fc,w=g.maxWidth,T=o[m],_=o[h];let A=T-v;w!==void 0&&(A=Math.min(A,w-_));let R=n;R=Math.min(R,A),T-R<=v&&d++,w!==void 0&&_+R>=w&&c--,o[m]=T-R,o[h]=_+R,n-=R}return o}return o}const o8=r=>{const{defs:e,item:t,noMarking:n,spanWidths:o,singleFilterValue:i,isBodyBodyOverflowed:a,rowHeight:c}=r;return S.jsx("div",{className:Ye.clsx(Ln.TRow),style:{minHeight:c,maxHeight:c},children:ar.map(e,([d],h)=>{const g=o[d];if(g===void 0)return null;const m=h===ar.keys(e).length-1,p=e[d],v=Pr.getContent(p.content,{defKey:d,def:p,item:t}),w={width:g.width,minWidth:g.minWidth,maxWidth:g.maxWidth,flexGrow:g.flexGrow,justifyContent:Pr.getContent(p.align,{defKey:d,def:p,item:t})??"flex-start",...Pr.getContent(p.style,{defKey:d,def:p,item:t})};let T=!1;if(i&&!n){const _=Pr.getContent(p.asText,{defKey:d,def:p,item:t});_!==void 0?T=_.toString().toLowerCase().includes(i.toLowerCase()):["string","number"].includes(typeof v)&&v!==void 0&&v!==null&&(T=v.toString().toLowerCase().includes(i.toLowerCase()))}return S.jsxs(C.Fragment,{children:[S.jsx("div",{className:Ye.clsx(Ln.TD,"Label1",T&&Ln.IsMarked),style:w,children:S.jsx(tl,{children:v,className:Ln.Content})}),!a&&m&&S.jsx(Nn,{className:Ln.OverflowSpace,h:c,style:{color:w.color,backgroundColor:w.backgroundColor},w:"var(--Scrollbar-width)"})]},d)})})},i8="_ATableFooter_w090q_1",s8="_Button_w090q_10",a8="_IsSelected_w090q_26",l8="_IsDisabled_w090q_31",oa={ATableFooter:i8,Button:s8,IsSelected:a8,IsDisabled:l8},c8=r=>{const{pages:e,rangedPages:t,pageF:n,pagination:o}=r,i=C.useMemo(()=>e[e.length-1],[e]);return S.jsxs(On,{className:oa.ATableFooter,children:[S.jsx(gn,{className:Ye.clsx(oa.Button,o.page===1&&oa.IsDisabled),icon:"FirstPage",onClick:n.moveFirst}),S.jsx(gn,{className:Ye.clsx(oa.Button,o.page===1&&oa.IsDisabled),icon:"NavigateBefore",onClick:n.movePrev}),t.map(a=>S.jsx("div",{className:Ye.clsx(oa.Button,"NoSelect",o.page===a&&oa.IsSelected),onClick:()=>n.move(a),children:a},a)),S.jsx(gn,{className:Ye.clsx(oa.Button,o.page===i&&oa.IsDisabled),icon:"NavigateNext",onClick:n.moveNext}),S.jsx(gn,{className:Ye.clsx(oa.Button,o.page===i&&oa.IsDisabled),icon:"LastPage",onClick:n.moveLast})]})},u8="_Filter_1b9j0_1",d8="_SelectFilter_1b9j0_11",f8="_MainFilter_1b9j0_15",h8="_IsOpen_1b9j0_26",p8="_SubFilters_1b9j0_30",g8="_Input_1b9j0_44",m8="_Main_1b9j0_15",v8="_Sub_1b9j0_30",y8="_Actions_1b9j0_62",b8="_Icon_1b9j0_67",x8="_LeftIcon_1b9j0_74",w8="_CircleAlertOutline_1b9j0_79",C8="_Rotate_1b9j0_87",Dr={Filter:u8,SelectFilter:d8,MainFilter:f8,IsOpen:h8,SubFilters:p8,Input:g8,Main:m8,Sub:v8,Actions:y8,Icon:b8,LeftIcon:x8,CircleAlertOutline:w8,Rotate:C8},S8=r=>{const{defs:e,useFilteration:t,hasToggleFilteration:n,filterF:o,isRowRendered:i,isFilterSort:a,filterType:c,resources:d,placeholder:h}=r,[g,m]=C.useState([]),[p,v]=C.useMemo(()=>t,[t]),w=C.useMemo(()=>c==="Select",[c]),T=C.useMemo(()=>ar.keys(p).map(oe=>String(oe)),[p]),[_,A]=C.useState(w&&T.length>0?T[0]:null),R=C.useCallback((oe,Se,Le)=>{if(!v)return;const We={...p};oe.value=Se,v(We),m(Ve=>Ve.map((we,_e)=>_e===(Le?Le+1:0)?"":we))},[p,v]),D=C.useMemo(()=>{let oe=[],Se=ar.keys(p);w&&_&&(Se=Se.filter(Le=>Le===_));for(const Le of Se)oe.push({key:Le,def:e[Le],filter:p[Le]});return oe},[p,e,w,_]),I=C.useMemo(()=>D.length>0?D[0]:null,[D]),F=C.useMemo(()=>g.length>0?g[0]:"",[g]),B=C.useMemo(()=>D.length>1?D.slice(1):[],[D]),H=C.useMemo(()=>g.length>1?g.slice(1):[],[g]),j=C.useMemo(()=>B.length>0,[B]),[G,ge]=C.useState(!1),[P,q]=C.useState(!1),V=C.useRef(null),Q=C.useCallback(()=>ge(!1),[]),ie=C.useRef(null),se=C.useCallback(()=>{q(!1),ge(!0),ie.current&&(document.removeEventListener("mousedown",ie.current),ie.current=null)},[]),ae=C.useCallback(()=>{const oe=Se=>{const Le=document.getElementById("root"),We=Se.target,Ve=V.current;!Le||!Ve||!We||!Ve.contains(We)&&Le.contains(We)&&se()};return ie.current=oe,oe},[se]),le=C.useCallback(()=>{ge(!0),q(!0),setTimeout(()=>{const oe=ae();document.addEventListener("mousedown",oe)},0)},[ae]),fe=C.useMemo(()=>P?se:le,[P,le,se]),ee=C.useCallback(()=>{const oe=D.map((Se,Le)=>Se.filter.type==="String"&&Se.filter.validation?Se.filter.validation(Se.filter.value||""):Se.filter.type==="Date"&&Se.filter.validation||Se.filter.type==="DateRange"&&Se.filter.validation?Se.filter.validation(Se.filter.value):g[Le]);return m(oe),oe.every(Se=>!Se)},[g,D]),ne=C.useCallback(oe=>{oe.key==="Enter"?(ee()&&o.apply(),oe.stopPropagation()):oe.key==="Escape"&&(q(!1),oe.currentTarget.focus(),oe.currentTarget.blur(),oe.stopPropagation())},[ee,q,o]),ce=C.useMemo(()=>({open:le,close:se,toggle:fe,validate:ee}),[le,se,fe,ee]),xe=C.useCallback(()=>{o.clear()},[o]),Me=C.useCallback(oe=>{if(!v||!oe)return;A(oe);const Se={...p};ar.keys(Se).forEach(Le=>{if(Le!==oe&&Se[Le])switch(Se[Le].type){case"String":Se[Le].value="";break;case"Select":Se[Le].value=null;break;case"Date":Se[Le].value=void 0;break;case"DateRange":Se[Le].value=void 0;break}}),m([]),v(Se),o.clear(),setTimeout(()=>{var We;const Le=(We=V.current)==null?void 0:We.querySelector("input");Le&&Le.focus()},0)},[p,v,m,o]);return I?S.jsxs(S.Fragment,{children:[w&&S.jsx(Kc,{isAutoWidth:!0,className:Ye.clsx(Dr.SelectFilter),options:T,type:"Secondary",useSelect:[_,Me],OptionRenderer:({option:oe})=>{const Se=e[oe];let Le;if(Se!=null&&Se.hContent){const We={defKey:oe,def:Se};Le=typeof Se.hContent=="function"?Se.hContent(We):Se.hContent}else{const We=p[oe],Ve=(Se==null?void 0:Se.name)||(We==null?void 0:We.placeholder)||String(oe);Le=S.jsx("span",{children:Ve})}return Le}}),S.jsxs("div",{ref:V,className:Ye.clsx(Dr.Filter),tabIndex:-1,style:{minWidth:i?a?180:void 0:180,maxWidth:i?a?300:void 0:300},onKeyDown:ne,onClick:oe=>{oe.preventDefault(),oe.stopPropagation()},children:[S.jsx(_8,{errorMessage:F,filterF:o,filterSet:I,hasSelectFilterType:w,hasSubFilters:j,hasToggleFilteration:n,isOpen:P,placeholder:h,popupF:ce,resources:d,onChange:R}),!w&&S.jsx(A8,{errorMessages:H,filterF:o,isOpen:P,isTransitioning:G,placeholder:h,resources:d,subFilterSets:B,validate:ee,onChange:R,onClearClick:xe,onTransitionEnd:Q})]})]}):null},_8=r=>{var p,v,w,T;const{filterSet:e,hasToggleFilteration:t,hasSelectFilterType:n,onChange:o,filterF:i,hasSubFilters:a,popupF:c,isOpen:d,resources:h,errorMessage:g,placeholder:m}=r;if(e.filter.type==="String"){const _=[e.filter.value??"",I=>o(e.filter,I)],A=m??e.filter.placeholder??((p=e.def)==null?void 0:p.name),R=e.filter.icon,D=e.filter.iconTooltip??A;return S.jsxs("div",{className:Ye.clsx(Dr.MainFilter,d&&Dr.IsOpen),children:[S.jsx(Ya,{icon:R??"Type",isOpen:d,tooltip:D}),S.jsx(Zc,{autoFocus:e.filter.autoFocus,className:Ye.clsx(Dr.Input,Dr.Main),dataList:e.filter.dataList,LeftAddon:t&&S.jsx(np,{isOpen:d,filterF:i,popupF:c,resources:h}),maxLength:e.filter.maxLength,placeholder:A??h["Search(Placeholder)"],type:g?"Error":"Primary",useValue:_,wrapProps:{style:{width:"100%",boxSizing:"border-box"}},RightAddon:S.jsx(op,{errorMessage:g,filterF:i,hasSelectFilterType:n,hasSubFilters:a,isOpen:d,popupF:c,resources:h})})]})}else if(e.filter.type==="Select"){const _=[e.filter.value??null,I=>{o(e.filter,I),n&&setTimeout(()=>{c.validate()&&i.apply()},0)}],A=m??e.filter.placeholder??((v=e.def)==null?void 0:v.name),R=e.filter.icon,D=e.filter.iconTooltip??A;return S.jsxs("div",{className:Ye.clsx(Dr.MainFilter,d&&Dr.IsOpen),children:[S.jsx(Ya,{icon:R??"Menu",isOpen:d,tooltip:D}),S.jsx(Kc,{className:Ye.clsx(Dr.Input,Dr.Main),OptionRenderer:e.filter.OptionRenderer,options:e.filter.options,placeholder:A,useSelect:_,SelectedRenderer:({OptionRenderer:I,selectedOption:F})=>F===null?A||e.filter.placeholder:S.jsxs(S.Fragment,{children:[t&&S.jsx(np,{isOpen:d,filterF:i,popupF:c,resources:h}),S.jsx(I,{option:F}),S.jsx(op,{filterF:i,hasSelectFilterType:n,hasSubFilters:a,hideSearchButton:!0,isOpen:d,popupF:c,resources:h})]})})]})}else if(e.filter.type==="Date"){const _=[e.filter.value,I=>o(e.filter,I)],A=m??e.filter.placeholder??((w=e.def)==null?void 0:w.name),R=e.filter.icon,D=e.filter.iconTooltip??A;return S.jsxs("div",{className:Ye.clsx(Dr.MainFilter,d&&Dr.IsOpen),children:[S.jsx(Ya,{icon:R??"CalendarDay",isOpen:d,tooltip:D}),S.jsx(hv,{className:Ye.clsx(Dr.DatePicker,Dr.Input,Dr.Main),maxDate:e.filter.maxDate,minDate:e.filter.minDate,placeholder:A,type:"Raw",useDate:_,LeftAddon:S.jsxs(S.Fragment,{children:[t&&S.jsx(np,{isOpen:d,filterF:i,popupF:c,resources:h}),!t&&S.jsx(Nn,{w:d?0:6}),S.jsx(Ya,{icon:R??"CalendarDay",isOpen:!d,tooltip:D}),S.jsx(Nn,{w:d?8:0})]}),RightAddon:S.jsx(op,{filterF:i,hasSelectFilterType:n,hasSubFilters:a,isOpen:d,popupF:c,resources:h})})]})}else if(e.filter.type==="DateRange"){const _=[e.filter.value,F=>o(e.filter,F)],{noDefaultChoices:A}=e.filter,R=m??e.filter.placeholder??((T=e.def)==null?void 0:T.name),D=e.filter.icon,I=e.filter.iconTooltip??R;return S.jsxs("div",{className:Ye.clsx(Dr.MainFilter,d&&Dr.IsOpen),children:[S.jsx(Ya,{icon:D??"CalendarDay",isOpen:d,tooltip:I}),S.jsx(dv,{className:Ye.clsx(Dr.DatePicker,Dr.Input,Dr.Main),maxDate:e.filter.maxDate,minDate:e.filter.minDate,noDefaultChoices:A,placeholder:R,type:"Raw",useDateRange:_,LeftAddon:S.jsxs(S.Fragment,{children:[t&&S.jsx(np,{isOpen:d,filterF:i,popupF:c,resources:h}),!t&&S.jsx(Nn,{w:d?0:6}),S.jsx(Ya,{icon:D??"CalendarDay",isOpen:!d,tooltip:I}),S.jsx(Nn,{w:d?8:0})]}),RightAddon:S.jsx(op,{filterF:i,hasSelectFilterType:n,hasSubFilters:a,isOpen:d,popupF:c,resources:h})})]})}return null},np=r=>{const{filterF:e,popupF:t,resources:n,isOpen:o}=r;return S.jsx(_o,{className:Dr.Icon,icon:"Convert",style:{width:o?0:24,marginLeft:o?0:8},tooltip:n["Toggle Filter"],type:"Raw",onMouseDown:i=>i.currentTarget.classList.remove(Dr.Rotate),onClick:i=>{i.currentTarget.classList.add(Dr.Rotate),e.toggle(),t.close(),i.stopPropagation()}})},op=r=>{const{hasSubFilters:e,popupF:t,isOpen:n,resources:o,errorMessage:i,hideSearchButton:a,hasSelectFilterType:c,filterF:d}=r,h=C.useCallback(p=>{p.stopPropagation(),t.open()},[t]),g=C.useCallback(p=>{p.stopPropagation(),t.close()},[t]),m=C.useCallback(p=>{p.stopPropagation(),t.validate()&&d.apply()},[t,d]);return S.jsxs(C.Fragment,{children:[i&&S.jsx(_o,{className:Dr.CircleAlertOutline,icon:"CircleAlertOutline",iconSize:"xs",tooltip:i,type:"Raw"}),e&&!c&&S.jsx(_o,{className:Dr.Icon,icon:"ListAdd",type:"Raw",style:{opacity:+!n,visibility:+!n?"visible":"hidden",marginRight:-24,pointerEvents:n?"none":void 0},onClick:h}),e&&!c&&S.jsx(_o,{className:Dr.Icon,icon:"ListRemove",type:"Raw",style:{opacity:+n,visibility:+n?"visible":"hidden",marginRight:n?-24:0,pointerEvents:n?void 0:"none"},onClick:g}),!a&&S.jsx(_o,{className:Dr.Icon,icon:"Search",tooltip:o["Search(Button)"],type:"Raw",style:{opacity:+!n,visibility:+!n?"visible":"hidden",pointerEvents:n?"none":void 0,marginRight:4},onClick:m})]})},A8=r=>{const{subFilterSets:e,onChange:t,onClearClick:n,isOpen:o,isTransitioning:i,onTransitionEnd:a,resources:c,errorMessages:d,placeholder:h,filterF:g,validate:m}=r;return!o&&!i?null:S.jsxs("div",{className:Dr.SubFilters,style:{opacity:+o,visibility:+o?"visible":"hidden"},onTransitionEnd:a,children:[e.map((p,v)=>{var w,T,_,A;if(p.filter.type==="String"){const R=[p.filter.value??"",H=>t(p.filter,H,v)],D=d[v],I=h??p.filter.placeholder??((w=p.def)==null?void 0:w.name),F=p.filter.icon,B=p.filter.iconTooltip??I;return S.jsxs(On,{style:{marginBottom:6},children:[S.jsx(Ya,{icon:F??"Type",tooltip:B}),S.jsx(Zc,{autoFocus:p.filter.autoFocus,className:Ye.clsx(Dr.Input,Dr.Sub),dataList:p.filter.dataList,maxLength:p.filter.maxLength,placeholder:I??c["Search(Placeholder)"],type:D?"Error":"Secondary",useValue:R,wrapProps:{style:{width:"100%"}},RightAddon:D&&S.jsx(_o,{className:Dr.CircleAlertOutline,icon:"CircleAlertOutline",iconSize:"xs",tooltip:D,type:"Raw"})}),S.jsx(Nn,{h:8})]},v)}else if(p.filter.type==="Select"){const R=[p.filter.value??null,B=>t(p.filter,B)],D=h??p.filter.placeholder??((T=p.def)==null?void 0:T.name),I=p.filter.icon,F=p.filter.iconTooltip??D;return S.jsxs(On,{style:{marginBottom:6},children:[S.jsx(Ya,{icon:I??"Menu",tooltip:F}),S.jsx(Kc,{arrowProps:{style:{marginRight:4}},className:Ye.clsx(Dr.Input,Dr.Sub),OptionRenderer:p.filter.OptionRenderer,options:p.filter.options,placeholder:D,type:"Secondary",useSelect:R}),S.jsx(Nn,{h:8})]},v)}else if(p.filter.type==="Date"){const R=[p.filter.value,B=>t(p.filter,B)],D=h??p.filter.placeholder??((_=p.def)==null?void 0:_.name),I=p.filter.icon,F=p.filter.iconTooltip??D;return S.jsxs(On,{style:{marginBottom:6},children:[S.jsx(Ya,{icon:I??"CalendarDay",tooltip:F}),S.jsx(hv,{className:Ye.clsx(Dr.DatePicker,Dr.Input,Dr.Sub),LeftAddon:S.jsx(Nn,{w:12}),maxDate:p.filter.maxDate,minDate:p.filter.minDate,placeholder:D,type:"Raw",useDate:R}),S.jsx(Nn,{h:8})]},v)}else if(p.filter.type==="DateRange"){const R=[p.filter.value,H=>t(p.filter,H)],{noDefaultChoices:D}=p.filter,I=h??p.filter.placeholder??((A=p.def)==null?void 0:A.name),F=p.filter.icon,B=p.filter.iconTooltip??I;return S.jsxs(On,{style:{marginBottom:6},children:[S.jsx(Ya,{icon:F??"CalendarDay",tooltip:B}),S.jsx(dv,{className:Ye.clsx(Dr.DatePicker,Dr.Input,Dr.Sub),LeftAddon:S.jsx(Nn,{w:12}),maxDate:p.filter.maxDate,minDate:p.filter.minDate,noDefaultChoices:D,placeholder:I,type:"Raw",useDateRange:R})]},v)}else return null}),S.jsxs(On,{className:Dr.Actions,children:[S.jsx(Zo,{type:"Secondary",onClick:n,children:c["Clear(Button)"]}),S.jsx(Zo,{onClick:()=>{m()&&g.apply()},children:c["Search(Button)"]})]})]})},Ya=r=>{const{icon:e,tooltip:t,isOpen:n=!0}=r;return S.jsx(_o,{className:Dr.LeftIcon,icon:e,tooltip:t,type:"Raw",style:{width:n?24:0,marginRight:n?4:0,opacity:+n}})},E8="_ATableHeader_1hzfz_1",T8="_LeftHeaderContent_1hzfz_11",R8="_RightHeaderContent_1hzfz_19",k8="_TopRightAddon_1hzfz_27",I8="_HItem_1hzfz_32",Nu={ATableHeader:E8,LeftHeaderContent:T8,RightHeaderContent:R8,TopRightAddon:k8,HItem:I8},M8=r=>{const{defs:e,title:t,totalCount:n,useCheck:o,useFilteration:i,hasToggleFilteration:a,filterF:c,noFilter:d,noCount:h,isFiltered:g,TopLeftAddon:m,TopRightAddon:p,useSortation:v,resources:w=wr.ATable,filterType:T,placeholder:_}=r,[A]=C.useMemo(()=>o||[],[o]),R=C.useMemo(()=>g?w["Searched n items"](n):w["Total n items"](n),[w,g,n]),[D]=i,[I,F]=v,[B,H]=C.useState(!1),j=C.useMemo(()=>{const ae=ar.values(D).filter(ee=>ee.type==="DateRange"),le=ar.keys(D).filter(ee=>ae.includes(D[ee])),fe=ar.keys(e).filter(ee=>e[ee].isSortable);return le.length>0?(le.length>1&&H(!0),fe.map(ne=>le.includes(ne)?[ne+"_Asc",ne+"_Desc"]:ne).flat()):fe},[e,D]),G=C.useMemo(()=>r.isRowRendered&&j.length>0,[j.length,r.isRowRendered]),ge=C.useCallback((ae,le)=>{F&&(I==null?void 0:I.defKey)===ae&&(I.isAsc===!0?F({defKey:ae,isAsc:!1,sortF:le}):F({defKey:ae,isAsc:!0,sortF:le}))},[I,F]),P=C.useRef(),[q,V]=C.useState(),[Q,ie]=C.useState(I?I.defKey:j[0]),se=C.useMemo(()=>{if(!q)return{};const ae=e[q];return{SortUp:{onClick:()=>{F==null||F({defKey:q,isAsc:!0,sortF:ae.sortF}),ie(q)},content:()=>w["Sort up"]},SortDown:{onClick:()=>{F==null||F({defKey:q,isAsc:!1,sortF:ae.sortF}),ie(q)},content:()=>w["Sort down"]}}},[F,q,e,w]);return S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:Ye.clsx(Nu.ATableHeader),children:[S.jsxs("div",{className:Ye.clsx(Nu.LeftHeaderContent,"NoSelect"),children:[S.jsxs(On,{style:{marginBottom:G?8:0},children:[m&&S.jsx("div",{className:Ye.clsx(Nu.HItem),children:m}),t&&S.jsx("div",{className:Ye.clsx(Nu.HItem),style:{whiteSpace:"nowrap"},children:t}),!h&&S.jsxs("div",{className:Ye.clsx(Nu.HItem),style:{maxHeight:14,...G&&{minHeight:14,color:"var(--label-neutral)"}},children:[R,A&&A.length>0&&S.jsxs(S.Fragment,{children:[" / ",w["Checked n items"](A.length)]})]})]}),G&&S.jsx(e2,{options:j,optionWidth:"fit-content",tabProps:{style:{marginRight:8}},type:"Tertiary",useSelect:[Q,()=>{}],optionProps:{style:{cursor:"default"},onClick:ae=>{var ee;const le=ae.currentTarget.textContent;if(le===w[le])return;ae.currentTarget.querySelector("svg")===null&&((ee=P.current)==null||ee.open(ae.currentTarget))}},OptionRenderer:ae=>{const le=/_Asc|_Desc/.test(ae.option),fe=(I==null?void 0:I.defKey)===ae.option,ee=Q===ae.option,ne=I==null?void 0:I.isAsc,ce=()=>{if(le){V(void 0),ie(ae.option);const[oe,Se]=ae.option.split("_"),Le=Se==="Asc";F==null||F({defKey:oe,isAsc:Le,sortF:e[oe].sortF})}else ee?ge(ae.option,e[ae.option].sortF):V(ae.option)},Me=le?(oe=>{const[Se,Le]=oe.split("_");return(B?Se+" ":"")+w[Le]})(ae.option):w["Sort by x"](ae.option);return S.jsxs(On,{className:Ye.clsx(!(le&&ee)&&"IsClickable"),style:{height:"100%"},onClick:ce,children:[Me,ee&&!le&&S.jsx(gn,{icon:fe?ne?"RowSortUp":"RowSortDown":"RowSortBoth",style:{marginRight:-5,marginLeft:4}})]},ae.option)}})]}),S.jsx(Zu,{}),S.jsxs("div",{className:Ye.clsx(Nu.RightHeaderContent,"NoSelect"),children:[!d&&S.jsx(S8,{defs:e,filterF:c,filterType:T,hasToggleFilteration:a,isFilterSort:j.length>0,isRowRendered:r.isRowRendered,placeholder:_,resources:w,useFilteration:i}),p&&S.jsx(On,{children:p,className:Ye.clsx(Nu.TopRightAddon)})]})]}),S.jsx(Xw,{actionRef:P,defs:se,position:gf.S,width:100,onClose:()=>V(void 0)})]})},L8=r=>{const{defs:e,pk:t,defaultDef:n,rProps:o,useSelect:i,isSelectMulti:a,selectDisabled:c,useCheck:d,checkDisabled:h,isLoading:g,isDisabled:m,title:p,entireItems:v,onStateChange:w,pagedItems:T,totalCount:_,useFilteration:A,useToggleFilteration:R,filterType:D="Default",placeholder:I,rowHeight:F=40,usePagination:B,useSortation:H,showRows:j,noHeader:G,noDefHeader:ge,noFooter:P,noFilter:q,noCount:V,noMarking:Q,noStateChangeOnMount:ie,TopLeftAddon:se,TopRightAddon:ae,actionRef:le,RowRenderer:fe,resources:ee}=r,ne=C.useMemo(()=>({...wr.ATable,...ee}),[ee]),ce=C.useCallback((ye,Be)=>t!==void 0?Array.isArray(t)?t.every(At=>Za.isEqual(ye[At],Be[At])):Za.isEqual(ye[t],Be[t]):Za.isEqual(ye,Be),[t]),xe=C.useMemo(()=>({content:D8,...n}),[n]),Me=C.useMemo(()=>{const ye={};return ar.keys(e).forEach(Be=>{const At=e[Be],Ft={...xe,...At};ye[Be]=Ft}),ye},[xe,e]),[oe,Se]=wn(Za.cloneDeep(A),{"":{type:"String",placeholder:ne["Search(Placeholder)"],value:""}}),[Le,We]=wn(Za.cloneDeep(R),void 0),[Ve,we]=C.useState(!1),[_e,Ae]=C.useMemo(()=>Ve&&Le?[Le,We]:[oe,Se],[oe,Ve,Se,We,Le]),[Ie,je]=C.useState(_e),it=C.useMemo(()=>v?Bl.applyFilteration(v,Me,Ie):[],[v,Me,Ie]),Ue=C.useMemo(()=>{for(const ye in Ie){const Be=Ie[ye];if(Be.value!==void 0&&Be.value!==null&&Be.value!=="")return!0}return!1},[Ie]),[tt,lt]=wn(H,void 0),bt=C.useMemo(()=>Bl.applySortation(it,Me,tt),[it,Me,tt]),Mt=C.useMemo(()=>{if(T!==void 0)return Bl.applySortation(T,Me,tt)},[T,Me,tt]),[Qe,Xe]=wn(B,{page:1,pageSize:50,pageRange:10}),ht=C.useMemo(()=>({pageSize:50,page:1,pageRange:10,...Qe}),[Qe]),{pagedItems:ft,totalCount:Oe,pagination:Je}=C.useMemo(()=>{const ye={...ht};if(Mt!==void 0){let Be=_??Mt.length;const At=Bl.getPages(Be,ye.pageSize);return ye.page>At.length?ye.page=At.length:ye.page<1&&(ye.page=1),{pagedItems:Mt,totalCount:Be,pagination:ye}}else if(v!==void 0){const Be=_??bt.length,At=Bl.getPages(Be,ye.pageSize);return ye.page>At.length?ye.page=At.length:ye.page<1&&(ye.page=1),{pagedItems:Bl.applyPagination(bt,ye.page,ye.pageSize),totalCount:Be,pagination:ye}}else return{pagedItems:[],totalCount:_??0,pagination:ht}},[v,Mt,_,ht,bt]),{pages:gt,rangedPages:It}=C.useMemo(()=>Bl.getRangedPages(Je.page,Oe,Je.pageSize,Je.pageRange),[Oe,Je.pageSize,Je.page,Je.pageRange]),[Et,Dt]=C.useMemo(()=>d??[],[d]),Xt=C.useMemo(()=>ft.filter(ye=>Et==null?void 0:Et.some(Be=>ce(Be,ye))),[ft,Et,ce]),Wt=C.useMemo(()=>ft.filter(ye=>!(h!=null&&h(ye))),[ft,h]),hr=C.useMemo(()=>Wt.length>0&&Wt.every(ye=>Xt.some(Be=>ce(Be,ye))),[Xt,Wt,ce]),dr=C.useMemo(()=>hr?!1:Wt.some(ye=>Xt.some(Be=>ce(Be,ye))),[Xt,Wt,hr,ce]),cr=C.useCallback(()=>{!Et||!Dt||m||Dt(hr||dr?Et.filter(ye=>!Wt.some(Be=>ce(Be,ye))):[...Et,...Wt])},[Et,Dt,hr,dr,Wt,m,ce]),Te=C.useCallback(ye=>{!Et||!Dt||m||(Et.some(Be=>ce(Be,ye))?Dt(Et.filter(Be=>!ce(Be,ye))):Dt([...Et,ye]))},[Et,Dt,m,ce]);C.useEffect(()=>{if(!Dt||!Et||!h)return;Et.filter(Be=>h(Be)).length>0&&Dt(Et.filter(Be=>!h(Be)))},[h,Et,Dt]);const ue=C.useMemo(()=>({hContent:Et&&S.jsx(of,{isIndeterminate:dr,useCheck:[hr,cr]}),content:ye=>{const{item:Be}=ye,At=h==null?void 0:h(Be),Ft=typeof At=="string"?At:void 0,Ot=Et==null?void 0:Et.some(er=>ce(er,Be));return S.jsx(of,{isDisabled:At,style:{zIndex:1},tooltip:Ft,useCheck:[Ot,()=>Te(Be)],onClick:er=>er.stopPropagation()})},minWidth:32,maxWidth:32}),[Et,hr,dr,ce,cr,h,Te]),st=C.useMemo(()=>d?{checkDef:ue,...Me}:Me,[Me,ue,d]),[ze,vt]=C.useState(!1),_t=C.useMemo(()=>g??ze,[g,ze]),Tt=C.useCallback(async ye=>{w&&(vt(!0),await w(ye),vt(!1)),Xe==null||Xe(ye.pagination),lt==null||lt(ye.sortation),je(ye.filteration)},[w,Xe,lt]);C.useEffect(()=>{if(!le)return;const ye=At=>{const Ft={entireItems:v,filteration:_e,pagination:Je,sortation:tt},Ot=At?At(Ft):Ft;Tt(Ot)},Be=At=>{const Ft={...Je,page:1},Ot=At?At(_e):_e;Tt({entireItems:v,filteration:Ot,pagination:Ft,sortation:tt}),Ae==null||Ae(Ot)};le.current={fireOnStateChange:ye,applyFilteration:Be}},[le,Tt,v,Ae,_e,Je,tt]);const Ut=C.useCallback(ye=>{ye.page===Je.page&&ye.pageSize===Je.pageSize||(ye.page<1?ye.page=1:ye.page>gt[gt.length-1]&&(ye.page=gt[gt.length-1]),Tt({entireItems:v,filteration:Ie,pagination:ye,sortation:tt}))},[Je,gt,Tt,v,Ie,tt]),Ge=C.useCallback(ye=>{Ae&&Ae(ye)},[Ae]),at=C.useCallback(ye=>{Tt({entireItems:v,filteration:Ie,pagination:Je,sortation:ye})},[Tt,v,Ie,Je]),ct=C.useCallback(ye=>{Ut({...Je,page:ye})},[Ut,Je]),xt=C.useCallback(()=>{ct(Je.page-1)},[ct,Je.page]),Nt=C.useCallback(()=>{ct(Je.page+1)},[ct,Je.page]),Bt=C.useCallback(()=>{ct(1)},[ct]),qt=C.useCallback(()=>{ct(gt[gt.length-1])},[ct,gt]),Yt=C.useMemo(()=>({move:ct,movePrev:xt,moveNext:Nt,moveFirst:Bt,moveLast:qt}),[ct,xt,Nt,Bt,qt]),ir=C.useCallback(()=>{const ye={...Je,page:1};Tt({entireItems:v,filteration:_e,pagination:ye,sortation:tt})},[_e,Je,Tt,v,tt]),jt=C.useCallback(()=>{we(!Ve)},[Ve]),xr=C.useCallback(()=>{Ve&&Le?We==null||We(fy(Le)):Ae==null||Ae(fy(oe))},[Ve,Le,We,oe,Ae]),jr=C.useMemo(()=>({apply:ir,toggle:jt,clear:xr}),[ir,jt,xr]);t2(()=>{ie||Tt({entireItems:v,filteration:_e,pagination:Je,sortation:tt})});const Ze=C.useMemo(()=>ar.map(Me,([Be])=>Me[Be].minWidth??Fc).reduce((Be,At)=>Be+At,0),[Me]),te=C.useMemo(()=>fe!==void 0,[fe]);return S.jsxs(Jr,{className:NI.ATable,isDisabled:m,style:{minWidth:Ze},children:[!G&&S.jsx(M8,{defs:Me,filterF:jr,filterType:D,hasToggleFilteration:Le!==void 0,isFiltered:Ue,isRowRendered:te,noCount:V,noFilter:q,placeholder:I,resources:ne,title:p,TopLeftAddon:se,TopRightAddon:ae,totalCount:Oe,useCheck:d&&Et?[Et,Dt]:void 0,useFilteration:[_e,Ge],useSortation:[tt,at]}),S.jsx(t8,{appliedFilteration:Ie,defs:st,isEqual:ce,isLoading:_t,isRowRendered:te,isSelectMulti:a,isTableDisabled:m,noDefHeader:ge,noMarking:Q,pagedItems:ft,pagination:Je,resources:ne,rowHeight:F,RowRenderer:fe,rProps:o,selectDisabled:c,showRows:j,useSelect:i,useSortation:[tt,at]}),!P&&S.jsx(c8,{pageF:Yt,pages:gt,pagination:Je,rangedPages:It})]})},D8=r=>{const{defKey:e,item:t}=r;if(ar.hasKey(t,e)){const n=t[e];return ar.isReactNode(n)?n:null}else return null};function fy(r){const e={...r};for(const t in e)e[t].value=void 0;return e}const O8="_AText_1asz6_1",N8={AText:O8},i2=r=>{const{text:e,styled:t,style:n}=r,o=C.useMemo(()=>{if(e)if(t)if(n){if(t===!0)return n==="bold"?S.jsx("b",{children:e}):S.jsx("span",{style:n,children:e});if(typeof t=="string"){const i=e.split(t);return n==="bold"?i.map((a,c)=>S.jsxs(C.Fragment,{children:[ip(a),c<i.length-1?S.jsx("b",{children:ip(t)}):""]},c)):i.map((a,c)=>S.jsxs(C.Fragment,{children:[ip(a),c<i.length-1&&S.jsx("span",{style:n,children:ip(t)})]},c))}}else return e;else return e;else return""},[e,n,t]);return S.jsx("div",{className:Ye.clsx("Body1Reading",N8.AText,"NoSelect"),children:o})};function ip(r){const e=r.split(`
|
167
|
-
`);return e.map((t,n)=>S.jsxs(C.Fragment,{children:[t,n!==e.length-1&&S.jsx("br",{})]},n))}const P8="_Base_cpm4t_7",B8="_ATextArea_cpm4t_11",F8="_Primary_cpm4t_34",j8="_UnAvailable_cpm4t_39",H8="_Secondary_cpm4t_47",z8="_ReadOnly_cpm4t_59",sp={Base:P8,ATextArea:B8,Primary:F8,UnAvailable:j8,Secondary:H8,ReadOnly:z8,Error:"_Error_cpm4t_66"},$8=["Primary","Secondary","ReadOnly","Error"],U8=r=>{const{onEnterPress:e,errorMessage:t,type:n="Primary",textAreaRef:o,useValue:i,rows:a,isReadonly:c,placeholder:d,maxLength:h,tabIndex:g,autoFocus:m,textAreaProps:p,...v}=r,[{wrapId:w,wrapProps:T,labelProps:_,...A},R]=Yu(v),D=C.useMemo(()=>q8(t)?"Error":n,[t,n]),I=C.useMemo(()=>D==="ReadOnly"?!0:c,[D,c]),F=C.useMemo(()=>R.isDisabled||R.isLoading,[R.isDisabled,R.isLoading]),[B,H]=wn(i,""),j=C.useCallback(P=>{H&&H(P)},[H]),G=C.useCallback(P=>{var q;F||(j(P.target.value),(q=p==null?void 0:p.onChange)==null||q.call(p,P))},[F,j,p]),ge=C.useCallback(P=>{var q;if(!F){if((q=p==null?void 0:p.onKeyDown)==null||q.call(p,P),P.key==="Tab"){const V=P.currentTarget.selectionStart,Q=P.currentTarget.selectionEnd;P.currentTarget.value=P.currentTarget.value.substring(0,V)+" "+P.currentTarget.value.substring(Q),P.currentTarget.selectionStart=P.currentTarget.selectionEnd=V+1,P.preventDefault()}else P.key==="Enter"&&(e==null||e(P.currentTarget.value),P.stopPropagation());P.key!=="Escape"&&P.stopPropagation()}},[F,e,p]);return S.jsx(Yc,{wrapId:w,wrapProps:T,labelProps:_,...A,children:S.jsx(Jr,{...R,className:Ye.clsx(sp.Base,R.className),children:S.jsx("textarea",{...p,ref:o,autoFocus:m,className:Ye.clsx(sp.ATextArea,sp[D],F&&sp.UnAvailable,p==null?void 0:p.className),maxLength:h,placeholder:d,readOnly:I,rows:a,tabIndex:R.isDisabled||R.isLoading?-1:g,value:B,onChange:G,onKeyDown:ge})})})};function q8(r){return Array.isArray(r)?r.filter(Boolean).length>0:!!r}/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:s2,setPrototypeOf:hy,isFrozen:W8,getPrototypeOf:V8,getOwnPropertyDescriptor:G8}=Object;let{freeze:bi,seal:Os,create:a2}=Object,{apply:C1,construct:S1}=typeof Reflect<"u"&&Reflect;bi||(bi=function(e){return e});Os||(Os=function(e){return e});C1||(C1=function(e,t,n){return e.apply(t,n)});S1||(S1=function(e,t){return new e(...t)});const ap=xi(Array.prototype.forEach),Y8=xi(Array.prototype.lastIndexOf),py=xi(Array.prototype.pop),Wf=xi(Array.prototype.push),Z8=xi(Array.prototype.splice),Tp=xi(String.prototype.toLowerCase),Qg=xi(String.prototype.toString),gy=xi(String.prototype.match),Vf=xi(String.prototype.replace),K8=xi(String.prototype.indexOf),X8=xi(String.prototype.trim),aa=xi(Object.prototype.hasOwnProperty),mi=xi(RegExp.prototype.test),Gf=J8(TypeError);function xi(r){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return C1(r,e,n)}}function J8(r){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return S1(r,t)}}function Wr(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Tp;hy&&hy(r,null);let n=e.length;for(;n--;){let o=e[n];if(typeof o=="string"){const i=t(o);i!==o&&(W8(e)||(e[n]=i),o=i)}r[o]=!0}return r}function Q8(r){for(let e=0;e<r.length;e++)aa(r,e)||(r[e]=null);return r}function Pl(r){const e=a2(null);for(const[t,n]of s2(r))aa(r,t)&&(Array.isArray(n)?e[t]=Q8(n):n&&typeof n=="object"&&n.constructor===Object?e[t]=Pl(n):e[t]=n);return e}function Yf(r,e){for(;r!==null;){const n=G8(r,e);if(n){if(n.get)return xi(n.get);if(typeof n.value=="function")return xi(n.value)}r=V8(r)}function t(){return null}return t}const my=bi(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),em=bi(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),tm=bi(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),e9=bi(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),rm=bi(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),t9=bi(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),vy=bi(["#text"]),yy=bi(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),nm=bi(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),by=bi(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),lp=bi(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),r9=Os(/\{\{[\w\W]*|[\w\W]*\}\}/gm),n9=Os(/<%[\w\W]*|[\w\W]*%>/gm),o9=Os(/\$\{[\w\W]*/gm),i9=Os(/^data-[\-\w.\u00B7-\uFFFF]+$/),s9=Os(/^aria-[\-\w]+$/),l2=Os(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),a9=Os(/^(?:\w+script|data):/i),l9=Os(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),c2=Os(/^html$/i),c9=Os(/^[a-z][.\w]*(-[.\w]+)+$/i);var xy=Object.freeze({__proto__:null,ARIA_ATTR:s9,ATTR_WHITESPACE:l9,CUSTOM_ELEMENT:c9,DATA_ATTR:i9,DOCTYPE_NAME:c2,ERB_EXPR:n9,IS_ALLOWED_URI:l2,IS_SCRIPT_OR_DATA:a9,MUSTACHE_EXPR:r9,TMPLIT_EXPR:o9});const Zf={element:1,text:3,progressingInstruction:7,comment:8,document:9},u9=function(){return typeof window>"u"?null:window},d9=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},wy=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function u2(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u9();const e=kt=>u2(kt);if(e.version="3.2.6",e.removed=[],!r||!r.document||r.document.nodeType!==Zf.document||!r.Element)return e.isSupported=!1,e;let{document:t}=r;const n=t,o=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:a,Node:c,Element:d,NodeFilter:h,NamedNodeMap:g=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:m,DOMParser:p,trustedTypes:v}=r,w=d.prototype,T=Yf(w,"cloneNode"),_=Yf(w,"remove"),A=Yf(w,"nextSibling"),R=Yf(w,"childNodes"),D=Yf(w,"parentNode");if(typeof a=="function"){const kt=t.createElement("template");kt.content&&kt.content.ownerDocument&&(t=kt.content.ownerDocument)}let I,F="";const{implementation:B,createNodeIterator:H,createDocumentFragment:j,getElementsByTagName:G}=t,{importNode:ge}=n;let P=wy();e.isSupported=typeof s2=="function"&&typeof D=="function"&&B&&B.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:q,ERB_EXPR:V,TMPLIT_EXPR:Q,DATA_ATTR:ie,ARIA_ATTR:se,IS_SCRIPT_OR_DATA:ae,ATTR_WHITESPACE:le,CUSTOM_ELEMENT:fe}=xy;let{IS_ALLOWED_URI:ee}=xy,ne=null;const ce=Wr({},[...my,...em,...tm,...rm,...vy]);let xe=null;const Me=Wr({},[...yy,...nm,...by,...lp]);let oe=Object.seal(a2(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Se=null,Le=null,We=!0,Ve=!0,we=!1,_e=!0,Ae=!1,Ie=!0,je=!1,it=!1,Ue=!1,tt=!1,lt=!1,bt=!1,Mt=!0,Qe=!1;const Xe="user-content-";let ht=!0,ft=!1,Oe={},Je=null;const gt=Wr({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let It=null;const Et=Wr({},["audio","video","img","source","image","track"]);let Dt=null;const Xt=Wr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Wt="http://www.w3.org/1998/Math/MathML",hr="http://www.w3.org/2000/svg",dr="http://www.w3.org/1999/xhtml";let cr=dr,Te=!1,ue=null;const st=Wr({},[Wt,hr,dr],Qg);let ze=Wr({},["mi","mo","mn","ms","mtext"]),vt=Wr({},["annotation-xml"]);const _t=Wr({},["title","style","font","a","script"]);let Tt=null;const Ut=["application/xhtml+xml","text/html"],Ge="text/html";let at=null,ct=null;const xt=t.createElement("form"),Nt=function(be){return be instanceof RegExp||be instanceof Function},Bt=function(){let be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ct&&ct===be)){if((!be||typeof be!="object")&&(be={}),be=Pl(be),Tt=Ut.indexOf(be.PARSER_MEDIA_TYPE)===-1?Ge:be.PARSER_MEDIA_TYPE,at=Tt==="application/xhtml+xml"?Qg:Tp,ne=aa(be,"ALLOWED_TAGS")?Wr({},be.ALLOWED_TAGS,at):ce,xe=aa(be,"ALLOWED_ATTR")?Wr({},be.ALLOWED_ATTR,at):Me,ue=aa(be,"ALLOWED_NAMESPACES")?Wr({},be.ALLOWED_NAMESPACES,Qg):st,Dt=aa(be,"ADD_URI_SAFE_ATTR")?Wr(Pl(Xt),be.ADD_URI_SAFE_ATTR,at):Xt,It=aa(be,"ADD_DATA_URI_TAGS")?Wr(Pl(Et),be.ADD_DATA_URI_TAGS,at):Et,Je=aa(be,"FORBID_CONTENTS")?Wr({},be.FORBID_CONTENTS,at):gt,Se=aa(be,"FORBID_TAGS")?Wr({},be.FORBID_TAGS,at):Pl({}),Le=aa(be,"FORBID_ATTR")?Wr({},be.FORBID_ATTR,at):Pl({}),Oe=aa(be,"USE_PROFILES")?be.USE_PROFILES:!1,We=be.ALLOW_ARIA_ATTR!==!1,Ve=be.ALLOW_DATA_ATTR!==!1,we=be.ALLOW_UNKNOWN_PROTOCOLS||!1,_e=be.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ae=be.SAFE_FOR_TEMPLATES||!1,Ie=be.SAFE_FOR_XML!==!1,je=be.WHOLE_DOCUMENT||!1,tt=be.RETURN_DOM||!1,lt=be.RETURN_DOM_FRAGMENT||!1,bt=be.RETURN_TRUSTED_TYPE||!1,Ue=be.FORCE_BODY||!1,Mt=be.SANITIZE_DOM!==!1,Qe=be.SANITIZE_NAMED_PROPS||!1,ht=be.KEEP_CONTENT!==!1,ft=be.IN_PLACE||!1,ee=be.ALLOWED_URI_REGEXP||l2,cr=be.NAMESPACE||dr,ze=be.MATHML_TEXT_INTEGRATION_POINTS||ze,vt=be.HTML_INTEGRATION_POINTS||vt,oe=be.CUSTOM_ELEMENT_HANDLING||{},be.CUSTOM_ELEMENT_HANDLING&&Nt(be.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(oe.tagNameCheck=be.CUSTOM_ELEMENT_HANDLING.tagNameCheck),be.CUSTOM_ELEMENT_HANDLING&&Nt(be.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(oe.attributeNameCheck=be.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),be.CUSTOM_ELEMENT_HANDLING&&typeof be.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(oe.allowCustomizedBuiltInElements=be.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ae&&(Ve=!1),lt&&(tt=!0),Oe&&(ne=Wr({},vy),xe=[],Oe.html===!0&&(Wr(ne,my),Wr(xe,yy)),Oe.svg===!0&&(Wr(ne,em),Wr(xe,nm),Wr(xe,lp)),Oe.svgFilters===!0&&(Wr(ne,tm),Wr(xe,nm),Wr(xe,lp)),Oe.mathMl===!0&&(Wr(ne,rm),Wr(xe,by),Wr(xe,lp))),be.ADD_TAGS&&(ne===ce&&(ne=Pl(ne)),Wr(ne,be.ADD_TAGS,at)),be.ADD_ATTR&&(xe===Me&&(xe=Pl(xe)),Wr(xe,be.ADD_ATTR,at)),be.ADD_URI_SAFE_ATTR&&Wr(Dt,be.ADD_URI_SAFE_ATTR,at),be.FORBID_CONTENTS&&(Je===gt&&(Je=Pl(Je)),Wr(Je,be.FORBID_CONTENTS,at)),ht&&(ne["#text"]=!0),je&&Wr(ne,["html","head","body"]),ne.table&&(Wr(ne,["tbody"]),delete Se.tbody),be.TRUSTED_TYPES_POLICY){if(typeof be.TRUSTED_TYPES_POLICY.createHTML!="function")throw Gf('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof be.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Gf('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');I=be.TRUSTED_TYPES_POLICY,F=I.createHTML("")}else I===void 0&&(I=d9(v,o)),I!==null&&typeof F=="string"&&(F=I.createHTML(""));bi&&bi(be),ct=be}},qt=Wr({},[...em,...tm,...e9]),Yt=Wr({},[...rm,...t9]),ir=function(be){let nt=D(be);(!nt||!nt.tagName)&&(nt={namespaceURI:cr,tagName:"template"});const yt=Tp(be.tagName),yr=Tp(nt.tagName);return ue[be.namespaceURI]?be.namespaceURI===hr?nt.namespaceURI===dr?yt==="svg":nt.namespaceURI===Wt?yt==="svg"&&(yr==="annotation-xml"||ze[yr]):!!qt[yt]:be.namespaceURI===Wt?nt.namespaceURI===dr?yt==="math":nt.namespaceURI===hr?yt==="math"&&vt[yr]:!!Yt[yt]:be.namespaceURI===dr?nt.namespaceURI===hr&&!vt[yr]||nt.namespaceURI===Wt&&!ze[yr]?!1:!Yt[yt]&&(_t[yt]||!qt[yt]):!!(Tt==="application/xhtml+xml"&&ue[be.namespaceURI]):!1},jt=function(be){Wf(e.removed,{element:be});try{D(be).removeChild(be)}catch{_(be)}},xr=function(be,nt){try{Wf(e.removed,{attribute:nt.getAttributeNode(be),from:nt})}catch{Wf(e.removed,{attribute:null,from:nt})}if(nt.removeAttribute(be),be==="is")if(tt||lt)try{jt(nt)}catch{}else try{nt.setAttribute(be,"")}catch{}},jr=function(be){let nt=null,yt=null;if(Ue)be="<remove></remove>"+be;else{const lr=gy(be,/^[\r\n\t ]+/);yt=lr&&lr[0]}Tt==="application/xhtml+xml"&&cr===dr&&(be='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+be+"</body></html>");const yr=I?I.createHTML(be):be;if(cr===dr)try{nt=new p().parseFromString(yr,Tt)}catch{}if(!nt||!nt.documentElement){nt=B.createDocument(cr,"template",null);try{nt.documentElement.innerHTML=Te?F:yr}catch{}}const Br=nt.body||nt.documentElement;return be&&yt&&Br.insertBefore(t.createTextNode(yt),Br.childNodes[0]||null),cr===dr?G.call(nt,je?"html":"body")[0]:je?nt.documentElement:Br},Ze=function(be){return H.call(be.ownerDocument||be,be,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},te=function(be){return be instanceof m&&(typeof be.nodeName!="string"||typeof be.textContent!="string"||typeof be.removeChild!="function"||!(be.attributes instanceof g)||typeof be.removeAttribute!="function"||typeof be.setAttribute!="function"||typeof be.namespaceURI!="string"||typeof be.insertBefore!="function"||typeof be.hasChildNodes!="function")},ye=function(be){return typeof c=="function"&&be instanceof c};function Be(kt,be,nt){ap(kt,yt=>{yt.call(e,be,nt,ct)})}const At=function(be){let nt=null;if(Be(P.beforeSanitizeElements,be,null),te(be))return jt(be),!0;const yt=at(be.nodeName);if(Be(P.uponSanitizeElement,be,{tagName:yt,allowedTags:ne}),Ie&&be.hasChildNodes()&&!ye(be.firstElementChild)&&mi(/<[/\w!]/g,be.innerHTML)&&mi(/<[/\w!]/g,be.textContent)||be.nodeType===Zf.progressingInstruction||Ie&&be.nodeType===Zf.comment&&mi(/<[/\w]/g,be.data))return jt(be),!0;if(!ne[yt]||Se[yt]){if(!Se[yt]&&Ot(yt)&&(oe.tagNameCheck instanceof RegExp&&mi(oe.tagNameCheck,yt)||oe.tagNameCheck instanceof Function&&oe.tagNameCheck(yt)))return!1;if(ht&&!Je[yt]){const yr=D(be)||be.parentNode,Br=R(be)||be.childNodes;if(Br&&yr){const lr=Br.length;for(let br=lr-1;br>=0;--br){const en=T(Br[br],!0);en.__removalCount=(be.__removalCount||0)+1,yr.insertBefore(en,A(be))}}}return jt(be),!0}return be instanceof d&&!ir(be)||(yt==="noscript"||yt==="noembed"||yt==="noframes")&&mi(/<\/no(script|embed|frames)/i,be.innerHTML)?(jt(be),!0):(Ae&&be.nodeType===Zf.text&&(nt=be.textContent,ap([q,V,Q],yr=>{nt=Vf(nt,yr," ")}),be.textContent!==nt&&(Wf(e.removed,{element:be.cloneNode()}),be.textContent=nt)),Be(P.afterSanitizeElements,be,null),!1)},Ft=function(be,nt,yt){if(Mt&&(nt==="id"||nt==="name")&&(yt in t||yt in xt))return!1;if(!(Ve&&!Le[nt]&&mi(ie,nt))){if(!(We&&mi(se,nt))){if(!xe[nt]||Le[nt]){if(!(Ot(be)&&(oe.tagNameCheck instanceof RegExp&&mi(oe.tagNameCheck,be)||oe.tagNameCheck instanceof Function&&oe.tagNameCheck(be))&&(oe.attributeNameCheck instanceof RegExp&&mi(oe.attributeNameCheck,nt)||oe.attributeNameCheck instanceof Function&&oe.attributeNameCheck(nt))||nt==="is"&&oe.allowCustomizedBuiltInElements&&(oe.tagNameCheck instanceof RegExp&&mi(oe.tagNameCheck,yt)||oe.tagNameCheck instanceof Function&&oe.tagNameCheck(yt))))return!1}else if(!Dt[nt]){if(!mi(ee,Vf(yt,le,""))){if(!((nt==="src"||nt==="xlink:href"||nt==="href")&&be!=="script"&&K8(yt,"data:")===0&&It[be])){if(!(we&&!mi(ae,Vf(yt,le,"")))){if(yt)return!1}}}}}}return!0},Ot=function(be){return be!=="annotation-xml"&&gy(be,fe)},er=function(be){Be(P.beforeSanitizeAttributes,be,null);const{attributes:nt}=be;if(!nt||te(be))return;const yt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xe,forceKeepAttr:void 0};let yr=nt.length;for(;yr--;){const Br=nt[yr],{name:lr,namespaceURI:br,value:en}=Br,on=at(lr),Pn=en;let zr=lr==="value"?Pn:X8(Pn);if(yt.attrName=on,yt.attrValue=zr,yt.keepAttr=!0,yt.forceKeepAttr=void 0,Be(P.uponSanitizeAttribute,be,yt),zr=yt.attrValue,Qe&&(on==="id"||on==="name")&&(xr(lr,be),zr=Xe+zr),Ie&&mi(/((--!?|])>)|<\/(style|title)/i,zr)){xr(lr,be);continue}if(yt.forceKeepAttr)continue;if(!yt.keepAttr){xr(lr,be);continue}if(!_e&&mi(/\/>/i,zr)){xr(lr,be);continue}Ae&&ap([q,V,Q],Tn=>{zr=Vf(zr,Tn," ")});const tn=at(be.nodeName);if(!Ft(tn,on,zr)){xr(lr,be);continue}if(I&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!br)switch(v.getAttributeType(tn,on)){case"TrustedHTML":{zr=I.createHTML(zr);break}case"TrustedScriptURL":{zr=I.createScriptURL(zr);break}}if(zr!==Pn)try{br?be.setAttributeNS(br,lr,zr):be.setAttribute(lr,zr),te(be)?jt(be):py(e.removed)}catch{xr(lr,be)}}Be(P.afterSanitizeAttributes,be,null)},Qt=function kt(be){let nt=null;const yt=Ze(be);for(Be(P.beforeSanitizeShadowDOM,be,null);nt=yt.nextNode();)Be(P.uponSanitizeShadowNode,nt,null),At(nt),er(nt),nt.content instanceof i&&kt(nt.content);Be(P.afterSanitizeShadowDOM,be,null)};return e.sanitize=function(kt){let be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},nt=null,yt=null,yr=null,Br=null;if(Te=!kt,Te&&(kt="<!-->"),typeof kt!="string"&&!ye(kt))if(typeof kt.toString=="function"){if(kt=kt.toString(),typeof kt!="string")throw Gf("dirty is not a string, aborting")}else throw Gf("toString is not a function");if(!e.isSupported)return kt;if(it||Bt(be),e.removed=[],typeof kt=="string"&&(ft=!1),ft){if(kt.nodeName){const en=at(kt.nodeName);if(!ne[en]||Se[en])throw Gf("root node is forbidden and cannot be sanitized in-place")}}else if(kt instanceof c)nt=jr("<!---->"),yt=nt.ownerDocument.importNode(kt,!0),yt.nodeType===Zf.element&&yt.nodeName==="BODY"||yt.nodeName==="HTML"?nt=yt:nt.appendChild(yt);else{if(!tt&&!Ae&&!je&&kt.indexOf("<")===-1)return I&&bt?I.createHTML(kt):kt;if(nt=jr(kt),!nt)return tt?null:bt?F:""}nt&&Ue&&jt(nt.firstChild);const lr=Ze(ft?kt:nt);for(;yr=lr.nextNode();)At(yr),er(yr),yr.content instanceof i&&Qt(yr.content);if(ft)return kt;if(tt){if(lt)for(Br=j.call(nt.ownerDocument);nt.firstChild;)Br.appendChild(nt.firstChild);else Br=nt;return(xe.shadowroot||xe.shadowrootmode)&&(Br=ge.call(n,Br,!0)),Br}let br=je?nt.outerHTML:nt.innerHTML;return je&&ne["!doctype"]&&nt.ownerDocument&&nt.ownerDocument.doctype&&nt.ownerDocument.doctype.name&&mi(c2,nt.ownerDocument.doctype.name)&&(br="<!DOCTYPE "+nt.ownerDocument.doctype.name+`>
|
168
|
-
`+br),Ae&&ap([q,V,Q],en=>{br=Vf(br,en," ")}),I&&bt?I.createHTML(br):br},e.setConfig=function(){let kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Bt(kt),it=!0},e.clearConfig=function(){ct=null,it=!1},e.isValidAttribute=function(kt,be,nt){ct||Bt({});const yt=at(kt),yr=at(be);return Ft(yt,yr,nt)},e.addHook=function(kt,be){typeof be=="function"&&Wf(P[kt],be)},e.removeHook=function(kt,be){if(be!==void 0){const nt=Y8(P[kt],be);return nt===-1?void 0:Z8(P[kt],nt,1)[0]}return py(P[kt])},e.removeHooks=function(kt){P[kt]=[]},e.removeAllHooks=function(){P=wy()},e}var f9=u2(),cp={exports:{}},om,Cy;function h9(){if(Cy)return om;Cy=1;var r=-1,e=1,t=0;function n(P,q,V,Q,ie){if(P===q)return P?[[t,P]]:[];if(V!=null){var se=G(P,q,V);if(se)return se}var ae=c(P,q),le=P.substring(0,ae);P=P.substring(ae),q=q.substring(ae),ae=h(P,q);var fe=P.substring(P.length-ae);P=P.substring(0,P.length-ae),q=q.substring(0,q.length-ae);var ee=o(P,q);return le&&ee.unshift([t,le]),fe&&ee.push([t,fe]),R(ee,ie),Q&&m(ee),ee}function o(P,q){var V;if(!P)return[[e,q]];if(!q)return[[r,P]];var Q=P.length>q.length?P:q,ie=P.length>q.length?q:P,se=Q.indexOf(ie);if(se!==-1)return V=[[e,Q.substring(0,se)],[t,ie],[e,Q.substring(se+ie.length)]],P.length>q.length&&(V[0][0]=V[2][0]=r),V;if(ie.length===1)return[[r,P],[e,q]];var ae=g(P,q);if(ae){var le=ae[0],fe=ae[1],ee=ae[2],ne=ae[3],ce=ae[4],xe=n(le,ee),Me=n(fe,ne);return xe.concat([[t,ce]],Me)}return i(P,q)}function i(P,q){for(var V=P.length,Q=q.length,ie=Math.ceil((V+Q)/2),se=ie,ae=2*ie,le=new Array(ae),fe=new Array(ae),ee=0;ee<ae;ee++)le[ee]=-1,fe[ee]=-1;le[se+1]=0,fe[se+1]=0;for(var ne=V-Q,ce=ne%2!==0,xe=0,Me=0,oe=0,Se=0,Le=0;Le<ie;Le++){for(var We=-Le+xe;We<=Le-Me;We+=2){var Ve=se+We,we;We===-Le||We!==Le&&le[Ve-1]<le[Ve+1]?we=le[Ve+1]:we=le[Ve-1]+1;for(var _e=we-We;we<V&&_e<Q&&P.charAt(we)===q.charAt(_e);)we++,_e++;if(le[Ve]=we,we>V)Me+=2;else if(_e>Q)xe+=2;else if(ce){var Ae=se+ne-We;if(Ae>=0&&Ae<ae&&fe[Ae]!==-1){var Ie=V-fe[Ae];if(we>=Ie)return a(P,q,we,_e)}}}for(var je=-Le+oe;je<=Le-Se;je+=2){var Ae=se+je,Ie;je===-Le||je!==Le&&fe[Ae-1]<fe[Ae+1]?Ie=fe[Ae+1]:Ie=fe[Ae-1]+1;for(var it=Ie-je;Ie<V&&it<Q&&P.charAt(V-Ie-1)===q.charAt(Q-it-1);)Ie++,it++;if(fe[Ae]=Ie,Ie>V)Se+=2;else if(it>Q)oe+=2;else if(!ce){var Ve=se+ne-je;if(Ve>=0&&Ve<ae&&le[Ve]!==-1){var we=le[Ve],_e=se+we-Ve;if(Ie=V-Ie,we>=Ie)return a(P,q,we,_e)}}}}return[[r,P],[e,q]]}function a(P,q,V,Q){var ie=P.substring(0,V),se=q.substring(0,Q),ae=P.substring(V),le=q.substring(Q),fe=n(ie,se),ee=n(ae,le);return fe.concat(ee)}function c(P,q){if(!P||!q||P.charAt(0)!==q.charAt(0))return 0;for(var V=0,Q=Math.min(P.length,q.length),ie=Q,se=0;V<ie;)P.substring(se,ie)==q.substring(se,ie)?(V=ie,se=V):Q=ie,ie=Math.floor((Q-V)/2+V);return D(P.charCodeAt(ie-1))&&ie--,ie}function d(P,q){var V=P.length,Q=q.length;if(V==0||Q==0)return 0;V>Q?P=P.substring(V-Q):V<Q&&(q=q.substring(0,V));var ie=Math.min(V,Q);if(P==q)return ie;for(var se=0,ae=1;;){var le=P.substring(ie-ae),fe=q.indexOf(le);if(fe==-1)return se;ae+=fe,(fe==0||P.substring(ie-ae)==q.substring(0,ae))&&(se=ae,ae++)}}function h(P,q){if(!P||!q||P.slice(-1)!==q.slice(-1))return 0;for(var V=0,Q=Math.min(P.length,q.length),ie=Q,se=0;V<ie;)P.substring(P.length-ie,P.length-se)==q.substring(q.length-ie,q.length-se)?(V=ie,se=V):Q=ie,ie=Math.floor((Q-V)/2+V);return I(P.charCodeAt(P.length-ie))&&ie--,ie}function g(P,q){var V=P.length>q.length?P:q,Q=P.length>q.length?q:P;if(V.length<4||Q.length*2<V.length)return null;function ie(Me,oe,Se){for(var Le=Me.substring(Se,Se+Math.floor(Me.length/4)),We=-1,Ve="",we,_e,Ae,Ie;(We=oe.indexOf(Le,We+1))!==-1;){var je=c(Me.substring(Se),oe.substring(We)),it=h(Me.substring(0,Se),oe.substring(0,We));Ve.length<it+je&&(Ve=oe.substring(We-it,We)+oe.substring(We,We+je),we=Me.substring(0,Se-it),_e=Me.substring(Se+je),Ae=oe.substring(0,We-it),Ie=oe.substring(We+je))}return Ve.length*2>=Me.length?[we,_e,Ae,Ie,Ve]:null}var se=ie(V,Q,Math.ceil(V.length/4)),ae=ie(V,Q,Math.ceil(V.length/2)),le;if(!se&&!ae)return null;ae?se?le=se[4].length>ae[4].length?se:ae:le=ae:le=se;var fe,ee,ne,ce;P.length>q.length?(fe=le[0],ee=le[1],ne=le[2],ce=le[3]):(ne=le[0],ce=le[1],fe=le[2],ee=le[3]);var xe=le[4];return[fe,ee,ne,ce,xe]}function m(P){for(var q=!1,V=[],Q=0,ie=null,se=0,ae=0,le=0,fe=0,ee=0;se<P.length;)P[se][0]==t?(V[Q++]=se,ae=fe,le=ee,fe=0,ee=0,ie=P[se][1]):(P[se][0]==e?fe+=P[se][1].length:ee+=P[se][1].length,ie&&ie.length<=Math.max(ae,le)&&ie.length<=Math.max(fe,ee)&&(P.splice(V[Q-1],0,[r,ie]),P[V[Q-1]+1][0]=e,Q--,Q--,se=Q>0?V[Q-1]:-1,ae=0,le=0,fe=0,ee=0,ie=null,q=!0)),se++;for(q&&R(P),A(P),se=1;se<P.length;){if(P[se-1][0]==r&&P[se][0]==e){var ne=P[se-1][1],ce=P[se][1],xe=d(ne,ce),Me=d(ce,ne);xe>=Me?(xe>=ne.length/2||xe>=ce.length/2)&&(P.splice(se,0,[t,ce.substring(0,xe)]),P[se-1][1]=ne.substring(0,ne.length-xe),P[se+1][1]=ce.substring(xe),se++):(Me>=ne.length/2||Me>=ce.length/2)&&(P.splice(se,0,[t,ne.substring(0,Me)]),P[se-1][0]=e,P[se-1][1]=ce.substring(0,ce.length-Me),P[se+1][0]=r,P[se+1][1]=ne.substring(Me),se++),se++}se++}}var p=/[^a-zA-Z0-9]/,v=/\s/,w=/[\r\n]/,T=/\n\r?\n$/,_=/^\r?\n\r?\n/;function A(P){function q(Me,oe){if(!Me||!oe)return 6;var Se=Me.charAt(Me.length-1),Le=oe.charAt(0),We=Se.match(p),Ve=Le.match(p),we=We&&Se.match(v),_e=Ve&&Le.match(v),Ae=we&&Se.match(w),Ie=_e&&Le.match(w),je=Ae&&Me.match(T),it=Ie&&oe.match(_);return je||it?5:Ae||Ie?4:We&&!we&&_e?3:we||_e?2:We||Ve?1:0}for(var V=1;V<P.length-1;){if(P[V-1][0]==t&&P[V+1][0]==t){var Q=P[V-1][1],ie=P[V][1],se=P[V+1][1],ae=h(Q,ie);if(ae){var le=ie.substring(ie.length-ae);Q=Q.substring(0,Q.length-ae),ie=le+ie.substring(0,ie.length-ae),se=le+se}for(var fe=Q,ee=ie,ne=se,ce=q(Q,ie)+q(ie,se);ie.charAt(0)===se.charAt(0);){Q+=ie.charAt(0),ie=ie.substring(1)+se.charAt(0),se=se.substring(1);var xe=q(Q,ie)+q(ie,se);xe>=ce&&(ce=xe,fe=Q,ee=ie,ne=se)}P[V-1][1]!=fe&&(fe?P[V-1][1]=fe:(P.splice(V-1,1),V--),P[V][1]=ee,ne?P[V+1][1]=ne:(P.splice(V+1,1),V--))}V++}}function R(P,q){P.push([t,""]);for(var V=0,Q=0,ie=0,se="",ae="",le;V<P.length;){if(V<P.length-1&&!P[V][1]){P.splice(V,1);continue}switch(P[V][0]){case e:ie++,ae+=P[V][1],V++;break;case r:Q++,se+=P[V][1],V++;break;case t:var fe=V-ie-Q-1;if(q){if(fe>=0&&B(P[fe][1])){var ee=P[fe][1].slice(-1);if(P[fe][1]=P[fe][1].slice(0,-1),se=ee+se,ae=ee+ae,!P[fe][1]){P.splice(fe,1),V--;var ne=fe-1;P[ne]&&P[ne][0]===e&&(ie++,ae=P[ne][1]+ae,ne--),P[ne]&&P[ne][0]===r&&(Q++,se=P[ne][1]+se,ne--),fe=ne}}if(F(P[V][1])){var ee=P[V][1].charAt(0);P[V][1]=P[V][1].slice(1),se+=ee,ae+=ee}}if(V<P.length-1&&!P[V][1]){P.splice(V,1);break}if(se.length>0||ae.length>0){se.length>0&&ae.length>0&&(le=c(ae,se),le!==0&&(fe>=0?P[fe][1]+=ae.substring(0,le):(P.splice(0,0,[t,ae.substring(0,le)]),V++),ae=ae.substring(le),se=se.substring(le)),le=h(ae,se),le!==0&&(P[V][1]=ae.substring(ae.length-le)+P[V][1],ae=ae.substring(0,ae.length-le),se=se.substring(0,se.length-le)));var ce=ie+Q;se.length===0&&ae.length===0?(P.splice(V-ce,ce),V=V-ce):se.length===0?(P.splice(V-ce,ce,[e,ae]),V=V-ce+1):ae.length===0?(P.splice(V-ce,ce,[r,se]),V=V-ce+1):(P.splice(V-ce,ce,[r,se],[e,ae]),V=V-ce+2)}V!==0&&P[V-1][0]===t?(P[V-1][1]+=P[V][1],P.splice(V,1)):V++,ie=0,Q=0,se="",ae="";break}}P[P.length-1][1]===""&&P.pop();var xe=!1;for(V=1;V<P.length-1;)P[V-1][0]===t&&P[V+1][0]===t&&(P[V][1].substring(P[V][1].length-P[V-1][1].length)===P[V-1][1]?(P[V][1]=P[V-1][1]+P[V][1].substring(0,P[V][1].length-P[V-1][1].length),P[V+1][1]=P[V-1][1]+P[V+1][1],P.splice(V-1,1),xe=!0):P[V][1].substring(0,P[V+1][1].length)==P[V+1][1]&&(P[V-1][1]+=P[V+1][1],P[V][1]=P[V][1].substring(P[V+1][1].length)+P[V+1][1],P.splice(V+1,1),xe=!0)),V++;xe&&R(P,q)}function D(P){return P>=55296&&P<=56319}function I(P){return P>=56320&&P<=57343}function F(P){return I(P.charCodeAt(0))}function B(P){return D(P.charCodeAt(P.length-1))}function H(P){for(var q=[],V=0;V<P.length;V++)P[V][1].length>0&&q.push(P[V]);return q}function j(P,q,V,Q){return B(P)||F(Q)?null:H([[t,P],[r,q],[e,V],[t,Q]])}function G(P,q,V){var Q=typeof V=="number"?{index:V,length:0}:V.oldRange,ie=typeof V=="number"?null:V.newRange,se=P.length,ae=q.length;if(Q.length===0&&(ie===null||ie.length===0)){var le=Q.index,fe=P.slice(0,le),ee=P.slice(le),ne=ie?ie.index:null;e:{var ce=le+ae-se;if(ne!==null&&ne!==ce||ce<0||ce>ae)break e;var xe=q.slice(0,ce),Me=q.slice(ce);if(Me!==ee)break e;var oe=Math.min(le,ce),Se=fe.slice(0,oe),Le=xe.slice(0,oe);if(Se!==Le)break e;var We=fe.slice(oe),Ve=xe.slice(oe);return j(Se,We,Ve,ee)}e:{if(ne!==null&&ne!==le)break e;var we=le,xe=q.slice(0,we),Me=q.slice(we);if(xe!==fe)break e;var _e=Math.min(se-we,ae-we),Ae=ee.slice(ee.length-_e),Ie=Me.slice(Me.length-_e);if(Ae!==Ie)break e;var We=ee.slice(0,ee.length-_e),Ve=Me.slice(0,Me.length-_e);return j(fe,We,Ve,Ae)}}if(Q.length>0&&ie&&ie.length===0)e:{var Se=P.slice(0,Q.index),Ae=P.slice(Q.index+Q.length),oe=Se.length,_e=Ae.length;if(ae<oe+_e)break e;var Le=q.slice(0,oe),Ie=q.slice(ae-_e);if(Se!==Le||Ae!==Ie)break e;var We=P.slice(oe,se-_e),Ve=q.slice(oe,ae-_e);return j(Se,We,Ve,Ae)}return null}function ge(P,q,V,Q){return n(P,q,V,Q,!0)}return ge.INSERT=e,ge.DELETE=r,ge.EQUAL=t,om=ge,om}var rh={exports:{}};rh.exports;var Sy;function d2(){return Sy||(Sy=1,function(r,e){var t=200,n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",c="[object Boolean]",d="[object Date]",h="[object Error]",g="[object Function]",m="[object GeneratorFunction]",p="[object Map]",v="[object Number]",w="[object Object]",T="[object Promise]",_="[object RegExp]",A="[object Set]",R="[object String]",D="[object Symbol]",I="[object WeakMap]",F="[object ArrayBuffer]",B="[object DataView]",H="[object Float32Array]",j="[object Float64Array]",G="[object Int8Array]",ge="[object Int16Array]",P="[object Int32Array]",q="[object Uint8Array]",V="[object Uint8ClampedArray]",Q="[object Uint16Array]",ie="[object Uint32Array]",se=/[\\^$.*+?()[\]{}|]/g,ae=/\w*$/,le=/^\[object .+?Constructor\]$/,fe=/^(?:0|[1-9]\d*)$/,ee={};ee[i]=ee[a]=ee[F]=ee[B]=ee[c]=ee[d]=ee[H]=ee[j]=ee[G]=ee[ge]=ee[P]=ee[p]=ee[v]=ee[w]=ee[_]=ee[A]=ee[R]=ee[D]=ee[q]=ee[V]=ee[Q]=ee[ie]=!0,ee[h]=ee[g]=ee[I]=!1;var ne=typeof Pi=="object"&&Pi&&Pi.Object===Object&&Pi,ce=typeof self=="object"&&self&&self.Object===Object&&self,xe=ne||ce||Function("return this")(),Me=e&&!e.nodeType&&e,oe=Me&&!0&&r&&!r.nodeType&&r,Se=oe&&oe.exports===Me;function Le(O,J){return O.set(J[0],J[1]),O}function We(O,J){return O.add(J),O}function Ve(O,J){for(var Ce=-1,rt=O?O.length:0;++Ce<rt&&J(O[Ce],Ce,O)!==!1;);return O}function we(O,J){for(var Ce=-1,rt=J.length,or=O.length;++Ce<rt;)O[or+Ce]=J[Ce];return O}function _e(O,J,Ce,rt){for(var or=-1,Kt=O?O.length:0;++or<Kt;)Ce=J(Ce,O[or],or,O);return Ce}function Ae(O,J){for(var Ce=-1,rt=Array(O);++Ce<O;)rt[Ce]=J(Ce);return rt}function Ie(O,J){return O==null?void 0:O[J]}function je(O){var J=!1;if(O!=null&&typeof O.toString!="function")try{J=!!(O+"")}catch{}return J}function it(O){var J=-1,Ce=Array(O.size);return O.forEach(function(rt,or){Ce[++J]=[or,rt]}),Ce}function Ue(O,J){return function(Ce){return O(J(Ce))}}function tt(O){var J=-1,Ce=Array(O.size);return O.forEach(function(rt){Ce[++J]=rt}),Ce}var lt=Array.prototype,bt=Function.prototype,Mt=Object.prototype,Qe=xe["__core-js_shared__"],Xe=function(){var O=/[^.]+$/.exec(Qe&&Qe.keys&&Qe.keys.IE_PROTO||"");return O?"Symbol(src)_1."+O:""}(),ht=bt.toString,ft=Mt.hasOwnProperty,Oe=Mt.toString,Je=RegExp("^"+ht.call(ft).replace(se,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gt=Se?xe.Buffer:void 0,It=xe.Symbol,Et=xe.Uint8Array,Dt=Ue(Object.getPrototypeOf,Object),Xt=Object.create,Wt=Mt.propertyIsEnumerable,hr=lt.splice,dr=Object.getOwnPropertySymbols,cr=gt?gt.isBuffer:void 0,Te=Ue(Object.keys,Object),ue=Ht(xe,"DataView"),st=Ht(xe,"Map"),ze=Ht(xe,"Promise"),vt=Ht(xe,"Set"),_t=Ht(xe,"WeakMap"),Tt=Ht(Object,"create"),Ut=un(ue),Ge=un(st),at=un(ze),ct=un(vt),xt=un(_t),Nt=It?It.prototype:void 0,Bt=Nt?Nt.valueOf:void 0;function qt(O){var J=-1,Ce=O?O.length:0;for(this.clear();++J<Ce;){var rt=O[J];this.set(rt[0],rt[1])}}function Yt(){this.__data__=Tt?Tt(null):{}}function ir(O){return this.has(O)&&delete this.__data__[O]}function jt(O){var J=this.__data__;if(Tt){var Ce=J[O];return Ce===n?void 0:Ce}return ft.call(J,O)?J[O]:void 0}function xr(O){var J=this.__data__;return Tt?J[O]!==void 0:ft.call(J,O)}function jr(O,J){var Ce=this.__data__;return Ce[O]=Tt&&J===void 0?n:J,this}qt.prototype.clear=Yt,qt.prototype.delete=ir,qt.prototype.get=jt,qt.prototype.has=xr,qt.prototype.set=jr;function Ze(O){var J=-1,Ce=O?O.length:0;for(this.clear();++J<Ce;){var rt=O[J];this.set(rt[0],rt[1])}}function te(){this.__data__=[]}function ye(O){var J=this.__data__,Ce=zr(J,O);if(Ce<0)return!1;var rt=J.length-1;return Ce==rt?J.pop():hr.call(J,Ce,1),!0}function Be(O){var J=this.__data__,Ce=zr(J,O);return Ce<0?void 0:J[Ce][1]}function At(O){return zr(this.__data__,O)>-1}function Ft(O,J){var Ce=this.__data__,rt=zr(Ce,O);return rt<0?Ce.push([O,J]):Ce[rt][1]=J,this}Ze.prototype.clear=te,Ze.prototype.delete=ye,Ze.prototype.get=Be,Ze.prototype.has=At,Ze.prototype.set=Ft;function Ot(O){var J=-1,Ce=O?O.length:0;for(this.clear();++J<Ce;){var rt=O[J];this.set(rt[0],rt[1])}}function er(){this.__data__={hash:new qt,map:new(st||Ze),string:new qt}}function Qt(O){return St(this,O).delete(O)}function kt(O){return St(this,O).get(O)}function be(O){return St(this,O).has(O)}function nt(O,J){return St(this,O).set(O,J),this}Ot.prototype.clear=er,Ot.prototype.delete=Qt,Ot.prototype.get=kt,Ot.prototype.has=be,Ot.prototype.set=nt;function yt(O){this.__data__=new Ze(O)}function yr(){this.__data__=new Ze}function Br(O){return this.__data__.delete(O)}function lr(O){return this.__data__.get(O)}function br(O){return this.__data__.has(O)}function en(O,J){var Ce=this.__data__;if(Ce instanceof Ze){var rt=Ce.__data__;if(!st||rt.length<t-1)return rt.push([O,J]),this;Ce=this.__data__=new Ot(rt)}return Ce.set(O,J),this}yt.prototype.clear=yr,yt.prototype.delete=Br,yt.prototype.get=lr,yt.prototype.has=br,yt.prototype.set=en;function on(O,J){var Ce=Fi(O)||io(O)?Ae(O.length,String):[],rt=Ce.length,or=!!rt;for(var Kt in O)ft.call(O,Kt)&&!(or&&(Kt=="length"||kn(Kt,rt)))&&Ce.push(Kt);return Ce}function Pn(O,J,Ce){var rt=O[J];(!(ft.call(O,J)&&Kn(rt,Ce))||Ce===void 0&&!(J in O))&&(O[J]=Ce)}function zr(O,J){for(var Ce=O.length;Ce--;)if(Kn(O[Ce][0],J))return Ce;return-1}function tn(O,J){return O&&He(J,Hr(J),O)}function Tn(O,J,Ce,rt,or,Kt,_r){var kr;if(rt&&(kr=Kt?rt(O,or,Kt,_r):rt(O)),kr!==void 0)return kr;if(!ao(O))return O;var Cr=Fi(O);if(Cr){if(kr=Rr(O),!J)return he(O,kr)}else{var Mr=Vt(O),dn=Mr==g||Mr==m;if(Hn(O))return Fn(O,J);if(Mr==w||Mr==i||dn&&!Kt){if(je(O))return Kt?O:{};if(kr=sn(dn?{}:O),!J)return Ne(O,tn(kr,O))}else{if(!ee[Mr])return Kt?O:{};kr=Rn(O,Mr,Tn,J)}}_r||(_r=new yt);var zn=_r.get(O);if(zn)return zn;if(_r.set(O,kr),!Cr)var rn=Ce?et(O):Hr(O);return Ve(rn||O,function(Vr,fn){rn&&(fn=Vr,Vr=O[fn]),Pn(kr,fn,Tn(Vr,J,Ce,rt,fn,O,_r))}),kr}function Bn(O){return ao(O)?Xt(O):{}}function Ao(O,J,Ce){var rt=J(O);return Fi(O)?rt:we(rt,Ce(O))}function No(O){return Oe.call(O)}function Po(O){if(!ao(O)||Zn(O))return!1;var J=ji(O)||je(O)?Je:le;return J.test(un(O))}function jn(O){if(!Bo(O))return Te(O);var J=[];for(var Ce in Object(O))ft.call(O,Ce)&&Ce!="constructor"&&J.push(Ce);return J}function Fn(O,J){if(J)return O.slice();var Ce=new O.constructor(O.length);return O.copy(Ce),Ce}function Cn(O){var J=new O.constructor(O.byteLength);return new Et(J).set(new Et(O)),J}function oo(O,J){var Ce=J?Cn(O.buffer):O.buffer;return new O.constructor(Ce,O.byteOffset,O.byteLength)}function mn(O,J,Ce){var rt=J?Ce(it(O),!0):it(O);return _e(rt,Le,new O.constructor)}function _n(O){var J=new O.constructor(O.source,ae.exec(O));return J.lastIndex=O.lastIndex,J}function k(O,J,Ce){var rt=J?Ce(tt(O),!0):tt(O);return _e(rt,We,new O.constructor)}function $(O){return Bt?Object(Bt.call(O)):{}}function X(O,J){var Ce=J?Cn(O.buffer):O.buffer;return new O.constructor(Ce,O.byteOffset,O.length)}function he(O,J){var Ce=-1,rt=O.length;for(J||(J=Array(rt));++Ce<rt;)J[Ce]=O[Ce];return J}function He(O,J,Ce,rt){Ce||(Ce={});for(var or=-1,Kt=J.length;++or<Kt;){var _r=J[or],kr=void 0;Pn(Ce,_r,kr===void 0?O[_r]:kr)}return Ce}function Ne(O,J){return He(O,Gt(O),J)}function et(O){return Ao(O,Hr,Gt)}function St(O,J){var Ce=O.__data__;return ho(J)?Ce[typeof J=="string"?"string":"hash"]:Ce.map}function Ht(O,J){var Ce=Ie(O,J);return Po(Ce)?Ce:void 0}var Gt=dr?Ue(dr,Object):Ir,Vt=No;(ue&&Vt(new ue(new ArrayBuffer(1)))!=B||st&&Vt(new st)!=p||ze&&Vt(ze.resolve())!=T||vt&&Vt(new vt)!=A||_t&&Vt(new _t)!=I)&&(Vt=function(O){var J=Oe.call(O),Ce=J==w?O.constructor:void 0,rt=Ce?un(Ce):void 0;if(rt)switch(rt){case Ut:return B;case Ge:return p;case at:return T;case ct:return A;case xt:return I}return J});function Rr(O){var J=O.length,Ce=O.constructor(J);return J&&typeof O[0]=="string"&&ft.call(O,"index")&&(Ce.index=O.index,Ce.input=O.input),Ce}function sn(O){return typeof O.constructor=="function"&&!Bo(O)?Bn(Dt(O)):{}}function Rn(O,J,Ce,rt){var or=O.constructor;switch(J){case F:return Cn(O);case c:case d:return new or(+O);case B:return oo(O,rt);case H:case j:case G:case ge:case P:case q:case V:case Q:case ie:return X(O,rt);case p:return mn(O,rt,Ce);case v:case R:return new or(O);case _:return _n(O);case A:return k(O,rt,Ce);case D:return $(O)}}function kn(O,J){return J=J??o,!!J&&(typeof O=="number"||fe.test(O))&&O>-1&&O%1==0&&O<J}function ho(O){var J=typeof O;return J=="string"||J=="number"||J=="symbol"||J=="boolean"?O!=="__proto__":O===null}function Zn(O){return!!Xe&&Xe in O}function Bo(O){var J=O&&O.constructor,Ce=typeof J=="function"&&J.prototype||Mt;return O===Ce}function un(O){if(O!=null){try{return ht.call(O)}catch{}try{return O+""}catch{}}return""}function Eo(O){return Tn(O,!0,!0)}function Kn(O,J){return O===J||O!==O&&J!==J}function io(O){return Ci(O)&&ft.call(O,"callee")&&(!Wt.call(O,"callee")||Oe.call(O)==i)}var Fi=Array.isArray;function wi(O){return O!=null&&so(O.length)&&!ji(O)}function Ci(O){return oi(O)&&wi(O)}var Hn=cr||Fr;function ji(O){var J=ao(O)?Oe.call(O):"";return J==g||J==m}function so(O){return typeof O=="number"&&O>-1&&O%1==0&&O<=o}function ao(O){var J=typeof O;return!!O&&(J=="object"||J=="function")}function oi(O){return!!O&&typeof O=="object"}function Hr(O){return wi(O)?on(O):jn(O)}function Ir(){return[]}function Fr(){return!1}r.exports=Eo}(rh,rh.exports)),rh.exports}var nh={exports:{}};nh.exports;var _y;function f2(){return _y||(_y=1,function(r,e){var t=200,n="__lodash_hash_undefined__",o=1,i=2,a=9007199254740991,c="[object Arguments]",d="[object Array]",h="[object AsyncFunction]",g="[object Boolean]",m="[object Date]",p="[object Error]",v="[object Function]",w="[object GeneratorFunction]",T="[object Map]",_="[object Number]",A="[object Null]",R="[object Object]",D="[object Promise]",I="[object Proxy]",F="[object RegExp]",B="[object Set]",H="[object String]",j="[object Symbol]",G="[object Undefined]",ge="[object WeakMap]",P="[object ArrayBuffer]",q="[object DataView]",V="[object Float32Array]",Q="[object Float64Array]",ie="[object Int8Array]",se="[object Int16Array]",ae="[object Int32Array]",le="[object Uint8Array]",fe="[object Uint8ClampedArray]",ee="[object Uint16Array]",ne="[object Uint32Array]",ce=/[\\^$.*+?()[\]{}|]/g,xe=/^\[object .+?Constructor\]$/,Me=/^(?:0|[1-9]\d*)$/,oe={};oe[V]=oe[Q]=oe[ie]=oe[se]=oe[ae]=oe[le]=oe[fe]=oe[ee]=oe[ne]=!0,oe[c]=oe[d]=oe[P]=oe[g]=oe[q]=oe[m]=oe[p]=oe[v]=oe[T]=oe[_]=oe[R]=oe[F]=oe[B]=oe[H]=oe[ge]=!1;var Se=typeof Pi=="object"&&Pi&&Pi.Object===Object&&Pi,Le=typeof self=="object"&&self&&self.Object===Object&&self,We=Se||Le||Function("return this")(),Ve=e&&!e.nodeType&&e,we=Ve&&!0&&r&&!r.nodeType&&r,_e=we&&we.exports===Ve,Ae=_e&&Se.process,Ie=function(){try{return Ae&&Ae.binding&&Ae.binding("util")}catch{}}(),je=Ie&&Ie.isTypedArray;function it(O,J){for(var Ce=-1,rt=O==null?0:O.length,or=0,Kt=[];++Ce<rt;){var _r=O[Ce];J(_r,Ce,O)&&(Kt[or++]=_r)}return Kt}function Ue(O,J){for(var Ce=-1,rt=J.length,or=O.length;++Ce<rt;)O[or+Ce]=J[Ce];return O}function tt(O,J){for(var Ce=-1,rt=O==null?0:O.length;++Ce<rt;)if(J(O[Ce],Ce,O))return!0;return!1}function lt(O,J){for(var Ce=-1,rt=Array(O);++Ce<O;)rt[Ce]=J(Ce);return rt}function bt(O){return function(J){return O(J)}}function Mt(O,J){return O.has(J)}function Qe(O,J){return O==null?void 0:O[J]}function Xe(O){var J=-1,Ce=Array(O.size);return O.forEach(function(rt,or){Ce[++J]=[or,rt]}),Ce}function ht(O,J){return function(Ce){return O(J(Ce))}}function ft(O){var J=-1,Ce=Array(O.size);return O.forEach(function(rt){Ce[++J]=rt}),Ce}var Oe=Array.prototype,Je=Function.prototype,gt=Object.prototype,It=We["__core-js_shared__"],Et=Je.toString,Dt=gt.hasOwnProperty,Xt=function(){var O=/[^.]+$/.exec(It&&It.keys&&It.keys.IE_PROTO||"");return O?"Symbol(src)_1."+O:""}(),Wt=gt.toString,hr=RegExp("^"+Et.call(Dt).replace(ce,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dr=_e?We.Buffer:void 0,cr=We.Symbol,Te=We.Uint8Array,ue=gt.propertyIsEnumerable,st=Oe.splice,ze=cr?cr.toStringTag:void 0,vt=Object.getOwnPropertySymbols,_t=dr?dr.isBuffer:void 0,Tt=ht(Object.keys,Object),Ut=Gt(We,"DataView"),Ge=Gt(We,"Map"),at=Gt(We,"Promise"),ct=Gt(We,"Set"),xt=Gt(We,"WeakMap"),Nt=Gt(Object,"create"),Bt=un(Ut),qt=un(Ge),Yt=un(at),ir=un(ct),jt=un(xt),xr=cr?cr.prototype:void 0,jr=xr?xr.valueOf:void 0;function Ze(O){var J=-1,Ce=O==null?0:O.length;for(this.clear();++J<Ce;){var rt=O[J];this.set(rt[0],rt[1])}}function te(){this.__data__=Nt?Nt(null):{},this.size=0}function ye(O){var J=this.has(O)&&delete this.__data__[O];return this.size-=J?1:0,J}function Be(O){var J=this.__data__;if(Nt){var Ce=J[O];return Ce===n?void 0:Ce}return Dt.call(J,O)?J[O]:void 0}function At(O){var J=this.__data__;return Nt?J[O]!==void 0:Dt.call(J,O)}function Ft(O,J){var Ce=this.__data__;return this.size+=this.has(O)?0:1,Ce[O]=Nt&&J===void 0?n:J,this}Ze.prototype.clear=te,Ze.prototype.delete=ye,Ze.prototype.get=Be,Ze.prototype.has=At,Ze.prototype.set=Ft;function Ot(O){var J=-1,Ce=O==null?0:O.length;for(this.clear();++J<Ce;){var rt=O[J];this.set(rt[0],rt[1])}}function er(){this.__data__=[],this.size=0}function Qt(O){var J=this.__data__,Ce=Fn(J,O);if(Ce<0)return!1;var rt=J.length-1;return Ce==rt?J.pop():st.call(J,Ce,1),--this.size,!0}function kt(O){var J=this.__data__,Ce=Fn(J,O);return Ce<0?void 0:J[Ce][1]}function be(O){return Fn(this.__data__,O)>-1}function nt(O,J){var Ce=this.__data__,rt=Fn(Ce,O);return rt<0?(++this.size,Ce.push([O,J])):Ce[rt][1]=J,this}Ot.prototype.clear=er,Ot.prototype.delete=Qt,Ot.prototype.get=kt,Ot.prototype.has=be,Ot.prototype.set=nt;function yt(O){var J=-1,Ce=O==null?0:O.length;for(this.clear();++J<Ce;){var rt=O[J];this.set(rt[0],rt[1])}}function yr(){this.size=0,this.__data__={hash:new Ze,map:new(Ge||Ot),string:new Ze}}function Br(O){var J=Ht(this,O).delete(O);return this.size-=J?1:0,J}function lr(O){return Ht(this,O).get(O)}function br(O){return Ht(this,O).has(O)}function en(O,J){var Ce=Ht(this,O),rt=Ce.size;return Ce.set(O,J),this.size+=Ce.size==rt?0:1,this}yt.prototype.clear=yr,yt.prototype.delete=Br,yt.prototype.get=lr,yt.prototype.has=br,yt.prototype.set=en;function on(O){var J=-1,Ce=O==null?0:O.length;for(this.__data__=new yt;++J<Ce;)this.add(O[J])}function Pn(O){return this.__data__.set(O,n),this}function zr(O){return this.__data__.has(O)}on.prototype.add=on.prototype.push=Pn,on.prototype.has=zr;function tn(O){var J=this.__data__=new Ot(O);this.size=J.size}function Tn(){this.__data__=new Ot,this.size=0}function Bn(O){var J=this.__data__,Ce=J.delete(O);return this.size=J.size,Ce}function Ao(O){return this.__data__.get(O)}function No(O){return this.__data__.has(O)}function Po(O,J){var Ce=this.__data__;if(Ce instanceof Ot){var rt=Ce.__data__;if(!Ge||rt.length<t-1)return rt.push([O,J]),this.size=++Ce.size,this;Ce=this.__data__=new yt(rt)}return Ce.set(O,J),this.size=Ce.size,this}tn.prototype.clear=Tn,tn.prototype.delete=Bn,tn.prototype.get=Ao,tn.prototype.has=No,tn.prototype.set=Po;function jn(O,J){var Ce=io(O),rt=!Ce&&Kn(O),or=!Ce&&!rt&&wi(O),Kt=!Ce&&!rt&&!or&&oi(O),_r=Ce||rt||or||Kt,kr=_r?lt(O.length,String):[],Cr=kr.length;for(var Mr in O)Dt.call(O,Mr)&&!(_r&&(Mr=="length"||or&&(Mr=="offset"||Mr=="parent")||Kt&&(Mr=="buffer"||Mr=="byteLength"||Mr=="byteOffset")||Rn(Mr,Cr)))&&kr.push(Mr);return kr}function Fn(O,J){for(var Ce=O.length;Ce--;)if(Eo(O[Ce][0],J))return Ce;return-1}function Cn(O,J,Ce){var rt=J(O);return io(O)?rt:Ue(rt,Ce(O))}function oo(O){return O==null?O===void 0?G:A:ze&&ze in Object(O)?Vt(O):Bo(O)}function mn(O){return ao(O)&&oo(O)==c}function _n(O,J,Ce,rt,or){return O===J?!0:O==null||J==null||!ao(O)&&!ao(J)?O!==O&&J!==J:k(O,J,Ce,rt,_n,or)}function k(O,J,Ce,rt,or,Kt){var _r=io(O),kr=io(J),Cr=_r?d:sn(O),Mr=kr?d:sn(J);Cr=Cr==c?R:Cr,Mr=Mr==c?R:Mr;var dn=Cr==R,zn=Mr==R,rn=Cr==Mr;if(rn&&wi(O)){if(!wi(J))return!1;_r=!0,dn=!1}if(rn&&!dn)return Kt||(Kt=new tn),_r||oi(O)?He(O,J,Ce,rt,or,Kt):Ne(O,J,Cr,Ce,rt,or,Kt);if(!(Ce&o)){var Vr=dn&&Dt.call(O,"__wrapped__"),fn=zn&&Dt.call(J,"__wrapped__");if(Vr||fn){var po=Vr?O.value():O,To=fn?J.value():J;return Kt||(Kt=new tn),or(po,To,Ce,rt,Kt)}}return rn?(Kt||(Kt=new tn),et(O,J,Ce,rt,or,Kt)):!1}function $(O){if(!so(O)||ho(O))return!1;var J=Hn(O)?hr:xe;return J.test(un(O))}function X(O){return ao(O)&&ji(O.length)&&!!oe[oo(O)]}function he(O){if(!Zn(O))return Tt(O);var J=[];for(var Ce in Object(O))Dt.call(O,Ce)&&Ce!="constructor"&&J.push(Ce);return J}function He(O,J,Ce,rt,or,Kt){var _r=Ce&o,kr=O.length,Cr=J.length;if(kr!=Cr&&!(_r&&Cr>kr))return!1;var Mr=Kt.get(O);if(Mr&&Kt.get(J))return Mr==J;var dn=-1,zn=!0,rn=Ce&i?new on:void 0;for(Kt.set(O,J),Kt.set(J,O);++dn<kr;){var Vr=O[dn],fn=J[dn];if(rt)var po=_r?rt(fn,Vr,dn,J,O,Kt):rt(Vr,fn,dn,O,J,Kt);if(po!==void 0){if(po)continue;zn=!1;break}if(rn){if(!tt(J,function(To,Xn){if(!Mt(rn,Xn)&&(Vr===To||or(Vr,To,Ce,rt,Kt)))return rn.push(Xn)})){zn=!1;break}}else if(!(Vr===fn||or(Vr,fn,Ce,rt,Kt))){zn=!1;break}}return Kt.delete(O),Kt.delete(J),zn}function Ne(O,J,Ce,rt,or,Kt,_r){switch(Ce){case q:if(O.byteLength!=J.byteLength||O.byteOffset!=J.byteOffset)return!1;O=O.buffer,J=J.buffer;case P:return!(O.byteLength!=J.byteLength||!Kt(new Te(O),new Te(J)));case g:case m:case _:return Eo(+O,+J);case p:return O.name==J.name&&O.message==J.message;case F:case H:return O==J+"";case T:var kr=Xe;case B:var Cr=rt&o;if(kr||(kr=ft),O.size!=J.size&&!Cr)return!1;var Mr=_r.get(O);if(Mr)return Mr==J;rt|=i,_r.set(O,J);var dn=He(kr(O),kr(J),rt,or,Kt,_r);return _r.delete(O),dn;case j:if(jr)return jr.call(O)==jr.call(J)}return!1}function et(O,J,Ce,rt,or,Kt){var _r=Ce&o,kr=St(O),Cr=kr.length,Mr=St(J),dn=Mr.length;if(Cr!=dn&&!_r)return!1;for(var zn=Cr;zn--;){var rn=kr[zn];if(!(_r?rn in J:Dt.call(J,rn)))return!1}var Vr=Kt.get(O);if(Vr&&Kt.get(J))return Vr==J;var fn=!0;Kt.set(O,J),Kt.set(J,O);for(var po=_r;++zn<Cr;){rn=kr[zn];var To=O[rn],Xn=J[rn];if(rt)var Hi=_r?rt(Xn,To,rn,J,O,Kt):rt(To,Xn,rn,O,J,Kt);if(!(Hi===void 0?To===Xn||or(To,Xn,Ce,rt,Kt):Hi)){fn=!1;break}po||(po=rn=="constructor")}if(fn&&!po){var ii=O.constructor,vn=J.constructor;ii!=vn&&"constructor"in O&&"constructor"in J&&!(typeof ii=="function"&&ii instanceof ii&&typeof vn=="function"&&vn instanceof vn)&&(fn=!1)}return Kt.delete(O),Kt.delete(J),fn}function St(O){return Cn(O,Hr,Rr)}function Ht(O,J){var Ce=O.__data__;return kn(J)?Ce[typeof J=="string"?"string":"hash"]:Ce.map}function Gt(O,J){var Ce=Qe(O,J);return $(Ce)?Ce:void 0}function Vt(O){var J=Dt.call(O,ze),Ce=O[ze];try{O[ze]=void 0;var rt=!0}catch{}var or=Wt.call(O);return rt&&(J?O[ze]=Ce:delete O[ze]),or}var Rr=vt?function(O){return O==null?[]:(O=Object(O),it(vt(O),function(J){return ue.call(O,J)}))}:Ir,sn=oo;(Ut&&sn(new Ut(new ArrayBuffer(1)))!=q||Ge&&sn(new Ge)!=T||at&&sn(at.resolve())!=D||ct&&sn(new ct)!=B||xt&&sn(new xt)!=ge)&&(sn=function(O){var J=oo(O),Ce=J==R?O.constructor:void 0,rt=Ce?un(Ce):"";if(rt)switch(rt){case Bt:return q;case qt:return T;case Yt:return D;case ir:return B;case jt:return ge}return J});function Rn(O,J){return J=J??a,!!J&&(typeof O=="number"||Me.test(O))&&O>-1&&O%1==0&&O<J}function kn(O){var J=typeof O;return J=="string"||J=="number"||J=="symbol"||J=="boolean"?O!=="__proto__":O===null}function ho(O){return!!Xt&&Xt in O}function Zn(O){var J=O&&O.constructor,Ce=typeof J=="function"&&J.prototype||gt;return O===Ce}function Bo(O){return Wt.call(O)}function un(O){if(O!=null){try{return Et.call(O)}catch{}try{return O+""}catch{}}return""}function Eo(O,J){return O===J||O!==O&&J!==J}var Kn=mn(function(){return arguments}())?mn:function(O){return ao(O)&&Dt.call(O,"callee")&&!ue.call(O,"callee")},io=Array.isArray;function Fi(O){return O!=null&&ji(O.length)&&!Hn(O)}var wi=_t||Fr;function Ci(O,J){return _n(O,J)}function Hn(O){if(!so(O))return!1;var J=oo(O);return J==v||J==w||J==h||J==I}function ji(O){return typeof O=="number"&&O>-1&&O%1==0&&O<=a}function so(O){var J=typeof O;return O!=null&&(J=="object"||J=="function")}function ao(O){return O!=null&&typeof O=="object"}var oi=je?bt(je):X;function Hr(O){return Fi(O)?jn(O):he(O)}function Ir(){return[]}function Fr(){return!1}r.exports=Ci}(nh,nh.exports)),nh.exports}var up={},Ay;function p9(){if(Ay)return up;Ay=1,Object.defineProperty(up,"__esModule",{value:!0});const r=d2(),e=f2();var t;return function(n){function o(d={},h={},g=!1){typeof d!="object"&&(d={}),typeof h!="object"&&(h={});let m=r(h);g||(m=Object.keys(m).reduce((p,v)=>(m[v]!=null&&(p[v]=m[v]),p),{}));for(const p in d)d[p]!==void 0&&h[p]===void 0&&(m[p]=d[p]);return Object.keys(m).length>0?m:void 0}n.compose=o;function i(d={},h={}){typeof d!="object"&&(d={}),typeof h!="object"&&(h={});const g=Object.keys(d).concat(Object.keys(h)).reduce((m,p)=>(e(d[p],h[p])||(m[p]=h[p]===void 0?null:h[p]),m),{});return Object.keys(g).length>0?g:void 0}n.diff=i;function a(d={},h={}){d=d||{};const g=Object.keys(h).reduce((m,p)=>(h[p]!==d[p]&&d[p]!==void 0&&(m[p]=h[p]),m),{});return Object.keys(d).reduce((m,p)=>(d[p]!==h[p]&&h[p]===void 0&&(m[p]=null),m),g)}n.invert=a;function c(d,h,g=!1){if(typeof d!="object")return h;if(typeof h!="object")return;if(!g)return h;const m=Object.keys(h).reduce((p,v)=>(d[v]===void 0&&(p[v]=h[v]),p),{});return Object.keys(m).length>0?m:void 0}n.transform=c}(t||(t={})),up.default=t,up}var dp={},Ey;function h2(){if(Ey)return dp;Ey=1,Object.defineProperty(dp,"__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={})),dp.default=r,dp}var fp={},Ty;function g9(){if(Ty)return fp;Ty=1,Object.defineProperty(fp,"__esModule",{value:!0});const r=h2();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 o=this.ops[this.index];if(o){const i=this.offset,a=r.default.length(o);if(n>=a-i?(n=a-i,this.index+=1,this.offset=0):this.offset+=n,typeof o.delete=="number")return{delete:n};{const c={};return o.attributes&&(c.attributes=o.attributes),typeof o.retain=="number"?c.retain=n:typeof o.retain=="object"&&o.retain!==null?c.retain=o.retain:typeof o.insert=="string"?c.insert=o.insert.substr(i,n):c.insert=o.insert,c}}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,o=this.index,i=this.next(),a=this.ops.slice(this.index);return this.offset=n,this.index=o,[i].concat(a)}}else return[]}}return fp.default=e,fp}var Ry;function m9(){return Ry||(Ry=1,function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const t=h9(),n=d2(),o=f2(),i=p9();e.AttributeMap=i.default;const a=h2();e.Op=a.default;const c=g9();e.OpIterator=c.default;const d="\0",h=(m,p)=>{if(typeof m!="object"||m===null)throw new Error(`cannot retain a ${typeof m}`);if(typeof p!="object"||p===null)throw new Error(`cannot retain a ${typeof p}`);const v=Object.keys(m)[0];if(!v||v!==Object.keys(p)[0])throw new Error(`embed types not matched: ${v} != ${Object.keys(p)[0]}`);return[v,m[v],p[v]]};class g{constructor(p){Array.isArray(p)?this.ops=p:p!=null&&Array.isArray(p.ops)?this.ops=p.ops:this.ops=[]}static registerEmbed(p,v){this.handlers[p]=v}static unregisterEmbed(p){delete this.handlers[p]}static getHandler(p){const v=this.handlers[p];if(!v)throw new Error(`no handlers for embed type "${p}"`);return v}insert(p,v){const w={};return typeof p=="string"&&p.length===0?this:(w.insert=p,v!=null&&typeof v=="object"&&Object.keys(v).length>0&&(w.attributes=v),this.push(w))}delete(p){return p<=0?this:this.push({delete:p})}retain(p,v){if(typeof p=="number"&&p<=0)return this;const w={retain:p};return v!=null&&typeof v=="object"&&Object.keys(v).length>0&&(w.attributes=v),this.push(w)}push(p){let v=this.ops.length,w=this.ops[v-1];if(p=n(p),typeof w=="object"){if(typeof p.delete=="number"&&typeof w.delete=="number")return this.ops[v-1]={delete:w.delete+p.delete},this;if(typeof w.delete=="number"&&p.insert!=null&&(v-=1,w=this.ops[v-1],typeof w!="object"))return this.ops.unshift(p),this;if(o(p.attributes,w.attributes)){if(typeof p.insert=="string"&&typeof w.insert=="string")return this.ops[v-1]={insert:w.insert+p.insert},typeof p.attributes=="object"&&(this.ops[v-1].attributes=p.attributes),this;if(typeof p.retain=="number"&&typeof w.retain=="number")return this.ops[v-1]={retain:w.retain+p.retain},typeof p.attributes=="object"&&(this.ops[v-1].attributes=p.attributes),this}}return v===this.ops.length?this.ops.push(p):this.ops.splice(v,0,p),this}chop(){const p=this.ops[this.ops.length-1];return p&&typeof p.retain=="number"&&!p.attributes&&this.ops.pop(),this}filter(p){return this.ops.filter(p)}forEach(p){this.ops.forEach(p)}map(p){return this.ops.map(p)}partition(p){const v=[],w=[];return this.forEach(T=>{(p(T)?v:w).push(T)}),[v,w]}reduce(p,v){return this.ops.reduce(p,v)}changeLength(){return this.reduce((p,v)=>v.insert?p+a.default.length(v):v.delete?p-v.delete:p,0)}length(){return this.reduce((p,v)=>p+a.default.length(v),0)}slice(p=0,v=1/0){const w=[],T=new c.default(this.ops);let _=0;for(;_<v&&T.hasNext();){let A;_<p?A=T.next(p-_):(A=T.next(v-_),w.push(A)),_+=a.default.length(A)}return new g(w)}compose(p){const v=new c.default(this.ops),w=new c.default(p.ops),T=[],_=w.peek();if(_!=null&&typeof _.retain=="number"&&_.attributes==null){let R=_.retain;for(;v.peekType()==="insert"&&v.peekLength()<=R;)R-=v.peekLength(),T.push(v.next());_.retain-R>0&&w.next(_.retain-R)}const A=new g(T);for(;v.hasNext()||w.hasNext();)if(w.peekType()==="insert")A.push(w.next());else if(v.peekType()==="delete")A.push(v.next());else{const R=Math.min(v.peekLength(),w.peekLength()),D=v.next(R),I=w.next(R);if(I.retain){const F={};if(typeof D.retain=="number")F.retain=typeof I.retain=="number"?R:I.retain;else if(typeof I.retain=="number")D.retain==null?F.insert=D.insert:F.retain=D.retain;else{const H=D.retain==null?"insert":"retain",[j,G,ge]=h(D[H],I.retain),P=g.getHandler(j);F[H]={[j]:P.compose(G,ge,H==="retain")}}const B=i.default.compose(D.attributes,I.attributes,typeof D.retain=="number");if(B&&(F.attributes=B),A.push(F),!w.hasNext()&&o(A.ops[A.ops.length-1],F)){const H=new g(v.rest());return A.concat(H).chop()}}else typeof I.delete=="number"&&(typeof D.retain=="number"||typeof D.retain=="object"&&D.retain!==null)&&A.push(I)}return A.chop()}concat(p){const v=new g(this.ops.slice());return p.ops.length>0&&(v.push(p.ops[0]),v.ops=v.ops.concat(p.ops.slice(1))),v}diff(p,v){if(this.ops===p.ops)return new g;const w=[this,p].map(D=>D.map(I=>{if(I.insert!=null)return typeof I.insert=="string"?I.insert:d;const F=D===p?"on":"with";throw new Error("diff() called "+F+" non-document")}).join("")),T=new g,_=t(w[0],w[1],v,!0),A=new c.default(this.ops),R=new c.default(p.ops);return _.forEach(D=>{let I=D[1].length;for(;I>0;){let F=0;switch(D[0]){case t.INSERT:F=Math.min(R.peekLength(),I),T.push(R.next(F));break;case t.DELETE:F=Math.min(I,A.peekLength()),A.next(F),T.delete(F);break;case t.EQUAL:F=Math.min(A.peekLength(),R.peekLength(),I);const B=A.next(F),H=R.next(F);o(B.insert,H.insert)?T.retain(F,i.default.diff(B.attributes,H.attributes)):T.push(H).delete(F);break}I-=F}}),T.chop()}eachLine(p,v=`
|
166
|
+
`),h=new Blob([d],{type:"text/csv;charset=UTF-8"}),g=URL.createObjectURL(h),m=document.createElement("a");m.href=g,m.download=c,m.click(),URL.revokeObjectURL(g)},MI=r=>{const e=ar.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},LI=r=>{const e=Object.entries(r);let t={};return e.forEach(([n,o])=>{!o||o.value===void 0||o.value===null||o.value===""||(o.type==="DateRange"?(t[o.sFilterKey]=o.value.sDate,t[o.eFilterKey]=o.value.eDate):t[o.filterKey??n]=o.value)}),t},DI=r=>{const e=ar.keys(r).filter(o=>o!=="");if(e.length!==1)return;const t=e[0],n=r[t];return!n||n.value===void 0||n.value===null||n.value===""?{selectedKey:t,value:void 0}:{selectedKey:t,value:n.value}},Bl={applyFilteration:EI,applySortation:TI,applyPagination:RI,getPages:n2,getRangedPages:kI,downloadCsv:II,getSingleFilterValue:MI,getMultiFilterValues:LI,getSelectFilterValue:DI},OI="_ATable_12zow_1",NI={ATable:OI};function o2(r,e,t,n){C.useEffect(()=>{if(r)return r.addEventListener(e,t,n),()=>{r.removeEventListener(e,t,n)}},[r,e,t,n])}const PI="_BodyHeader_ys4y0_1",BI="_TRow_ys4y0_7",FI="_OverflowSpace_ys4y0_11",jI="_BodyBody_ys4y0_16",HI="_IsSelected_ys4y0_35",zI="_IsSelectable_ys4y0_39",$I="_IsRowMarked_ys4y0_47",UI="_TH_ys4y0_52",qI="_TD_ys4y0_57",WI="_IsMarked_ys4y0_57",VI="_Resizer_ys4y0_76",GI="_IsMoving_ys4y0_88",YI="_IsResizable_ys4y0_91",ZI="_ResizerCenter_ys4y0_94",KI="_ResizerOut_ys4y0_100",XI="_ResizerIn_ys4y0_104",JI="_IsClicked_ys4y0_139",QI="_NoItems_ys4y0_146",e8="_Content_ys4y0_152",Ln={BodyHeader:PI,TRow:BI,OverflowSpace:FI,BodyBody:jI,IsSelected:HI,IsSelectable:zI,IsRowMarked:$I,TH:UI,TD:qI,IsMarked:WI,Resizer:VI,IsMoving:GI,IsResizable:YI,ResizerCenter:ZI,ResizerOut:KI,ResizerIn:XI,IsClicked:JI,NoItems:QI,Content:e8},Fc=25,Jg=50,t8=r=>{const{defs:e,isEqual:t,rProps:n,useSelect:o,isTableDisabled:i,isSelectMulti:a,selectDisabled:c,appliedFilteration:d,useSortation:h,pagination:g,pagedItems:m,noMarking:p,noDefHeader:v,isLoading:w,showRows:T,RowRenderer:_=o8,isRowRendered:A,rowHeight:R,resources:D}=r,[I,F]=C.useMemo(()=>o??[],[o]),B=C.useCallback(Ue=>{i||!F||!I||c!=null&&c(Ue)||(a?I.some(tt=>t(tt,Ue))?F(I.filter(tt=>!t(tt,Ue))):F([...I,Ue]):F([Ue]))},[I,c,F,t,i,a]);C.useEffect(()=>{a||!I||!F||I.length>1&&F([I[I.length-1]])},[I,F,a]),C.useEffect(()=>{if(!I||!F)return;I.filter(tt=>c==null?void 0:c(tt)).length>0&&F(I.filter(tt=>!(c!=null&&c(tt))))},[I,F,c]);const[H,j]=h,G=C.useCallback((Ue,tt)=>{j&&((H==null?void 0:H.defKey)===Ue?H.isAsc===!0?j({defKey:Ue,isAsc:!1,sortF:tt}):H.isAsc===!1?j(void 0):j({defKey:Ue,isAsc:!0,sortF:tt}):j({defKey:Ue,isAsc:!0,sortF:tt}))},[H,j]),[ge,P]=C.useState({elem:null,row:null}),q=C.useRef(null),V=C.useRef(null),Q=C.useCallback(()=>P({elem:q.current,row:V.current}),[]);C.useEffect(()=>Q(),[m.length,Q]),o2(window,"resize",Q);const[ie,se]=C.useState(R);C.useEffect(()=>{const{row:Ue}=ge;Ue!=null&&se(Ue.clientHeight)},[ge,ie]);const ae=C.useMemo(()=>{const{elem:Ue}=ge;return Ue?Math.floor(Ue.clientHeight/ie):0},[ge,ie]),le=C.useMemo(()=>T||(m.length<=ae?ae:m.length),[ae,T,m]),fe=C.useMemo(()=>{if(T!==void 0)return T*ie},[T,ie]),ee=C.useMemo(()=>fe,[fe]),ne=C.useMemo(()=>{const{elem:Ue}=ge;return Ue?Ue.getBoundingClientRect().height/ie<m.length:!1},[ge,ie,m.length]),[ce,xe]=C.useState(),Me=C.useMemo(()=>{const{elem:Ue}=ge;return!ce||!Ue?"100%":Ue.clientHeight+(A?0:50)},[ce,A,ge]),oe=C.useRef(null),[Se,Le]=C.useState({}),We=C.useRef({x:0,y:0}),Ve=C.useRef({}),we=C.useMemo(()=>ar.keys(Se),[Se]),_e=C.useCallback((Ue,tt)=>{const lt=oe.current;if(!lt)return;const bt=[];lt.childNodes.forEach(ht=>{ht.classList.contains(Ln.TH)&&bt.push(ht)});const Mt={};ar.keys(e).forEach((ht,ft)=>{const Oe=bt[ft];if(!Oe)return;const Je=Oe.getBoundingClientRect().width;Mt[ht]=Je}),Ve.current=Mt,xe(tt),We.current={x:Ue.clientX,y:Ue.clientY};const Qe=ht=>{if(!oe.current)return;const Oe=ht.clientX-We.current.x,Je=n8(e,tt,Ve.current,Oe);Le(Je)};document.addEventListener("mousemove",Qe);const Xe=()=>{xe(void 0),document.removeEventListener("mousemove",Qe),document.removeEventListener("mouseup",Xe)};document.addEventListener("mouseup",Xe)},[e]),Ae=C.useCallback(()=>{xe(void 0),Le({})},[]),Ie=C.useMemo(()=>{if(we.length===0){const lt={},bt=ar.keys(e);for(let Mt=0;Mt<bt.length;Mt++){const Qe=bt[Mt],Xe=e[Qe],ht=Pr.getContent(Xe.colSpan,{defKey:Qe,def:Xe}),ft=Xe.width??80,Oe=Xe.minWidth??Fc,Je=Xe.maxWidth,gt={width:ft,minWidth:Oe,maxWidth:Je,flexGrow:ht??1};if(lt[Qe]=gt,ht!==void 0){for(let It=1;It<Math.min(ht,bt.length-Mt);It++){const Et=e[bt[Mt+It]],Dt=Et.width??80,Xt=Et.minWidth??Fc,Wt=Et.maxWidth;gt.width+=Dt,gt.minWidth+=Xt,gt.maxWidth!==void 0&&(Wt!==void 0?gt.maxWidth+=Wt:gt.maxWidth=void 0)}Mt+=ht-1}}return lt}const Ue={},tt=ar.keys(e);for(let lt=0;lt<tt.length;lt++){let bt=tt[lt];const Mt=e[bt];let Qe=Se[bt];const Xe=Pr.getContent(Mt.colSpan,{defKey:bt,def:Mt}),ht=Mt.minWidth??Fc,ft=Mt.maxWidth,Oe={width:Qe,minWidth:ht,maxWidth:ft,flexGrow:Xe??1};if(Ue[bt]=Oe,Xe!==void 0){for(let Je=1;Je<Math.min(Xe,tt.length-lt);Je++){const gt=e[tt[lt+Je]],It=Se[tt[lt+Je]],Et=gt.minWidth??Fc,Dt=gt.maxWidth;Oe.width+=It,Oe.minWidth+=Et,Oe.maxWidth!==void 0&&(Dt!==void 0?Oe.maxWidth+=Dt:Oe.maxWidth=void 0)}lt+=Xe-1}}return Ue},[e,we,Se]),je=C.useRef(null),it=C.useMemo(()=>Bl.getSingleFilterValue(d),[d]);return C.useEffect(()=>{q.current&&q.current.scrollTo({top:0})},[g.page]),C.useEffect(()=>{A&&V.current&&V.current.scrollIntoView({behavior:"smooth",block:"center"})},[I,m,A]),S.jsxs(S.Fragment,{children:[S.jsx(gv,{isLoading:w}),S.jsx("div",{ref:je,className:Ye.clsx(Ln.BodyHeader,ce!==void 0&&Ln.IsClicked),style:{display:v||A?"none":"flex"},onResizeCapture:Q,children:S.jsx("div",{ref:oe,className:Ln.TRow,style:{minHeight:Jg,maxHeight:Jg},children:ar.map(e,([Ue],tt)=>{const lt=e[Ue],bt=Pr.getContent(lt.hContent,{defKey:Ue,def:lt}),Mt=lt.name,Qe=tt===ar.keys(e).length-1,Xe=lt.width??80,ht=lt.minWidth??Fc,ft=lt.maxWidth,Oe={width:Xe,minWidth:ht,maxWidth:ft,justifyContent:Pr.getContent(lt.hAlign,{defKey:Ue,def:lt})??"flex-start",...Pr.getContent(lt.hStyle,{defKey:Ue,def:lt})};we.includes(Ue)&&(Oe.width=Se[Ue]);const Je=lt.isSortable,gt=(H==null?void 0:H.defKey)===Ue,It=H==null?void 0:H.isAsc;return S.jsxs(C.Fragment,{children:[S.jsxs("div",{className:Ye.clsx(Ln.TH,"Label1",Je?"IsClickable":"NoSelect"),style:Oe,onClick:()=>Je&&G(Ue,lt.sortF),children:[S.jsx(tl,{children:bt??Mt,className:Ln.Content}),Je&&S.jsx(gn,{icon:gt?It?"SortUp":"SortDown":"SortBoth",style:{width:16,height:16}})]}),!Qe&&S.jsxs("div",{className:Ye.sclsx(Ln,"Resizer","IsResizable","NoSelect",ce!==void 0&&"IsMoving"),onDoubleClick:Ae,onMouseDown:Et=>_e(Et,Ue),children:[S.jsx("div",{className:Ln.ResizerOut}),S.jsx("div",{className:Ln.ResizerIn}),S.jsx("div",{className:Ln.ResizerCenter,style:{height:Me}}),S.jsx("div",{className:Ln.ResizerIn}),S.jsx("div",{className:Ln.ResizerOut})]}),Qe&&S.jsx(Nn,{className:Ln.OverflowSpace,h:Jg,style:{color:Oe.color,backgroundColor:Oe.backgroundColor,transition:Oe.transition},w:"var(--Scrollbar-width)"})]},Ue)})})}),S.jsxs("div",{ref:q,className:Ye.clsx(Ln.BodyBody,ce!==void 0&&Ln.IsClicked),style:{overflowY:ne?"scroll":"hidden",minHeight:fe,maxHeight:ee},children:[m.map((Ue,tt)=>{const lt=Pr.getContent(n,{item:Ue}),bt=F&&!i,Mt=I==null?void 0:I.some(ft=>t(ft,Ue)),Qe=I&&(c==null?void 0:c(Ue)),Xe=typeof Qe=="string"?Qe:void 0,ht={...Ue};return A&&ar.keys(e).forEach(ft=>{const Oe=e[ft],Je=Pr.getContent(Oe.content,{defKey:ft,def:Oe,item:Ue});let gt=!1;if(it&&!p){const It=Pr.getContent(Oe.asText,{defKey:ft,def:Oe,item:Ue});It!==void 0?gt=It.toString().toLowerCase().includes(it.toLowerCase()):["string","number"].includes(typeof Je)&&Je!==void 0&&Je!==null&&(gt=Je.toString().toLowerCase().includes(it.toLowerCase()))}ht[ft]=S.jsx("span",{className:Ye.clsx(gt&&Ln.IsRowMarked),children:ht[ft]})}),S.jsx(Jr,{isDisabled:Qe,tooltip:Xe,...lt,abaseRef:Mt?V:void 0,className:Ye.clsx(lt==null?void 0:lt.className,bt&&Ln.IsSelectable,Mt&&Ln.IsSelected),onClick:ft=>{var Oe;B(Ue),(Oe=lt==null?void 0:lt.onClick)==null||Oe.call(lt,ft)},children:S.jsx(_,{defs:e,isBodyBodyOverflowed:ne,item:Ue,markedItem:ht,noMarking:p,rowHeight:R,singleFilterValue:it,spanWidths:Ie})},tt)}),S.jsx(r8,{isRowRendered:A,itemsLength:m.length,resources:D,rowHeight:ie,showRows:le})]})]})},r8=r=>{const{showRows:e,itemsLength:t,resources:n,isRowRendered:o,rowHeight:i}=r,a=C.useMemo(()=>t===0?e:e-t,[e,t]);return Array.from({length:a},(c,d)=>S.jsx("div",{className:Ye.clsx(Ln.TRow,"NoSelect"),style:{minHeight:i,maxHeight:i,...o&&{border:"none"}},children:t===0&&d===Math.floor(e/2)&&S.jsx(On,{className:Ln.NoItems,children:n["No Items"]})},d))};function n8(r,e,t,n){const o={...t},i=ar.keys(r).findIndex(h=>h===e)+1,a=Object.entries(r);let c=i-1,d=i;if(n<0){for(;n<0&&!(c<0||d>=a.length);){const[h,g]=[a[c][0],a[c][1]],[m,p]=[a[d][0],a[d][1]],v=g.minWidth??Fc,w=p.maxWidth,T=o[h],_=o[m];let A=T-v;w!==void 0&&(A=Math.min(A,w-_));let R=-n;R=Math.min(R,A),T-R<=v&&c--,w!==void 0&&_+R>=w&&d++,o[h]=T-R,o[m]=_+R,n+=R}return o}else if(n>0){for(;n>0&&!(c<0||d>=a.length);){const[h,g]=[a[c][0],a[c][1]],[m,p]=[a[d][0],a[d][1]],v=p.minWidth??Fc,w=g.maxWidth,T=o[m],_=o[h];let A=T-v;w!==void 0&&(A=Math.min(A,w-_));let R=n;R=Math.min(R,A),T-R<=v&&d++,w!==void 0&&_+R>=w&&c--,o[m]=T-R,o[h]=_+R,n-=R}return o}return o}const o8=r=>{const{defs:e,item:t,noMarking:n,spanWidths:o,singleFilterValue:i,isBodyBodyOverflowed:a,rowHeight:c}=r;return S.jsx("div",{className:Ye.clsx(Ln.TRow),style:{minHeight:c,maxHeight:c},children:ar.map(e,([d],h)=>{const g=o[d];if(g===void 0)return null;const m=h===ar.keys(e).length-1,p=e[d],v=Pr.getContent(p.content,{defKey:d,def:p,item:t}),w={width:g.width,minWidth:g.minWidth,maxWidth:g.maxWidth,flexGrow:g.flexGrow,justifyContent:Pr.getContent(p.align,{defKey:d,def:p,item:t})??"flex-start",...Pr.getContent(p.style,{defKey:d,def:p,item:t})};let T=!1;if(i&&!n){const _=Pr.getContent(p.asText,{defKey:d,def:p,item:t});_!==void 0?T=_.toString().toLowerCase().includes(i.toLowerCase()):["string","number"].includes(typeof v)&&v!==void 0&&v!==null&&(T=v.toString().toLowerCase().includes(i.toLowerCase()))}return S.jsxs(C.Fragment,{children:[S.jsx("div",{className:Ye.clsx(Ln.TD,"Label1",T&&Ln.IsMarked),style:w,children:S.jsx(tl,{children:v,className:Ln.Content})}),!a&&m&&S.jsx(Nn,{className:Ln.OverflowSpace,h:c,style:{color:w.color,backgroundColor:w.backgroundColor},w:"var(--Scrollbar-width)"})]},d)})})},i8="_ATableFooter_w090q_1",s8="_Button_w090q_10",a8="_IsSelected_w090q_26",l8="_IsDisabled_w090q_31",oa={ATableFooter:i8,Button:s8,IsSelected:a8,IsDisabled:l8},c8=r=>{const{pages:e,rangedPages:t,pageF:n,pagination:o}=r,i=C.useMemo(()=>e[e.length-1],[e]);return S.jsxs(On,{className:oa.ATableFooter,children:[S.jsx(gn,{className:Ye.clsx(oa.Button,o.page===1&&oa.IsDisabled),icon:"FirstPage",onClick:n.moveFirst}),S.jsx(gn,{className:Ye.clsx(oa.Button,o.page===1&&oa.IsDisabled),icon:"NavigateBefore",onClick:n.movePrev}),t.map(a=>S.jsx("div",{className:Ye.clsx(oa.Button,"NoSelect",o.page===a&&oa.IsSelected),onClick:()=>n.move(a),children:a},a)),S.jsx(gn,{className:Ye.clsx(oa.Button,o.page===i&&oa.IsDisabled),icon:"NavigateNext",onClick:n.moveNext}),S.jsx(gn,{className:Ye.clsx(oa.Button,o.page===i&&oa.IsDisabled),icon:"LastPage",onClick:n.moveLast})]})},u8="_Filter_1b9j0_1",d8="_SelectFilter_1b9j0_11",f8="_MainFilter_1b9j0_15",h8="_IsOpen_1b9j0_26",p8="_SubFilters_1b9j0_30",g8="_Input_1b9j0_44",m8="_Main_1b9j0_15",v8="_Sub_1b9j0_30",y8="_Actions_1b9j0_62",b8="_Icon_1b9j0_67",x8="_LeftIcon_1b9j0_74",w8="_CircleAlertOutline_1b9j0_79",C8="_Rotate_1b9j0_87",Dr={Filter:u8,SelectFilter:d8,MainFilter:f8,IsOpen:h8,SubFilters:p8,Input:g8,Main:m8,Sub:v8,Actions:y8,Icon:b8,LeftIcon:x8,CircleAlertOutline:w8,Rotate:C8},S8=r=>{const{defs:e,useFilteration:t,hasToggleFilteration:n,filterF:o,isRowRendered:i,isFilterSort:a,filterType:c,resources:d,placeholder:h}=r,[g,m]=C.useState([]),[p,v]=C.useMemo(()=>t,[t]),w=C.useMemo(()=>c==="Select",[c]),T=C.useMemo(()=>ar.keys(p).map(oe=>String(oe)),[p]),[_,A]=C.useState(w&&T.length>0?T[0]:null),R=C.useCallback((oe,Se,Le)=>{if(!v)return;const We={...p};oe.value=Se,v(We),m(Ve=>Ve.map((we,_e)=>_e===(Le?Le+1:0)?"":we))},[p,v]),D=C.useMemo(()=>{let oe=[],Se=ar.keys(p);w&&_&&(Se=Se.filter(Le=>Le===_));for(const Le of Se)oe.push({key:Le,def:e[Le],filter:p[Le]});return oe},[p,e,w,_]),I=C.useMemo(()=>D.length>0?D[0]:null,[D]),F=C.useMemo(()=>g.length>0?g[0]:"",[g]),B=C.useMemo(()=>D.length>1?D.slice(1):[],[D]),H=C.useMemo(()=>g.length>1?g.slice(1):[],[g]),j=C.useMemo(()=>B.length>0,[B]),[G,ge]=C.useState(!1),[P,q]=C.useState(!1),V=C.useRef(null),Q=C.useCallback(()=>ge(!1),[]),ie=C.useRef(null),se=C.useCallback(()=>{q(!1),ge(!0),ie.current&&(document.removeEventListener("mousedown",ie.current),ie.current=null)},[]),ae=C.useCallback(()=>{const oe=Se=>{const Le=document.getElementById("root"),We=Se.target,Ve=V.current;!Le||!Ve||!We||!Ve.contains(We)&&Le.contains(We)&&se()};return ie.current=oe,oe},[se]),le=C.useCallback(()=>{ge(!0),q(!0),setTimeout(()=>{const oe=ae();document.addEventListener("mousedown",oe)},0)},[ae]),fe=C.useMemo(()=>P?se:le,[P,le,se]),ee=C.useCallback(()=>{const oe=D.map((Se,Le)=>Se.filter.type==="String"&&Se.filter.validation?Se.filter.validation(Se.filter.value||""):Se.filter.type==="Date"&&Se.filter.validation||Se.filter.type==="DateRange"&&Se.filter.validation?Se.filter.validation(Se.filter.value):g[Le]);return m(oe),oe.every(Se=>!Se)},[g,D]),ne=C.useCallback(oe=>{oe.key==="Enter"?(ee()&&o.apply(),oe.stopPropagation()):oe.key==="Escape"&&(q(!1),oe.currentTarget.focus(),oe.currentTarget.blur(),oe.stopPropagation())},[ee,q,o]),ce=C.useMemo(()=>({open:le,close:se,toggle:fe,validate:ee}),[le,se,fe,ee]),xe=C.useCallback(()=>{o.clear()},[o]),Me=C.useCallback(oe=>{if(!v||!oe)return;A(oe);const Se={...p};ar.keys(Se).forEach(Le=>{if(Le!==oe&&Se[Le])switch(Se[Le].type){case"String":Se[Le].value="";break;case"Select":Se[Le].value=null;break;case"Date":Se[Le].value=void 0;break;case"DateRange":Se[Le].value=void 0;break}}),m([]),v(Se),o.clear(),setTimeout(()=>{var We;const Le=(We=V.current)==null?void 0:We.querySelector("input");Le&&Le.focus()},0)},[p,v,m,o]);return I?S.jsxs(S.Fragment,{children:[w&&S.jsx(Kc,{isAutoWidth:!0,className:Ye.clsx(Dr.SelectFilter),options:T,type:"Secondary",useSelect:[_,Me],OptionRenderer:({option:oe})=>{const Se=e[oe];let Le;if(Se!=null&&Se.hContent){const We={defKey:oe,def:Se};Le=typeof Se.hContent=="function"?Se.hContent(We):Se.hContent}else{const We=p[oe],Ve=(Se==null?void 0:Se.name)||(We==null?void 0:We.placeholder)||String(oe);Le=S.jsx("span",{children:Ve})}return Le}}),S.jsxs("div",{ref:V,className:Ye.clsx(Dr.Filter),tabIndex:-1,style:{minWidth:i?a?180:void 0:180,maxWidth:i?a?300:void 0:300},onKeyDown:ne,onClick:oe=>{oe.preventDefault(),oe.stopPropagation()},children:[S.jsx(_8,{errorMessage:F,filterF:o,filterSet:I,hasSelectFilterType:w,hasSubFilters:j,hasToggleFilteration:n,isOpen:P,placeholder:h,popupF:ce,resources:d,onChange:R}),!w&&S.jsx(A8,{errorMessages:H,filterF:o,isOpen:P,isTransitioning:G,placeholder:h,resources:d,subFilterSets:B,validate:ee,onChange:R,onClearClick:xe,onTransitionEnd:Q})]})]}):null},_8=r=>{var p,v,w,T;const{filterSet:e,hasToggleFilteration:t,hasSelectFilterType:n,onChange:o,filterF:i,hasSubFilters:a,popupF:c,isOpen:d,resources:h,errorMessage:g,placeholder:m}=r;if(e.filter.type==="String"){const _=[e.filter.value??"",I=>o(e.filter,I)],A=m??e.filter.placeholder??((p=e.def)==null?void 0:p.name),R=e.filter.icon,D=e.filter.iconTooltip??A;return S.jsxs("div",{className:Ye.clsx(Dr.MainFilter,d&&Dr.IsOpen),children:[S.jsx(Ya,{icon:R??"Type",isOpen:d,tooltip:D}),S.jsx(Zc,{autoFocus:e.filter.autoFocus,className:Ye.clsx(Dr.Input,Dr.Main),dataList:e.filter.dataList,LeftAddon:t&&S.jsx(np,{isOpen:d,filterF:i,popupF:c,resources:h}),maxLength:e.filter.maxLength,placeholder:A??h["Search(Placeholder)"],type:g?"Error":"Primary",useValue:_,wrapProps:{style:{width:"100%",boxSizing:"border-box"}},RightAddon:S.jsx(op,{errorMessage:g,filterF:i,hasSelectFilterType:n,hasSubFilters:a,isOpen:d,popupF:c,resources:h})})]})}else if(e.filter.type==="Select"){const _=[e.filter.value??null,I=>{o(e.filter,I),n&&setTimeout(()=>{c.validate()&&i.apply()},0)}],A=m??e.filter.placeholder??((v=e.def)==null?void 0:v.name),R=e.filter.icon,D=e.filter.iconTooltip??A;return S.jsxs("div",{className:Ye.clsx(Dr.MainFilter,d&&Dr.IsOpen),children:[S.jsx(Ya,{icon:R??"Menu",isOpen:d,tooltip:D}),S.jsx(Kc,{className:Ye.clsx(Dr.Input,Dr.Main),OptionRenderer:e.filter.OptionRenderer,options:e.filter.options,placeholder:A,useSelect:_,SelectedRenderer:({OptionRenderer:I,selectedOption:F})=>F===null?A||e.filter.placeholder:S.jsxs(S.Fragment,{children:[t&&S.jsx(np,{isOpen:d,filterF:i,popupF:c,resources:h}),S.jsx(I,{option:F}),S.jsx(op,{filterF:i,hasSelectFilterType:n,hasSubFilters:a,hideSearchButton:!0,isOpen:d,popupF:c,resources:h})]})})]})}else if(e.filter.type==="Date"){const _=[e.filter.value,I=>o(e.filter,I)],A=m??e.filter.placeholder??((w=e.def)==null?void 0:w.name),R=e.filter.icon,D=e.filter.iconTooltip??A;return S.jsxs("div",{className:Ye.clsx(Dr.MainFilter,d&&Dr.IsOpen),children:[S.jsx(Ya,{icon:R??"CalendarDay",isOpen:d,tooltip:D}),S.jsx(hv,{className:Ye.clsx(Dr.DatePicker,Dr.Input,Dr.Main),maxDate:e.filter.maxDate,minDate:e.filter.minDate,placeholder:A,type:"Raw",useDate:_,LeftAddon:S.jsxs(S.Fragment,{children:[t&&S.jsx(np,{isOpen:d,filterF:i,popupF:c,resources:h}),!t&&S.jsx(Nn,{w:d?0:6}),S.jsx(Ya,{icon:R??"CalendarDay",isOpen:!d,tooltip:D}),S.jsx(Nn,{w:d?8:0})]}),RightAddon:S.jsx(op,{filterF:i,hasSelectFilterType:n,hasSubFilters:a,isOpen:d,popupF:c,resources:h})})]})}else if(e.filter.type==="DateRange"){const _=[e.filter.value,F=>o(e.filter,F)],{noDefaultChoices:A}=e.filter,R=m??e.filter.placeholder??((T=e.def)==null?void 0:T.name),D=e.filter.icon,I=e.filter.iconTooltip??R;return S.jsxs("div",{className:Ye.clsx(Dr.MainFilter,d&&Dr.IsOpen),children:[S.jsx(Ya,{icon:D??"CalendarDay",isOpen:d,tooltip:I}),S.jsx(dv,{className:Ye.clsx(Dr.DatePicker,Dr.Input,Dr.Main),maxDate:e.filter.maxDate,minDate:e.filter.minDate,noDefaultChoices:A,placeholder:R,type:"Raw",useDateRange:_,LeftAddon:S.jsxs(S.Fragment,{children:[t&&S.jsx(np,{isOpen:d,filterF:i,popupF:c,resources:h}),!t&&S.jsx(Nn,{w:d?0:6}),S.jsx(Ya,{icon:D??"CalendarDay",isOpen:!d,tooltip:I}),S.jsx(Nn,{w:d?8:0})]}),RightAddon:S.jsx(op,{filterF:i,hasSelectFilterType:n,hasSubFilters:a,isOpen:d,popupF:c,resources:h})})]})}return null},np=r=>{const{filterF:e,popupF:t,resources:n,isOpen:o}=r;return S.jsx(_o,{className:Dr.Icon,icon:"Convert",style:{width:o?0:24,marginLeft:o?0:8},tooltip:n["Toggle Filter"],type:"Raw",onMouseDown:i=>i.currentTarget.classList.remove(Dr.Rotate),onClick:i=>{i.currentTarget.classList.add(Dr.Rotate),e.toggle(),t.close(),i.stopPropagation()}})},op=r=>{const{hasSubFilters:e,popupF:t,isOpen:n,resources:o,errorMessage:i,hideSearchButton:a,hasSelectFilterType:c,filterF:d}=r,h=C.useCallback(p=>{p.stopPropagation(),t.open()},[t]),g=C.useCallback(p=>{p.stopPropagation(),t.close()},[t]),m=C.useCallback(p=>{p.stopPropagation(),t.validate()&&d.apply()},[t,d]);return S.jsxs(C.Fragment,{children:[i&&S.jsx(_o,{className:Dr.CircleAlertOutline,icon:"CircleAlertOutline",iconSize:"xs",tooltip:i,type:"Raw"}),e&&!c&&S.jsx(_o,{className:Dr.Icon,icon:"ListAdd",type:"Raw",style:{opacity:+!n,visibility:+!n?"visible":"hidden",marginRight:-24,pointerEvents:n?"none":void 0},onClick:h}),e&&!c&&S.jsx(_o,{className:Dr.Icon,icon:"ListRemove",type:"Raw",style:{opacity:+n,visibility:+n?"visible":"hidden",marginRight:n?-24:0,pointerEvents:n?void 0:"none"},onClick:g}),!a&&S.jsx(_o,{className:Dr.Icon,icon:"Search",tooltip:o["Search(Button)"],type:"Raw",style:{opacity:+!n,visibility:+!n?"visible":"hidden",pointerEvents:n?"none":void 0,marginRight:4},onClick:m})]})},A8=r=>{const{subFilterSets:e,onChange:t,onClearClick:n,isOpen:o,isTransitioning:i,onTransitionEnd:a,resources:c,errorMessages:d,placeholder:h,filterF:g,validate:m}=r;return!o&&!i?null:S.jsxs("div",{className:Dr.SubFilters,style:{opacity:+o,visibility:+o?"visible":"hidden"},onTransitionEnd:a,children:[e.map((p,v)=>{var w,T,_,A;if(p.filter.type==="String"){const R=[p.filter.value??"",H=>t(p.filter,H,v)],D=d[v],I=h??p.filter.placeholder??((w=p.def)==null?void 0:w.name),F=p.filter.icon,B=p.filter.iconTooltip??I;return S.jsxs(On,{style:{marginBottom:6},children:[S.jsx(Ya,{icon:F??"Type",tooltip:B}),S.jsx(Zc,{autoFocus:p.filter.autoFocus,className:Ye.clsx(Dr.Input,Dr.Sub),dataList:p.filter.dataList,maxLength:p.filter.maxLength,placeholder:I??c["Search(Placeholder)"],type:D?"Error":"Secondary",useValue:R,wrapProps:{style:{width:"100%"}},RightAddon:D&&S.jsx(_o,{className:Dr.CircleAlertOutline,icon:"CircleAlertOutline",iconSize:"xs",tooltip:D,type:"Raw"})}),S.jsx(Nn,{h:8})]},v)}else if(p.filter.type==="Select"){const R=[p.filter.value??null,B=>t(p.filter,B)],D=h??p.filter.placeholder??((T=p.def)==null?void 0:T.name),I=p.filter.icon,F=p.filter.iconTooltip??D;return S.jsxs(On,{style:{marginBottom:6},children:[S.jsx(Ya,{icon:I??"Menu",tooltip:F}),S.jsx(Kc,{arrowProps:{style:{marginRight:4}},className:Ye.clsx(Dr.Input,Dr.Sub),OptionRenderer:p.filter.OptionRenderer,options:p.filter.options,placeholder:D,type:"Secondary",useSelect:R}),S.jsx(Nn,{h:8})]},v)}else if(p.filter.type==="Date"){const R=[p.filter.value,B=>t(p.filter,B)],D=h??p.filter.placeholder??((_=p.def)==null?void 0:_.name),I=p.filter.icon,F=p.filter.iconTooltip??D;return S.jsxs(On,{style:{marginBottom:6},children:[S.jsx(Ya,{icon:I??"CalendarDay",tooltip:F}),S.jsx(hv,{className:Ye.clsx(Dr.DatePicker,Dr.Input,Dr.Sub),LeftAddon:S.jsx(Nn,{w:12}),maxDate:p.filter.maxDate,minDate:p.filter.minDate,placeholder:D,type:"Raw",useDate:R}),S.jsx(Nn,{h:8})]},v)}else if(p.filter.type==="DateRange"){const R=[p.filter.value,H=>t(p.filter,H)],{noDefaultChoices:D}=p.filter,I=h??p.filter.placeholder??((A=p.def)==null?void 0:A.name),F=p.filter.icon,B=p.filter.iconTooltip??I;return S.jsxs(On,{style:{marginBottom:6},children:[S.jsx(Ya,{icon:F??"CalendarDay",tooltip:B}),S.jsx(dv,{className:Ye.clsx(Dr.DatePicker,Dr.Input,Dr.Sub),LeftAddon:S.jsx(Nn,{w:12}),maxDate:p.filter.maxDate,minDate:p.filter.minDate,noDefaultChoices:D,placeholder:I,type:"Raw",useDateRange:R})]},v)}else return null}),S.jsxs(On,{className:Dr.Actions,children:[S.jsx(Zo,{type:"Secondary",onClick:n,children:c["Clear(Button)"]}),S.jsx(Zo,{onClick:()=>{m()&&g.apply()},children:c["Search(Button)"]})]})]})},Ya=r=>{const{icon:e,tooltip:t,isOpen:n=!0}=r;return S.jsx(_o,{className:Dr.LeftIcon,icon:e,tooltip:t,type:"Raw",style:{width:n?24:0,marginRight:n?4:0,opacity:+n}})},E8="_ATableHeader_1hzfz_1",T8="_LeftHeaderContent_1hzfz_11",R8="_RightHeaderContent_1hzfz_19",k8="_TopRightAddon_1hzfz_27",I8="_HItem_1hzfz_32",Nu={ATableHeader:E8,LeftHeaderContent:T8,RightHeaderContent:R8,TopRightAddon:k8,HItem:I8},M8=r=>{const{defs:e,title:t,totalCount:n,useCheck:o,useFilteration:i,hasToggleFilteration:a,filterF:c,noFilter:d,noCount:h,isFiltered:g,TopLeftAddon:m,TopRightAddon:p,useSortation:v,resources:w=wr.ATable,filterType:T,placeholder:_}=r,[A]=C.useMemo(()=>o||[],[o]),R=C.useMemo(()=>g?w["Searched n items"](n):w["Total n items"](n),[w,g,n]),[D]=i,[I,F]=v,[B,H]=C.useState(!1),j=C.useMemo(()=>{const ae=ar.values(D).filter(ee=>ee.type==="DateRange"),le=ar.keys(D).filter(ee=>ae.includes(D[ee])),fe=ar.keys(e).filter(ee=>e[ee].isSortable);return le.length>0?(le.length>1&&H(!0),fe.map(ne=>le.includes(ne)?[ne+"_Asc",ne+"_Desc"]:ne).flat()):fe},[e,D]),G=C.useMemo(()=>r.isRowRendered&&j.length>0,[j.length,r.isRowRendered]),ge=C.useCallback((ae,le)=>{F&&(I==null?void 0:I.defKey)===ae&&(I.isAsc===!0?F({defKey:ae,isAsc:!1,sortF:le}):F({defKey:ae,isAsc:!0,sortF:le}))},[I,F]),P=C.useRef(),[q,V]=C.useState(),[Q,ie]=C.useState(I?I.defKey:j[0]),se=C.useMemo(()=>{if(!q)return{};const ae=e[q];return{SortUp:{onClick:()=>{F==null||F({defKey:q,isAsc:!0,sortF:ae.sortF}),ie(q)},content:()=>w["Sort up"]},SortDown:{onClick:()=>{F==null||F({defKey:q,isAsc:!1,sortF:ae.sortF}),ie(q)},content:()=>w["Sort down"]}}},[F,q,e,w]);return S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:Ye.clsx(Nu.ATableHeader),children:[S.jsxs("div",{className:Ye.clsx(Nu.LeftHeaderContent,"NoSelect"),children:[S.jsxs(On,{style:{marginBottom:G?8:0},children:[m&&S.jsx("div",{className:Ye.clsx(Nu.HItem),children:m}),t&&S.jsx("div",{className:Ye.clsx(Nu.HItem),style:{whiteSpace:"nowrap"},children:t}),!h&&S.jsxs("div",{className:Ye.clsx(Nu.HItem),style:{maxHeight:14,...G&&{minHeight:14,color:"var(--label-neutral)"}},children:[R,A&&A.length>0&&S.jsxs(S.Fragment,{children:[" / ",w["Checked n items"](A.length)]})]})]}),G&&S.jsx(e2,{options:j,optionWidth:"fit-content",tabProps:{style:{marginRight:8}},type:"Tertiary",useSelect:[Q,()=>{}],optionProps:{style:{cursor:"default"},onClick:ae=>{var ee;const le=ae.currentTarget.textContent;if(le===w[le])return;ae.currentTarget.querySelector("svg")===null&&((ee=P.current)==null||ee.open(ae.currentTarget))}},OptionRenderer:ae=>{const le=/_Asc|_Desc/.test(ae.option),fe=(I==null?void 0:I.defKey)===ae.option,ee=Q===ae.option,ne=I==null?void 0:I.isAsc,ce=()=>{if(le){V(void 0),ie(ae.option);const[oe,Se]=ae.option.split("_"),Le=Se==="Asc";F==null||F({defKey:oe,isAsc:Le,sortF:e[oe].sortF})}else ee?ge(ae.option,e[ae.option].sortF):V(ae.option)},Me=le?(oe=>{const[Se,Le]=oe.split("_");return(B?Se+" ":"")+w[Le]})(ae.option):w["Sort by x"](ae.option);return S.jsxs(On,{className:Ye.clsx(!(le&&ee)&&"IsClickable"),style:{height:"100%"},onClick:ce,children:[Me,ee&&!le&&S.jsx(gn,{icon:fe?ne?"RowSortUp":"RowSortDown":"RowSortBoth",style:{marginRight:-5,marginLeft:4}})]},ae.option)}})]}),S.jsx(Zu,{}),S.jsxs("div",{className:Ye.clsx(Nu.RightHeaderContent,"NoSelect"),children:[!d&&S.jsx(S8,{defs:e,filterF:c,filterType:T,hasToggleFilteration:a,isFilterSort:j.length>0,isRowRendered:r.isRowRendered,placeholder:_,resources:w,useFilteration:i}),p&&S.jsx(On,{children:p,className:Ye.clsx(Nu.TopRightAddon)})]})]}),S.jsx(Xw,{actionRef:P,defs:se,position:gf.S,width:100,onClose:()=>V(void 0)})]})},L8=r=>{const{defs:e,pk:t,defaultDef:n,rProps:o,useSelect:i,isSelectMulti:a,selectDisabled:c,useCheck:d,checkDisabled:h,isLoading:g,isDisabled:m,title:p,entireItems:v,onStateChange:w,pagedItems:T,totalCount:_,useFilteration:A,useToggleFilteration:R,filterType:D="Default",placeholder:I,rowHeight:F=40,usePagination:B,useSortation:H,showRows:j,noHeader:G,noDefHeader:ge,noFooter:P,noFilter:q,noCount:V,noMarking:Q,noStateChangeOnMount:ie,TopLeftAddon:se,TopRightAddon:ae,actionRef:le,RowRenderer:fe,resources:ee}=r,ne=C.useMemo(()=>({...wr.ATable,...ee}),[ee]),ce=C.useCallback((ye,Be)=>t!==void 0?Array.isArray(t)?t.every(At=>Za.isEqual(ye[At],Be[At])):Za.isEqual(ye[t],Be[t]):Za.isEqual(ye,Be),[t]),xe=C.useMemo(()=>({content:D8,...n}),[n]),Me=C.useMemo(()=>{const ye={};return ar.keys(e).forEach(Be=>{const At=e[Be],Ft={...xe,...At};ye[Be]=Ft}),ye},[xe,e]),[oe,Se]=wn(Za.cloneDeep(A),{"":{type:"String",placeholder:ne["Search(Placeholder)"],value:""}}),[Le,We]=wn(Za.cloneDeep(R),void 0),[Ve,we]=C.useState(!1),[_e,Ae]=C.useMemo(()=>Ve&&Le?[Le,We]:[oe,Se],[oe,Ve,Se,We,Le]),[Ie,je]=C.useState(_e),it=C.useMemo(()=>v?Bl.applyFilteration(v,Me,Ie):[],[v,Me,Ie]),Ue=C.useMemo(()=>{for(const ye in Ie){const Be=Ie[ye];if(Be.value!==void 0&&Be.value!==null&&Be.value!=="")return!0}return!1},[Ie]),[tt,lt]=wn(H,void 0),bt=C.useMemo(()=>Bl.applySortation(it,Me,tt),[it,Me,tt]),Mt=C.useMemo(()=>{if(T!==void 0)return Bl.applySortation(T,Me,tt)},[T,Me,tt]),[Qe,Xe]=wn(B,{page:1,pageSize:50,pageRange:10}),ht=C.useMemo(()=>({pageSize:50,page:1,pageRange:10,...Qe}),[Qe]),{pagedItems:ft,totalCount:Oe,pagination:Je}=C.useMemo(()=>{const ye={...ht};if(Mt!==void 0){let Be=_??Mt.length;const At=Bl.getPages(Be,ye.pageSize);return ye.page>At.length?ye.page=At.length:ye.page<1&&(ye.page=1),{pagedItems:Mt,totalCount:Be,pagination:ye}}else if(v!==void 0){const Be=_??bt.length,At=Bl.getPages(Be,ye.pageSize);return ye.page>At.length?ye.page=At.length:ye.page<1&&(ye.page=1),{pagedItems:Bl.applyPagination(bt,ye.page,ye.pageSize),totalCount:Be,pagination:ye}}else return{pagedItems:[],totalCount:_??0,pagination:ht}},[v,Mt,_,ht,bt]),{pages:gt,rangedPages:It}=C.useMemo(()=>Bl.getRangedPages(Je.page,Oe,Je.pageSize,Je.pageRange),[Oe,Je.pageSize,Je.page,Je.pageRange]),[Et,Dt]=C.useMemo(()=>d??[],[d]),Xt=C.useMemo(()=>ft.filter(ye=>Et==null?void 0:Et.some(Be=>ce(Be,ye))),[ft,Et,ce]),Wt=C.useMemo(()=>ft.filter(ye=>!(h!=null&&h(ye))),[ft,h]),hr=C.useMemo(()=>Wt.length>0&&Wt.every(ye=>Xt.some(Be=>ce(Be,ye))),[Xt,Wt,ce]),dr=C.useMemo(()=>hr?!1:Wt.some(ye=>Xt.some(Be=>ce(Be,ye))),[Xt,Wt,hr,ce]),cr=C.useCallback(()=>{!Et||!Dt||m||Dt(hr||dr?Et.filter(ye=>!Wt.some(Be=>ce(Be,ye))):[...Et,...Wt])},[Et,Dt,hr,dr,Wt,m,ce]),Te=C.useCallback(ye=>{!Et||!Dt||m||(Et.some(Be=>ce(Be,ye))?Dt(Et.filter(Be=>!ce(Be,ye))):Dt([...Et,ye]))},[Et,Dt,m,ce]);C.useEffect(()=>{if(!Dt||!Et||!h)return;Et.filter(Be=>h(Be)).length>0&&Dt(Et.filter(Be=>!h(Be)))},[h,Et,Dt]);const ue=C.useMemo(()=>({hContent:Et&&S.jsx(of,{isIndeterminate:dr,useCheck:[hr,cr]}),content:ye=>{const{item:Be}=ye,At=h==null?void 0:h(Be),Ft=typeof At=="string"?At:void 0,Ot=Et==null?void 0:Et.some(er=>ce(er,Be));return S.jsx(of,{isDisabled:At,style:{zIndex:1},tooltip:Ft,useCheck:[Ot,()=>Te(Be)],onClick:er=>er.stopPropagation()})},minWidth:32,maxWidth:32}),[Et,hr,dr,ce,cr,h,Te]),at=C.useMemo(()=>d?{checkDef:ue,...Me}:Me,[Me,ue,d]),[ze,vt]=C.useState(!1),_t=C.useMemo(()=>g??ze,[g,ze]),Tt=C.useCallback(async ye=>{w&&(vt(!0),await w(ye),vt(!1)),Xe==null||Xe(ye.pagination),lt==null||lt(ye.sortation),je(ye.filteration)},[w,Xe,lt]);C.useEffect(()=>{if(!le)return;const ye=At=>{const Ft={entireItems:v,filteration:_e,pagination:Je,sortation:tt},Ot=At?At(Ft):Ft;Tt(Ot)},Be=At=>{const Ft={...Je,page:1},Ot=At?At(_e):_e;Tt({entireItems:v,filteration:Ot,pagination:Ft,sortation:tt}),Ae==null||Ae(Ot)};le.current={fireOnStateChange:ye,applyFilteration:Be}},[le,Tt,v,Ae,_e,Je,tt]);const Ut=C.useCallback(ye=>{ye.page===Je.page&&ye.pageSize===Je.pageSize||(ye.page<1?ye.page=1:ye.page>gt[gt.length-1]&&(ye.page=gt[gt.length-1]),Tt({entireItems:v,filteration:Ie,pagination:ye,sortation:tt}))},[Je,gt,Tt,v,Ie,tt]),Ge=C.useCallback(ye=>{Ae&&Ae(ye)},[Ae]),st=C.useCallback(ye=>{Tt({entireItems:v,filteration:Ie,pagination:Je,sortation:ye})},[Tt,v,Ie,Je]),ct=C.useCallback(ye=>{Ut({...Je,page:ye})},[Ut,Je]),xt=C.useCallback(()=>{ct(Je.page-1)},[ct,Je.page]),Nt=C.useCallback(()=>{ct(Je.page+1)},[ct,Je.page]),Bt=C.useCallback(()=>{ct(1)},[ct]),qt=C.useCallback(()=>{ct(gt[gt.length-1])},[ct,gt]),Yt=C.useMemo(()=>({move:ct,movePrev:xt,moveNext:Nt,moveFirst:Bt,moveLast:qt}),[ct,xt,Nt,Bt,qt]),ir=C.useCallback(()=>{const ye={...Je,page:1};Tt({entireItems:v,filteration:_e,pagination:ye,sortation:tt})},[_e,Je,Tt,v,tt]),jt=C.useCallback(()=>{we(!Ve)},[Ve]),xr=C.useCallback(()=>{Ve&&Le?We==null||We(fy(Le)):Ae==null||Ae(fy(oe))},[Ve,Le,We,oe,Ae]),jr=C.useMemo(()=>({apply:ir,toggle:jt,clear:xr}),[ir,jt,xr]);t2(()=>{ie||Tt({entireItems:v,filteration:_e,pagination:Je,sortation:tt})});const Ze=C.useMemo(()=>ar.map(Me,([Be])=>Me[Be].minWidth??Fc).reduce((Be,At)=>Be+At,0),[Me]),te=C.useMemo(()=>fe!==void 0,[fe]);return S.jsxs(Jr,{className:NI.ATable,isDisabled:m,style:{minWidth:Ze},children:[!G&&S.jsx(M8,{defs:Me,filterF:jr,filterType:D,hasToggleFilteration:Le!==void 0,isFiltered:Ue,isRowRendered:te,noCount:V,noFilter:q,placeholder:I,resources:ne,title:p,TopLeftAddon:se,TopRightAddon:ae,totalCount:Oe,useCheck:d&&Et?[Et,Dt]:void 0,useFilteration:[_e,Ge],useSortation:[tt,st]}),S.jsx(t8,{appliedFilteration:Ie,defs:at,isEqual:ce,isLoading:_t,isRowRendered:te,isSelectMulti:a,isTableDisabled:m,noDefHeader:ge,noMarking:Q,pagedItems:ft,pagination:Je,resources:ne,rowHeight:F,RowRenderer:fe,rProps:o,selectDisabled:c,showRows:j,useSelect:i,useSortation:[tt,st]}),!P&&S.jsx(c8,{pageF:Yt,pages:gt,pagination:Je,rangedPages:It})]})},D8=r=>{const{defKey:e,item:t}=r;if(ar.hasKey(t,e)){const n=t[e];return ar.isReactNode(n)?n:null}else return null};function fy(r){const e={...r};for(const t in e)e[t].value=void 0;return e}const O8="_AText_1asz6_1",N8={AText:O8},i2=r=>{const{text:e,styled:t,style:n}=r,o=C.useMemo(()=>{if(e)if(t)if(n){if(t===!0)return n==="bold"?S.jsx("b",{children:e}):S.jsx("span",{style:n,children:e});if(typeof t=="string"){const i=e.split(t);return n==="bold"?i.map((a,c)=>S.jsxs(C.Fragment,{children:[ip(a),c<i.length-1?S.jsx("b",{children:ip(t)}):""]},c)):i.map((a,c)=>S.jsxs(C.Fragment,{children:[ip(a),c<i.length-1&&S.jsx("span",{style:n,children:ip(t)})]},c))}}else return e;else return e;else return""},[e,n,t]);return S.jsx("div",{className:Ye.clsx("Body1Reading",N8.AText,"NoSelect"),children:o})};function ip(r){const e=r.split(`
|
167
|
+
`);return e.map((t,n)=>S.jsxs(C.Fragment,{children:[t,n!==e.length-1&&S.jsx("br",{})]},n))}const P8="_Base_cpm4t_7",B8="_ATextArea_cpm4t_11",F8="_Primary_cpm4t_34",j8="_UnAvailable_cpm4t_39",H8="_Secondary_cpm4t_47",z8="_ReadOnly_cpm4t_59",sp={Base:P8,ATextArea:B8,Primary:F8,UnAvailable:j8,Secondary:H8,ReadOnly:z8,Error:"_Error_cpm4t_66"},$8=["Primary","Secondary","ReadOnly","Error"],U8=r=>{const{onEnterPress:e,errorMessage:t,type:n="Primary",textAreaRef:o,useValue:i,rows:a,isReadonly:c,placeholder:d,maxLength:h,tabIndex:g,autoFocus:m,textAreaProps:p,...v}=r,[{wrapId:w,wrapProps:T,labelProps:_,...A},R]=Yu(v),D=C.useMemo(()=>q8(t)?"Error":n,[t,n]),I=C.useMemo(()=>D==="ReadOnly"?!0:c,[D,c]),F=C.useMemo(()=>R.isDisabled||R.isLoading,[R.isDisabled,R.isLoading]),[B,H]=wn(i,""),j=C.useCallback(P=>{H&&H(P)},[H]),G=C.useCallback(P=>{var q;F||(j(P.target.value),(q=p==null?void 0:p.onChange)==null||q.call(p,P))},[F,j,p]),ge=C.useCallback(P=>{var q;if(!F){if((q=p==null?void 0:p.onKeyDown)==null||q.call(p,P),P.key==="Tab"){const V=P.currentTarget.selectionStart,Q=P.currentTarget.selectionEnd;P.currentTarget.value=P.currentTarget.value.substring(0,V)+" "+P.currentTarget.value.substring(Q),P.currentTarget.selectionStart=P.currentTarget.selectionEnd=V+1,P.preventDefault()}else P.key==="Enter"&&(e==null||e(P.currentTarget.value),P.stopPropagation());P.key!=="Escape"&&P.stopPropagation()}},[F,e,p]);return S.jsx(Yc,{wrapId:w,wrapProps:T,labelProps:_,...A,children:S.jsx(Jr,{...R,className:Ye.clsx(sp.Base,R.className),children:S.jsx("textarea",{...p,ref:o,autoFocus:m,className:Ye.clsx(sp.ATextArea,sp[D],F&&sp.UnAvailable,p==null?void 0:p.className),maxLength:h,placeholder:d,readOnly:I,rows:a,tabIndex:R.isDisabled||R.isLoading?-1:g,value:B,onChange:G,onKeyDown:ge})})})};function q8(r){return Array.isArray(r)?r.filter(Boolean).length>0:!!r}/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:s2,setPrototypeOf:hy,isFrozen:W8,getPrototypeOf:V8,getOwnPropertyDescriptor:G8}=Object;let{freeze:bi,seal:Os,create:a2}=Object,{apply:C1,construct:S1}=typeof Reflect<"u"&&Reflect;bi||(bi=function(e){return e});Os||(Os=function(e){return e});C1||(C1=function(e,t,n){return e.apply(t,n)});S1||(S1=function(e,t){return new e(...t)});const ap=xi(Array.prototype.forEach),Y8=xi(Array.prototype.lastIndexOf),py=xi(Array.prototype.pop),Wf=xi(Array.prototype.push),Z8=xi(Array.prototype.splice),Tp=xi(String.prototype.toLowerCase),Qg=xi(String.prototype.toString),gy=xi(String.prototype.match),Vf=xi(String.prototype.replace),K8=xi(String.prototype.indexOf),X8=xi(String.prototype.trim),aa=xi(Object.prototype.hasOwnProperty),mi=xi(RegExp.prototype.test),Gf=J8(TypeError);function xi(r){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return C1(r,e,n)}}function J8(r){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return S1(r,t)}}function Wr(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Tp;hy&&hy(r,null);let n=e.length;for(;n--;){let o=e[n];if(typeof o=="string"){const i=t(o);i!==o&&(W8(e)||(e[n]=i),o=i)}r[o]=!0}return r}function Q8(r){for(let e=0;e<r.length;e++)aa(r,e)||(r[e]=null);return r}function Pl(r){const e=a2(null);for(const[t,n]of s2(r))aa(r,t)&&(Array.isArray(n)?e[t]=Q8(n):n&&typeof n=="object"&&n.constructor===Object?e[t]=Pl(n):e[t]=n);return e}function Yf(r,e){for(;r!==null;){const n=G8(r,e);if(n){if(n.get)return xi(n.get);if(typeof n.value=="function")return xi(n.value)}r=V8(r)}function t(){return null}return t}const my=bi(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),em=bi(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),tm=bi(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),e9=bi(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),rm=bi(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),t9=bi(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),vy=bi(["#text"]),yy=bi(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),nm=bi(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),by=bi(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),lp=bi(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),r9=Os(/\{\{[\w\W]*|[\w\W]*\}\}/gm),n9=Os(/<%[\w\W]*|[\w\W]*%>/gm),o9=Os(/\$\{[\w\W]*/gm),i9=Os(/^data-[\-\w.\u00B7-\uFFFF]+$/),s9=Os(/^aria-[\-\w]+$/),l2=Os(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),a9=Os(/^(?:\w+script|data):/i),l9=Os(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),c2=Os(/^html$/i),c9=Os(/^[a-z][.\w]*(-[.\w]+)+$/i);var xy=Object.freeze({__proto__:null,ARIA_ATTR:s9,ATTR_WHITESPACE:l9,CUSTOM_ELEMENT:c9,DATA_ATTR:i9,DOCTYPE_NAME:c2,ERB_EXPR:n9,IS_ALLOWED_URI:l2,IS_SCRIPT_OR_DATA:a9,MUSTACHE_EXPR:r9,TMPLIT_EXPR:o9});const Zf={element:1,text:3,progressingInstruction:7,comment:8,document:9},u9=function(){return typeof window>"u"?null:window},d9=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},wy=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function u2(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u9();const e=kt=>u2(kt);if(e.version="3.2.6",e.removed=[],!r||!r.document||r.document.nodeType!==Zf.document||!r.Element)return e.isSupported=!1,e;let{document:t}=r;const n=t,o=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:a,Node:c,Element:d,NodeFilter:h,NamedNodeMap:g=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:m,DOMParser:p,trustedTypes:v}=r,w=d.prototype,T=Yf(w,"cloneNode"),_=Yf(w,"remove"),A=Yf(w,"nextSibling"),R=Yf(w,"childNodes"),D=Yf(w,"parentNode");if(typeof a=="function"){const kt=t.createElement("template");kt.content&&kt.content.ownerDocument&&(t=kt.content.ownerDocument)}let I,F="";const{implementation:B,createNodeIterator:H,createDocumentFragment:j,getElementsByTagName:G}=t,{importNode:ge}=n;let P=wy();e.isSupported=typeof s2=="function"&&typeof D=="function"&&B&&B.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:q,ERB_EXPR:V,TMPLIT_EXPR:Q,DATA_ATTR:ie,ARIA_ATTR:se,IS_SCRIPT_OR_DATA:ae,ATTR_WHITESPACE:le,CUSTOM_ELEMENT:fe}=xy;let{IS_ALLOWED_URI:ee}=xy,ne=null;const ce=Wr({},[...my,...em,...tm,...rm,...vy]);let xe=null;const Me=Wr({},[...yy,...nm,...by,...lp]);let oe=Object.seal(a2(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Se=null,Le=null,We=!0,Ve=!0,we=!1,_e=!0,Ae=!1,Ie=!0,je=!1,it=!1,Ue=!1,tt=!1,lt=!1,bt=!1,Mt=!0,Qe=!1;const Xe="user-content-";let ht=!0,ft=!1,Oe={},Je=null;const gt=Wr({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let It=null;const Et=Wr({},["audio","video","img","source","image","track"]);let Dt=null;const Xt=Wr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Wt="http://www.w3.org/1998/Math/MathML",hr="http://www.w3.org/2000/svg",dr="http://www.w3.org/1999/xhtml";let cr=dr,Te=!1,ue=null;const at=Wr({},[Wt,hr,dr],Qg);let ze=Wr({},["mi","mo","mn","ms","mtext"]),vt=Wr({},["annotation-xml"]);const _t=Wr({},["title","style","font","a","script"]);let Tt=null;const Ut=["application/xhtml+xml","text/html"],Ge="text/html";let st=null,ct=null;const xt=t.createElement("form"),Nt=function(be){return be instanceof RegExp||be instanceof Function},Bt=function(){let be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ct&&ct===be)){if((!be||typeof be!="object")&&(be={}),be=Pl(be),Tt=Ut.indexOf(be.PARSER_MEDIA_TYPE)===-1?Ge:be.PARSER_MEDIA_TYPE,st=Tt==="application/xhtml+xml"?Qg:Tp,ne=aa(be,"ALLOWED_TAGS")?Wr({},be.ALLOWED_TAGS,st):ce,xe=aa(be,"ALLOWED_ATTR")?Wr({},be.ALLOWED_ATTR,st):Me,ue=aa(be,"ALLOWED_NAMESPACES")?Wr({},be.ALLOWED_NAMESPACES,Qg):at,Dt=aa(be,"ADD_URI_SAFE_ATTR")?Wr(Pl(Xt),be.ADD_URI_SAFE_ATTR,st):Xt,It=aa(be,"ADD_DATA_URI_TAGS")?Wr(Pl(Et),be.ADD_DATA_URI_TAGS,st):Et,Je=aa(be,"FORBID_CONTENTS")?Wr({},be.FORBID_CONTENTS,st):gt,Se=aa(be,"FORBID_TAGS")?Wr({},be.FORBID_TAGS,st):Pl({}),Le=aa(be,"FORBID_ATTR")?Wr({},be.FORBID_ATTR,st):Pl({}),Oe=aa(be,"USE_PROFILES")?be.USE_PROFILES:!1,We=be.ALLOW_ARIA_ATTR!==!1,Ve=be.ALLOW_DATA_ATTR!==!1,we=be.ALLOW_UNKNOWN_PROTOCOLS||!1,_e=be.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ae=be.SAFE_FOR_TEMPLATES||!1,Ie=be.SAFE_FOR_XML!==!1,je=be.WHOLE_DOCUMENT||!1,tt=be.RETURN_DOM||!1,lt=be.RETURN_DOM_FRAGMENT||!1,bt=be.RETURN_TRUSTED_TYPE||!1,Ue=be.FORCE_BODY||!1,Mt=be.SANITIZE_DOM!==!1,Qe=be.SANITIZE_NAMED_PROPS||!1,ht=be.KEEP_CONTENT!==!1,ft=be.IN_PLACE||!1,ee=be.ALLOWED_URI_REGEXP||l2,cr=be.NAMESPACE||dr,ze=be.MATHML_TEXT_INTEGRATION_POINTS||ze,vt=be.HTML_INTEGRATION_POINTS||vt,oe=be.CUSTOM_ELEMENT_HANDLING||{},be.CUSTOM_ELEMENT_HANDLING&&Nt(be.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(oe.tagNameCheck=be.CUSTOM_ELEMENT_HANDLING.tagNameCheck),be.CUSTOM_ELEMENT_HANDLING&&Nt(be.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(oe.attributeNameCheck=be.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),be.CUSTOM_ELEMENT_HANDLING&&typeof be.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(oe.allowCustomizedBuiltInElements=be.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ae&&(Ve=!1),lt&&(tt=!0),Oe&&(ne=Wr({},vy),xe=[],Oe.html===!0&&(Wr(ne,my),Wr(xe,yy)),Oe.svg===!0&&(Wr(ne,em),Wr(xe,nm),Wr(xe,lp)),Oe.svgFilters===!0&&(Wr(ne,tm),Wr(xe,nm),Wr(xe,lp)),Oe.mathMl===!0&&(Wr(ne,rm),Wr(xe,by),Wr(xe,lp))),be.ADD_TAGS&&(ne===ce&&(ne=Pl(ne)),Wr(ne,be.ADD_TAGS,st)),be.ADD_ATTR&&(xe===Me&&(xe=Pl(xe)),Wr(xe,be.ADD_ATTR,st)),be.ADD_URI_SAFE_ATTR&&Wr(Dt,be.ADD_URI_SAFE_ATTR,st),be.FORBID_CONTENTS&&(Je===gt&&(Je=Pl(Je)),Wr(Je,be.FORBID_CONTENTS,st)),ht&&(ne["#text"]=!0),je&&Wr(ne,["html","head","body"]),ne.table&&(Wr(ne,["tbody"]),delete Se.tbody),be.TRUSTED_TYPES_POLICY){if(typeof be.TRUSTED_TYPES_POLICY.createHTML!="function")throw Gf('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof be.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Gf('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');I=be.TRUSTED_TYPES_POLICY,F=I.createHTML("")}else I===void 0&&(I=d9(v,o)),I!==null&&typeof F=="string"&&(F=I.createHTML(""));bi&&bi(be),ct=be}},qt=Wr({},[...em,...tm,...e9]),Yt=Wr({},[...rm,...t9]),ir=function(be){let nt=D(be);(!nt||!nt.tagName)&&(nt={namespaceURI:cr,tagName:"template"});const yt=Tp(be.tagName),yr=Tp(nt.tagName);return ue[be.namespaceURI]?be.namespaceURI===hr?nt.namespaceURI===dr?yt==="svg":nt.namespaceURI===Wt?yt==="svg"&&(yr==="annotation-xml"||ze[yr]):!!qt[yt]:be.namespaceURI===Wt?nt.namespaceURI===dr?yt==="math":nt.namespaceURI===hr?yt==="math"&&vt[yr]:!!Yt[yt]:be.namespaceURI===dr?nt.namespaceURI===hr&&!vt[yr]||nt.namespaceURI===Wt&&!ze[yr]?!1:!Yt[yt]&&(_t[yt]||!qt[yt]):!!(Tt==="application/xhtml+xml"&&ue[be.namespaceURI]):!1},jt=function(be){Wf(e.removed,{element:be});try{D(be).removeChild(be)}catch{_(be)}},xr=function(be,nt){try{Wf(e.removed,{attribute:nt.getAttributeNode(be),from:nt})}catch{Wf(e.removed,{attribute:null,from:nt})}if(nt.removeAttribute(be),be==="is")if(tt||lt)try{jt(nt)}catch{}else try{nt.setAttribute(be,"")}catch{}},jr=function(be){let nt=null,yt=null;if(Ue)be="<remove></remove>"+be;else{const lr=gy(be,/^[\r\n\t ]+/);yt=lr&&lr[0]}Tt==="application/xhtml+xml"&&cr===dr&&(be='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+be+"</body></html>");const yr=I?I.createHTML(be):be;if(cr===dr)try{nt=new p().parseFromString(yr,Tt)}catch{}if(!nt||!nt.documentElement){nt=B.createDocument(cr,"template",null);try{nt.documentElement.innerHTML=Te?F:yr}catch{}}const Br=nt.body||nt.documentElement;return be&&yt&&Br.insertBefore(t.createTextNode(yt),Br.childNodes[0]||null),cr===dr?G.call(nt,je?"html":"body")[0]:je?nt.documentElement:Br},Ze=function(be){return H.call(be.ownerDocument||be,be,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},te=function(be){return be instanceof m&&(typeof be.nodeName!="string"||typeof be.textContent!="string"||typeof be.removeChild!="function"||!(be.attributes instanceof g)||typeof be.removeAttribute!="function"||typeof be.setAttribute!="function"||typeof be.namespaceURI!="string"||typeof be.insertBefore!="function"||typeof be.hasChildNodes!="function")},ye=function(be){return typeof c=="function"&&be instanceof c};function Be(kt,be,nt){ap(kt,yt=>{yt.call(e,be,nt,ct)})}const At=function(be){let nt=null;if(Be(P.beforeSanitizeElements,be,null),te(be))return jt(be),!0;const yt=st(be.nodeName);if(Be(P.uponSanitizeElement,be,{tagName:yt,allowedTags:ne}),Ie&&be.hasChildNodes()&&!ye(be.firstElementChild)&&mi(/<[/\w!]/g,be.innerHTML)&&mi(/<[/\w!]/g,be.textContent)||be.nodeType===Zf.progressingInstruction||Ie&&be.nodeType===Zf.comment&&mi(/<[/\w]/g,be.data))return jt(be),!0;if(!ne[yt]||Se[yt]){if(!Se[yt]&&Ot(yt)&&(oe.tagNameCheck instanceof RegExp&&mi(oe.tagNameCheck,yt)||oe.tagNameCheck instanceof Function&&oe.tagNameCheck(yt)))return!1;if(ht&&!Je[yt]){const yr=D(be)||be.parentNode,Br=R(be)||be.childNodes;if(Br&&yr){const lr=Br.length;for(let br=lr-1;br>=0;--br){const en=T(Br[br],!0);en.__removalCount=(be.__removalCount||0)+1,yr.insertBefore(en,A(be))}}}return jt(be),!0}return be instanceof d&&!ir(be)||(yt==="noscript"||yt==="noembed"||yt==="noframes")&&mi(/<\/no(script|embed|frames)/i,be.innerHTML)?(jt(be),!0):(Ae&&be.nodeType===Zf.text&&(nt=be.textContent,ap([q,V,Q],yr=>{nt=Vf(nt,yr," ")}),be.textContent!==nt&&(Wf(e.removed,{element:be.cloneNode()}),be.textContent=nt)),Be(P.afterSanitizeElements,be,null),!1)},Ft=function(be,nt,yt){if(Mt&&(nt==="id"||nt==="name")&&(yt in t||yt in xt))return!1;if(!(Ve&&!Le[nt]&&mi(ie,nt))){if(!(We&&mi(se,nt))){if(!xe[nt]||Le[nt]){if(!(Ot(be)&&(oe.tagNameCheck instanceof RegExp&&mi(oe.tagNameCheck,be)||oe.tagNameCheck instanceof Function&&oe.tagNameCheck(be))&&(oe.attributeNameCheck instanceof RegExp&&mi(oe.attributeNameCheck,nt)||oe.attributeNameCheck instanceof Function&&oe.attributeNameCheck(nt))||nt==="is"&&oe.allowCustomizedBuiltInElements&&(oe.tagNameCheck instanceof RegExp&&mi(oe.tagNameCheck,yt)||oe.tagNameCheck instanceof Function&&oe.tagNameCheck(yt))))return!1}else if(!Dt[nt]){if(!mi(ee,Vf(yt,le,""))){if(!((nt==="src"||nt==="xlink:href"||nt==="href")&&be!=="script"&&K8(yt,"data:")===0&&It[be])){if(!(we&&!mi(ae,Vf(yt,le,"")))){if(yt)return!1}}}}}}return!0},Ot=function(be){return be!=="annotation-xml"&&gy(be,fe)},er=function(be){Be(P.beforeSanitizeAttributes,be,null);const{attributes:nt}=be;if(!nt||te(be))return;const yt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xe,forceKeepAttr:void 0};let yr=nt.length;for(;yr--;){const Br=nt[yr],{name:lr,namespaceURI:br,value:en}=Br,on=st(lr),Pn=en;let zr=lr==="value"?Pn:X8(Pn);if(yt.attrName=on,yt.attrValue=zr,yt.keepAttr=!0,yt.forceKeepAttr=void 0,Be(P.uponSanitizeAttribute,be,yt),zr=yt.attrValue,Qe&&(on==="id"||on==="name")&&(xr(lr,be),zr=Xe+zr),Ie&&mi(/((--!?|])>)|<\/(style|title)/i,zr)){xr(lr,be);continue}if(yt.forceKeepAttr)continue;if(!yt.keepAttr){xr(lr,be);continue}if(!_e&&mi(/\/>/i,zr)){xr(lr,be);continue}Ae&&ap([q,V,Q],Tn=>{zr=Vf(zr,Tn," ")});const tn=st(be.nodeName);if(!Ft(tn,on,zr)){xr(lr,be);continue}if(I&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!br)switch(v.getAttributeType(tn,on)){case"TrustedHTML":{zr=I.createHTML(zr);break}case"TrustedScriptURL":{zr=I.createScriptURL(zr);break}}if(zr!==Pn)try{br?be.setAttributeNS(br,lr,zr):be.setAttribute(lr,zr),te(be)?jt(be):py(e.removed)}catch{xr(lr,be)}}Be(P.afterSanitizeAttributes,be,null)},Qt=function kt(be){let nt=null;const yt=Ze(be);for(Be(P.beforeSanitizeShadowDOM,be,null);nt=yt.nextNode();)Be(P.uponSanitizeShadowNode,nt,null),At(nt),er(nt),nt.content instanceof i&&kt(nt.content);Be(P.afterSanitizeShadowDOM,be,null)};return e.sanitize=function(kt){let be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},nt=null,yt=null,yr=null,Br=null;if(Te=!kt,Te&&(kt="<!-->"),typeof kt!="string"&&!ye(kt))if(typeof kt.toString=="function"){if(kt=kt.toString(),typeof kt!="string")throw Gf("dirty is not a string, aborting")}else throw Gf("toString is not a function");if(!e.isSupported)return kt;if(it||Bt(be),e.removed=[],typeof kt=="string"&&(ft=!1),ft){if(kt.nodeName){const en=st(kt.nodeName);if(!ne[en]||Se[en])throw Gf("root node is forbidden and cannot be sanitized in-place")}}else if(kt instanceof c)nt=jr("<!---->"),yt=nt.ownerDocument.importNode(kt,!0),yt.nodeType===Zf.element&&yt.nodeName==="BODY"||yt.nodeName==="HTML"?nt=yt:nt.appendChild(yt);else{if(!tt&&!Ae&&!je&&kt.indexOf("<")===-1)return I&&bt?I.createHTML(kt):kt;if(nt=jr(kt),!nt)return tt?null:bt?F:""}nt&&Ue&&jt(nt.firstChild);const lr=Ze(ft?kt:nt);for(;yr=lr.nextNode();)At(yr),er(yr),yr.content instanceof i&&Qt(yr.content);if(ft)return kt;if(tt){if(lt)for(Br=j.call(nt.ownerDocument);nt.firstChild;)Br.appendChild(nt.firstChild);else Br=nt;return(xe.shadowroot||xe.shadowrootmode)&&(Br=ge.call(n,Br,!0)),Br}let br=je?nt.outerHTML:nt.innerHTML;return je&&ne["!doctype"]&&nt.ownerDocument&&nt.ownerDocument.doctype&&nt.ownerDocument.doctype.name&&mi(c2,nt.ownerDocument.doctype.name)&&(br="<!DOCTYPE "+nt.ownerDocument.doctype.name+`>
|
168
|
+
`+br),Ae&&ap([q,V,Q],en=>{br=Vf(br,en," ")}),I&&bt?I.createHTML(br):br},e.setConfig=function(){let kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Bt(kt),it=!0},e.clearConfig=function(){ct=null,it=!1},e.isValidAttribute=function(kt,be,nt){ct||Bt({});const yt=st(kt),yr=st(be);return Ft(yt,yr,nt)},e.addHook=function(kt,be){typeof be=="function"&&Wf(P[kt],be)},e.removeHook=function(kt,be){if(be!==void 0){const nt=Y8(P[kt],be);return nt===-1?void 0:Z8(P[kt],nt,1)[0]}return py(P[kt])},e.removeHooks=function(kt){P[kt]=[]},e.removeAllHooks=function(){P=wy()},e}var f9=u2(),cp={exports:{}},om,Cy;function h9(){if(Cy)return om;Cy=1;var r=-1,e=1,t=0;function n(P,q,V,Q,ie){if(P===q)return P?[[t,P]]:[];if(V!=null){var se=G(P,q,V);if(se)return se}var ae=c(P,q),le=P.substring(0,ae);P=P.substring(ae),q=q.substring(ae),ae=h(P,q);var fe=P.substring(P.length-ae);P=P.substring(0,P.length-ae),q=q.substring(0,q.length-ae);var ee=o(P,q);return le&&ee.unshift([t,le]),fe&&ee.push([t,fe]),R(ee,ie),Q&&m(ee),ee}function o(P,q){var V;if(!P)return[[e,q]];if(!q)return[[r,P]];var Q=P.length>q.length?P:q,ie=P.length>q.length?q:P,se=Q.indexOf(ie);if(se!==-1)return V=[[e,Q.substring(0,se)],[t,ie],[e,Q.substring(se+ie.length)]],P.length>q.length&&(V[0][0]=V[2][0]=r),V;if(ie.length===1)return[[r,P],[e,q]];var ae=g(P,q);if(ae){var le=ae[0],fe=ae[1],ee=ae[2],ne=ae[3],ce=ae[4],xe=n(le,ee),Me=n(fe,ne);return xe.concat([[t,ce]],Me)}return i(P,q)}function i(P,q){for(var V=P.length,Q=q.length,ie=Math.ceil((V+Q)/2),se=ie,ae=2*ie,le=new Array(ae),fe=new Array(ae),ee=0;ee<ae;ee++)le[ee]=-1,fe[ee]=-1;le[se+1]=0,fe[se+1]=0;for(var ne=V-Q,ce=ne%2!==0,xe=0,Me=0,oe=0,Se=0,Le=0;Le<ie;Le++){for(var We=-Le+xe;We<=Le-Me;We+=2){var Ve=se+We,we;We===-Le||We!==Le&&le[Ve-1]<le[Ve+1]?we=le[Ve+1]:we=le[Ve-1]+1;for(var _e=we-We;we<V&&_e<Q&&P.charAt(we)===q.charAt(_e);)we++,_e++;if(le[Ve]=we,we>V)Me+=2;else if(_e>Q)xe+=2;else if(ce){var Ae=se+ne-We;if(Ae>=0&&Ae<ae&&fe[Ae]!==-1){var Ie=V-fe[Ae];if(we>=Ie)return a(P,q,we,_e)}}}for(var je=-Le+oe;je<=Le-Se;je+=2){var Ae=se+je,Ie;je===-Le||je!==Le&&fe[Ae-1]<fe[Ae+1]?Ie=fe[Ae+1]:Ie=fe[Ae-1]+1;for(var it=Ie-je;Ie<V&&it<Q&&P.charAt(V-Ie-1)===q.charAt(Q-it-1);)Ie++,it++;if(fe[Ae]=Ie,Ie>V)Se+=2;else if(it>Q)oe+=2;else if(!ce){var Ve=se+ne-je;if(Ve>=0&&Ve<ae&&le[Ve]!==-1){var we=le[Ve],_e=se+we-Ve;if(Ie=V-Ie,we>=Ie)return a(P,q,we,_e)}}}}return[[r,P],[e,q]]}function a(P,q,V,Q){var ie=P.substring(0,V),se=q.substring(0,Q),ae=P.substring(V),le=q.substring(Q),fe=n(ie,se),ee=n(ae,le);return fe.concat(ee)}function c(P,q){if(!P||!q||P.charAt(0)!==q.charAt(0))return 0;for(var V=0,Q=Math.min(P.length,q.length),ie=Q,se=0;V<ie;)P.substring(se,ie)==q.substring(se,ie)?(V=ie,se=V):Q=ie,ie=Math.floor((Q-V)/2+V);return D(P.charCodeAt(ie-1))&&ie--,ie}function d(P,q){var V=P.length,Q=q.length;if(V==0||Q==0)return 0;V>Q?P=P.substring(V-Q):V<Q&&(q=q.substring(0,V));var ie=Math.min(V,Q);if(P==q)return ie;for(var se=0,ae=1;;){var le=P.substring(ie-ae),fe=q.indexOf(le);if(fe==-1)return se;ae+=fe,(fe==0||P.substring(ie-ae)==q.substring(0,ae))&&(se=ae,ae++)}}function h(P,q){if(!P||!q||P.slice(-1)!==q.slice(-1))return 0;for(var V=0,Q=Math.min(P.length,q.length),ie=Q,se=0;V<ie;)P.substring(P.length-ie,P.length-se)==q.substring(q.length-ie,q.length-se)?(V=ie,se=V):Q=ie,ie=Math.floor((Q-V)/2+V);return I(P.charCodeAt(P.length-ie))&&ie--,ie}function g(P,q){var V=P.length>q.length?P:q,Q=P.length>q.length?q:P;if(V.length<4||Q.length*2<V.length)return null;function ie(Me,oe,Se){for(var Le=Me.substring(Se,Se+Math.floor(Me.length/4)),We=-1,Ve="",we,_e,Ae,Ie;(We=oe.indexOf(Le,We+1))!==-1;){var je=c(Me.substring(Se),oe.substring(We)),it=h(Me.substring(0,Se),oe.substring(0,We));Ve.length<it+je&&(Ve=oe.substring(We-it,We)+oe.substring(We,We+je),we=Me.substring(0,Se-it),_e=Me.substring(Se+je),Ae=oe.substring(0,We-it),Ie=oe.substring(We+je))}return Ve.length*2>=Me.length?[we,_e,Ae,Ie,Ve]:null}var se=ie(V,Q,Math.ceil(V.length/4)),ae=ie(V,Q,Math.ceil(V.length/2)),le;if(!se&&!ae)return null;ae?se?le=se[4].length>ae[4].length?se:ae:le=ae:le=se;var fe,ee,ne,ce;P.length>q.length?(fe=le[0],ee=le[1],ne=le[2],ce=le[3]):(ne=le[0],ce=le[1],fe=le[2],ee=le[3]);var xe=le[4];return[fe,ee,ne,ce,xe]}function m(P){for(var q=!1,V=[],Q=0,ie=null,se=0,ae=0,le=0,fe=0,ee=0;se<P.length;)P[se][0]==t?(V[Q++]=se,ae=fe,le=ee,fe=0,ee=0,ie=P[se][1]):(P[se][0]==e?fe+=P[se][1].length:ee+=P[se][1].length,ie&&ie.length<=Math.max(ae,le)&&ie.length<=Math.max(fe,ee)&&(P.splice(V[Q-1],0,[r,ie]),P[V[Q-1]+1][0]=e,Q--,Q--,se=Q>0?V[Q-1]:-1,ae=0,le=0,fe=0,ee=0,ie=null,q=!0)),se++;for(q&&R(P),A(P),se=1;se<P.length;){if(P[se-1][0]==r&&P[se][0]==e){var ne=P[se-1][1],ce=P[se][1],xe=d(ne,ce),Me=d(ce,ne);xe>=Me?(xe>=ne.length/2||xe>=ce.length/2)&&(P.splice(se,0,[t,ce.substring(0,xe)]),P[se-1][1]=ne.substring(0,ne.length-xe),P[se+1][1]=ce.substring(xe),se++):(Me>=ne.length/2||Me>=ce.length/2)&&(P.splice(se,0,[t,ne.substring(0,Me)]),P[se-1][0]=e,P[se-1][1]=ce.substring(0,ce.length-Me),P[se+1][0]=r,P[se+1][1]=ne.substring(Me),se++),se++}se++}}var p=/[^a-zA-Z0-9]/,v=/\s/,w=/[\r\n]/,T=/\n\r?\n$/,_=/^\r?\n\r?\n/;function A(P){function q(Me,oe){if(!Me||!oe)return 6;var Se=Me.charAt(Me.length-1),Le=oe.charAt(0),We=Se.match(p),Ve=Le.match(p),we=We&&Se.match(v),_e=Ve&&Le.match(v),Ae=we&&Se.match(w),Ie=_e&&Le.match(w),je=Ae&&Me.match(T),it=Ie&&oe.match(_);return je||it?5:Ae||Ie?4:We&&!we&&_e?3:we||_e?2:We||Ve?1:0}for(var V=1;V<P.length-1;){if(P[V-1][0]==t&&P[V+1][0]==t){var Q=P[V-1][1],ie=P[V][1],se=P[V+1][1],ae=h(Q,ie);if(ae){var le=ie.substring(ie.length-ae);Q=Q.substring(0,Q.length-ae),ie=le+ie.substring(0,ie.length-ae),se=le+se}for(var fe=Q,ee=ie,ne=se,ce=q(Q,ie)+q(ie,se);ie.charAt(0)===se.charAt(0);){Q+=ie.charAt(0),ie=ie.substring(1)+se.charAt(0),se=se.substring(1);var xe=q(Q,ie)+q(ie,se);xe>=ce&&(ce=xe,fe=Q,ee=ie,ne=se)}P[V-1][1]!=fe&&(fe?P[V-1][1]=fe:(P.splice(V-1,1),V--),P[V][1]=ee,ne?P[V+1][1]=ne:(P.splice(V+1,1),V--))}V++}}function R(P,q){P.push([t,""]);for(var V=0,Q=0,ie=0,se="",ae="",le;V<P.length;){if(V<P.length-1&&!P[V][1]){P.splice(V,1);continue}switch(P[V][0]){case e:ie++,ae+=P[V][1],V++;break;case r:Q++,se+=P[V][1],V++;break;case t:var fe=V-ie-Q-1;if(q){if(fe>=0&&B(P[fe][1])){var ee=P[fe][1].slice(-1);if(P[fe][1]=P[fe][1].slice(0,-1),se=ee+se,ae=ee+ae,!P[fe][1]){P.splice(fe,1),V--;var ne=fe-1;P[ne]&&P[ne][0]===e&&(ie++,ae=P[ne][1]+ae,ne--),P[ne]&&P[ne][0]===r&&(Q++,se=P[ne][1]+se,ne--),fe=ne}}if(F(P[V][1])){var ee=P[V][1].charAt(0);P[V][1]=P[V][1].slice(1),se+=ee,ae+=ee}}if(V<P.length-1&&!P[V][1]){P.splice(V,1);break}if(se.length>0||ae.length>0){se.length>0&&ae.length>0&&(le=c(ae,se),le!==0&&(fe>=0?P[fe][1]+=ae.substring(0,le):(P.splice(0,0,[t,ae.substring(0,le)]),V++),ae=ae.substring(le),se=se.substring(le)),le=h(ae,se),le!==0&&(P[V][1]=ae.substring(ae.length-le)+P[V][1],ae=ae.substring(0,ae.length-le),se=se.substring(0,se.length-le)));var ce=ie+Q;se.length===0&&ae.length===0?(P.splice(V-ce,ce),V=V-ce):se.length===0?(P.splice(V-ce,ce,[e,ae]),V=V-ce+1):ae.length===0?(P.splice(V-ce,ce,[r,se]),V=V-ce+1):(P.splice(V-ce,ce,[r,se],[e,ae]),V=V-ce+2)}V!==0&&P[V-1][0]===t?(P[V-1][1]+=P[V][1],P.splice(V,1)):V++,ie=0,Q=0,se="",ae="";break}}P[P.length-1][1]===""&&P.pop();var xe=!1;for(V=1;V<P.length-1;)P[V-1][0]===t&&P[V+1][0]===t&&(P[V][1].substring(P[V][1].length-P[V-1][1].length)===P[V-1][1]?(P[V][1]=P[V-1][1]+P[V][1].substring(0,P[V][1].length-P[V-1][1].length),P[V+1][1]=P[V-1][1]+P[V+1][1],P.splice(V-1,1),xe=!0):P[V][1].substring(0,P[V+1][1].length)==P[V+1][1]&&(P[V-1][1]+=P[V+1][1],P[V][1]=P[V][1].substring(P[V+1][1].length)+P[V+1][1],P.splice(V+1,1),xe=!0)),V++;xe&&R(P,q)}function D(P){return P>=55296&&P<=56319}function I(P){return P>=56320&&P<=57343}function F(P){return I(P.charCodeAt(0))}function B(P){return D(P.charCodeAt(P.length-1))}function H(P){for(var q=[],V=0;V<P.length;V++)P[V][1].length>0&&q.push(P[V]);return q}function j(P,q,V,Q){return B(P)||F(Q)?null:H([[t,P],[r,q],[e,V],[t,Q]])}function G(P,q,V){var Q=typeof V=="number"?{index:V,length:0}:V.oldRange,ie=typeof V=="number"?null:V.newRange,se=P.length,ae=q.length;if(Q.length===0&&(ie===null||ie.length===0)){var le=Q.index,fe=P.slice(0,le),ee=P.slice(le),ne=ie?ie.index:null;e:{var ce=le+ae-se;if(ne!==null&&ne!==ce||ce<0||ce>ae)break e;var xe=q.slice(0,ce),Me=q.slice(ce);if(Me!==ee)break e;var oe=Math.min(le,ce),Se=fe.slice(0,oe),Le=xe.slice(0,oe);if(Se!==Le)break e;var We=fe.slice(oe),Ve=xe.slice(oe);return j(Se,We,Ve,ee)}e:{if(ne!==null&&ne!==le)break e;var we=le,xe=q.slice(0,we),Me=q.slice(we);if(xe!==fe)break e;var _e=Math.min(se-we,ae-we),Ae=ee.slice(ee.length-_e),Ie=Me.slice(Me.length-_e);if(Ae!==Ie)break e;var We=ee.slice(0,ee.length-_e),Ve=Me.slice(0,Me.length-_e);return j(fe,We,Ve,Ae)}}if(Q.length>0&&ie&&ie.length===0)e:{var Se=P.slice(0,Q.index),Ae=P.slice(Q.index+Q.length),oe=Se.length,_e=Ae.length;if(ae<oe+_e)break e;var Le=q.slice(0,oe),Ie=q.slice(ae-_e);if(Se!==Le||Ae!==Ie)break e;var We=P.slice(oe,se-_e),Ve=q.slice(oe,ae-_e);return j(Se,We,Ve,Ae)}return null}function ge(P,q,V,Q){return n(P,q,V,Q,!0)}return ge.INSERT=e,ge.DELETE=r,ge.EQUAL=t,om=ge,om}var rh={exports:{}};rh.exports;var Sy;function d2(){return Sy||(Sy=1,function(r,e){var t=200,n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",c="[object Boolean]",d="[object Date]",h="[object Error]",g="[object Function]",m="[object GeneratorFunction]",p="[object Map]",v="[object Number]",w="[object Object]",T="[object Promise]",_="[object RegExp]",A="[object Set]",R="[object String]",D="[object Symbol]",I="[object WeakMap]",F="[object ArrayBuffer]",B="[object DataView]",H="[object Float32Array]",j="[object Float64Array]",G="[object Int8Array]",ge="[object Int16Array]",P="[object Int32Array]",q="[object Uint8Array]",V="[object Uint8ClampedArray]",Q="[object Uint16Array]",ie="[object Uint32Array]",se=/[\\^$.*+?()[\]{}|]/g,ae=/\w*$/,le=/^\[object .+?Constructor\]$/,fe=/^(?:0|[1-9]\d*)$/,ee={};ee[i]=ee[a]=ee[F]=ee[B]=ee[c]=ee[d]=ee[H]=ee[j]=ee[G]=ee[ge]=ee[P]=ee[p]=ee[v]=ee[w]=ee[_]=ee[A]=ee[R]=ee[D]=ee[q]=ee[V]=ee[Q]=ee[ie]=!0,ee[h]=ee[g]=ee[I]=!1;var ne=typeof Pi=="object"&&Pi&&Pi.Object===Object&&Pi,ce=typeof self=="object"&&self&&self.Object===Object&&self,xe=ne||ce||Function("return this")(),Me=e&&!e.nodeType&&e,oe=Me&&!0&&r&&!r.nodeType&&r,Se=oe&&oe.exports===Me;function Le(O,J){return O.set(J[0],J[1]),O}function We(O,J){return O.add(J),O}function Ve(O,J){for(var Ce=-1,rt=O?O.length:0;++Ce<rt&&J(O[Ce],Ce,O)!==!1;);return O}function we(O,J){for(var Ce=-1,rt=J.length,or=O.length;++Ce<rt;)O[or+Ce]=J[Ce];return O}function _e(O,J,Ce,rt){for(var or=-1,Kt=O?O.length:0;++or<Kt;)Ce=J(Ce,O[or],or,O);return Ce}function Ae(O,J){for(var Ce=-1,rt=Array(O);++Ce<O;)rt[Ce]=J(Ce);return rt}function Ie(O,J){return O==null?void 0:O[J]}function je(O){var J=!1;if(O!=null&&typeof O.toString!="function")try{J=!!(O+"")}catch{}return J}function it(O){var J=-1,Ce=Array(O.size);return O.forEach(function(rt,or){Ce[++J]=[or,rt]}),Ce}function Ue(O,J){return function(Ce){return O(J(Ce))}}function tt(O){var J=-1,Ce=Array(O.size);return O.forEach(function(rt){Ce[++J]=rt}),Ce}var lt=Array.prototype,bt=Function.prototype,Mt=Object.prototype,Qe=xe["__core-js_shared__"],Xe=function(){var O=/[^.]+$/.exec(Qe&&Qe.keys&&Qe.keys.IE_PROTO||"");return O?"Symbol(src)_1."+O:""}(),ht=bt.toString,ft=Mt.hasOwnProperty,Oe=Mt.toString,Je=RegExp("^"+ht.call(ft).replace(se,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gt=Se?xe.Buffer:void 0,It=xe.Symbol,Et=xe.Uint8Array,Dt=Ue(Object.getPrototypeOf,Object),Xt=Object.create,Wt=Mt.propertyIsEnumerable,hr=lt.splice,dr=Object.getOwnPropertySymbols,cr=gt?gt.isBuffer:void 0,Te=Ue(Object.keys,Object),ue=Ht(xe,"DataView"),at=Ht(xe,"Map"),ze=Ht(xe,"Promise"),vt=Ht(xe,"Set"),_t=Ht(xe,"WeakMap"),Tt=Ht(Object,"create"),Ut=un(ue),Ge=un(at),st=un(ze),ct=un(vt),xt=un(_t),Nt=It?It.prototype:void 0,Bt=Nt?Nt.valueOf:void 0;function qt(O){var J=-1,Ce=O?O.length:0;for(this.clear();++J<Ce;){var rt=O[J];this.set(rt[0],rt[1])}}function Yt(){this.__data__=Tt?Tt(null):{}}function ir(O){return this.has(O)&&delete this.__data__[O]}function jt(O){var J=this.__data__;if(Tt){var Ce=J[O];return Ce===n?void 0:Ce}return ft.call(J,O)?J[O]:void 0}function xr(O){var J=this.__data__;return Tt?J[O]!==void 0:ft.call(J,O)}function jr(O,J){var Ce=this.__data__;return Ce[O]=Tt&&J===void 0?n:J,this}qt.prototype.clear=Yt,qt.prototype.delete=ir,qt.prototype.get=jt,qt.prototype.has=xr,qt.prototype.set=jr;function Ze(O){var J=-1,Ce=O?O.length:0;for(this.clear();++J<Ce;){var rt=O[J];this.set(rt[0],rt[1])}}function te(){this.__data__=[]}function ye(O){var J=this.__data__,Ce=zr(J,O);if(Ce<0)return!1;var rt=J.length-1;return Ce==rt?J.pop():hr.call(J,Ce,1),!0}function Be(O){var J=this.__data__,Ce=zr(J,O);return Ce<0?void 0:J[Ce][1]}function At(O){return zr(this.__data__,O)>-1}function Ft(O,J){var Ce=this.__data__,rt=zr(Ce,O);return rt<0?Ce.push([O,J]):Ce[rt][1]=J,this}Ze.prototype.clear=te,Ze.prototype.delete=ye,Ze.prototype.get=Be,Ze.prototype.has=At,Ze.prototype.set=Ft;function Ot(O){var J=-1,Ce=O?O.length:0;for(this.clear();++J<Ce;){var rt=O[J];this.set(rt[0],rt[1])}}function er(){this.__data__={hash:new qt,map:new(at||Ze),string:new qt}}function Qt(O){return St(this,O).delete(O)}function kt(O){return St(this,O).get(O)}function be(O){return St(this,O).has(O)}function nt(O,J){return St(this,O).set(O,J),this}Ot.prototype.clear=er,Ot.prototype.delete=Qt,Ot.prototype.get=kt,Ot.prototype.has=be,Ot.prototype.set=nt;function yt(O){this.__data__=new Ze(O)}function yr(){this.__data__=new Ze}function Br(O){return this.__data__.delete(O)}function lr(O){return this.__data__.get(O)}function br(O){return this.__data__.has(O)}function en(O,J){var Ce=this.__data__;if(Ce instanceof Ze){var rt=Ce.__data__;if(!at||rt.length<t-1)return rt.push([O,J]),this;Ce=this.__data__=new Ot(rt)}return Ce.set(O,J),this}yt.prototype.clear=yr,yt.prototype.delete=Br,yt.prototype.get=lr,yt.prototype.has=br,yt.prototype.set=en;function on(O,J){var Ce=Fi(O)||io(O)?Ae(O.length,String):[],rt=Ce.length,or=!!rt;for(var Kt in O)ft.call(O,Kt)&&!(or&&(Kt=="length"||kn(Kt,rt)))&&Ce.push(Kt);return Ce}function Pn(O,J,Ce){var rt=O[J];(!(ft.call(O,J)&&Kn(rt,Ce))||Ce===void 0&&!(J in O))&&(O[J]=Ce)}function zr(O,J){for(var Ce=O.length;Ce--;)if(Kn(O[Ce][0],J))return Ce;return-1}function tn(O,J){return O&&He(J,Hr(J),O)}function Tn(O,J,Ce,rt,or,Kt,_r){var kr;if(rt&&(kr=Kt?rt(O,or,Kt,_r):rt(O)),kr!==void 0)return kr;if(!ao(O))return O;var Cr=Fi(O);if(Cr){if(kr=Rr(O),!J)return he(O,kr)}else{var Mr=Vt(O),dn=Mr==g||Mr==m;if(Hn(O))return Fn(O,J);if(Mr==w||Mr==i||dn&&!Kt){if(je(O))return Kt?O:{};if(kr=sn(dn?{}:O),!J)return Ne(O,tn(kr,O))}else{if(!ee[Mr])return Kt?O:{};kr=Rn(O,Mr,Tn,J)}}_r||(_r=new yt);var zn=_r.get(O);if(zn)return zn;if(_r.set(O,kr),!Cr)var rn=Ce?et(O):Hr(O);return Ve(rn||O,function(Vr,fn){rn&&(fn=Vr,Vr=O[fn]),Pn(kr,fn,Tn(Vr,J,Ce,rt,fn,O,_r))}),kr}function Bn(O){return ao(O)?Xt(O):{}}function Ao(O,J,Ce){var rt=J(O);return Fi(O)?rt:we(rt,Ce(O))}function No(O){return Oe.call(O)}function Po(O){if(!ao(O)||Zn(O))return!1;var J=ji(O)||je(O)?Je:le;return J.test(un(O))}function jn(O){if(!Bo(O))return Te(O);var J=[];for(var Ce in Object(O))ft.call(O,Ce)&&Ce!="constructor"&&J.push(Ce);return J}function Fn(O,J){if(J)return O.slice();var Ce=new O.constructor(O.length);return O.copy(Ce),Ce}function Cn(O){var J=new O.constructor(O.byteLength);return new Et(J).set(new Et(O)),J}function oo(O,J){var Ce=J?Cn(O.buffer):O.buffer;return new O.constructor(Ce,O.byteOffset,O.byteLength)}function mn(O,J,Ce){var rt=J?Ce(it(O),!0):it(O);return _e(rt,Le,new O.constructor)}function _n(O){var J=new O.constructor(O.source,ae.exec(O));return J.lastIndex=O.lastIndex,J}function k(O,J,Ce){var rt=J?Ce(tt(O),!0):tt(O);return _e(rt,We,new O.constructor)}function $(O){return Bt?Object(Bt.call(O)):{}}function X(O,J){var Ce=J?Cn(O.buffer):O.buffer;return new O.constructor(Ce,O.byteOffset,O.length)}function he(O,J){var Ce=-1,rt=O.length;for(J||(J=Array(rt));++Ce<rt;)J[Ce]=O[Ce];return J}function He(O,J,Ce,rt){Ce||(Ce={});for(var or=-1,Kt=J.length;++or<Kt;){var _r=J[or],kr=void 0;Pn(Ce,_r,kr===void 0?O[_r]:kr)}return Ce}function Ne(O,J){return He(O,Gt(O),J)}function et(O){return Ao(O,Hr,Gt)}function St(O,J){var Ce=O.__data__;return ho(J)?Ce[typeof J=="string"?"string":"hash"]:Ce.map}function Ht(O,J){var Ce=Ie(O,J);return Po(Ce)?Ce:void 0}var Gt=dr?Ue(dr,Object):Ir,Vt=No;(ue&&Vt(new ue(new ArrayBuffer(1)))!=B||at&&Vt(new at)!=p||ze&&Vt(ze.resolve())!=T||vt&&Vt(new vt)!=A||_t&&Vt(new _t)!=I)&&(Vt=function(O){var J=Oe.call(O),Ce=J==w?O.constructor:void 0,rt=Ce?un(Ce):void 0;if(rt)switch(rt){case Ut:return B;case Ge:return p;case st:return T;case ct:return A;case xt:return I}return J});function Rr(O){var J=O.length,Ce=O.constructor(J);return J&&typeof O[0]=="string"&&ft.call(O,"index")&&(Ce.index=O.index,Ce.input=O.input),Ce}function sn(O){return typeof O.constructor=="function"&&!Bo(O)?Bn(Dt(O)):{}}function Rn(O,J,Ce,rt){var or=O.constructor;switch(J){case F:return Cn(O);case c:case d:return new or(+O);case B:return oo(O,rt);case H:case j:case G:case ge:case P:case q:case V:case Q:case ie:return X(O,rt);case p:return mn(O,rt,Ce);case v:case R:return new or(O);case _:return _n(O);case A:return k(O,rt,Ce);case D:return $(O)}}function kn(O,J){return J=J??o,!!J&&(typeof O=="number"||fe.test(O))&&O>-1&&O%1==0&&O<J}function ho(O){var J=typeof O;return J=="string"||J=="number"||J=="symbol"||J=="boolean"?O!=="__proto__":O===null}function Zn(O){return!!Xe&&Xe in O}function Bo(O){var J=O&&O.constructor,Ce=typeof J=="function"&&J.prototype||Mt;return O===Ce}function un(O){if(O!=null){try{return ht.call(O)}catch{}try{return O+""}catch{}}return""}function Eo(O){return Tn(O,!0,!0)}function Kn(O,J){return O===J||O!==O&&J!==J}function io(O){return Ci(O)&&ft.call(O,"callee")&&(!Wt.call(O,"callee")||Oe.call(O)==i)}var Fi=Array.isArray;function wi(O){return O!=null&&so(O.length)&&!ji(O)}function Ci(O){return oi(O)&&wi(O)}var Hn=cr||Fr;function ji(O){var J=ao(O)?Oe.call(O):"";return J==g||J==m}function so(O){return typeof O=="number"&&O>-1&&O%1==0&&O<=o}function ao(O){var J=typeof O;return!!O&&(J=="object"||J=="function")}function oi(O){return!!O&&typeof O=="object"}function Hr(O){return wi(O)?on(O):jn(O)}function Ir(){return[]}function Fr(){return!1}r.exports=Eo}(rh,rh.exports)),rh.exports}var nh={exports:{}};nh.exports;var _y;function f2(){return _y||(_y=1,function(r,e){var t=200,n="__lodash_hash_undefined__",o=1,i=2,a=9007199254740991,c="[object Arguments]",d="[object Array]",h="[object AsyncFunction]",g="[object Boolean]",m="[object Date]",p="[object Error]",v="[object Function]",w="[object GeneratorFunction]",T="[object Map]",_="[object Number]",A="[object Null]",R="[object Object]",D="[object Promise]",I="[object Proxy]",F="[object RegExp]",B="[object Set]",H="[object String]",j="[object Symbol]",G="[object Undefined]",ge="[object WeakMap]",P="[object ArrayBuffer]",q="[object DataView]",V="[object Float32Array]",Q="[object Float64Array]",ie="[object Int8Array]",se="[object Int16Array]",ae="[object Int32Array]",le="[object Uint8Array]",fe="[object Uint8ClampedArray]",ee="[object Uint16Array]",ne="[object Uint32Array]",ce=/[\\^$.*+?()[\]{}|]/g,xe=/^\[object .+?Constructor\]$/,Me=/^(?:0|[1-9]\d*)$/,oe={};oe[V]=oe[Q]=oe[ie]=oe[se]=oe[ae]=oe[le]=oe[fe]=oe[ee]=oe[ne]=!0,oe[c]=oe[d]=oe[P]=oe[g]=oe[q]=oe[m]=oe[p]=oe[v]=oe[T]=oe[_]=oe[R]=oe[F]=oe[B]=oe[H]=oe[ge]=!1;var Se=typeof Pi=="object"&&Pi&&Pi.Object===Object&&Pi,Le=typeof self=="object"&&self&&self.Object===Object&&self,We=Se||Le||Function("return this")(),Ve=e&&!e.nodeType&&e,we=Ve&&!0&&r&&!r.nodeType&&r,_e=we&&we.exports===Ve,Ae=_e&&Se.process,Ie=function(){try{return Ae&&Ae.binding&&Ae.binding("util")}catch{}}(),je=Ie&&Ie.isTypedArray;function it(O,J){for(var Ce=-1,rt=O==null?0:O.length,or=0,Kt=[];++Ce<rt;){var _r=O[Ce];J(_r,Ce,O)&&(Kt[or++]=_r)}return Kt}function Ue(O,J){for(var Ce=-1,rt=J.length,or=O.length;++Ce<rt;)O[or+Ce]=J[Ce];return O}function tt(O,J){for(var Ce=-1,rt=O==null?0:O.length;++Ce<rt;)if(J(O[Ce],Ce,O))return!0;return!1}function lt(O,J){for(var Ce=-1,rt=Array(O);++Ce<O;)rt[Ce]=J(Ce);return rt}function bt(O){return function(J){return O(J)}}function Mt(O,J){return O.has(J)}function Qe(O,J){return O==null?void 0:O[J]}function Xe(O){var J=-1,Ce=Array(O.size);return O.forEach(function(rt,or){Ce[++J]=[or,rt]}),Ce}function ht(O,J){return function(Ce){return O(J(Ce))}}function ft(O){var J=-1,Ce=Array(O.size);return O.forEach(function(rt){Ce[++J]=rt}),Ce}var Oe=Array.prototype,Je=Function.prototype,gt=Object.prototype,It=We["__core-js_shared__"],Et=Je.toString,Dt=gt.hasOwnProperty,Xt=function(){var O=/[^.]+$/.exec(It&&It.keys&&It.keys.IE_PROTO||"");return O?"Symbol(src)_1."+O:""}(),Wt=gt.toString,hr=RegExp("^"+Et.call(Dt).replace(ce,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dr=_e?We.Buffer:void 0,cr=We.Symbol,Te=We.Uint8Array,ue=gt.propertyIsEnumerable,at=Oe.splice,ze=cr?cr.toStringTag:void 0,vt=Object.getOwnPropertySymbols,_t=dr?dr.isBuffer:void 0,Tt=ht(Object.keys,Object),Ut=Gt(We,"DataView"),Ge=Gt(We,"Map"),st=Gt(We,"Promise"),ct=Gt(We,"Set"),xt=Gt(We,"WeakMap"),Nt=Gt(Object,"create"),Bt=un(Ut),qt=un(Ge),Yt=un(st),ir=un(ct),jt=un(xt),xr=cr?cr.prototype:void 0,jr=xr?xr.valueOf:void 0;function Ze(O){var J=-1,Ce=O==null?0:O.length;for(this.clear();++J<Ce;){var rt=O[J];this.set(rt[0],rt[1])}}function te(){this.__data__=Nt?Nt(null):{},this.size=0}function ye(O){var J=this.has(O)&&delete this.__data__[O];return this.size-=J?1:0,J}function Be(O){var J=this.__data__;if(Nt){var Ce=J[O];return Ce===n?void 0:Ce}return Dt.call(J,O)?J[O]:void 0}function At(O){var J=this.__data__;return Nt?J[O]!==void 0:Dt.call(J,O)}function Ft(O,J){var Ce=this.__data__;return this.size+=this.has(O)?0:1,Ce[O]=Nt&&J===void 0?n:J,this}Ze.prototype.clear=te,Ze.prototype.delete=ye,Ze.prototype.get=Be,Ze.prototype.has=At,Ze.prototype.set=Ft;function Ot(O){var J=-1,Ce=O==null?0:O.length;for(this.clear();++J<Ce;){var rt=O[J];this.set(rt[0],rt[1])}}function er(){this.__data__=[],this.size=0}function Qt(O){var J=this.__data__,Ce=Fn(J,O);if(Ce<0)return!1;var rt=J.length-1;return Ce==rt?J.pop():at.call(J,Ce,1),--this.size,!0}function kt(O){var J=this.__data__,Ce=Fn(J,O);return Ce<0?void 0:J[Ce][1]}function be(O){return Fn(this.__data__,O)>-1}function nt(O,J){var Ce=this.__data__,rt=Fn(Ce,O);return rt<0?(++this.size,Ce.push([O,J])):Ce[rt][1]=J,this}Ot.prototype.clear=er,Ot.prototype.delete=Qt,Ot.prototype.get=kt,Ot.prototype.has=be,Ot.prototype.set=nt;function yt(O){var J=-1,Ce=O==null?0:O.length;for(this.clear();++J<Ce;){var rt=O[J];this.set(rt[0],rt[1])}}function yr(){this.size=0,this.__data__={hash:new Ze,map:new(Ge||Ot),string:new Ze}}function Br(O){var J=Ht(this,O).delete(O);return this.size-=J?1:0,J}function lr(O){return Ht(this,O).get(O)}function br(O){return Ht(this,O).has(O)}function en(O,J){var Ce=Ht(this,O),rt=Ce.size;return Ce.set(O,J),this.size+=Ce.size==rt?0:1,this}yt.prototype.clear=yr,yt.prototype.delete=Br,yt.prototype.get=lr,yt.prototype.has=br,yt.prototype.set=en;function on(O){var J=-1,Ce=O==null?0:O.length;for(this.__data__=new yt;++J<Ce;)this.add(O[J])}function Pn(O){return this.__data__.set(O,n),this}function zr(O){return this.__data__.has(O)}on.prototype.add=on.prototype.push=Pn,on.prototype.has=zr;function tn(O){var J=this.__data__=new Ot(O);this.size=J.size}function Tn(){this.__data__=new Ot,this.size=0}function Bn(O){var J=this.__data__,Ce=J.delete(O);return this.size=J.size,Ce}function Ao(O){return this.__data__.get(O)}function No(O){return this.__data__.has(O)}function Po(O,J){var Ce=this.__data__;if(Ce instanceof Ot){var rt=Ce.__data__;if(!Ge||rt.length<t-1)return rt.push([O,J]),this.size=++Ce.size,this;Ce=this.__data__=new yt(rt)}return Ce.set(O,J),this.size=Ce.size,this}tn.prototype.clear=Tn,tn.prototype.delete=Bn,tn.prototype.get=Ao,tn.prototype.has=No,tn.prototype.set=Po;function jn(O,J){var Ce=io(O),rt=!Ce&&Kn(O),or=!Ce&&!rt&&wi(O),Kt=!Ce&&!rt&&!or&&oi(O),_r=Ce||rt||or||Kt,kr=_r?lt(O.length,String):[],Cr=kr.length;for(var Mr in O)Dt.call(O,Mr)&&!(_r&&(Mr=="length"||or&&(Mr=="offset"||Mr=="parent")||Kt&&(Mr=="buffer"||Mr=="byteLength"||Mr=="byteOffset")||Rn(Mr,Cr)))&&kr.push(Mr);return kr}function Fn(O,J){for(var Ce=O.length;Ce--;)if(Eo(O[Ce][0],J))return Ce;return-1}function Cn(O,J,Ce){var rt=J(O);return io(O)?rt:Ue(rt,Ce(O))}function oo(O){return O==null?O===void 0?G:A:ze&&ze in Object(O)?Vt(O):Bo(O)}function mn(O){return ao(O)&&oo(O)==c}function _n(O,J,Ce,rt,or){return O===J?!0:O==null||J==null||!ao(O)&&!ao(J)?O!==O&&J!==J:k(O,J,Ce,rt,_n,or)}function k(O,J,Ce,rt,or,Kt){var _r=io(O),kr=io(J),Cr=_r?d:sn(O),Mr=kr?d:sn(J);Cr=Cr==c?R:Cr,Mr=Mr==c?R:Mr;var dn=Cr==R,zn=Mr==R,rn=Cr==Mr;if(rn&&wi(O)){if(!wi(J))return!1;_r=!0,dn=!1}if(rn&&!dn)return Kt||(Kt=new tn),_r||oi(O)?He(O,J,Ce,rt,or,Kt):Ne(O,J,Cr,Ce,rt,or,Kt);if(!(Ce&o)){var Vr=dn&&Dt.call(O,"__wrapped__"),fn=zn&&Dt.call(J,"__wrapped__");if(Vr||fn){var po=Vr?O.value():O,To=fn?J.value():J;return Kt||(Kt=new tn),or(po,To,Ce,rt,Kt)}}return rn?(Kt||(Kt=new tn),et(O,J,Ce,rt,or,Kt)):!1}function $(O){if(!so(O)||ho(O))return!1;var J=Hn(O)?hr:xe;return J.test(un(O))}function X(O){return ao(O)&&ji(O.length)&&!!oe[oo(O)]}function he(O){if(!Zn(O))return Tt(O);var J=[];for(var Ce in Object(O))Dt.call(O,Ce)&&Ce!="constructor"&&J.push(Ce);return J}function He(O,J,Ce,rt,or,Kt){var _r=Ce&o,kr=O.length,Cr=J.length;if(kr!=Cr&&!(_r&&Cr>kr))return!1;var Mr=Kt.get(O);if(Mr&&Kt.get(J))return Mr==J;var dn=-1,zn=!0,rn=Ce&i?new on:void 0;for(Kt.set(O,J),Kt.set(J,O);++dn<kr;){var Vr=O[dn],fn=J[dn];if(rt)var po=_r?rt(fn,Vr,dn,J,O,Kt):rt(Vr,fn,dn,O,J,Kt);if(po!==void 0){if(po)continue;zn=!1;break}if(rn){if(!tt(J,function(To,Xn){if(!Mt(rn,Xn)&&(Vr===To||or(Vr,To,Ce,rt,Kt)))return rn.push(Xn)})){zn=!1;break}}else if(!(Vr===fn||or(Vr,fn,Ce,rt,Kt))){zn=!1;break}}return Kt.delete(O),Kt.delete(J),zn}function Ne(O,J,Ce,rt,or,Kt,_r){switch(Ce){case q:if(O.byteLength!=J.byteLength||O.byteOffset!=J.byteOffset)return!1;O=O.buffer,J=J.buffer;case P:return!(O.byteLength!=J.byteLength||!Kt(new Te(O),new Te(J)));case g:case m:case _:return Eo(+O,+J);case p:return O.name==J.name&&O.message==J.message;case F:case H:return O==J+"";case T:var kr=Xe;case B:var Cr=rt&o;if(kr||(kr=ft),O.size!=J.size&&!Cr)return!1;var Mr=_r.get(O);if(Mr)return Mr==J;rt|=i,_r.set(O,J);var dn=He(kr(O),kr(J),rt,or,Kt,_r);return _r.delete(O),dn;case j:if(jr)return jr.call(O)==jr.call(J)}return!1}function et(O,J,Ce,rt,or,Kt){var _r=Ce&o,kr=St(O),Cr=kr.length,Mr=St(J),dn=Mr.length;if(Cr!=dn&&!_r)return!1;for(var zn=Cr;zn--;){var rn=kr[zn];if(!(_r?rn in J:Dt.call(J,rn)))return!1}var Vr=Kt.get(O);if(Vr&&Kt.get(J))return Vr==J;var fn=!0;Kt.set(O,J),Kt.set(J,O);for(var po=_r;++zn<Cr;){rn=kr[zn];var To=O[rn],Xn=J[rn];if(rt)var Hi=_r?rt(Xn,To,rn,J,O,Kt):rt(To,Xn,rn,O,J,Kt);if(!(Hi===void 0?To===Xn||or(To,Xn,Ce,rt,Kt):Hi)){fn=!1;break}po||(po=rn=="constructor")}if(fn&&!po){var ii=O.constructor,vn=J.constructor;ii!=vn&&"constructor"in O&&"constructor"in J&&!(typeof ii=="function"&&ii instanceof ii&&typeof vn=="function"&&vn instanceof vn)&&(fn=!1)}return Kt.delete(O),Kt.delete(J),fn}function St(O){return Cn(O,Hr,Rr)}function Ht(O,J){var Ce=O.__data__;return kn(J)?Ce[typeof J=="string"?"string":"hash"]:Ce.map}function Gt(O,J){var Ce=Qe(O,J);return $(Ce)?Ce:void 0}function Vt(O){var J=Dt.call(O,ze),Ce=O[ze];try{O[ze]=void 0;var rt=!0}catch{}var or=Wt.call(O);return rt&&(J?O[ze]=Ce:delete O[ze]),or}var Rr=vt?function(O){return O==null?[]:(O=Object(O),it(vt(O),function(J){return ue.call(O,J)}))}:Ir,sn=oo;(Ut&&sn(new Ut(new ArrayBuffer(1)))!=q||Ge&&sn(new Ge)!=T||st&&sn(st.resolve())!=D||ct&&sn(new ct)!=B||xt&&sn(new xt)!=ge)&&(sn=function(O){var J=oo(O),Ce=J==R?O.constructor:void 0,rt=Ce?un(Ce):"";if(rt)switch(rt){case Bt:return q;case qt:return T;case Yt:return D;case ir:return B;case jt:return ge}return J});function Rn(O,J){return J=J??a,!!J&&(typeof O=="number"||Me.test(O))&&O>-1&&O%1==0&&O<J}function kn(O){var J=typeof O;return J=="string"||J=="number"||J=="symbol"||J=="boolean"?O!=="__proto__":O===null}function ho(O){return!!Xt&&Xt in O}function Zn(O){var J=O&&O.constructor,Ce=typeof J=="function"&&J.prototype||gt;return O===Ce}function Bo(O){return Wt.call(O)}function un(O){if(O!=null){try{return Et.call(O)}catch{}try{return O+""}catch{}}return""}function Eo(O,J){return O===J||O!==O&&J!==J}var Kn=mn(function(){return arguments}())?mn:function(O){return ao(O)&&Dt.call(O,"callee")&&!ue.call(O,"callee")},io=Array.isArray;function Fi(O){return O!=null&&ji(O.length)&&!Hn(O)}var wi=_t||Fr;function Ci(O,J){return _n(O,J)}function Hn(O){if(!so(O))return!1;var J=oo(O);return J==v||J==w||J==h||J==I}function ji(O){return typeof O=="number"&&O>-1&&O%1==0&&O<=a}function so(O){var J=typeof O;return O!=null&&(J=="object"||J=="function")}function ao(O){return O!=null&&typeof O=="object"}var oi=je?bt(je):X;function Hr(O){return Fi(O)?jn(O):he(O)}function Ir(){return[]}function Fr(){return!1}r.exports=Ci}(nh,nh.exports)),nh.exports}var up={},Ay;function p9(){if(Ay)return up;Ay=1,Object.defineProperty(up,"__esModule",{value:!0});const r=d2(),e=f2();var t;return function(n){function o(d={},h={},g=!1){typeof d!="object"&&(d={}),typeof h!="object"&&(h={});let m=r(h);g||(m=Object.keys(m).reduce((p,v)=>(m[v]!=null&&(p[v]=m[v]),p),{}));for(const p in d)d[p]!==void 0&&h[p]===void 0&&(m[p]=d[p]);return Object.keys(m).length>0?m:void 0}n.compose=o;function i(d={},h={}){typeof d!="object"&&(d={}),typeof h!="object"&&(h={});const g=Object.keys(d).concat(Object.keys(h)).reduce((m,p)=>(e(d[p],h[p])||(m[p]=h[p]===void 0?null:h[p]),m),{});return Object.keys(g).length>0?g:void 0}n.diff=i;function a(d={},h={}){d=d||{};const g=Object.keys(h).reduce((m,p)=>(h[p]!==d[p]&&d[p]!==void 0&&(m[p]=h[p]),m),{});return Object.keys(d).reduce((m,p)=>(d[p]!==h[p]&&h[p]===void 0&&(m[p]=null),m),g)}n.invert=a;function c(d,h,g=!1){if(typeof d!="object")return h;if(typeof h!="object")return;if(!g)return h;const m=Object.keys(h).reduce((p,v)=>(d[v]===void 0&&(p[v]=h[v]),p),{});return Object.keys(m).length>0?m:void 0}n.transform=c}(t||(t={})),up.default=t,up}var dp={},Ey;function h2(){if(Ey)return dp;Ey=1,Object.defineProperty(dp,"__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={})),dp.default=r,dp}var fp={},Ty;function g9(){if(Ty)return fp;Ty=1,Object.defineProperty(fp,"__esModule",{value:!0});const r=h2();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 o=this.ops[this.index];if(o){const i=this.offset,a=r.default.length(o);if(n>=a-i?(n=a-i,this.index+=1,this.offset=0):this.offset+=n,typeof o.delete=="number")return{delete:n};{const c={};return o.attributes&&(c.attributes=o.attributes),typeof o.retain=="number"?c.retain=n:typeof o.retain=="object"&&o.retain!==null?c.retain=o.retain:typeof o.insert=="string"?c.insert=o.insert.substr(i,n):c.insert=o.insert,c}}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,o=this.index,i=this.next(),a=this.ops.slice(this.index);return this.offset=n,this.index=o,[i].concat(a)}}else return[]}}return fp.default=e,fp}var Ry;function m9(){return Ry||(Ry=1,function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const t=h9(),n=d2(),o=f2(),i=p9();e.AttributeMap=i.default;const a=h2();e.Op=a.default;const c=g9();e.OpIterator=c.default;const d="\0",h=(m,p)=>{if(typeof m!="object"||m===null)throw new Error(`cannot retain a ${typeof m}`);if(typeof p!="object"||p===null)throw new Error(`cannot retain a ${typeof p}`);const v=Object.keys(m)[0];if(!v||v!==Object.keys(p)[0])throw new Error(`embed types not matched: ${v} != ${Object.keys(p)[0]}`);return[v,m[v],p[v]]};class g{constructor(p){Array.isArray(p)?this.ops=p:p!=null&&Array.isArray(p.ops)?this.ops=p.ops:this.ops=[]}static registerEmbed(p,v){this.handlers[p]=v}static unregisterEmbed(p){delete this.handlers[p]}static getHandler(p){const v=this.handlers[p];if(!v)throw new Error(`no handlers for embed type "${p}"`);return v}insert(p,v){const w={};return typeof p=="string"&&p.length===0?this:(w.insert=p,v!=null&&typeof v=="object"&&Object.keys(v).length>0&&(w.attributes=v),this.push(w))}delete(p){return p<=0?this:this.push({delete:p})}retain(p,v){if(typeof p=="number"&&p<=0)return this;const w={retain:p};return v!=null&&typeof v=="object"&&Object.keys(v).length>0&&(w.attributes=v),this.push(w)}push(p){let v=this.ops.length,w=this.ops[v-1];if(p=n(p),typeof w=="object"){if(typeof p.delete=="number"&&typeof w.delete=="number")return this.ops[v-1]={delete:w.delete+p.delete},this;if(typeof w.delete=="number"&&p.insert!=null&&(v-=1,w=this.ops[v-1],typeof w!="object"))return this.ops.unshift(p),this;if(o(p.attributes,w.attributes)){if(typeof p.insert=="string"&&typeof w.insert=="string")return this.ops[v-1]={insert:w.insert+p.insert},typeof p.attributes=="object"&&(this.ops[v-1].attributes=p.attributes),this;if(typeof p.retain=="number"&&typeof w.retain=="number")return this.ops[v-1]={retain:w.retain+p.retain},typeof p.attributes=="object"&&(this.ops[v-1].attributes=p.attributes),this}}return v===this.ops.length?this.ops.push(p):this.ops.splice(v,0,p),this}chop(){const p=this.ops[this.ops.length-1];return p&&typeof p.retain=="number"&&!p.attributes&&this.ops.pop(),this}filter(p){return this.ops.filter(p)}forEach(p){this.ops.forEach(p)}map(p){return this.ops.map(p)}partition(p){const v=[],w=[];return this.forEach(T=>{(p(T)?v:w).push(T)}),[v,w]}reduce(p,v){return this.ops.reduce(p,v)}changeLength(){return this.reduce((p,v)=>v.insert?p+a.default.length(v):v.delete?p-v.delete:p,0)}length(){return this.reduce((p,v)=>p+a.default.length(v),0)}slice(p=0,v=1/0){const w=[],T=new c.default(this.ops);let _=0;for(;_<v&&T.hasNext();){let A;_<p?A=T.next(p-_):(A=T.next(v-_),w.push(A)),_+=a.default.length(A)}return new g(w)}compose(p){const v=new c.default(this.ops),w=new c.default(p.ops),T=[],_=w.peek();if(_!=null&&typeof _.retain=="number"&&_.attributes==null){let R=_.retain;for(;v.peekType()==="insert"&&v.peekLength()<=R;)R-=v.peekLength(),T.push(v.next());_.retain-R>0&&w.next(_.retain-R)}const A=new g(T);for(;v.hasNext()||w.hasNext();)if(w.peekType()==="insert")A.push(w.next());else if(v.peekType()==="delete")A.push(v.next());else{const R=Math.min(v.peekLength(),w.peekLength()),D=v.next(R),I=w.next(R);if(I.retain){const F={};if(typeof D.retain=="number")F.retain=typeof I.retain=="number"?R:I.retain;else if(typeof I.retain=="number")D.retain==null?F.insert=D.insert:F.retain=D.retain;else{const H=D.retain==null?"insert":"retain",[j,G,ge]=h(D[H],I.retain),P=g.getHandler(j);F[H]={[j]:P.compose(G,ge,H==="retain")}}const B=i.default.compose(D.attributes,I.attributes,typeof D.retain=="number");if(B&&(F.attributes=B),A.push(F),!w.hasNext()&&o(A.ops[A.ops.length-1],F)){const H=new g(v.rest());return A.concat(H).chop()}}else typeof I.delete=="number"&&(typeof D.retain=="number"||typeof D.retain=="object"&&D.retain!==null)&&A.push(I)}return A.chop()}concat(p){const v=new g(this.ops.slice());return p.ops.length>0&&(v.push(p.ops[0]),v.ops=v.ops.concat(p.ops.slice(1))),v}diff(p,v){if(this.ops===p.ops)return new g;const w=[this,p].map(D=>D.map(I=>{if(I.insert!=null)return typeof I.insert=="string"?I.insert:d;const F=D===p?"on":"with";throw new Error("diff() called "+F+" non-document")}).join("")),T=new g,_=t(w[0],w[1],v,!0),A=new c.default(this.ops),R=new c.default(p.ops);return _.forEach(D=>{let I=D[1].length;for(;I>0;){let F=0;switch(D[0]){case t.INSERT:F=Math.min(R.peekLength(),I),T.push(R.next(F));break;case t.DELETE:F=Math.min(I,A.peekLength()),A.next(F),T.delete(F);break;case t.EQUAL:F=Math.min(A.peekLength(),R.peekLength(),I);const B=A.next(F),H=R.next(F);o(B.insert,H.insert)?T.retain(F,i.default.diff(B.attributes,H.attributes)):T.push(H).delete(F);break}I-=F}}),T.chop()}eachLine(p,v=`
|
169
169
|
`){const w=new c.default(this.ops);let T=new g,_=0;for(;w.hasNext();){if(w.peekType()!=="insert")return;const A=w.peek(),R=a.default.length(A)-w.peekLength(),D=typeof A.insert=="string"?A.insert.indexOf(v,R)-R:-1;if(D<0)T.push(w.next());else if(D>0)T.push(w.next(D));else{if(p(T,w.next(1).attributes||{},_)===!1)return;_+=1,T=new g}}T.length()>0&&p(T,{},_)}invert(p){const v=new g;return this.reduce((w,T)=>{if(T.insert)v.delete(a.default.length(T));else{if(typeof T.retain=="number"&&T.attributes==null)return v.retain(T.retain),w+T.retain;if(T.delete||typeof T.retain=="number"){const _=T.delete||T.retain;return p.slice(w,w+_).forEach(R=>{T.delete?v.push(R):T.retain&&T.attributes&&v.retain(a.default.length(R),i.default.invert(T.attributes,R.attributes))}),w+_}else if(typeof T.retain=="object"&&T.retain!==null){const _=p.slice(w,w+1),A=new c.default(_.ops).next(),[R,D,I]=h(T.retain,A.insert),F=g.getHandler(R);return v.retain({[R]:F.invert(D,I)},i.default.invert(T.attributes,A.attributes)),w+1}}return w},0),v.chop()}transform(p,v=!1){if(v=!!v,typeof p=="number")return this.transformPosition(p,v);const w=p,T=new c.default(this.ops),_=new c.default(w.ops),A=new g;for(;T.hasNext()||_.hasNext();)if(T.peekType()==="insert"&&(v||_.peekType()!=="insert"))A.retain(a.default.length(T.next()));else if(_.peekType()==="insert")A.push(_.next());else{const R=Math.min(T.peekLength(),_.peekLength()),D=T.next(R),I=_.next(R);if(D.delete)continue;if(I.delete)A.push(I);else{const F=D.retain,B=I.retain;let H=typeof B=="object"&&B!==null?B:R;if(typeof F=="object"&&F!==null&&typeof B=="object"&&B!==null){const j=Object.keys(F)[0];if(j===Object.keys(B)[0]){const G=g.getHandler(j);G&&(H={[j]:G.transform(F[j],B[j],v)})}}A.retain(H,i.default.transform(D.attributes,I.attributes,v))}}return A.chop()}transformPosition(p,v=!1){v=!!v;const w=new c.default(this.ops);let T=0;for(;w.hasNext()&&T<=p;){const _=w.peekLength(),A=w.peekType();if(w.next(),A==="delete"){p-=Math.min(_,p-T);continue}else A==="insert"&&(T<p||!v)&&(p+=_);T+=_}return p}}g.Op=a.default,g.OpIterator=c.default,g.AttributeMap=i.default,g.handlers={},e.default=g,r.exports=g,r.exports.default=g}(cp,cp.exports)),cp.exports}var Ds=m9();const rr=pf(Ds);var p2=typeof global=="object"&&global&&global.Object===Object&&global,v9=typeof self=="object"&&self&&self.Object===Object&&self,al=p2||v9||Function("return this")(),Xc=al.Symbol,g2=Object.prototype,y9=g2.hasOwnProperty,b9=g2.toString,Kf=Xc?Xc.toStringTag:void 0;function x9(r){var e=y9.call(r,Kf),t=r[Kf];try{r[Kf]=void 0;var n=!0}catch{}var o=b9.call(r);return n&&(e?r[Kf]=t:delete r[Kf]),o}var w9=Object.prototype,C9=w9.toString;function S9(r){return C9.call(r)}var _9="[object Null]",A9="[object Undefined]",ky=Xc?Xc.toStringTag:void 0;function mf(r){return r==null?r===void 0?A9:_9:ky&&ky in Object(r)?x9(r):S9(r)}function $l(r){return r!=null&&typeof r=="object"}var $u=Array.isArray;function Jc(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}function m2(r){return r}var E9="[object AsyncFunction]",T9="[object Function]",R9="[object GeneratorFunction]",k9="[object Proxy]";function mv(r){if(!Jc(r))return!1;var e=mf(r);return e==T9||e==R9||e==E9||e==k9}var im=al["__core-js_shared__"],Iy=function(){var r=/[^.]+$/.exec(im&&im.keys&&im.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function I9(r){return!!Iy&&Iy in r}var M9=Function.prototype,L9=M9.toString;function Ku(r){if(r!=null){try{return L9.call(r)}catch{}try{return r+""}catch{}}return""}var D9=/[\\^$.*+?()[\]{}|]/g,O9=/^\[object .+?Constructor\]$/,N9=Function.prototype,P9=Object.prototype,B9=N9.toString,F9=P9.hasOwnProperty,j9=RegExp("^"+B9.call(F9).replace(D9,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function H9(r){if(!Jc(r)||I9(r))return!1;var e=mv(r)?j9:O9;return e.test(Ku(r))}function z9(r,e){return r==null?void 0:r[e]}function Xu(r,e){var t=z9(r,e);return H9(t)?t:void 0}var _1=Xu(al,"WeakMap"),My=Object.create,$9=function(){function r(){}return function(e){if(!Jc(e))return{};if(My)return My(e);r.prototype=e;var t=new r;return r.prototype=void 0,t}}();function U9(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 q9(r,e){var t=-1,n=r.length;for(e||(e=Array(n));++t<n;)e[t]=r[t];return e}var W9=800,V9=16,G9=Date.now;function Y9(r){var e=0,t=0;return function(){var n=G9(),o=V9-(n-t);if(t=n,o>0){if(++e>=W9)return arguments[0]}else e=0;return r.apply(void 0,arguments)}}function Z9(r){return function(){return r}}var zp=function(){try{var r=Xu(Object,"defineProperty");return r({},"",{}),r}catch{}}(),K9=zp?function(r,e){return zp(r,"toString",{configurable:!0,enumerable:!1,value:Z9(e),writable:!0})}:m2,X9=Y9(K9);function J9(r,e){for(var t=-1,n=r==null?0:r.length;++t<n&&e(r[t],t,r)!==!1;);return r}var Q9=9007199254740991,eM=/^(?:0|[1-9]\d*)$/;function v2(r,e){var t=typeof r;return e=e??Q9,!!e&&(t=="number"||t!="symbol"&&eM.test(r))&&r>-1&&r%1==0&&r<e}function vv(r,e,t){e=="__proto__"&&zp?zp(r,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):r[e]=t}function Ih(r,e){return r===e||r!==r&&e!==e}var tM=Object.prototype,rM=tM.hasOwnProperty;function y2(r,e,t){var n=r[e];(!(rM.call(r,e)&&Ih(n,t))||t===void 0&&!(e in r))&&vv(r,e,t)}function nM(r,e,t,n){var o=!t;t||(t={});for(var i=-1,a=e.length;++i<a;){var c=e[i],d=void 0;d===void 0&&(d=r[c]),o?vv(t,c,d):y2(t,c,d)}return t}var Ly=Math.max;function oM(r,e,t){return e=Ly(e===void 0?r.length-1:e,0),function(){for(var n=arguments,o=-1,i=Ly(n.length-e,0),a=Array(i);++o<i;)a[o]=n[e+o];o=-1;for(var c=Array(e+1);++o<e;)c[o]=n[o];return c[e]=t(a),U9(r,this,c)}}function iM(r,e){return X9(oM(r,e,m2),r+"")}var sM=9007199254740991;function b2(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=sM}function dg(r){return r!=null&&b2(r.length)&&!mv(r)}function aM(r,e,t){if(!Jc(t))return!1;var n=typeof e;return(n=="number"?dg(t)&&v2(e,t.length):n=="string"&&e in t)?Ih(t[e],r):!1}function lM(r){return iM(function(e,t){var n=-1,o=t.length,i=o>1?t[o-1]:void 0,a=o>2?t[2]:void 0;for(i=r.length>3&&typeof i=="function"?(o--,i):void 0,a&&aM(t[0],t[1],a)&&(i=o<3?void 0:i,o=1),e=Object(e);++n<o;){var c=t[n];c&&r(e,c,n,i)}return e})}var cM=Object.prototype;function yv(r){var e=r&&r.constructor,t=typeof e=="function"&&e.prototype||cM;return r===t}function uM(r,e){for(var t=-1,n=Array(r);++t<r;)n[t]=e(t);return n}var dM="[object Arguments]";function Dy(r){return $l(r)&&mf(r)==dM}var x2=Object.prototype,fM=x2.hasOwnProperty,hM=x2.propertyIsEnumerable,A1=Dy(function(){return arguments}())?Dy:function(r){return $l(r)&&fM.call(r,"callee")&&!hM.call(r,"callee")};function pM(){return!1}var w2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Oy=w2&&typeof module=="object"&&module&&!module.nodeType&&module,gM=Oy&&Oy.exports===w2,Ny=gM?al.Buffer:void 0,mM=Ny?Ny.isBuffer:void 0,mh=mM||pM,vM="[object Arguments]",yM="[object Array]",bM="[object Boolean]",xM="[object Date]",wM="[object Error]",CM="[object Function]",SM="[object Map]",_M="[object Number]",AM="[object Object]",EM="[object RegExp]",TM="[object Set]",RM="[object String]",kM="[object WeakMap]",IM="[object ArrayBuffer]",MM="[object DataView]",LM="[object Float32Array]",DM="[object Float64Array]",OM="[object Int8Array]",NM="[object Int16Array]",PM="[object Int32Array]",BM="[object Uint8Array]",FM="[object Uint8ClampedArray]",jM="[object Uint16Array]",HM="[object Uint32Array]",Dn={};Dn[LM]=Dn[DM]=Dn[OM]=Dn[NM]=Dn[PM]=Dn[BM]=Dn[FM]=Dn[jM]=Dn[HM]=!0;Dn[vM]=Dn[yM]=Dn[IM]=Dn[bM]=Dn[MM]=Dn[xM]=Dn[wM]=Dn[CM]=Dn[SM]=Dn[_M]=Dn[AM]=Dn[EM]=Dn[TM]=Dn[RM]=Dn[kM]=!1;function zM(r){return $l(r)&&b2(r.length)&&!!Dn[mf(r)]}function bv(r){return function(e){return r(e)}}var C2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ih=C2&&typeof module=="object"&&module&&!module.nodeType&&module,$M=ih&&ih.exports===C2,sm=$M&&p2.process,sf=function(){try{var r=ih&&ih.require&&ih.require("util").types;return r||sm&&sm.binding&&sm.binding("util")}catch{}}(),Py=sf&&sf.isTypedArray,xv=Py?bv(Py):zM,UM=Object.prototype,qM=UM.hasOwnProperty;function S2(r,e){var t=$u(r),n=!t&&A1(r),o=!t&&!n&&mh(r),i=!t&&!n&&!o&&xv(r),a=t||n||o||i,c=a?uM(r.length,String):[],d=c.length;for(var h in r)(e||qM.call(r,h))&&!(a&&(h=="length"||o&&(h=="offset"||h=="parent")||i&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||v2(h,d)))&&c.push(h);return c}function _2(r,e){return function(t){return r(e(t))}}var WM=_2(Object.keys,Object),VM=Object.prototype,GM=VM.hasOwnProperty;function YM(r){if(!yv(r))return WM(r);var e=[];for(var t in Object(r))GM.call(r,t)&&t!="constructor"&&e.push(t);return e}function ZM(r){return dg(r)?S2(r):YM(r)}function KM(r){var e=[];if(r!=null)for(var t in Object(r))e.push(t);return e}var XM=Object.prototype,JM=XM.hasOwnProperty;function QM(r){if(!Jc(r))return KM(r);var e=yv(r),t=[];for(var n in r)n=="constructor"&&(e||!JM.call(r,n))||t.push(n);return t}function A2(r){return dg(r)?S2(r,!0):QM(r)}var vh=Xu(Object,"create");function eL(){this.__data__=vh?vh(null):{},this.size=0}function tL(r){var e=this.has(r)&&delete this.__data__[r];return this.size-=e?1:0,e}var rL="__lodash_hash_undefined__",nL=Object.prototype,oL=nL.hasOwnProperty;function iL(r){var e=this.__data__;if(vh){var t=e[r];return t===rL?void 0:t}return oL.call(e,r)?e[r]:void 0}var sL=Object.prototype,aL=sL.hasOwnProperty;function lL(r){var e=this.__data__;return vh?e[r]!==void 0:aL.call(e,r)}var cL="__lodash_hash_undefined__";function uL(r,e){var t=this.__data__;return this.size+=this.has(r)?0:1,t[r]=vh&&e===void 0?cL:e,this}function Uu(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])}}Uu.prototype.clear=eL;Uu.prototype.delete=tL;Uu.prototype.get=iL;Uu.prototype.has=lL;Uu.prototype.set=uL;function dL(){this.__data__=[],this.size=0}function fg(r,e){for(var t=r.length;t--;)if(Ih(r[t][0],e))return t;return-1}var fL=Array.prototype,hL=fL.splice;function pL(r){var e=this.__data__,t=fg(e,r);if(t<0)return!1;var n=e.length-1;return t==n?e.pop():hL.call(e,t,1),--this.size,!0}function gL(r){var e=this.__data__,t=fg(e,r);return t<0?void 0:e[t][1]}function mL(r){return fg(this.__data__,r)>-1}function vL(r,e){var t=this.__data__,n=fg(t,r);return n<0?(++this.size,t.push([r,e])):t[n][1]=e,this}function Wl(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])}}Wl.prototype.clear=dL;Wl.prototype.delete=pL;Wl.prototype.get=gL;Wl.prototype.has=mL;Wl.prototype.set=vL;var yh=Xu(al,"Map");function yL(){this.size=0,this.__data__={hash:new Uu,map:new(yh||Wl),string:new Uu}}function bL(r){var e=typeof r;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?r!=="__proto__":r===null}function hg(r,e){var t=r.__data__;return bL(e)?t[typeof e=="string"?"string":"hash"]:t.map}function xL(r){var e=hg(this,r).delete(r);return this.size-=e?1:0,e}function wL(r){return hg(this,r).get(r)}function CL(r){return hg(this,r).has(r)}function SL(r,e){var t=hg(this,r),n=t.size;return t.set(r,e),this.size+=t.size==n?0:1,this}function Ju(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])}}Ju.prototype.clear=yL;Ju.prototype.delete=xL;Ju.prototype.get=wL;Ju.prototype.has=CL;Ju.prototype.set=SL;function _L(r,e){for(var t=-1,n=e.length,o=r.length;++t<n;)r[o+t]=e[t];return r}var E2=_2(Object.getPrototypeOf,Object),AL="[object Object]",EL=Function.prototype,TL=Object.prototype,T2=EL.toString,RL=TL.hasOwnProperty,kL=T2.call(Object);function IL(r){if(!$l(r)||mf(r)!=AL)return!1;var e=E2(r);if(e===null)return!0;var t=RL.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&T2.call(t)==kL}function ML(){this.__data__=new Wl,this.size=0}function LL(r){var e=this.__data__,t=e.delete(r);return this.size=e.size,t}function DL(r){return this.__data__.get(r)}function OL(r){return this.__data__.has(r)}var NL=200;function PL(r,e){var t=this.__data__;if(t instanceof Wl){var n=t.__data__;if(!yh||n.length<NL-1)return n.push([r,e]),this.size=++t.size,this;t=this.__data__=new Ju(n)}return t.set(r,e),this.size=t.size,this}function Xa(r){var e=this.__data__=new Wl(r);this.size=e.size}Xa.prototype.clear=ML;Xa.prototype.delete=LL;Xa.prototype.get=DL;Xa.prototype.has=OL;Xa.prototype.set=PL;var R2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,By=R2&&typeof module=="object"&&module&&!module.nodeType&&module,BL=By&&By.exports===R2,Fy=BL?al.Buffer:void 0,jy=Fy?Fy.allocUnsafe:void 0;function k2(r,e){if(e)return r.slice();var t=r.length,n=jy?jy(t):new r.constructor(t);return r.copy(n),n}function FL(r,e){for(var t=-1,n=r==null?0:r.length,o=0,i=[];++t<n;){var a=r[t];e(a,t,r)&&(i[o++]=a)}return i}function jL(){return[]}var HL=Object.prototype,zL=HL.propertyIsEnumerable,Hy=Object.getOwnPropertySymbols,$L=Hy?function(r){return r==null?[]:(r=Object(r),FL(Hy(r),function(e){return zL.call(r,e)}))}:jL;function UL(r,e,t){var n=e(r);return $u(r)?n:_L(n,t(r))}function E1(r){return UL(r,ZM,$L)}var T1=Xu(al,"DataView"),R1=Xu(al,"Promise"),k1=Xu(al,"Set"),zy="[object Map]",qL="[object Object]",$y="[object Promise]",Uy="[object Set]",qy="[object WeakMap]",Wy="[object DataView]",WL=Ku(T1),VL=Ku(yh),GL=Ku(R1),YL=Ku(k1),ZL=Ku(_1),ca=mf;(T1&&ca(new T1(new ArrayBuffer(1)))!=Wy||yh&&ca(new yh)!=zy||R1&&ca(R1.resolve())!=$y||k1&&ca(new k1)!=Uy||_1&&ca(new _1)!=qy)&&(ca=function(r){var e=mf(r),t=e==qL?r.constructor:void 0,n=t?Ku(t):"";if(n)switch(n){case WL:return Wy;case VL:return zy;case GL:return $y;case YL:return Uy;case ZL:return qy}return e});var KL=Object.prototype,XL=KL.hasOwnProperty;function JL(r){var e=r.length,t=new r.constructor(e);return e&&typeof r[0]=="string"&&XL.call(r,"index")&&(t.index=r.index,t.input=r.input),t}var $p=al.Uint8Array;function wv(r){var e=new r.constructor(r.byteLength);return new $p(e).set(new $p(r)),e}function QL(r,e){var t=wv(r.buffer);return new r.constructor(t,r.byteOffset,r.byteLength)}var e7=/\w*$/;function t7(r){var e=new r.constructor(r.source,e7.exec(r));return e.lastIndex=r.lastIndex,e}var Vy=Xc?Xc.prototype:void 0,Gy=Vy?Vy.valueOf:void 0;function r7(r){return Gy?Object(Gy.call(r)):{}}function I2(r,e){var t=e?wv(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}var n7="[object Boolean]",o7="[object Date]",i7="[object Map]",s7="[object Number]",a7="[object RegExp]",l7="[object Set]",c7="[object String]",u7="[object Symbol]",d7="[object ArrayBuffer]",f7="[object DataView]",h7="[object Float32Array]",p7="[object Float64Array]",g7="[object Int8Array]",m7="[object Int16Array]",v7="[object Int32Array]",y7="[object Uint8Array]",b7="[object Uint8ClampedArray]",x7="[object Uint16Array]",w7="[object Uint32Array]";function C7(r,e,t){var n=r.constructor;switch(e){case d7:return wv(r);case n7:case o7:return new n(+r);case f7:return QL(r);case h7:case p7:case g7:case m7:case v7:case y7:case b7:case x7:case w7:return I2(r,t);case i7:return new n;case s7:case c7:return new n(r);case a7:return t7(r);case l7:return new n;case u7:return r7(r)}}function M2(r){return typeof r.constructor=="function"&&!yv(r)?$9(E2(r)):{}}var S7="[object Map]";function _7(r){return $l(r)&&ca(r)==S7}var Yy=sf&&sf.isMap,A7=Yy?bv(Yy):_7,E7="[object Set]";function T7(r){return $l(r)&&ca(r)==E7}var Zy=sf&&sf.isSet,R7=Zy?bv(Zy):T7,k7=1,L2="[object Arguments]",I7="[object Array]",M7="[object Boolean]",L7="[object Date]",D7="[object Error]",D2="[object Function]",O7="[object GeneratorFunction]",N7="[object Map]",P7="[object Number]",O2="[object Object]",B7="[object RegExp]",F7="[object Set]",j7="[object String]",H7="[object Symbol]",z7="[object WeakMap]",$7="[object ArrayBuffer]",U7="[object DataView]",q7="[object Float32Array]",W7="[object Float64Array]",V7="[object Int8Array]",G7="[object Int16Array]",Y7="[object Int32Array]",Z7="[object Uint8Array]",K7="[object Uint8ClampedArray]",X7="[object Uint16Array]",J7="[object Uint32Array]",En={};En[L2]=En[I7]=En[$7]=En[U7]=En[M7]=En[L7]=En[q7]=En[W7]=En[V7]=En[G7]=En[Y7]=En[N7]=En[P7]=En[O2]=En[B7]=En[F7]=En[j7]=En[H7]=En[Z7]=En[K7]=En[X7]=En[J7]=!0;En[D7]=En[D2]=En[z7]=!1;function Rp(r,e,t,n,o,i){var a,c=e&k7;if(a!==void 0)return a;if(!Jc(r))return r;var d=$u(r);if(d)a=JL(r);else{var h=ca(r),g=h==D2||h==O7;if(mh(r))return k2(r,c);if(h==O2||h==L2||g&&!o)a=g?{}:M2(r);else{if(!En[h])return o?r:{};a=C7(r,h,c)}}i||(i=new Xa);var m=i.get(r);if(m)return m;i.set(r,a),R7(r)?r.forEach(function(w){a.add(Rp(w,e,t,w,r,i))}):A7(r)&&r.forEach(function(w,T){a.set(T,Rp(w,e,t,T,r,i))});var p=E1,v=d?void 0:p(r);return J9(v||r,function(w,T){v&&(T=w,w=r[T]),y2(a,T,Rp(w,e,t,T,r,i))}),a}var Q7=1,eD=4;function Kd(r){return Rp(r,Q7|eD)}var tD="__lodash_hash_undefined__";function rD(r){return this.__data__.set(r,tD),this}function nD(r){return this.__data__.has(r)}function Up(r){var e=-1,t=r==null?0:r.length;for(this.__data__=new Ju;++e<t;)this.add(r[e])}Up.prototype.add=Up.prototype.push=rD;Up.prototype.has=nD;function oD(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 iD(r,e){return r.has(e)}var sD=1,aD=2;function N2(r,e,t,n,o,i){var a=t&sD,c=r.length,d=e.length;if(c!=d&&!(a&&d>c))return!1;var h=i.get(r),g=i.get(e);if(h&&g)return h==e&&g==r;var m=-1,p=!0,v=t&aD?new Up:void 0;for(i.set(r,e),i.set(e,r);++m<c;){var w=r[m],T=e[m];if(n)var _=a?n(T,w,m,e,r,i):n(w,T,m,r,e,i);if(_!==void 0){if(_)continue;p=!1;break}if(v){if(!oD(e,function(A,R){if(!iD(v,R)&&(w===A||o(w,A,t,n,i)))return v.push(R)})){p=!1;break}}else if(!(w===T||o(w,T,t,n,i))){p=!1;break}}return i.delete(r),i.delete(e),p}function lD(r){var e=-1,t=Array(r.size);return r.forEach(function(n,o){t[++e]=[o,n]}),t}function cD(r){var e=-1,t=Array(r.size);return r.forEach(function(n){t[++e]=n}),t}var uD=1,dD=2,fD="[object Boolean]",hD="[object Date]",pD="[object Error]",gD="[object Map]",mD="[object Number]",vD="[object RegExp]",yD="[object Set]",bD="[object String]",xD="[object Symbol]",wD="[object ArrayBuffer]",CD="[object DataView]",Ky=Xc?Xc.prototype:void 0,am=Ky?Ky.valueOf:void 0;function SD(r,e,t,n,o,i,a){switch(t){case CD:if(r.byteLength!=e.byteLength||r.byteOffset!=e.byteOffset)return!1;r=r.buffer,e=e.buffer;case wD:return!(r.byteLength!=e.byteLength||!i(new $p(r),new $p(e)));case fD:case hD:case mD:return Ih(+r,+e);case pD:return r.name==e.name&&r.message==e.message;case vD:case bD:return r==e+"";case gD:var c=lD;case yD:var d=n&uD;if(c||(c=cD),r.size!=e.size&&!d)return!1;var h=a.get(r);if(h)return h==e;n|=dD,a.set(r,e);var g=N2(c(r),c(e),n,o,i,a);return a.delete(r),g;case xD:if(am)return am.call(r)==am.call(e)}return!1}var _D=1,AD=Object.prototype,ED=AD.hasOwnProperty;function TD(r,e,t,n,o,i){var a=t&_D,c=E1(r),d=c.length,h=E1(e),g=h.length;if(d!=g&&!a)return!1;for(var m=d;m--;){var p=c[m];if(!(a?p in e:ED.call(e,p)))return!1}var v=i.get(r),w=i.get(e);if(v&&w)return v==e&&w==r;var T=!0;i.set(r,e),i.set(e,r);for(var _=a;++m<d;){p=c[m];var A=r[p],R=e[p];if(n)var D=a?n(R,A,p,e,r,i):n(A,R,p,r,e,i);if(!(D===void 0?A===R||o(A,R,t,n,i):D)){T=!1;break}_||(_=p=="constructor")}if(T&&!_){var I=r.constructor,F=e.constructor;I!=F&&"constructor"in r&&"constructor"in e&&!(typeof I=="function"&&I instanceof I&&typeof F=="function"&&F instanceof F)&&(T=!1)}return i.delete(r),i.delete(e),T}var RD=1,Xy="[object Arguments]",Jy="[object Array]",hp="[object Object]",kD=Object.prototype,Qy=kD.hasOwnProperty;function ID(r,e,t,n,o,i){var a=$u(r),c=$u(e),d=a?Jy:ca(r),h=c?Jy:ca(e);d=d==Xy?hp:d,h=h==Xy?hp:h;var g=d==hp,m=h==hp,p=d==h;if(p&&mh(r)){if(!mh(e))return!1;a=!0,g=!1}if(p&&!g)return i||(i=new Xa),a||xv(r)?N2(r,e,t,n,o,i):SD(r,e,d,t,n,o,i);if(!(t&RD)){var v=g&&Qy.call(r,"__wrapped__"),w=m&&Qy.call(e,"__wrapped__");if(v||w){var T=v?r.value():r,_=w?e.value():e;return i||(i=new Xa),o(T,_,t,n,i)}}return p?(i||(i=new Xa),TD(r,e,t,n,o,i)):!1}function P2(r,e,t,n,o){return r===e?!0:r==null||e==null||!$l(r)&&!$l(e)?r!==r&&e!==e:ID(r,e,t,n,P2,o)}function MD(r){return function(e,t,n){for(var o=-1,i=Object(e),a=n(e),c=a.length;c--;){var d=a[++o];if(t(i[d],d,i)===!1)break}return e}}var LD=MD();function I1(r,e,t){(t!==void 0&&!Ih(r[e],t)||t===void 0&&!(e in r))&&vv(r,e,t)}function DD(r){return $l(r)&&dg(r)}function M1(r,e){if(!(e==="constructor"&&typeof r[e]=="function")&&e!="__proto__")return r[e]}function OD(r){return nM(r,A2(r))}function ND(r,e,t,n,o,i,a){var c=M1(r,t),d=M1(e,t),h=a.get(d);if(h){I1(r,t,h);return}var g=i?i(c,d,t+"",r,e,a):void 0,m=g===void 0;if(m){var p=$u(d),v=!p&&mh(d),w=!p&&!v&&xv(d);g=d,p||v||w?$u(c)?g=c:DD(c)?g=q9(c):v?(m=!1,g=k2(d,!0)):w?(m=!1,g=I2(d,!0)):g=[]:IL(d)||A1(d)?(g=c,A1(c)?g=OD(c):(!Jc(c)||mv(c))&&(g=M2(d))):m=!1}m&&(a.set(d,g),o(g,d,n,i,a),a.delete(d)),I1(r,t,g)}function B2(r,e,t,n,o){r!==e&&LD(e,function(i,a){if(o||(o=new Xa),Jc(i))ND(r,e,a,t,B2,n,o);else{var c=n?n(M1(r,a),i,a+"",r,e,o):void 0;c===void 0&&(c=i),I1(r,a,c)}},A2)}function jc(r,e){return P2(r,e)}var Vc=lM(function(r,e,t){B2(r,e,t)}),nr=(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))(nr||{});class rl{constructor(e,t,n={}){this.attrName=e,this.keyName=t;const o=nr.TYPE&nr.ATTRIBUTE;this.scope=n.scope!=null?n.scope&nr.LEVEL|o:nr.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 Xd extends Error{constructor(e){e="[Parchment] "+e,super(e),this.message=e,this.name=this.constructor.name}}const F2=class L1{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 o=this.query(t);if(o==null)throw new Xd(`Unable to create ${t} blot`);const i=o,a=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:i.create(n),c=new i(e,a,n);return L1.blots.set(c.domNode,c),c}find(e,t=!1){return L1.find(e,t)}query(e,t=nr.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&nr.LEVEL&nr.BLOCK?n=this.types.block:e&nr.LEVEL&nr.INLINE&&(n=this.types.inline):e instanceof Element&&((e.getAttribute("class")||"").split(/\s+/).some(o=>(n=this.classes[o],!!n)),n=n||this.tags[e.tagName]),n==null?null:"scope"in n&&t&nr.LEVEL&n.scope&&t&nr.TYPE&n.scope?n:null}register(...e){return e.map(t=>{const n="blotName"in t,o="attrName"in t;if(!n&&!o)throw new Xd("Invalid definition");if(n&&t.blotName==="abstract")throw new Xd("Cannot register abstract class");const i=n?t.blotName:o?t.attrName:void 0;return this.types[i]=t,o?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(a=>a.toUpperCase()):t.tagName=t.tagName.toUpperCase(),(Array.isArray(t.tagName)?t.tagName:[t.tagName]).forEach(a=>{(this.tags[a]==null||t.className==null)&&(this.tags[a]=t)}))),t})}};F2.blots=new WeakMap;let af=F2;function eb(r,e){return(r.getAttribute("class")||"").split(/\s+/).filter(t=>t.indexOf(`${e}-`)===0)}class PD extends rl{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){eb(e,this.keyName).forEach(t=>{e.classList.remove(t)}),e.classList.length===0&&e.removeAttribute("class")}value(e){const t=(eb(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""}}const ba=PD;function lm(r){const e=r.split("-"),t=e.slice(1).map(n=>n[0].toUpperCase()+n.slice(1)).join("");return e[0]+t}class BD extends rl{static keys(e){return(e.getAttribute("style")||"").split(";").map(t=>t.split(":")[0].trim())}add(e,t){return this.canAdd(e,t)?(e.style[lm(this.keyName)]=t,!0):!1}remove(e){e.style[lm(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const t=e.style[lm(this.keyName)];return this.canAdd(e,t)?t:""}}const Qc=BD;class FD{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=af.find(this.domNode);if(e==null)return;const t=rl.keys(this.domNode),n=ba.keys(this.domNode),o=Qc.keys(this.domNode);t.concat(n).concat(o).forEach(i=>{const a=e.scroll.query(i,nr.ATTRIBUTE);a instanceof rl&&(this.attributes[a.attrName]=a)})}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 pg=FD,j2=class{constructor(e,t){this.scroll=e,this.domNode=t,af.blots.set(t,this),this.prev=null,this.next=null}static create(e){if(this.tagName==null)throw new Xd("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),af.blots.delete(this.domNode)}deleteAt(e,t){this.isolate(e,t).remove()}formatAt(e,t,n,o){const i=this.isolate(e,t);if(this.scroll.query(n,nr.BLOT)!=null&&o)i.wrap(n,o);else if(this.scroll.query(n,nr.ATTRIBUTE)!=null){const a=this.scroll.create(this.statics.scope);i.wrap(a),a.format(n,o)}}insertAt(e,t,n){const o=n==null?this.scroll.create("text",t):this.scroll.create(t,n),i=this.split(e);this.parent.insertBefore(o,i||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 Xd(`Cannot wrap ${e}`);return n.appendChild(this),n}};j2.blotName="abstract";let H2=j2;const z2=class extends H2{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}}};z2.scope=nr.INLINE_BLOT;let jD=z2;const ti=jD;class HD{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(),o=0;for(;n;){if(n===e)return o;o+=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 o=n();for(;o;){const i=o.length();if(e<i||t&&e===i&&(o.next==null||o.next.length()!==0))return[o,e];e-=i,o=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[o,i]=this.find(e);let a=e-i;const c=this.iterator(o);let d=c();for(;d&&a<e+t;){const h=d.length();e>a?n(d,e-a,Math.min(t,a+h-e)):n(d,0,Math.min(h,e+t-a)),a+=h,d=c()}}map(e){return this.reduce((t,n)=>(t.push(e(n)),t),[])}reduce(e,t){const n=this.iterator();let o=n();for(;o;)t=e(t,o),o=n();return t}}function tb(r,e){const t=e.find(r);if(t)return t;try{return e.create(r)}catch{const n=e.create(nr.INLINE);return Array.from(r.childNodes).forEach(o=>{n.domNode.appendChild(o)}),r.parentNode&&r.parentNode.replaceChild(n.domNode,r),n.attach(),n}}const $2=class Oc extends H2{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,Oc.uiClass&&this.uiNode.classList.add(Oc.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new HD,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{const t=tb(e,this.scroll);this.insertBefore(t,this.children.head||void 0)}catch(t){if(t instanceof Xd)return;throw t}})}deleteAt(e,t){if(e===0&&t===this.length())return this.remove();this.children.forEachAt(e,t,(n,o,i)=>{n.deleteAt(o,i)})}descendant(e,t=0){const[n,o]=this.children.find(t);return e.blotName==null&&e(n)||e.blotName!=null&&n instanceof e?[n,o]:n instanceof Oc?n.descendant(e,o):[null,-1]}descendants(e,t=0,n=Number.MAX_VALUE){let o=[],i=n;return this.children.forEachAt(t,n,(a,c,d)=>{(e.blotName==null&&e(a)||e.blotName!=null&&a instanceof e)&&o.push(a),a instanceof Oc&&(o=o.concat(a.descendants(e,c,i))),i-=d}),o}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===nr.BLOCK_BLOT?(t.next!=null&&this.splitAfter(t),t.prev!=null&&this.splitAfter(t.prev),t.parent.unwrap(),e=!0):t instanceof Oc?t.unwrap():t.remove())})}formatAt(e,t,n,o){this.children.forEachAt(e,t,(i,a,c)=>{i.formatAt(a,c,n,o)})}insertAt(e,t,n){const[o,i]=this.children.find(e);if(o)o.insertAt(i,t,n);else{const a=n==null?this.scroll.create("text",t):this.scroll.create(t,n);this.appendChild(a)}}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,o]=this.children.find(e,t),i=[[this,e]];return n instanceof Oc?i.concat(n.path(o,t)):(n!=null&&i.push([n,o]),i)}removeChild(e){this.children.remove(e)}replaceWith(e,t){const n=typeof e=="string"?this.scroll.create(e,t):e;return n instanceof Oc&&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(),(o,i,a)=>{const c=o.split(i,t);c!=null&&n.appendChild(c)}),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=[],o=[];e.forEach(i=>{i.target===this.domNode&&i.type==="childList"&&(n.push(...i.addedNodes),o.push(...i.removedNodes))}),o.forEach(i=>{if(i.parentNode!=null&&i.tagName!=="IFRAME"&&document.body.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const a=this.scroll.find(i);a!=null&&(a.domNode.parentNode==null||a.domNode.parentNode===this.domNode)&&a.detach()}),n.filter(i=>i.parentNode===this.domNode&&i!==this.uiNode).sort((i,a)=>i===a?0:i.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(i=>{let a=null;i.nextSibling!=null&&(a=this.scroll.find(i.nextSibling));const c=tb(i,this.scroll);(c.next!==a||c.next==null)&&(c.parent!=null&&c.parent.removeChild(this),this.insertBefore(c,a||void 0))}),this.enforceAllowedChildren()}};$2.uiClass="";let zD=$2;const ha=zD;function $D(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 Fd=class jd extends ha{static create(e){return super.create(e)}static formats(e,t){const n=t.query(jd.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 pg(this.domNode)}format(e,t){if(e===this.statics.blotName&&!t)this.children.forEach(n=>{n instanceof jd||(n=n.wrap(jd.blotName,!0)),this.attributes.copy(n)}),this.unwrap();else{const n=this.scroll.query(e,nr.INLINE);if(n==null)return;n instanceof rl?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,o){this.formats()[n]!=null||this.scroll.query(n,nr.ATTRIBUTE)?this.isolate(e,t).format(n,o):super.formatAt(e,t,n,o)}optimize(e){super.optimize(e);const t=this.formats();if(Object.keys(t).length===0)return this.unwrap();const n=this.next;n instanceof jd&&n.prev===this&&$D(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 jd&&this.attributes.move(n),n}};Fd.allowedChildren=[Fd,ti],Fd.blotName="inline",Fd.scope=nr.INLINE_BLOT,Fd.tagName="SPAN";let UD=Fd;const Cv=UD,Hd=class D1 extends ha{static create(e){return super.create(e)}static formats(e,t){const n=t.query(D1.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 pg(this.domNode)}format(e,t){const n=this.scroll.query(e,nr.BLOCK);n!=null&&(n instanceof rl?this.attributes.attribute(n,t):e===this.statics.blotName&&!t?this.replaceWith(D1.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,o){this.scroll.query(n,nr.BLOCK)!=null?this.format(n,o):super.formatAt(e,t,n,o)}insertAt(e,t,n){if(n==null||this.scroll.query(t,nr.INLINE)!=null)super.insertAt(e,t,n);else{const o=this.split(e);if(o!=null){const i=this.scroll.create(t,n);o.parent.insertBefore(i,o)}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()}};Hd.blotName="block",Hd.scope=nr.BLOCK_BLOT,Hd.tagName="P",Hd.allowedChildren=[Cv,Hd,ti];let qD=Hd;const bh=qD,O1=class extends ha{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,o){super.formatAt(e,t,n,o),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())}};O1.blotName="container",O1.scope=nr.BLOCK_BLOT;let WD=O1;const gg=WD;class VD extends ti{static formats(e,t){}format(e,t){super.formatAt(0,this.length(),e,t)}formatAt(e,t,n,o){e===0&&t===this.length()?this.format(n,o):super.formatAt(e,t,n,o)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const as=VD,GD={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},YD=100,zd=class extends ha{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,GD),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=nr.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,o){this.update(),super.formatAt(e,t,n,o)}insertAt(e,t,n){this.update(),super.insertAt(e,t,n)}optimize(e=[],t={}){super.optimize(t);const n=t.mutationsMap||new WeakMap;let o=Array.from(this.observer.takeRecords());for(;o.length>0;)e.push(o.pop());const i=(d,h=!0)=>{d==null||d===this||d.domNode.parentNode!=null&&(n.has(d.domNode)||n.set(d.domNode,[]),h&&i(d.parent))},a=d=>{n.has(d.domNode)&&(d instanceof ha&&d.children.forEach(a),n.delete(d.domNode),d.optimize(t))};let c=e;for(let d=0;c.length>0;d+=1){if(d>=YD)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach(h=>{const g=this.find(h.target,!0);g!=null&&(g.domNode===h.target&&(h.type==="childList"?(i(this.find(h.previousSibling,!1)),Array.from(h.addedNodes).forEach(m=>{const p=this.find(m,!1);i(p,!1),p instanceof ha&&p.children.forEach(v=>{i(v,!1)})})):h.type==="attributes"&&i(g.prev)),i(g))}),this.children.forEach(a),c=Array.from(this.observer.takeRecords()),o=c.slice();o.length>0;)e.push(o.pop())}}update(e,t={}){e=e||this.observer.takeRecords();const n=new WeakMap;e.map(o=>{const i=this.find(o.target,!0);return i==null?null:n.has(i.domNode)?(n.get(i.domNode).push(o),null):(n.set(i.domNode,[o]),i)}).forEach(o=>{o!=null&&o!==this&&n.has(o.domNode)&&o.update(n.get(o.domNode)||[],t)}),t.mutationsMap=n,n.has(this.domNode)&&super.update(n.get(this.domNode),t),this.optimize(e,t)}};zd.blotName="scroll",zd.defaultChild=bh,zd.allowedChildren=[bh,gg],zd.scope=nr.BLOCK_BLOT,zd.tagName="DIV";let ZD=zd;const Sv=ZD,N1=class U2 extends ti{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 U2&&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}};N1.blotName="text",N1.scope=nr.INLINE_BLOT;let KD=N1;const qp=KD,XD=Object.freeze(Object.defineProperty({__proto__:null,Attributor:rl,AttributorStore:pg,BlockBlot:bh,ClassAttributor:ba,ContainerBlot:gg,EmbedBlot:as,InlineBlot:Cv,LeafBlot:ti,ParentBlot:ha,Registry:af,Scope:nr,ScrollBlot:Sv,StyleAttributor:Qc,TextBlot:qp},Symbol.toStringTag,{value:"Module"}));class xa extends as{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}xa.blotName="break";xa.tagName="BR";let va=class extends qp{};const JD={"&":"&","<":"<",">":">",'"':""","'":"'"};function mg(r){return r.replace(/[&<>"']/g,e=>JD[e])}const Ga=class Ga extends Cv{static compare(e,t){const n=Ga.order.indexOf(e),o=Ga.order.indexOf(t);return n>=0||o>=0?n-o:e===t?0:e<t?-1:1}formatAt(e,t,n,o){if(Ga.compare(this.statics.blotName,n)<0&&this.scroll.query(n,nr.BLOT)){const i=this.isolate(e,t);o&&i.wrap(n,o)}else super.formatAt(e,t,n,o)}optimize(e){if(super.optimize(e),this.parent instanceof Ga&&Ga.compare(this.statics.blotName,this.parent.statics.blotName)>0){const t=this.parent.isolate(this.offset(),this.length());this.moveChildren(t),t.wrap(this)}}};de(Ga,"allowedChildren",[Ga,xa,as,va]),de(Ga,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);let nl=Ga;const rb=1;class Ko extends bh{constructor(){super(...arguments);de(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=q2(this)),this.cache.delta}deleteAt(t,n){super.deleteAt(t,n),this.cache={}}formatAt(t,n,o,i){n<=0||(this.scroll.query(o,nr.BLOCK)?t+n===this.length()&&this.format(o,i):super.formatAt(t,Math.min(n,this.length()-t-1),o,i),this.cache={})}insertAt(t,n,o){if(o!=null){super.insertAt(t,n,o),this.cache={};return}if(n.length===0)return;const i=n.split(`
|
170
170
|
`),a=i.shift();a.length>0&&(t<this.length()-1||this.children.tail==null?super.insertAt(Math.min(t,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});let c=this;i.reduce((d,h)=>(c=c.split(d,!0),c.insertAt(0,h),h.length),t+a.length)}insertBefore(t,n){const{head:o}=this.children;super.insertBefore(t,n),o instanceof xa&&o.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+rb),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()-rb)){const i=this.clone();return t===0?(this.parent.insertBefore(i,this),this):(this.parent.insertBefore(i,this.next),i)}const o=super.split(t,n);return this.cache={},o}}Ko.blotName="block";Ko.tagName="P";Ko.defaultChild=xa;Ko.allowedChildren=[xa,nl,as,va];let Ms=class extends as{attach(){super.attach(),this.attributes=new pg(this.domNode)}delta(){return new rr().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(e,t){const n=this.scroll.query(e,nr.BLOCK_ATTRIBUTE);n!=null&&this.attributes.attribute(n,t)}formatAt(e,t,n,o){this.format(n,o)}insertAt(e,t,n){if(n!=null){super.insertAt(e,t,n);return}const o=t.split(`
|
171
171
|
`),i=o.pop(),a=o.map(d=>{const h=this.scroll.create(Ko.blotName);return h.insertAt(0,d),h}),c=this.split(e);a.forEach(d=>{this.parent.insertBefore(d,c)}),i&&this.parent.insertBefore(this.scroll.create("text",i),c)}};Ms.scope=nr.BLOCK_BLOT;function q2(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return r.descendants(ti).reduce((t,n)=>n.length()===0?t:t.insert(n.value(),ks(n,{},e)),new rr).insert(`
|
@@ -355,11 +355,11 @@ received: ${r.quality}
|
|
355
355
|
received: ${r.imageType}
|
356
356
|
-> using default image/jpeg`),r.imageType="image/jpeg"),r.keepImageTypes||(r.keepImageTypes=[]),r.keepImageTypes&&!Array.isArray(r.keepImageTypes)&&(e.warn(`quill.imageCompressor: [config error] 'keepImageTypes' is required to be a "array", received: ${r.keepImageTypes} -> using default []`),r.keepImageTypes=[]),r.ignoreImageTypes||(r.ignoreImageTypes=[]),r.ignoreImageTypes&&!Array.isArray(r.ignoreImageTypes)&&(e.warn(`quill.imageCompressor: [config error] 'ignoreImageTypes' is required to be a "array", received: ${r.ignoreImageTypes} -> using default []`),r.ignoreImageTypes=[]),r.handleOnPaste&&typeof r.handleOnPaste!="boolean"&&typeof r.handleOnPaste!="function"&&(e.warn(`quill.imageCompressor: [config error] 'handlePaste' is required to be a "boolean" or a "function", received: ${r.ignoreImageTypes} -> using default true`),r.handleOnPaste=!0),r.insertIntoEditor&&typeof r.insertIntoEditor!="function"&&(e.warn(`quill.imageCompressor: [config error] 'insertIntoEditor' is required to be a "function", received: ${r.insertIntoEditor} -> using default undefined`),r.insertIntoEditor=void 0)}function Wb(r){return!!r.match(/^image\/(gif|jpe?g|a?png|svg|webp|bmp)/i)}class fB{constructor(e,t,n,o){de(this,"localDrag",!1);this.quill=e,this.onNewDataUrl=t,this.logger=n,this.handleOnPaste=o,this.quill.root.addEventListener("dragstart",i=>this.handleDragStart(i),!1),this.quill.root.addEventListener("dragend",i=>this.handleDragEnd(i),!1),this.quill.root.addEventListener("drop",i=>this.handleDrop(i),!0),this.handleOnPaste!==!1&&this.quill.root.addEventListener("paste",i=>this.handlePaste(i),!0)}handleDragStart(e){this.localDrag=!0}handleDragEnd(e){this.localDrag=!1}async handleDrop(e){var i,a,c,d;if(this.localDrag)return;if(e.preventDefault(),document.caretRangeFromPoint){const h=document.getSelection(),g=document.caretRangeFromPoint(e.clientX,e.clientY);h&&g&&h.setBaseAndExtent(g.startContainer,g.startOffset,g.startContainer,g.startOffset)}this.logger.log("handleDrop",{evt:e});const t=(i=e.dataTransfer)==null?void 0:i.files,n=Array.from(t||[]).filter(h=>Wb(h.type));if(n.length>0){e.stopPropagation(),this.logger.log("handleDrop","found files",{evt:e,files:t,imageFiles:n}),await this.pasteFilesIntoQuill(n);return}if((a=e.dataTransfer)!=null&&a.items){e.stopPropagation(),this.logger.log("handleDrop","found items",{evt:e,files:t,imageFiles:n}),await this.handleDataTransferList((c=e.dataTransfer)==null?void 0:c.items,e);return}const o=(d=e.dataTransfer)==null?void 0:d.getData("URL");if(this.logger.log("handleDrop","trying getData('URL')",{draggedUrl:o}),o){const h=await(await fetch(o)).blob();this.logger.log("handleDrop","blob from drag event",{evt:e,files:t,imageFiles:n}),await this.pasteFilesIntoQuill([h])}}async handlePaste(e){var t;typeof this.handleOnPaste=="function"&&!this.handleOnPaste(e)||await this.handleDataTransferList((t=e.clipboardData)==null?void 0:t.items,e)}async handleDataTransferList(e,t){const n=Array.from(e||[]),o=n.filter(c=>c.kind==="file"&&Wb(c.type)),i=n.map(c=>({type:c.type,kind:c.kind}));if(this.logger.log("handleDataTransferList",{fileTypes:i,imageCount:o.length}),!o.length)return;t.preventDefault(),t.stopPropagation();const a=o.map(c=>c.getAsFile());await this.pasteFilesIntoQuill(a)}async pasteFilesIntoQuill(e){this.logger.log(" pasteFilesIntoQuill",`pasting ${e.length} images...`),await Promise.all(e.map(async(t,n)=>{if(!t)return;const o=await FC(t);this.logger.log(" pasteFilesIntoQuill",`pasting image (${n})`),this.onNewDataUrl(o)})),this.logger.log(" pasteFilesIntoQuill","done")}}class Eh{constructor(e,t){de(this,"quill");de(this,"range");de(this,"options");de(this,"imageDrop");de(this,"fileHolder");de(this,"Logger");this.quill=e,this.options=t||{};const n=!!t.debug,o=!!t.suppressErrorLogging;this.Logger=new lB(n,o),dB(t,this.Logger);const i=async c=>{this.Logger.log("onImageDrop",{dataUrl:c});const d=await this.downscaleImageFromUrl(c);this.insertToEditor(d,Eh.b64toBlob(d))};this.imageDrop=new fB(e,i,this.Logger,typeof this.options.handleOnPaste=="function"?this.options.handleOnPaste:this.options.handleOnPaste!==!1),this.Logger.log("fileChanged",{options:t,quill:e,debug:n});const a=this.quill.getModule("toolbar");a?a.addHandler("image",()=>this.selectLocalImage()):this.Logger.error("Quill toolbar module not found! need { toolbar: // options } in Quill.modules for image icon to sit in")}static b64toBlob(e){const t=atob(e.split(",")[1]),n=e.slice(5).split(";")[0],o=new ArrayBuffer(t.length);let i=new Uint8Array(o);for(let a=0;a<t.length;a++)i[a]=t.charCodeAt(a);return new Blob([o],{type:n})}destroy(){this.imageDrop&&console.warn("ImageDrop instance cleanup")}selectLocalImage(e){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=()=>this.fileChanged().then(()=>e&&e()),document.body.appendChild(this.fileHolder),this.fileHolder.click(),window.requestAnimationFrame(()=>{this.fileHolder&&document.body.removeChild(this.fileHolder)})}async fileChanged(e){var a;const t=e||((a=this.fileHolder)==null?void 0:a.files);if(!t||!t.length)return;const n=t[0];if(this.Logger.log("fileChanged",{file:n}),!n)return;const o=await FC(n),i=await this.downscaleImageFromUrl(o);this.insertToEditor(i,Eh.b64toBlob(i))}async downscaleImageFromUrl(e){const t=await uB(this.Logger,e,this.options.maxWidth,this.options.maxHeight,this.options.imageType,this.options.keepImageTypes,this.options.ignoreImageTypes,this.options.quality);return this.Logger.log("downscaleImageFromUrl",{dataUrl:e,dataUrlCompressed:t}),t}insertToEditor(e,t){if(this.options.insertIntoEditor)this.options.insertIntoEditor(e,t,this.quill);else{this.Logger.log("insertToEditor",{url:e}),this.range=this.quill.getSelection();const n=this.range;if(!n)return;this.logFileSize(e),this.quill.insertEmbed(n.index,"image",`${e}`,"user"),n.index++,this.quill.setSelection(n,"api")}}logFileSize(e){const o=(Math.round((e.length-"data:image/png;base64,".length)*3/4)/1024).toFixed(0);this.Logger.log("estimated img size: "+o+" kb")}}window.imageCompressor=Eh;const Th={OVERLAY:"ql-image-resizer-overlay",HANDLE:"ql-image-resizer-handle",DISPLAY:"ql-image-resizer-display",TOOLBAR:"ql-image-resizer-toolbar",TOOLBAR_BUTTON:"ql-image-resizer-toolbar-button"},Dc={BACKSPACE:8,DELETE:46,LEFT:37,UP:38,RIGHT:39,DOWN:40},Cp=(r,e)=>{const t=r?"top":"bottom",n=e?"left":"right",o=r===e?"nwse-resize":"nesw-resize";return{[t]:"-5px",[n]:"-5px",cursor:o}},hB={tl:Cp(!0,!0),tr:Cp(!0,!1),bl:Cp(!1,!0),br:Cp(!1,!1)},pB={modules:["DisplaySize","Toolbar","Resize","Keyboard"],embedTags:["VIDEO","IFRAME"],tools:["left","center","right","justify"],contentOptions:[{attribute:["width"],limit:{minWidth:100},blotName:"image"},{attribute:["width","height"],limit:{minWidth:200,ratio:.5625},blotName:"video"}]},gB=ke.import("formats/image");class Dp extends gB{static get ATTRIBUTES(){return["alt","height","width","class","style","data-align"]}static formats(e){return this.ATTRIBUTES.reduce((t,n)=>(e.hasAttribute(n)&&(t[n]=e.getAttribute(n)||""),t),{})}format(e,t){this.constructor.ATTRIBUTES.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}}de(Dp,"blotName","image"),de(Dp,"tagName","img"),de(Dp,"scope",nr.INLINE);ke.register("formats/image",Dp,!0);class Nh{constructor(e){de(this,"resizer");de(this,"quill");de(this,"overlay");de(this,"activeEle");de(this,"blot");de(this,"options");de(this,"requestUpdate");this.resizer=e,this.quill=e.quill,this.overlay=e.overlay,this.activeEle=e.activeEle,this.blot=e.blot,this.options=e.options,this.requestUpdate=()=>e.onUpdate(!0)}onCreate(){}onDestroy(){}onUpdate(){}}class mB extends Nh{constructor(){super(...arguments);de(this,"display")}onCreate(){var t;this.display=document.createElement("div"),this.display.className=Ni[Th.DISPLAY],(t=this.overlay)==null||t.appendChild(this.display)}onUpdate(){if(!this.display||!this.activeEle)return;const[t,n]=[this.activeEle.offsetWidth,this.activeEle.offsetHeight];this.display.innerHTML=`${t} × ${n}`,this.positionDisplay(t,n)}positionDisplay(t,n){var c;if(!this.display)return;const o=this.display.getBoundingClientRect(),i=t>120&&n>30,a=((c=this.activeEle)==null?void 0:c.style.float)==="right";Object.assign(this.display.style,{right:i?"4px":a?"auto":`-${o.width+4}px`,bottom:i?"4px":`-${o.height+4}px`,left:i?"auto":a?`-${o.width+4}px`:"auto"})}}class vB extends Nh{constructor(){super(...arguments);de(this,"boxes",[]);de(this,"dragBox",null);de(this,"dragStartX",0);de(this,"dragStartY",0);de(this,"contentOption");de(this,"preDragSize",{width:0,height:0});de(this,"naturalSize",[0,0]);de(this,"handleDragProxy",null);de(this,"handleMouseupProxy",null);de(this,"handleMousedown",t=>{!this.blot||!this.activeEle||(this.dragBox=t.target,this.dragStartX=t.clientX,this.dragStartY=t.clientY,this.preDragSize={width:this.activeEle.offsetWidth,height:this.activeEle.offsetHeight},this.naturalSize=this.getNaturalSize(),this.setCursor(window.getComputedStyle(this.dragBox).cursor),this.handleDragProxy=this.handleDrag.bind(this),this.handleMouseupProxy=this.handleMouseup.bind(this),document.addEventListener("mousemove",this.handleDragProxy,!0),document.addEventListener("mouseup",this.handleMouseupProxy,!0))});de(this,"handleMouseup",t=>{if(!this.activeEle||!this.blot||!this.contentOption)return;const n=this.calcSize(t,this.contentOption.limit);Object.assign(this.activeEle,n),Object.assign(this.activeEle.style,{width:null,height:null}),this.setCursor(""),this.removeEventListeners()});de(this,"handleDrag",t=>{!this.activeEle||!this.blot||!this.contentOption||(Object.assign(this.activeEle.style,this.calcSize(t,{...this.contentOption.limit,unit:!0})),this.requestUpdate())});de(this,"handleDoubleClick",t=>{if(!this.blot||!this.activeEle||!this.contentOption)return;t.stopPropagation();const[n,o]=this.naturalSize,i={};this.contentOption.attribute.includes("width")&&(i.width=n),this.contentOption.attribute.includes("height")&&(i.height=o);const a=this.applyConstraints(i,this.contentOption.limit);Object.assign(this.activeEle,a),this.requestUpdate()})}onCreate(){!this.blot||!this.options.contentOptions||(this.contentOption=this.options.contentOptions.find(t=>t.blotName===this.blot.statics.blotName),this.boxes=[],["tl","tr","br","bl"].forEach(this.addBox.bind(this)))}onDestroy(){this.setCursor("")}addBox(t){var o;const n=document.createElement("div");n.className=`${Ni[Th.HANDLE]} ${t}`,n.addEventListener("mousedown",this.handleMousedown,!1),n.addEventListener("dblclick",this.handleDoubleClick,!1),Object.assign(n.style,hB[t]),(o=this.overlay)==null||o.appendChild(n),this.boxes.push(n)}removeEventListeners(){this.handleDragProxy&&(document.removeEventListener("mousemove",this.handleDragProxy,!0),this.handleDragProxy=null),this.handleMouseupProxy&&(document.removeEventListener("mouseup",this.handleMouseupProxy,!0),this.handleMouseupProxy=null)}calcSize(t,n={}){var d;if(!this.dragBox||!this.activeEle)return{};const o=t.clientX-this.dragStartX,i=t.clientY-this.dragStartY,a=this.dragBox===this.boxes[0]||this.dragBox===this.boxes[3]?-1:1,c={};return(d=this.contentOption)!=null&&d.attribute?this.contentOption.attribute.forEach(h=>c[h]=this.preDragSize[h]):c.width=this.preDragSize.width,c.width&&(c.width=Math.round(this.preDragSize.width+o*a)),c.height&&(c.height=Math.round(this.preDragSize.height+i*a)),this.applyConstraints(c,n)}applyConstraints(t,n={}){const o=typeof t.width=="string"?parseInt(t.width,10):t.width||0,i=typeof t.height=="string"?parseInt(t.height,10):t.height||0;let a=o,c=i;if(n.ratio){a=this.applyLimit(a,n.minWidth,n.maxWidth),c=a*n.ratio;const h=this.applyLimit(c,n.minHeight,n.maxHeight);h!==c&&(c=h,a=c/n.ratio)}else o&&(a=this.applyLimit(a,n.minWidth,n.maxWidth)),i&&(c=this.applyLimit(c,n.minHeight,n.maxHeight));const d={};return t.width!==void 0&&(d.width=n.unit?`${a}px`:a),t.height!==void 0&&(d.height=n.unit?`${c}px`:c),d}applyLimit(t,n,o){let i=t;return n!==void 0&&(i=Math.max(n,i)),o!==void 0&&(i=Math.min(o,i)),i}getNaturalSize(){if(!this.activeEle)return[0,0];const t=this.activeEle.getAttribute("data-size");if(!t){const n=this.activeEle,o=[n.offsetWidth,n.offsetHeight];return n.setAttribute("data-size",o.join(",")),o}return t.split(",").map(Number)}setCursor(t){[document.body,this.activeEle].forEach(n=>n&&(n.style.cursor=t))}}const Bc=class Bc extends Nh{constructor(){super(...arguments);de(this,"keyboardProxy",null)}static injectInit(t){var o;const n=(o=t.keyboard)==null?void 0:o.bindings;n&&[Bc.keys.LEFT,Bc.keys.RIGHT].forEach(i=>(n[i]||[]).unshift(Bc.makeArrowHandler(i)))}static makeArrowHandler(t){const n=t===Bc.keys.LEFT;return{key:t,shiftKey:!1,altKey:null,[n?"prefix":"suffix"]:/^$/,handler(o){const i=this.quill;if(!i.resizer)return!0;let a=o.index;const c=t===Bc.keys.RIGHT,[d]=i.getLine(a+(n?-1:0));if(!d)return!0;if(i.resizer.judgeShow(d))return!1;const h=i.getIndex(d);if(c&&h+d.length()-1===a)return!0;c&&(a+=o.length+1);const[g]=i.getLeaf(a);if(!g)return!0;const m=g.offset(g.parent),p=g.constructor&&"scope"in g.constructor&&g.constructor.scope===nr.BLOCK_BLOT;if(n&&(p&&a===m||a===0||a===h))return!0;let v=g;if(n&&m===0){const[w]=i.getLeaf(a-1);w&&(v=w)}return!v||!i.resizer.judgeShow(v)}}}onCreate(){this.keyboardProxy=this.keyboardHandle.bind(this),document.addEventListener("keydown",this.keyboardProxy,!0)}onDestroy(){this.keyboardProxy&&document.removeEventListener("keydown",this.keyboardProxy,!0)}keyboardHandle(t){if(t.defaultPrevented||t.shiftKey||t.ctrlKey||t.altKey||!this.activeEle)return;const n=t.keyCode;let o=this.blot.offset(this.quill.scroll),i=null,a=!1;n===Dc.BACKSPACE||n===Dc.DELETE?(this.handleDelete(),a=!0):n>=Dc.LEFT&&n<=Dc.DOWN&&([o,i]=this.handleArrowKeys(n,o),a=!0),a&&(t.stopPropagation(),t.preventDefault()),!(i&&this.resizer.judgeShow(i,i.domNode))&&(this.quill.setSelection(o),this.resizer.hide())}handleDelete(){this.blot&&(this.blot.deleteAt(0,1),this.blot.parent.optimize({}))}handleArrowKeys(t,n){let o=null;return t===Dc.RIGHT?n+=this.blot.length()||1:t===Dc.UP?(n=this.getOtherLineIndex(-1),o=this.quill.getLeaf(n)[0]):t===Dc.DOWN&&(n=this.getOtherLineIndex(1),o=this.quill.getLeaf(n)[0]),[n,o]}getOtherLineIndex(t){if(!this.blot)return 0;const n=this.blot.offset(this.quill.scroll),[o]=this.quill.getLine(n);if(!o)return n;const i=this.blot.offset(o)+1,a=t>0?o.next:o.prev;if(!a)return n;let c=a.length();return a.statics.blotName==="block"&&c--,a.offset(this.quill.scroll)+Math.min(c,i)}};de(Bc,"keys",Dc);let eg=Bc;const Gd=class Gd extends Nh{constructor(t){super(t);de(this,"toolbar");de(this,"blot");this.blot=t.blot}createStyleTool(t,n){const o={left:{float:"left"},right:{float:"right"},center:{display:"block",margin:"0 auto",float:"none"},justify:{display:"block",float:"none",margin:"0",width:"100%"}};return{icon:t,apply:i=>{const a=o[n];Object.assign(i.style,a),i.setAttribute("data-align",n)},isApplied:i=>{const a=i.style;switch(n){case"center":return a.float==="none";case"justify":return a.display==="block"&&a.width==="100%";case"left":case"right":return a.float===n;default:return!1}}}}onCreate(){var t;this.toolbar=document.createElement("div"),this.toolbar.className=Ni[Th.TOOLBAR],(t=this.overlay)==null||t.appendChild(this.toolbar),Object.keys(Gd.Tools).forEach(n=>{const o=n;Gd.Tools[o]=this.createStyleTool(Gd.Tools[o].icon,o)}),this._addToolbarButtons()}_addToolbarButtons(){if(!this.toolbar||!this.activeEle)return;const{Tools:t}=this.constructor;this.options.tools.forEach(n=>{const o=n,i=t[o];if(!i)return;const a=document.createElement("button");a.type="button",a.className=Ni[Th.TOOLBAR_BUTTON],a.innerHTML=Np.renderToString(S.jsx(gn,{icon:i.icon,size:"xs"})),a.setAttribute("data-tool",o),i.isApplied&&i.isApplied.call(this,this.activeEle)&&(a.style.backgroundColor="var(--AEditor_Addon_Secondary_color)"),this.addButtonClickHandler(a,i),this.toolbar.appendChild(a)})}addButtonClickHandler(t,n){!this.activeEle||!this.blot||t.addEventListener("click",o=>{var a;if(o.stopPropagation(),n.handler&&n.handler.call(this,o,t,this.activeEle)!==!0)return;const i=n.isApplied&&n.isApplied.call(this,this.activeEle);return this.toolbar&&Array.from(this.toolbar.querySelectorAll("button")).forEach(c=>c.style.backgroundColor=""),i?(this.activeEle.style.cssText="",this.activeEle.setAttribute("data-align","")):(t.style.backgroundColor="var(--AEditor_Addon_Secondary_color)",(a=n.apply)==null||a.call(n,this.activeEle)),this.requestUpdate(),!1})}};de(Gd,"Tools",{left:{icon:"AlignLeft"},center:{icon:"AlignCenter"},right:{icon:"AlignRight"},justify:{icon:"AlignJustify"}});let X1=Gd;class jC{constructor(e,t={}){de(this,"quill");de(this,"options");de(this,"moduleClasses");de(this,"modules",[]);de(this,"blot");de(this,"selectedBlots",[]);de(this,"embedClassName","");de(this,"activeEle");de(this,"overlay");de(this,"updateFromModule",!1);de(this,"hideProxy",null);de(this,"updateOverlayPositionProxy",null);var o;e.resizer=this,this.quill=e;const n=t.modules?[...t.modules]:null;this.options={...pB,...t},n&&(this.options.modules=n),document.execCommand("enableObjectResizing",!1,"false"),this.moduleClasses=this.options.modules,this.quill.root.addEventListener("mousedown",this.handleClick.bind(this),!1),this.quill.on("text-change",this.handleChange.bind(this)),this.quill.container.style.position=this.quill.container.style.position||"relative",this.quill.on("selection-change",this.addBlotsSelectedClass.bind(this)),eg.injectInit(this.quill),(o=this.options.embedTags)!=null&&o.length&&this.initializeEmbed()}initializeModules(){this.modules.forEach(e=>e.onDestroy()),this.modules=[],this.modules=this.moduleClasses.map(e=>new(this.constructor.Modules[e]||e)(this)),this.modules.forEach(e=>e.onCreate()),this.repositionElements(),this.modules.forEach(e=>e.onUpdate())}initializeEmbed(){if(!this.options.embedTags.length)return;this.embedClassName=`ql-${Array.from({length},()=>[Math.floor(Math.random()*62)]).join("")}`;const e=[""].concat(this.options.embedTags).join(`, .${this.embedClassName} `).slice(2)+"{pointer-events: none;}",t=document.createElement("style");t.textContent=e,this.quill.container.appendChild(t),this.quill.root.classList.add(this.embedClassName)}onUpdate(e){this.updateFromModule=!!e,this.repositionElements(),this.modules.forEach(t=>t.onUpdate())}handleClick(e){if(this.overlay&&(e.target===this.overlay||this.overlay.contains(e.target)))return;let t=e.target;if(t=this.getEventTarget(e,t),t!=null&&t.tagName){const n=this.quill.scroll.find(t);if(n&&this.judgeShow(n,t)){e.preventDefault();return}}this.activeEle&&this.hide()}getEventTarget(e,t){var i;const n=(i=this.options.embedTags)==null?void 0:i.join();if(!n)return t;const o=this.quill.root;return(t===o||t.querySelectorAll(n).length)&&(o.classList.remove(this.embedClassName),t=document.elementFromPoint(e.clientX,e.clientY),o.classList.add(this.embedClassName)),t}judgeShow(e,t){if(!e||!this.options.contentOptions)return!1;!t&&e.domNode&&(t=e.domNode);const n=this.options.contentOptions.find(i=>i.blotName===e.statics.blotName);if(!n)return!1;if(this.activeEle===t)return!0;const o=n.limit||{};return!o.minWidth||o.minWidth&&t.offsetWidth>=o.minWidth?(this.activeEle&&this.hide(),this.activeEle=t,this.blot=e,this.showOverlay(),this.initializeModules(),!0):!1}handleChange(e,t,n){if(this.updateFromModule){this.updateFromModule=!1;return}n!=="user"||!this.overlay||!this.activeEle||this.onUpdate()}showOverlay(){this.overlay&&this.hideOverlay(),this.quill.setSelection(null),[document.body,this.quill.root].forEach(e=>e.style.userSelect="none"),this.overlay=document.createElement("div"),this.overlay.className=`${Ni[Th.OVERLAY]}`,this.overlay.addEventListener("wheel",e=>{e.preventDefault(),e.stopPropagation(),this.quill.root.scrollTop+=e.deltaY*.5},{passive:!1}),this.quill.container.appendChild(this.overlay),this.hideProxy=()=>this.activeEle&&this.hide(),this.updateOverlayPositionProxy=()=>this.overlay&&(this.overlay.style.marginTop=-1*this.quill.root.scrollTop+"px"),this.quill.root.addEventListener("input",this.hideProxy,!0),this.quill.root.addEventListener("scroll",this.updateOverlayPositionProxy),this.repositionElements()}hideOverlay(){this.overlay&&(this.quill.container.removeChild(this.overlay),this.overlay=void 0,this.hideProxy&&this.quill.root.removeEventListener("input",this.hideProxy,!0),this.updateOverlayPositionProxy&&this.quill.root.removeEventListener("scroll",this.updateOverlayPositionProxy),[document.body,this.quill.root].forEach(e=>e.style.userSelect=""))}repositionElements(){if(!this.overlay||!this.activeEle)return;const e=this.quill.container,t=this.activeEle.getBoundingClientRect(),n=e.getBoundingClientRect();Object.assign(this.overlay.style,{left:`${t.left-n.left-1+e.scrollLeft}px`,top:`${t.top-n.top+this.quill.root.scrollTop}px`,width:`${t.width}px`,height:`${t.height}px`,marginTop:-1*this.quill.root.scrollTop+"px"})}addBlotsSelectedClass(e){if(!e){this.selectedBlots=[];return}try{const t=o=>{var i;return["image","iframe","video"].includes((i=o.statics)==null?void 0:i.blotName)},n=this.quill.scroll.descendants(t,e.index,e.length);this.selectedBlots=n.filter(o=>!o.statics||!this.options.contentOptions?!1:!!this.options.contentOptions.find(i=>i.blotName===o.statics.blotName))}catch{}}hide(){this.hideOverlay(),this.modules.forEach(e=>e.onDestroy()),this.modules=[],this.activeEle=void 0,this.blot=void 0}}de(jC,"Modules",{Base:Nh,DisplaySize:mB,Toolbar:X1,Resize:vB,Keyboard:eg});const Sp=ke.import("delta"),yB=ke.import("modules/clipboard");function bB(r){let e=Number.parseFloat(r.getAttribute("width")||String(qn.colDefaultWidth));if(Number.isNaN(e)){const t=r.style.width;e=t?Number.parseFloat(t):r.offsetWidth}return e}function xB(r,e){const t=new Array(e).fill(qn.colDefaultWidth),n=Array.from(r.querySelectorAll("tr"));for(const o of n){const i=Array.from(o.querySelectorAll("td"));for(const[a,c]of i.entries())if(a<e){const d=bB(c);t[a]=d||t[a]}else break}return t}class wB extends yB{constructor(t,n){super(t,n);de(this,"tableId",Do());de(this,"rowId",Do());de(this,"colIds",[]);de(this,"rowspanCount",[]);de(this,"cellCount",0);de(this,"colCount",0);de(this,"STYLE_PROPERTIES",["color","background","background-color","mso-pattern","border","border-color","border-top","border-right","border-bottom","border-left"]);this.quill=t,this.addMatcher("table",this.matchTable.bind(this)),this.addMatcher("colgroup",this.matchColgroup.bind(this)),this.addMatcher("col",this.matchCol.bind(this)),this.addMatcher("tr",this.matchTr.bind(this)),this.addMatcher("td",this.matchTd.bind(this)),this.addMatcher("th",this.matchTd.bind(this)),this.addMatcher("caption",this.matchCaption.bind(this))}matchTable(t,n){if(n.ops.length===0)return n;const o=[],i=[];let a=-1;for(let h=0;h<n.ops.length;h++){const{attributes:g,insert:m}=n.ops[h],{table:p,[$e.tableCell]:v,...w}=g||{},T=Hc.isObject(m)&&m[$e.tableCol];T?i.push({insert:m}):o.push({attributes:w,insert:m}),!(w!=null&&w[$e.tableCellInner])&&!T&&(a=h)}const d=xB(t,this.colIds.length).reduce((h,g,m)=>(i[m]?h.push(i[m]):h.push({insert:{[$e.tableCol]:{tableId:this.tableId,colId:this.colIds[m],width:g,full:!0}}}),h),[]);return o.splice(a+1,0,...d),this.tableId=Do(),this.colIds=[],this.rowspanCount=[],this.cellCount=0,this.colCount=0,new Sp(o)}matchColgroup(t,n){const o=[];for(let i=0;i<n.ops.length;i++){const a=n.ops[i];a&&Hc.isObject(a.insert)&&a.insert[$e.tableCol]&&o.push(a)}return new Sp(o)}matchCol(t){this.colIds[this.colCount]=Do();const n=new Sp().insert({[$e.tableCol]:Object.assign(zl.value(t),{tableId:this.tableId,colId:this.colIds[this.colCount]})});return this.colCount+=1,n}matchTr(t,n){this.rowId=Do(),this.cellCount=0;for(const[o,i]of this.rowspanCount.entries())i.rowspan>0&&(i.rowspan-=1),i.rowspan<=0&&(this.rowspanCount[o]={rowspan:0,colspan:0});return n}matchTd(t,n){const o=t,i=wo.formats(o);if(!this.colIds[this.cellCount]||!this.rowspanCount[this.cellCount])for(let g=this.cellCount;g>=0;g--)this.colIds[g]||(this.colIds[g]=Do()),this.rowspanCount[g]||(this.rowspanCount[g]={rowspan:0,colspan:0});const{colspan:a}=this.rowspanCount[this.cellCount];this.cellCount+=a,i.rowspan>0&&(this.rowspanCount[this.cellCount]={rowspan:i.rowspan,colspan:i.colspan});const c=this.colIds[this.cellCount];this.cellCount+=i.colspan;const d=Object.assign(i,{tableId:this.tableId,rowId:this.rowId,colId:c});this.handleBorderNoneStyles(o,d);const h=[];for(const g of n.ops){const{attributes:m={},...p}=g,{[$e.tableCell]:v,...w}=m;h.push({...p,attributes:{...w,[$e.tableCellInner]:d}})}return(h.length<=0||!Hc.isString(h[h.length-1].insert)||!h[h.length-1].insert.endsWith(`
|
357
357
|
`))&&h.push({insert:`
|
358
|
-
`,attributes:{[$e.tableCellInner]:d}}),new Sp(h)}handleBorderNoneStyles(t,n){if(!(n!=null&&n.style))return;["border",...["top","right","bottom","left"].flatMap(i=>[`border-${i}`,`border-${i}-style`])].filter(i=>t.style[i]==="none").forEach(i=>n.style=n.style.replaceAll(new RegExp(`${i}:none;?`,"g"),""))}convert({html:t,text:n},o={}){if(t){const c=new DOMParser().parseFromString(t,"text/html");this.preprocessTableHtml(c),this.mergeClassStylesToInline(c),t=c.body.innerHTML}const i=super.convert({html:t,text:n},o);if(o[$e.tableCellInner])for(const a of i.ops){if(Hc.isObject(a.insert)&&a.insert[$e.tableCol]){a.insert="";continue}a.attributes||(a.attributes={}),a.attributes[$e.tableCellInner]=o[$e.tableCellInner]}return i}parseStyleWithFilter(t,n){if(!t)return{};const o={};let i="",a="",c=!0,d=0;for(let h=0;h<t.length;h++){const g=t[h];g===":"&&c?(i=t.substring(d,h).trim(),d=h+1,c=!1):g===";"&&(!c&&i&&(a=t.substring(d,h).trim(),(!n||n(i))&&(o[i]=a)),d=h+1,c=!0)}return!c&&i&&d<t.length&&(a=t.substring(d).trim(),(!n||n(i))&&(o[i]=a)),o}mergeClassStylesToInline(t){var n;try{const o=t.querySelectorAll("td[class], th[class]");if(o.length===0)return;const i=new Set;for(const g of o)(g.getAttribute("class")||"").split(/\s+/).filter(Boolean).forEach(p=>i.add(p));if(i.size===0)return;const a=t.querySelectorAll("style");if(a.length===0)return;const c=Array.from(a).map(g=>g.textContent||"").join("");if(!c)return;const d={},h=g=>this.STYLE_PROPERTIES.some(m=>g.startsWith(m));for(const g of i){const m=new RegExp(`\\.${g}[^{]*{([^}]*)}`,"g");let p;for(;(p=m.exec(c))!==null;){const v=p[1],w=this.parseStyleWithFilter(v),T={};let _=!1;for(const A in w)h(A)&&(T[A]=w[A],_=!0);_&&(d[g]=T)}}if(Object.keys(d).length===0)return;for(let g=0;g<o.length;g++){const m=o[g],p=((n=m.getAttribute("class"))==null?void 0:n.split(/\s+/).filter(Boolean))||[],v=m.getAttribute("style")||"",w=this.parseStyleWithFilter(v);let T=!1;for(const _ of p){const A=d[_];if(A)for(const R in A)w[R]||(w[R]=A[R],T=!0)}if(T){let _="";for(const A in w)_+=A+":"+w[A]+";";_&&m.setAttribute("style",_)}m.removeAttribute("class")}}catch(o){console.error("스타일 처리 오류",o)}}matchCaption(t,n){for(let o=0;o<n.ops.length;o++){const i=n.ops[o],{attributes:a}=i;a&&a[$e.tableCaption]&&(a[$e.tableCaption].tableId=this.tableId,i.attributes=a)}return n}preprocessTableHtml(t){try{const n=t.querySelectorAll("table");for(const o of Array.from(n))o.querySelectorAll("tr").length!==0&&(this.cleanupTableStyles(o),this.applyRowspanHeights(o),this.fixRowspanCells(o));this.mergeClassStylesToInline(t)}catch(n){console.error("테이블 전처리 오류",n)}}cleanupTableStyles(t){const n=t.querySelectorAll("td, th, tr, colgroup");for(const o of n){const i=o;i.removeAttribute("height");const a=i.getAttribute("style");if(a){const c=a.replace(/height\s*:[^;]*;?/gi,"").trim();i.setAttribute("style",c||"")}}}applyRowspanHeights(t){const o=t.querySelectorAll("td, th");t.style.borderCollapse="collapse";for(const i of o){const a=i,d=parseInt(a.getAttribute("rowspan")||"1")*24,h=a.getAttribute("style")||"",g=h+(h?"; ":"")+`height: ${d}px`;a.setAttribute("style",g)}}fixRowspanCells(t){const n=t.querySelectorAll("tr");if(n.length<=1)return;const o=[],i=new Map;for(let a=0;a<n.length;a++){const d=n[a].querySelectorAll("td, th");if(d.length===0&&a<n.length-1){o.push(a);continue}for(const h of Array.from(d)){const g=parseInt(h.getAttribute("rowspan")||"1");if(g>1)for(let m=1;m<g;m++){const p=a+m;if(p>=n.length)break;i.has(p)||i.set(p,[]),i.get(p).push(h)}}}o.length>0&&this.processEmptyRows(o,n,i)}processEmptyRows(t,n,o){for(const i of t){const a=o.get(i);if(a)for(const c of a){const d=parseInt(c.getAttribute("rowspan")||"1");d>1&&c.setAttribute("rowspan",(d-1).toString())}}for(const i of t.reverse())n[i].remove()}}class CB extends Qp{fixUnusuaDeletelTable(){}mergeCells(e){if(!this.table||!this.tableSelection)return;const t=this.tableSelection.selectedTds||[];if(t.length>1&&(e=t),!e||e.length<=1)return;const n=Yn(e[0],$e.tableMain),o=n.getRows(),i=e.map(p=>{if(!p||!p.parent||!p.parent.domNode)return null;const v=p.parent.domNode;if(!v)return null;const w=o.findIndex(A=>A.rowId===p.rowId);if(w===-1)return null;const T=p.getColumnIndex();if(T===-1)return null;const _=v.getBoundingClientRect();return!_||_.width===0||_.height===0?null:{td:p,rowIndex:w,colIndex:T,rowspan:p.rowspan,colspan:p.colspan,visualLeft:_.left,visualRight:_.right,visualTop:_.top,visualBottom:_.bottom}}).filter(Boolean);if(i.length<=1)return;i.sort((p,v)=>p.visualTop-v.visualTop||p.visualLeft-v.visualLeft);const a=i[0],c=a.td,d=Math.max(...i.map(p=>p.rowIndex+p.rowspan-1)),h=Math.max(...i.map(p=>p.colIndex+p.colspan-1)),g=d-a.rowIndex+1,m=h-a.colIndex+1;for(const p of i)p.td!==c&&(p.td.moveChildren(c),p.td.parent.remove());c.rowspan=g,c.colspan=m,this.fixTableByRemove(n)}}ke.register({"modules/imageCompress":Eh,"modules/resize":jC,"modules/tableUp":CB,"modules/magicUrl":iP,"formats/divider":K1,"modules/clipboard":wB,"modules/copy":iB},!0);const Wd={KB:1024,QUALITY:.7,IMAGE_SIZES:new Map},SB={getCharLength:r=>Array.from(r).length,calculateTextSize:r=>{if(!r.ops||r.ops.length===0)return 0;let e=0;for(const t of r.ops)if(typeof t.insert=="string")e+=new TextEncoder().encode(t.insert).length-1;else if(typeof t.insert=="object"&&t.insert.image){const n=t.insert.image;n&&(e+=Wd.IMAGE_SIZES.get(n)||Math.ceil(n.length*Wd.QUALITY))}return e}},_B=r=>{const{type:e="Primary",editorRef:t,useValue:n,useError:o,placeholder:i,tabIndex:a,autoFocus:c,editorProps:d,style:h,minHeight:g,maxHeight:m,contentHeight:p,contentMaxHeight:v=1e3,toolbarSize:w="Med",toolbarType:T="Default",readOnly:_,limitPosition:A="Bottom",maxLength:R,size:D=100,editorClassName:I,editorStyle:F,noImageResize:B,...H}=r,[{wrapId:j,wrapProps:G,labelProps:ge,...P},q]=Yu(H),V=C.useMemo(()=>e==="ReadOnly"||_,[e,_]),Q=C.useMemo(()=>p?20:0,[p]),[ie,se]=C.useState(w==="Med"?40:50),ae=C.useMemo(()=>V?0:ie,[V,ie]),[le,fe]=C.useMemo(()=>!o||V||A==="Top"?[0,0]:[20,6],[o,V,A]),ee=C.useMemo(()=>le+fe,[le,fe]),[ne,ce]=C.useState(p),[xe,Me]=C.useState(!1),[oe,Se]=C.useState(!1),Le=C.useRef(null),We=C.useRef(0),Ve=C.useRef(0),we=C.useMemo(()=>P.label?24:0,[P.label]),_e=C.useMemo(()=>T==="Title",[T]),Ae=C.useMemo(()=>p||g||_e,[p,g,_e]),Ie=C.useMemo(()=>Ae?"fit-content":m?m+we:`calc(100% - ${we}px)`,[Ae,m,we]),je=C.useMemo(()=>{if(p){if(ne)switch(e){case"ReadOnly":return ne;case"Raw":return ne+ee;default:return ne+ae+ee}}else return},[p,ne,e,ae,ee]),it=C.useMemo(()=>{if(!(!m||m<=ae+ee))switch(e){case"ReadOnly":return m;case"Raw":return m-ee;default:return m-ae-ee}},[e,ae,ee,m]),Ue=C.useMemo(()=>{if(g&&p){const Ge=Math.min(g-ae-ee,p);return V?Ge:Ge+ae+ee}else return g||(p?void 0:`calc(100% - ${we}px)`)},[g,p,we,ae,ee,V]),tt=C.useMemo(()=>(Array.isArray(P.errorMessage)?P.errorMessage.some(Boolean):!!P.errorMessage)?"Error":e,[P.errorMessage,e]),lt=C.useCallback(Ge=>{const at=f9.sanitize(Ge),ct=document.createElement("div");return ct.innerHTML=at,new ke(ct,{readOnly:!0}).getContents()},[]),[bt,Mt]=wn(n,""),[Qe,Xe]=C.useState(()=>lt(bt));C.useEffect(()=>{Mt===void 0&&Xe(lt(bt))},[lt,Mt,bt]);const ht=C.useMemo(()=>S.jsx(AB,{htmlDelta:Qe,isReadonly:V,limit:D*Wd.KB,useError:o}),[Qe,V,D,o]),ft=C.useRef(null),Oe=C.useRef([]),[Je,gt]=C.useState(!0);C.useEffect(()=>{const Ge=setTimeout(()=>gt(!1),0);return()=>{clearTimeout(Ge),Oe.current.forEach(at=>at()),Oe.current=[]}},[]);const It=C.useCallback((Ge,at)=>{if(!p)return at;const ct=g?g-ae-ee:p,xt=Math.max(ct,0),Nt=m?m-ae-ee:v;return Math.min(Nt,Math.max(xt,at+Ge))},[p,g,ae,ee,m,v]),Et=C.useCallback(Ge=>{if(!xe||!p)return;const at=Ge.clientY-Ve.current,ct=It(at,We.current);ne!==ct&&ce(ct),Ge.preventDefault(),Ge.stopPropagation()},[xe,p,It,ne]),Dt=C.useCallback(Ge=>{Me(!1),Se(!1),document.removeEventListener("mousemove",Et),document.removeEventListener("mouseup",Dt),Ge.preventDefault(),Ge.stopPropagation()},[Et]),Xt=C.useCallback(Ge=>{if(!p)return;if(Ge.detail===2){ce(p);return}ne===void 0?(ce(p),We.current=p):We.current=ne,Me(!0),Se(!0),Ve.current=Ge.clientY;const at=xt=>{if(!p)return;const Nt=xt.clientY-Ve.current,Bt=It(Nt,We.current);ce(Bt),xt.preventDefault(),xt.stopPropagation()},ct=xt=>{Me(!1),Se(!1),document.removeEventListener("mousemove",at),document.removeEventListener("mouseup",ct),xt.preventDefault(),xt.stopPropagation()};document.addEventListener("mousemove",at),document.addEventListener("mouseup",ct),Ge.preventDefault(),Ge.stopPropagation()},[p,ne,It]),Wt=C.useCallback((Ge,at,ct,xt)=>{if(ct!=="user"&&ct!=="api")return;const Nt=xt.getContents(),Bt=xt.getLength()-1,qt=R!==void 0&&Bt>R,Yt=te=>te.replace(/\s{2,}/g,ye=>" ".repeat(ye.length)),ir=Ge.replace(/<p><br><\/p>/gi,"").trim(),jt=Yt(ir);if(!qt){Xe(Nt),Mt==null||Mt(jt);return}const xr=hr(Nt,R);Xe(xr);const jr=new ke(document.createElement("div"));jr.setContents(xr);const Ze=Yt(jr.root.innerHTML.replace(/<p><br><\/p>/gi,"").trim());Mt==null||Mt(Ze)},[R,Mt]),hr=(Ge,at)=>{var Nt,Bt,qt;if(!Ge.ops)return Ge;const ct=new rr;let xt=0;for(const Yt of Ge.ops){if(xt>=at)break;if(Yt.insert&&typeof Yt.insert=="string"){const ir=Yt.insert,jt=at-xt;if(ir.length<=jt)(Nt=ct.ops)==null||Nt.push(Yt),xt+=ir.length;else{const xr={...Yt,insert:ir.substring(0,jt)};(Bt=ct.ops)==null||Bt.push(xr),xt+=jt;break}}else xt<at&&((qt=ct.ops)==null||qt.push(Yt),xt+=1)}return ct},dr=C.useCallback(Ge=>{var Nt,Bt;const at=Ge.getEditor().container;if(!at)return null;const ct=(Nt=at.closest(".AEditorContainer"))==null?void 0:Nt.querySelector(".ql-toolbar");return ct||((Bt=at.parentElement)==null?void 0:Bt.querySelector(".ql-toolbar"))||null},[]),cr=C.useCallback((Ge,at,ct,xt)=>{if(!Ge)return;const Nt=ct;Ge.addEventListener(at,Nt,xt),Oe.current.push(()=>Ge.removeEventListener(at,Nt,xt))},[]),Te=C.useCallback((Ge,at,ct)=>{const xt=at.getFormat();Ge.forEach(Nt=>{if(xt[Nt]){const Bt=xt[Nt],qt=`.ql-${Nt}`,Yt=ct.querySelector(`${qt} .ql-picker-label`),ir=ct.querySelectorAll(`${qt} .ql-picker-item`),jt=Array.from(ir).find(xr=>xr.getAttribute("data-value")===Bt);jt&&(jt.classList.add("ql-selected"),Yt==null||Yt.classList.add("ql-active"))}})},[]),ue=C.useCallback(Ge=>{if(!Ge.length)return;const xt=Ge[0].target.getBoundingClientRect(),Nt=Math.ceil(xt.height);se(Bt=>Math.abs(Bt-Nt)<.1?Bt:Nt)},[]),st=C.useCallback((Ge,at)=>{if(Ge.key!=="Backspace")return;const ct=at.getSelection(!1);if(!ct||ct.length>0)return;const xt=ct.index;if(xt<=0)return;const[Nt]=at.getLine(xt);if(Nt&&xt===at.getIndex(Nt)||at.getFormat(xt,1).link)return;const Bt=at.getFormat(xt-1,1);if(Bt.link){Ge.preventDefault();let qt=xt-1;for(;qt>0&&at.getFormat(qt-1,1).link===Bt.link;)qt--;const[Yt]=at.scroll.descendant(ir=>{var jt;return((jt=ir==null?void 0:ir.statics)==null?void 0:jt.blotName)==="link"},qt);if(Yt!=null&&Yt.domNode){const ir=(Yt.domNode.textContent||"").length;at.removeFormat(qt,ir)}}},[]),ze=C.useCallback(()=>({clipboard:{matchers:[["img",()=>!1],["table",()=>!1],["iframe",()=>!1],["video",()=>!1],["h1, h2, h3, h4, h5, h6",()=>!1],["blockquote",()=>!1],["hr",()=>!1]]},copy:{isTitleMode:!0},keyboard:{bindings:{enter:{key:"Enter",handler:()=>!1},newline:{key:"Enter",shiftKey:!0,handler:()=>!1},tab:{key:"Tab",handler:()=>!1},"remove-newline":{key:"Backspace",collapsed:!0,format:["blockquote","list","code-block"],offset:0,handler:function(Ge){const{blockquote:at,list:ct,["code-block"]:xt}=Ge.getFormat();return at||ct||xt?(Ge.format("blockquote",!1),Ge.format("list",!1),Ge.format("code-block",!1),!1):!0}}}},magicUrl:!0,toolbar:{container:[["bold","italic","underline","strike",{color:[]},{background:[]},"clean"]]}}),[]),vt=C.useCallback(()=>({clipboard:{},copy:{},keyboard:{},magicUrl:!0,imageCompress:{quality:Wd.QUALITY,imageType:"image/jpeg",maxWidth:1500,maxHeight:1500,debug:!1,handleOnPaste:Ge=>{var at,ct;try{const xt=(at=Ge.clipboardData)==null?void 0:at.items;if(!xt)return!0;const Nt=Array.from(xt).some(Yt=>{const ir=Yt.type.toLowerCase();return ir.includes("Excel")||ir.includes("text/html")}),Bt=(ct=Ge.clipboardData)==null?void 0:ct.getData("text/html"),qt=Bt&&(Bt.includes("<table")||Bt.includes("<tbody")||Bt.includes("<td"));return!(Nt||qt)}catch(xt){return console.warn("Error in handleOnPaste:",xt),!0}},insertIntoEditor:(Ge,at,ct)=>{Wd.IMAGE_SIZES.has(Ge)||Wd.IMAGE_SIZES.set(Ge,at.size);const xt=ct.getSelection();xt&&ct.insertEmbed(xt.index,"image",Ge,ke.sources.USER)}},...!V&&{...!B&&{resize:{}},table:!1,tableUp:{fullSwitch:!1,icon:Np.renderToString(S.jsx(gn,{icon:"Table",size:w==="Med"?"sm":"md",strokeWidth:2.5})),resize:zP,resizeScale:$P,customSelect:YP,selection:UP,fixUnusuaDeletelTable:!1,selectionOptions:{tableMenu:jP,tableMenuOptions:{localstorageKey:"used-color",tipText:!0,tools:[Xr.InsertCaption,Xr.InsertTop,Xr.InsertRight,Xr.InsertBottom,Xr.InsertLeft,Xr.Break,Xr.MergeCell,Xr.SplitCell,Xr.Break,Xr.DeleteRow,Xr.DeleteColumn,Xr.DeleteTable,Xr.Break,Xr.BackgroundColor,Xr.BorderColor,Xr.Break,Xr.CopyCell,Xr.CutCell,Xr.Break,Xr.SwitchWidth]}},texts:{fullCheckboxText:wr.AEditor["Insert Full Width Table"],customBtnText:wr.AEditor.Custom,confirmText:wr.AEditor.Confirm,cancelText:wr.AEditor.Cancel,rowText:wr.AEditor.Row,colText:wr.AEditor.Column,CopyCell:wr.AEditor["Copy Cell"],CutCell:wr.AEditor["Cut Cell"],notPositiveNumberError:wr.AEditor["Not Positive Number Error"],custom:wr.AEditor.Custom,clear:wr.AEditor.Clear,transparent:wr.AEditor.Transparent,perWidthInsufficient:wr.AEditor.perWidthInsufficient,InsertTop:wr.AEditor["Insert Row Top"],InsertRight:wr.AEditor["Insert Column Right"],InsertBottom:wr.AEditor["Insert Row Bottom"],InsertLeft:wr.AEditor["Insert Column Left"],MergeCell:wr.AEditor["Merge Cell"],SplitCell:wr.AEditor["Split Cell"],DeleteRow:wr.AEditor["Delete Row"],DeleteColumn:wr.AEditor["Delete Column"],DeleteTable:wr.AEditor["Delete Table"],BackgroundColor:wr.AEditor["Set Background Color"],BorderColor:wr.AEditor["Set Border Color"],SwitchWidth:wr.AEditor["Switch Table Width"],InsertCaption:wr.AEditor["Insert Table Caption"]}},toolbar:{container:[[{header:[1,2,3,!1,4]}],["bold","italic","underline","strike","blockquote","divider",{[Qp.toolName]:[]},{color:[]},{background:[]}],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"},{align:[]}],["link","image","video"],["clean"]],handlers:{divider:function(){const Ge=this.quill,at=Ge.getSelection(!0);if(!at)return;const ct=Math.min(at.index+1,Ge.getLength()-1);Ge.insertEmbed(ct,"divider",!0,ke.sources.USER),setTimeout(()=>Ge.setSelection(Math.min(ct+1,Ge.getLength()-1),0,ke.sources.SILENT),0)}}}}}),[V,B,w]),_t=C.useMemo(()=>_e?ze():vt(),[_e,ze,vt]),Tt=C.useCallback(Ge=>{if(!Ge)return;const at=Ge.getEditor();if(!at)return;const ct=at.root,xt=dr(Ge);ct&&I&&ct.classList.add(...I.split(" ")),ct&&F&&Object.entries(F).forEach(([Bt,qt])=>{const Yt=Bt.replace(/([A-Z])/g,ir=>`-${ir[0].toLowerCase()}`);ct.style[Yt]=qt}),cr(ct,"keydown",Bt=>st(Bt,at));const Nt=new ResizeObserver(ue);if(xt){Nt.observe(xt),Oe.current.push(()=>Nt.disconnect());const Bt=["header","color","background"];Bt.forEach(qt=>{const Yt=xt.querySelector(`.ql-${qt} .ql-picker-label`);Yt&&cr(Yt,"click",()=>Te(Bt,at,xt))})}},[dr,I,F,cr,ue,st,Te]),Ut=C.useCallback(Ge=>{if(Oe.current.forEach(ct=>ct()),Oe.current=[],ft.current=Ge,!Ge){Hc.isFunction(t)?t(null):t!=null&&t.current&&(t.current=null);return}const at=Ge;at.copyContent=ct=>{Ge.getEditor().getModule("copy").copyContent(ct)},Hc.isFunction(t)?t(at):t&&(t.current=at),Tt(Ge)},[t,Tt]);return S.jsx(Yc,{wrapId:j,...P,label:S.jsxs(On,{style:{gap:4},children:[P.label,A==="Top"&&ht]}),labelProps:{...ge,style:{minHeight:P.label?20:void 0,marginBottom:P.label?4:0,...ge==null?void 0:ge.style}},wrapProps:{...G,className:Ye.clsx(G==null?void 0:G.className,!Ae&&Ni.AEditorWrapper),style:{...G==null?void 0:G.style,height:Ie}},children:S.jsxs(Jr,{...q,className:Ye.clsx(q.className,Ni.AEditorContainer,Je&&"NoTransition"),style:{...h,height:je,minHeight:Ue},children:[S.jsx(yg,{...d,ref:Ut,preserveWhitespace:!0,modules:_t,placeholder:i,readOnly:V,theme:"snow",value:Qe,className:Ye.clsx(d==null?void 0:d.className,Ni.AEditor,Ni[tt],_e&&"Title",Je&&"NoTransition"),style:{...d==null?void 0:d.style,maxHeight:it?it+ae:void 0,"--icon-size":`${w==="Med"?20:24}px`,"--editor-padding":_e?"8px 12px":"12px","--toolbar-padding":`${w==="Med"?7.5:12.5}px`,"--content-height":_e?"fit-content":ne?`${ne}px`:"100%","--content-max-height":it?`${it}px`:"100%","--default-text":`'${wr.AEditor.Default}'`,"--visit-url-text":`'${wr.AEditor["Visit URL:"]}'`,"--enter-link-text":`'${wr.AEditor["Enter link:"]}'`,"--enter-video-text":`'${wr.AEditor["Enter video:"]}'`,"--edit-text":`'${wr.AEditor.Edit}'`,"--save-text":`'${wr.AEditor.Save}'`,"--remove-text":`'${wr.AEditor.Remove}'`,"--arrow-background":`url("data:image/svg+xml,${encodeURIComponent(Np.renderToString(S.jsx(gn,{icon:"EditorArrow"})))}`,"--title-color-picker-row":_e?1:4,"--title-header-font-size":`${w==="Med"?12:16}px`},onChange:Wt}),p&&S.jsxs(S.Fragment,{children:[S.jsx("div",{ref:Le,className:Ye.clsx(Ni.Resizer,Je&&"NoTransition"),style:{height:Q,bottom:o&&!V?ee:0},onMouseDown:Xt}),S.jsx("div",{children:`${Math.round(ne)}px`,className:Ye.clsx(Ni.Indicator,"NoSelect","Label1",Je&&"NoTransition"),style:{height:Q,bottom:o&&!V?ee:0,display:oe?"flex":"none"}})]}),S.jsx("div",{children:ht,className:Ye.clsx(Ni.LimitContainer,"NoSelect",Je&&"NoTransition"),style:{marginTop:fe,minHeight:le,display:A==="Bottom"?"flex":"none"}})]})})},AB=({htmlDelta:r,limit:e,useError:t,isReadonly:n})=>{const[o,i]=wn(t,!1),a=C.useMemo(()=>SB.calculateTextSize(r),[r]);return C.useEffect(()=>{i&&i(a>e)},[a,e,i]),!t||n?null:S.jsxs(tl,{className:Ni.Limit,children:["(",S.jsx("span",{className:Ye.clsx(o&&Ni.Error),children:Hu(a)})," / ",Hu(e),")"]})};function EB(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return C.useMemo(()=>n=>{e.forEach(o=>o(n))},e)}const wg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function vf(r){const e=Object.prototype.toString.call(r);return e==="[object Window]"||e==="[object global]"}function Fv(r){return"nodeType"in r}function Bi(r){var e,t;return r?vf(r)?r:Fv(r)&&(e=(t=r.ownerDocument)==null?void 0:t.defaultView)!=null?e:window:window}function jv(r){const{Document:e}=Bi(r);return r instanceof e}function Ph(r){return vf(r)?!1:r instanceof Bi(r).HTMLElement}function HC(r){return r instanceof Bi(r).SVGElement}function yf(r){return r?vf(r)?r.document:Fv(r)?jv(r)?r:Ph(r)||HC(r)?r.ownerDocument:document:document:document}const sl=wg?C.useLayoutEffect:C.useEffect;function Hv(r){const e=C.useRef(r);return sl(()=>{e.current=r}),C.useCallback(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e.current==null?void 0:e.current(...n)},[])}function TB(){const r=C.useRef(null),e=C.useCallback((n,o)=>{r.current=setInterval(n,o)},[]),t=C.useCallback(()=>{r.current!==null&&(clearInterval(r.current),r.current=null)},[]);return[e,t]}function Rh(r,e){e===void 0&&(e=[r]);const t=C.useRef(r);return sl(()=>{t.current!==r&&(t.current=r)},e),t}function Bh(r,e){const t=C.useRef();return C.useMemo(()=>{const n=r(t.current);return t.current=n,n},[...e])}function tg(r){const e=Hv(r),t=C.useRef(null),n=C.useCallback(o=>{o!==t.current&&(e==null||e(o,t.current)),t.current=o},[]);return[t,n]}function J1(r){const e=C.useRef();return C.useEffect(()=>{e.current=r},[r]),e.current}let Am={};function Fh(r,e){return C.useMemo(()=>{if(e)return e;const t=Am[r]==null?0:Am[r]+1;return Am[r]=t,r+"-"+t},[r,e])}function zC(r){return function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return n.reduce((i,a)=>{const c=Object.entries(a);for(const[d,h]of c){const g=i[d];g!=null&&(i[d]=g+r*h)}return i},{...e})}}const rf=zC(1),rg=zC(-1);function RB(r){return"clientX"in r&&"clientY"in r}function zv(r){if(!r)return!1;const{KeyboardEvent:e}=Bi(r.target);return e&&r instanceof e}function kB(r){if(!r)return!1;const{TouchEvent:e}=Bi(r.target);return e&&r instanceof e}function Q1(r){if(kB(r)){if(r.touches&&r.touches.length){const{clientX:e,clientY:t}=r.touches[0];return{x:e,y:t}}else if(r.changedTouches&&r.changedTouches.length){const{clientX:e,clientY:t}=r.changedTouches[0];return{x:e,y:t}}}return RB(r)?{x:r.clientX,y:r.clientY}:null}const kh=Object.freeze({Translate:{toString(r){if(!r)return;const{x:e,y:t}=r;return"translate3d("+(e?Math.round(e):0)+"px, "+(t?Math.round(t):0)+"px, 0)"}},Scale:{toString(r){if(!r)return;const{scaleX:e,scaleY:t}=r;return"scaleX("+e+") scaleY("+t+")"}},Transform:{toString(r){if(r)return[kh.Translate.toString(r),kh.Scale.toString(r)].join(" ")}},Transition:{toString(r){let{property:e,duration:t,easing:n}=r;return e+" "+t+"ms "+n}}}),Vb="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function IB(r){return r.matches(Vb)?r:r.querySelector(Vb)}const MB={display:"none"};function LB(r){let{id:e,value:t}=r;return C.createElement("div",{id:e,style:MB},t)}function DB(r){let{id:e,announcement:t,ariaLiveType:n="assertive"}=r;const o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return C.createElement("div",{id:e,style:o,role:"status","aria-live":n,"aria-atomic":!0},t)}function OB(){const[r,e]=C.useState("");return{announce:C.useCallback(n=>{n!=null&&e(n)},[]),announcement:r}}const $C=C.createContext(null);function NB(r){const e=C.useContext($C);C.useEffect(()=>{if(!e)throw new Error("useDndMonitor must be used within a children of <DndContext>");return e(r)},[r,e])}function PB(){const[r]=C.useState(()=>new Set),e=C.useCallback(n=>(r.add(n),()=>r.delete(n)),[r]);return[C.useCallback(n=>{let{type:o,event:i}=n;r.forEach(a=>{var c;return(c=a[o])==null?void 0:c.call(a,i)})},[r]),e]}const BB={draggable:`
|
358
|
+
`,attributes:{[$e.tableCellInner]:d}}),new Sp(h)}handleBorderNoneStyles(t,n){if(!(n!=null&&n.style))return;["border",...["top","right","bottom","left"].flatMap(i=>[`border-${i}`,`border-${i}-style`])].filter(i=>t.style[i]==="none").forEach(i=>n.style=n.style.replaceAll(new RegExp(`${i}:none;?`,"g"),""))}convert({html:t,text:n},o={}){if(t){const c=new DOMParser().parseFromString(t,"text/html");this.preprocessTableHtml(c),this.mergeClassStylesToInline(c),t=c.body.innerHTML}const i=super.convert({html:t,text:n},o);if(o[$e.tableCellInner])for(const a of i.ops){if(Hc.isObject(a.insert)&&a.insert[$e.tableCol]){a.insert="";continue}a.attributes||(a.attributes={}),a.attributes[$e.tableCellInner]=o[$e.tableCellInner]}return i}parseStyleWithFilter(t,n){if(!t)return{};const o={};let i="",a="",c=!0,d=0;for(let h=0;h<t.length;h++){const g=t[h];g===":"&&c?(i=t.substring(d,h).trim(),d=h+1,c=!1):g===";"&&(!c&&i&&(a=t.substring(d,h).trim(),(!n||n(i))&&(o[i]=a)),d=h+1,c=!0)}return!c&&i&&d<t.length&&(a=t.substring(d).trim(),(!n||n(i))&&(o[i]=a)),o}mergeClassStylesToInline(t){var n;try{const o=t.querySelectorAll("td[class], th[class]");if(o.length===0)return;const i=new Set;for(const g of o)(g.getAttribute("class")||"").split(/\s+/).filter(Boolean).forEach(p=>i.add(p));if(i.size===0)return;const a=t.querySelectorAll("style");if(a.length===0)return;const c=Array.from(a).map(g=>g.textContent||"").join("");if(!c)return;const d={},h=g=>this.STYLE_PROPERTIES.some(m=>g.startsWith(m));for(const g of i){const m=new RegExp(`\\.${g}[^{]*{([^}]*)}`,"g");let p;for(;(p=m.exec(c))!==null;){const v=p[1],w=this.parseStyleWithFilter(v),T={};let _=!1;for(const A in w)h(A)&&(T[A]=w[A],_=!0);_&&(d[g]=T)}}if(Object.keys(d).length===0)return;for(let g=0;g<o.length;g++){const m=o[g],p=((n=m.getAttribute("class"))==null?void 0:n.split(/\s+/).filter(Boolean))||[],v=m.getAttribute("style")||"",w=this.parseStyleWithFilter(v);let T=!1;for(const _ of p){const A=d[_];if(A)for(const R in A)w[R]||(w[R]=A[R],T=!0)}if(T){let _="";for(const A in w)_+=A+":"+w[A]+";";_&&m.setAttribute("style",_)}m.removeAttribute("class")}}catch(o){console.error("스타일 처리 오류",o)}}matchCaption(t,n){for(let o=0;o<n.ops.length;o++){const i=n.ops[o],{attributes:a}=i;a&&a[$e.tableCaption]&&(a[$e.tableCaption].tableId=this.tableId,i.attributes=a)}return n}preprocessTableHtml(t){try{const n=t.querySelectorAll("table");for(const o of Array.from(n))o.querySelectorAll("tr").length!==0&&(this.cleanupTableStyles(o),this.applyRowspanHeights(o),this.fixRowspanCells(o));this.mergeClassStylesToInline(t)}catch(n){console.error("테이블 전처리 오류",n)}}cleanupTableStyles(t){const n=t.querySelectorAll("td, th, tr, colgroup");for(const o of n){const i=o;i.removeAttribute("height");const a=i.getAttribute("style");if(a){const c=a.replace(/height\s*:[^;]*;?/gi,"").trim();i.setAttribute("style",c||"")}}}applyRowspanHeights(t){const o=t.querySelectorAll("td, th");t.style.borderCollapse="collapse";for(const i of o){const a=i,d=parseInt(a.getAttribute("rowspan")||"1")*24,h=a.getAttribute("style")||"",g=h+(h?"; ":"")+`height: ${d}px`;a.setAttribute("style",g)}}fixRowspanCells(t){const n=t.querySelectorAll("tr");if(n.length<=1)return;const o=[],i=new Map;for(let a=0;a<n.length;a++){const d=n[a].querySelectorAll("td, th");if(d.length===0&&a<n.length-1){o.push(a);continue}for(const h of Array.from(d)){const g=parseInt(h.getAttribute("rowspan")||"1");if(g>1)for(let m=1;m<g;m++){const p=a+m;if(p>=n.length)break;i.has(p)||i.set(p,[]),i.get(p).push(h)}}}o.length>0&&this.processEmptyRows(o,n,i)}processEmptyRows(t,n,o){for(const i of t){const a=o.get(i);if(a)for(const c of a){const d=parseInt(c.getAttribute("rowspan")||"1");d>1&&c.setAttribute("rowspan",(d-1).toString())}}for(const i of t.reverse())n[i].remove()}}class CB extends Qp{fixUnusuaDeletelTable(){}mergeCells(e){if(!this.table||!this.tableSelection)return;const t=this.tableSelection.selectedTds||[];if(t.length>1&&(e=t),!e||e.length<=1)return;const n=Yn(e[0],$e.tableMain),o=n.getRows(),i=e.map(p=>{if(!p||!p.parent||!p.parent.domNode)return null;const v=p.parent.domNode;if(!v)return null;const w=o.findIndex(A=>A.rowId===p.rowId);if(w===-1)return null;const T=p.getColumnIndex();if(T===-1)return null;const _=v.getBoundingClientRect();return!_||_.width===0||_.height===0?null:{td:p,rowIndex:w,colIndex:T,rowspan:p.rowspan,colspan:p.colspan,visualLeft:_.left,visualRight:_.right,visualTop:_.top,visualBottom:_.bottom}}).filter(Boolean);if(i.length<=1)return;i.sort((p,v)=>p.visualTop-v.visualTop||p.visualLeft-v.visualLeft);const a=i[0],c=a.td,d=Math.max(...i.map(p=>p.rowIndex+p.rowspan-1)),h=Math.max(...i.map(p=>p.colIndex+p.colspan-1)),g=d-a.rowIndex+1,m=h-a.colIndex+1;for(const p of i)p.td!==c&&(p.td.moveChildren(c),p.td.parent.remove());c.rowspan=g,c.colspan=m,this.fixTableByRemove(n)}}ke.register({"modules/imageCompress":Eh,"modules/resize":jC,"modules/tableUp":CB,"modules/magicUrl":iP,"formats/divider":K1,"modules/clipboard":wB,"modules/copy":iB},!0);const Wd={KB:1024,QUALITY:.7,IMAGE_SIZES:new Map},SB={getCharLength:r=>Array.from(r).length,calculateTextSize:r=>{if(!r.ops||r.ops.length===0)return 0;let e=0;for(const t of r.ops)if(typeof t.insert=="string")e+=new TextEncoder().encode(t.insert).length-1;else if(typeof t.insert=="object"&&t.insert.image){const n=t.insert.image;n&&(e+=Wd.IMAGE_SIZES.get(n)||Math.ceil(n.length*Wd.QUALITY))}return e}},_B=r=>{const{type:e="Primary",editorRef:t,useValue:n,useError:o,placeholder:i,tabIndex:a,autoFocus:c,editorProps:d,style:h,minHeight:g,maxHeight:m,contentHeight:p,contentMaxHeight:v=1e3,toolbarSize:w="Med",toolbarType:T="Default",readOnly:_,limitPosition:A="Bottom",maxLength:R,size:D=100,editorClassName:I,editorStyle:F,noImageResize:B,...H}=r,[{wrapId:j,wrapProps:G,labelProps:ge,...P},q]=Yu(H),V=C.useMemo(()=>e==="ReadOnly"||_,[e,_]),Q=C.useMemo(()=>p?20:0,[p]),[ie,se]=C.useState(w==="Med"?40:50),ae=C.useMemo(()=>V?0:ie,[V,ie]),[le,fe]=C.useMemo(()=>!o||V||A==="Top"?[0,0]:[20,6],[o,V,A]),ee=C.useMemo(()=>le+fe,[le,fe]),[ne,ce]=C.useState(p),[xe,Me]=C.useState(!1),[oe,Se]=C.useState(!1),Le=C.useRef(null),We=C.useRef(0),Ve=C.useRef(0),we=C.useMemo(()=>P.label?24:0,[P.label]),_e=C.useMemo(()=>T==="Title",[T]),Ae=C.useMemo(()=>p||g||_e,[p,g,_e]),Ie=C.useMemo(()=>Ae?"fit-content":m?m+we:`calc(100% - ${we}px)`,[Ae,m,we]),je=C.useMemo(()=>{if(p){if(ne)switch(e){case"ReadOnly":return ne;case"Raw":return ne+ee;default:return ne+ae+ee}}else return},[p,ne,e,ae,ee]),it=C.useMemo(()=>{if(!(!m||m<=ae+ee))switch(e){case"ReadOnly":return m;case"Raw":return m-ee;default:return m-ae-ee}},[e,ae,ee,m]),Ue=C.useMemo(()=>{if(g&&p){const Ge=Math.min(g-ae-ee,p);return V?Ge:Ge+ae+ee}else return g||(p?void 0:`calc(100% - ${we}px)`)},[g,p,we,ae,ee,V]),tt=C.useMemo(()=>(Array.isArray(P.errorMessage)?P.errorMessage.some(Boolean):!!P.errorMessage)?"Error":e,[P.errorMessage,e]),lt=C.useCallback(Ge=>{let st=Ge;st=f9.sanitize(Ge);const ct=document.createElement("div");return ct.innerHTML=st,new ke(ct,{readOnly:!0}).getContents()},[]),[bt,Mt]=wn(n,""),[Qe,Xe]=C.useState(()=>lt(bt));C.useEffect(()=>{Mt===void 0&&Xe(lt(bt))},[lt,Mt,bt]);const ht=C.useMemo(()=>S.jsx(AB,{htmlDelta:Qe,isReadonly:V,limit:D*Wd.KB,useError:o}),[Qe,V,D,o]),ft=C.useRef(null),Oe=C.useRef([]),[Je,gt]=C.useState(!0);C.useEffect(()=>{const Ge=setTimeout(()=>gt(!1),0);return()=>{clearTimeout(Ge),Oe.current.forEach(st=>st()),Oe.current=[]}},[]);const It=C.useCallback((Ge,st)=>{if(!p)return st;const ct=g?g-ae-ee:p,xt=Math.max(ct,0),Nt=m?m-ae-ee:v;return Math.min(Nt,Math.max(xt,st+Ge))},[p,g,ae,ee,m,v]),Et=C.useCallback(Ge=>{if(!xe||!p)return;const st=Ge.clientY-Ve.current,ct=It(st,We.current);ne!==ct&&ce(ct),Ge.preventDefault(),Ge.stopPropagation()},[xe,p,It,ne]),Dt=C.useCallback(Ge=>{Me(!1),Se(!1),document.removeEventListener("mousemove",Et),document.removeEventListener("mouseup",Dt),Ge.preventDefault(),Ge.stopPropagation()},[Et]),Xt=C.useCallback(Ge=>{if(!p)return;if(Ge.detail===2){ce(p);return}ne===void 0?(ce(p),We.current=p):We.current=ne,Me(!0),Se(!0),Ve.current=Ge.clientY;const st=xt=>{if(!p)return;const Nt=xt.clientY-Ve.current,Bt=It(Nt,We.current);ce(Bt),xt.preventDefault(),xt.stopPropagation()},ct=xt=>{Me(!1),Se(!1),document.removeEventListener("mousemove",st),document.removeEventListener("mouseup",ct),xt.preventDefault(),xt.stopPropagation()};document.addEventListener("mousemove",st),document.addEventListener("mouseup",ct),Ge.preventDefault(),Ge.stopPropagation()},[p,ne,It]),Wt=C.useCallback((Ge,st,ct,xt)=>{if(ct!=="user"&&ct!=="api")return;const Nt=xt.getContents(),Bt=xt.getLength()-1,qt=R!==void 0&&Bt>R,Yt=te=>te.replace(/\s{2,}/g,ye=>" ".repeat(ye.length)),ir=Ge.replace(/<p><br><\/p>/gi,"").trim(),jt=Yt(ir);if(!qt){Xe(Nt),Mt==null||Mt(jt);return}const xr=hr(Nt,R);Xe(xr);const jr=new ke(document.createElement("div"));jr.setContents(xr);const Ze=Yt(jr.root.innerHTML.replace(/<p><br><\/p>/gi,"").trim());Mt==null||Mt(Ze)},[R,Mt]),hr=(Ge,st)=>{var Nt,Bt,qt;if(!Ge.ops)return Ge;const ct=new rr;let xt=0;for(const Yt of Ge.ops){if(xt>=st)break;if(Yt.insert&&typeof Yt.insert=="string"){const ir=Yt.insert,jt=st-xt;if(ir.length<=jt)(Nt=ct.ops)==null||Nt.push(Yt),xt+=ir.length;else{const xr={...Yt,insert:ir.substring(0,jt)};(Bt=ct.ops)==null||Bt.push(xr),xt+=jt;break}}else xt<st&&((qt=ct.ops)==null||qt.push(Yt),xt+=1)}return ct},dr=C.useCallback(Ge=>{var Nt,Bt;const st=Ge.getEditor().container;if(!st)return null;const ct=(Nt=st.closest(".AEditorContainer"))==null?void 0:Nt.querySelector(".ql-toolbar");return ct||((Bt=st.parentElement)==null?void 0:Bt.querySelector(".ql-toolbar"))||null},[]),cr=C.useCallback((Ge,st,ct,xt)=>{if(!Ge)return;const Nt=ct;Ge.addEventListener(st,Nt,xt),Oe.current.push(()=>Ge.removeEventListener(st,Nt,xt))},[]),Te=C.useCallback((Ge,st,ct)=>{const xt=st.getFormat();Ge.forEach(Nt=>{if(xt[Nt]){const Bt=xt[Nt],qt=`.ql-${Nt}`,Yt=ct.querySelector(`${qt} .ql-picker-label`),ir=ct.querySelectorAll(`${qt} .ql-picker-item`),jt=Array.from(ir).find(xr=>xr.getAttribute("data-value")===Bt);jt&&(jt.classList.add("ql-selected"),Yt==null||Yt.classList.add("ql-active"))}})},[]),ue=C.useCallback(Ge=>{if(!Ge.length)return;const xt=Ge[0].target.getBoundingClientRect(),Nt=Math.ceil(xt.height);se(Bt=>Math.abs(Bt-Nt)<.1?Bt:Nt)},[]),at=C.useCallback((Ge,st)=>{if(Ge.key!=="Backspace")return;const ct=st.getSelection(!1);if(!ct||ct.length>0)return;const xt=ct.index;if(xt<=0)return;const[Nt]=st.getLine(xt);if(Nt&&xt===st.getIndex(Nt)||st.getFormat(xt,1).link)return;const Bt=st.getFormat(xt-1,1);if(Bt.link){Ge.preventDefault();let qt=xt-1;for(;qt>0&&st.getFormat(qt-1,1).link===Bt.link;)qt--;const[Yt]=st.scroll.descendant(ir=>{var jt;return((jt=ir==null?void 0:ir.statics)==null?void 0:jt.blotName)==="link"},qt);if(Yt!=null&&Yt.domNode){const ir=(Yt.domNode.textContent||"").length;st.removeFormat(qt,ir)}}},[]),ze=C.useCallback(()=>({clipboard:{matchers:[["img",()=>!1],["table",()=>!1],["iframe",()=>!1],["video",()=>!1],["h1, h2, h3, h4, h5, h6",()=>!1],["blockquote",()=>!1],["hr",()=>!1]]},copy:{isTitleMode:!0},keyboard:{bindings:{enter:{key:"Enter",handler:()=>!1},newline:{key:"Enter",shiftKey:!0,handler:()=>!1},tab:{key:"Tab",handler:()=>!1},"remove-newline":{key:"Backspace",collapsed:!0,format:["blockquote","list","code-block"],offset:0,handler:function(Ge){const{blockquote:st,list:ct,["code-block"]:xt}=Ge.getFormat();return st||ct||xt?(Ge.format("blockquote",!1),Ge.format("list",!1),Ge.format("code-block",!1),!1):!0}}}},magicUrl:!0,toolbar:{container:[["bold","italic","underline","strike",{color:[]},{background:[]},"clean"]]}}),[]),vt=C.useCallback(()=>({clipboard:{},copy:{},keyboard:{},magicUrl:!0,imageCompress:{quality:Wd.QUALITY,imageType:"image/jpeg",maxWidth:1500,maxHeight:1500,debug:!1,handleOnPaste:Ge=>{var st,ct;try{const xt=(st=Ge.clipboardData)==null?void 0:st.items;if(!xt)return!0;const Nt=Array.from(xt).some(Yt=>{const ir=Yt.type.toLowerCase();return ir.includes("Excel")||ir.includes("text/html")}),Bt=(ct=Ge.clipboardData)==null?void 0:ct.getData("text/html"),qt=Bt&&(Bt.includes("<table")||Bt.includes("<tbody")||Bt.includes("<td"));return!(Nt||qt)}catch(xt){return console.warn("Error in handleOnPaste:",xt),!0}},insertIntoEditor:(Ge,st,ct)=>{Wd.IMAGE_SIZES.has(Ge)||Wd.IMAGE_SIZES.set(Ge,st.size);const xt=ct.getSelection();xt&&ct.insertEmbed(xt.index,"image",Ge,ke.sources.USER)}},...!V&&{...!B&&{resize:{}},table:!1,tableUp:{fullSwitch:!1,icon:Np.renderToString(S.jsx(gn,{icon:"Table",size:w==="Med"?"sm":"md",strokeWidth:2.5})),resize:zP,resizeScale:$P,customSelect:YP,selection:UP,fixUnusuaDeletelTable:!1,selectionOptions:{tableMenu:jP,tableMenuOptions:{localstorageKey:"used-color",tipText:!0,tools:[Xr.InsertCaption,Xr.InsertTop,Xr.InsertRight,Xr.InsertBottom,Xr.InsertLeft,Xr.Break,Xr.MergeCell,Xr.SplitCell,Xr.Break,Xr.DeleteRow,Xr.DeleteColumn,Xr.DeleteTable,Xr.Break,Xr.BackgroundColor,Xr.BorderColor,Xr.Break,Xr.CopyCell,Xr.CutCell,Xr.Break,Xr.SwitchWidth]}},texts:{fullCheckboxText:wr.AEditor["Insert Full Width Table"],customBtnText:wr.AEditor.Custom,confirmText:wr.AEditor.Confirm,cancelText:wr.AEditor.Cancel,rowText:wr.AEditor.Row,colText:wr.AEditor.Column,CopyCell:wr.AEditor["Copy Cell"],CutCell:wr.AEditor["Cut Cell"],notPositiveNumberError:wr.AEditor["Not Positive Number Error"],custom:wr.AEditor.Custom,clear:wr.AEditor.Clear,transparent:wr.AEditor.Transparent,perWidthInsufficient:wr.AEditor.perWidthInsufficient,InsertTop:wr.AEditor["Insert Row Top"],InsertRight:wr.AEditor["Insert Column Right"],InsertBottom:wr.AEditor["Insert Row Bottom"],InsertLeft:wr.AEditor["Insert Column Left"],MergeCell:wr.AEditor["Merge Cell"],SplitCell:wr.AEditor["Split Cell"],DeleteRow:wr.AEditor["Delete Row"],DeleteColumn:wr.AEditor["Delete Column"],DeleteTable:wr.AEditor["Delete Table"],BackgroundColor:wr.AEditor["Set Background Color"],BorderColor:wr.AEditor["Set Border Color"],SwitchWidth:wr.AEditor["Switch Table Width"],InsertCaption:wr.AEditor["Insert Table Caption"]}},toolbar:{container:[[{header:[1,2,3,!1,4]}],["bold","italic","underline","strike","blockquote","divider",{[Qp.toolName]:[]},{color:[]},{background:[]}],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"},{align:[]}],["link","image","video"],["clean"]],handlers:{divider:function(){const Ge=this.quill,st=Ge.getSelection(!0);if(!st)return;const ct=Math.min(st.index+1,Ge.getLength()-1);Ge.insertEmbed(ct,"divider",!0,ke.sources.USER),setTimeout(()=>Ge.setSelection(Math.min(ct+1,Ge.getLength()-1),0,ke.sources.SILENT),0)}}}}}),[V,B,w]),_t=C.useMemo(()=>_e?ze():vt(),[_e,ze,vt]),Tt=C.useCallback(Ge=>{if(!Ge)return;const st=Ge.getEditor();if(!st)return;const ct=st.root,xt=dr(Ge);ct&&I&&ct.classList.add(...I.split(" ")),ct&&F&&Object.entries(F).forEach(([Bt,qt])=>{const Yt=Bt.replace(/([A-Z])/g,ir=>`-${ir[0].toLowerCase()}`);ct.style[Yt]=qt}),cr(ct,"keydown",Bt=>at(Bt,st));const Nt=new ResizeObserver(ue);if(xt){Nt.observe(xt),Oe.current.push(()=>Nt.disconnect());const Bt=["header","color","background"];Bt.forEach(qt=>{const Yt=xt.querySelector(`.ql-${qt} .ql-picker-label`);Yt&&cr(Yt,"click",()=>Te(Bt,st,xt))})}},[dr,I,F,cr,ue,at,Te]),Ut=C.useCallback(Ge=>{if(Oe.current.forEach(ct=>ct()),Oe.current=[],ft.current=Ge,!Ge){Hc.isFunction(t)?t(null):t!=null&&t.current&&(t.current=null);return}const st=Ge;st.copyContent=ct=>{Ge.getEditor().getModule("copy").copyContent(ct)},Hc.isFunction(t)?t(st):t&&(t.current=st),Tt(Ge)},[t,Tt]);return S.jsx(Yc,{wrapId:j,...P,label:S.jsxs(On,{style:{gap:4},children:[P.label,A==="Top"&&ht]}),labelProps:{...ge,style:{minHeight:P.label?20:void 0,marginBottom:P.label?4:0,...ge==null?void 0:ge.style}},wrapProps:{...G,className:Ye.clsx(G==null?void 0:G.className,!Ae&&Ni.AEditorWrapper),style:{...G==null?void 0:G.style,height:Ie}},children:S.jsxs(Jr,{...q,className:Ye.clsx(q.className,Ni.AEditorContainer,Je&&"NoTransition"),style:{...h,height:je,minHeight:Ue},children:[S.jsx(yg,{...d,ref:Ut,preserveWhitespace:!0,modules:_t,placeholder:i,readOnly:V,theme:"snow",value:Qe,className:Ye.clsx(d==null?void 0:d.className,Ni.AEditor,Ni[tt],_e&&"Title",Je&&"NoTransition"),style:{...d==null?void 0:d.style,maxHeight:it?it+ae:void 0,"--icon-size":`${w==="Med"?20:24}px`,"--editor-padding":_e?"8px 12px":"12px","--toolbar-padding":`${w==="Med"?7.5:12.5}px`,"--content-height":_e?"fit-content":ne?`${ne}px`:"100%","--content-max-height":it?`${it}px`:"100%","--default-text":`'${wr.AEditor.Default}'`,"--visit-url-text":`'${wr.AEditor["Visit URL:"]}'`,"--enter-link-text":`'${wr.AEditor["Enter link:"]}'`,"--enter-video-text":`'${wr.AEditor["Enter video:"]}'`,"--edit-text":`'${wr.AEditor.Edit}'`,"--save-text":`'${wr.AEditor.Save}'`,"--remove-text":`'${wr.AEditor.Remove}'`,"--arrow-background":`url("data:image/svg+xml,${encodeURIComponent(Np.renderToString(S.jsx(gn,{icon:"EditorArrow"})))}`,"--title-color-picker-row":_e?1:4,"--title-header-font-size":`${w==="Med"?12:16}px`},onChange:Wt}),p&&S.jsxs(S.Fragment,{children:[S.jsx("div",{ref:Le,className:Ye.clsx(Ni.Resizer,Je&&"NoTransition"),style:{height:Q,bottom:o&&!V?ee:0},onMouseDown:Xt}),S.jsx("div",{children:`${Math.round(ne)}px`,className:Ye.clsx(Ni.Indicator,"NoSelect","Label1",Je&&"NoTransition"),style:{height:Q,bottom:o&&!V?ee:0,display:oe?"flex":"none"}})]}),S.jsx("div",{children:ht,className:Ye.clsx(Ni.LimitContainer,"NoSelect",Je&&"NoTransition"),style:{marginTop:fe,minHeight:le,display:A==="Bottom"?"flex":"none"}})]})})},AB=({htmlDelta:r,limit:e,useError:t,isReadonly:n})=>{const[o,i]=wn(t,!1),a=C.useMemo(()=>SB.calculateTextSize(r),[r]);return C.useEffect(()=>{i&&i(a>e)},[a,e,i]),!t||n?null:S.jsxs(tl,{className:Ni.Limit,children:["(",S.jsx("span",{className:Ye.clsx(o&&Ni.Error),children:Hu(a)})," / ",Hu(e),")"]})};function EB(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return C.useMemo(()=>n=>{e.forEach(o=>o(n))},e)}const wg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function vf(r){const e=Object.prototype.toString.call(r);return e==="[object Window]"||e==="[object global]"}function Fv(r){return"nodeType"in r}function Bi(r){var e,t;return r?vf(r)?r:Fv(r)&&(e=(t=r.ownerDocument)==null?void 0:t.defaultView)!=null?e:window:window}function jv(r){const{Document:e}=Bi(r);return r instanceof e}function Ph(r){return vf(r)?!1:r instanceof Bi(r).HTMLElement}function HC(r){return r instanceof Bi(r).SVGElement}function yf(r){return r?vf(r)?r.document:Fv(r)?jv(r)?r:Ph(r)||HC(r)?r.ownerDocument:document:document:document}const sl=wg?C.useLayoutEffect:C.useEffect;function Hv(r){const e=C.useRef(r);return sl(()=>{e.current=r}),C.useCallback(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e.current==null?void 0:e.current(...n)},[])}function TB(){const r=C.useRef(null),e=C.useCallback((n,o)=>{r.current=setInterval(n,o)},[]),t=C.useCallback(()=>{r.current!==null&&(clearInterval(r.current),r.current=null)},[]);return[e,t]}function Rh(r,e){e===void 0&&(e=[r]);const t=C.useRef(r);return sl(()=>{t.current!==r&&(t.current=r)},e),t}function Bh(r,e){const t=C.useRef();return C.useMemo(()=>{const n=r(t.current);return t.current=n,n},[...e])}function tg(r){const e=Hv(r),t=C.useRef(null),n=C.useCallback(o=>{o!==t.current&&(e==null||e(o,t.current)),t.current=o},[]);return[t,n]}function J1(r){const e=C.useRef();return C.useEffect(()=>{e.current=r},[r]),e.current}let Am={};function Fh(r,e){return C.useMemo(()=>{if(e)return e;const t=Am[r]==null?0:Am[r]+1;return Am[r]=t,r+"-"+t},[r,e])}function zC(r){return function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return n.reduce((i,a)=>{const c=Object.entries(a);for(const[d,h]of c){const g=i[d];g!=null&&(i[d]=g+r*h)}return i},{...e})}}const rf=zC(1),rg=zC(-1);function RB(r){return"clientX"in r&&"clientY"in r}function zv(r){if(!r)return!1;const{KeyboardEvent:e}=Bi(r.target);return e&&r instanceof e}function kB(r){if(!r)return!1;const{TouchEvent:e}=Bi(r.target);return e&&r instanceof e}function Q1(r){if(kB(r)){if(r.touches&&r.touches.length){const{clientX:e,clientY:t}=r.touches[0];return{x:e,y:t}}else if(r.changedTouches&&r.changedTouches.length){const{clientX:e,clientY:t}=r.changedTouches[0];return{x:e,y:t}}}return RB(r)?{x:r.clientX,y:r.clientY}:null}const kh=Object.freeze({Translate:{toString(r){if(!r)return;const{x:e,y:t}=r;return"translate3d("+(e?Math.round(e):0)+"px, "+(t?Math.round(t):0)+"px, 0)"}},Scale:{toString(r){if(!r)return;const{scaleX:e,scaleY:t}=r;return"scaleX("+e+") scaleY("+t+")"}},Transform:{toString(r){if(r)return[kh.Translate.toString(r),kh.Scale.toString(r)].join(" ")}},Transition:{toString(r){let{property:e,duration:t,easing:n}=r;return e+" "+t+"ms "+n}}}),Vb="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function IB(r){return r.matches(Vb)?r:r.querySelector(Vb)}const MB={display:"none"};function LB(r){let{id:e,value:t}=r;return C.createElement("div",{id:e,style:MB},t)}function DB(r){let{id:e,announcement:t,ariaLiveType:n="assertive"}=r;const o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return C.createElement("div",{id:e,style:o,role:"status","aria-live":n,"aria-atomic":!0},t)}function OB(){const[r,e]=C.useState("");return{announce:C.useCallback(n=>{n!=null&&e(n)},[]),announcement:r}}const $C=C.createContext(null);function NB(r){const e=C.useContext($C);C.useEffect(()=>{if(!e)throw new Error("useDndMonitor must be used within a children of <DndContext>");return e(r)},[r,e])}function PB(){const[r]=C.useState(()=>new Set),e=C.useCallback(n=>(r.add(n),()=>r.delete(n)),[r]);return[C.useCallback(n=>{let{type:o,event:i}=n;r.forEach(a=>{var c;return(c=a[o])==null?void 0:c.call(a,i)})},[r]),e]}const BB={draggable:`
|
359
359
|
To pick up a draggable item, press the space bar.
|
360
360
|
While dragging, use the arrow keys to move the item.
|
361
361
|
Press space again to drop the item in its new position, or press escape to cancel.
|
362
|
-
`},FB={onDragStart(r){let{active:e}=r;return"Picked up draggable item "+e.id+"."},onDragOver(r){let{active:e,over:t}=r;return t?"Draggable item "+e.id+" was moved over droppable area "+t.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(r){let{active:e,over:t}=r;return t?"Draggable item "+e.id+" was dropped over droppable area "+t.id:"Draggable item "+e.id+" was dropped."},onDragCancel(r){let{active:e}=r;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function jB(r){let{announcements:e=FB,container:t,hiddenTextDescribedById:n,screenReaderInstructions:o=BB}=r;const{announce:i,announcement:a}=OB(),c=Fh("DndLiveRegion"),[d,h]=C.useState(!1);if(C.useEffect(()=>{h(!0)},[]),NB(C.useMemo(()=>({onDragStart(m){let{active:p}=m;i(e.onDragStart({active:p}))},onDragMove(m){let{active:p,over:v}=m;e.onDragMove&&i(e.onDragMove({active:p,over:v}))},onDragOver(m){let{active:p,over:v}=m;i(e.onDragOver({active:p,over:v}))},onDragEnd(m){let{active:p,over:v}=m;i(e.onDragEnd({active:p,over:v}))},onDragCancel(m){let{active:p,over:v}=m;i(e.onDragCancel({active:p,over:v}))}}),[i,e])),!d)return null;const g=C.createElement(C.Fragment,null,C.createElement(LB,{id:n,value:o.draggable}),C.createElement(DB,{id:c,announcement:a}));return t?Ls.createPortal(g,t):g}var Co;(function(r){r.DragStart="dragStart",r.DragMove="dragMove",r.DragEnd="dragEnd",r.DragCancel="dragCancel",r.DragOver="dragOver",r.RegisterDroppable="registerDroppable",r.SetDroppableDisabled="setDroppableDisabled",r.UnregisterDroppable="unregisterDroppable"})(Co||(Co={}));function ng(){}function Gb(r,e){return C.useMemo(()=>({sensor:r,options:e??{}}),[r,e])}function HB(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return C.useMemo(()=>[...e].filter(n=>n!=null),[...e])}const ya=Object.freeze({x:0,y:0});function zB(r,e){return Math.sqrt(Math.pow(r.x-e.x,2)+Math.pow(r.y-e.y,2))}function $B(r,e){let{data:{value:t}}=r,{data:{value:n}}=e;return t-n}function UB(r,e){let{data:{value:t}}=r,{data:{value:n}}=e;return n-t}function qB(r,e){if(!r||r.length===0)return null;const[t]=r;return t[e]}function Yb(r,e,t){return e===void 0&&(e=r.left),t===void 0&&(t=r.top),{x:e+r.width*.5,y:t+r.height*.5}}const WB=r=>{let{collisionRect:e,droppableRects:t,droppableContainers:n}=r;const o=Yb(e,e.left,e.top),i=[];for(const a of n){const{id:c}=a,d=t.get(c);if(d){const h=zB(Yb(d),o);i.push({id:c,data:{droppableContainer:a,value:h}})}}return i.sort($B)};function VB(r,e){const t=Math.max(e.top,r.top),n=Math.max(e.left,r.left),o=Math.min(e.left+e.width,r.left+r.width),i=Math.min(e.top+e.height,r.top+r.height),a=o-n,c=i-t;if(n<o&&t<i){const d=e.width*e.height,h=r.width*r.height,g=a*c,m=g/(d+h-g);return Number(m.toFixed(4))}return 0}const GB=r=>{let{collisionRect:e,droppableRects:t,droppableContainers:n}=r;const o=[];for(const i of n){const{id:a}=i,c=t.get(a);if(c){const d=VB(c,e);d>0&&o.push({id:a,data:{droppableContainer:i,value:d}})}}return o.sort(UB)};function YB(r,e,t){return{...r,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function UC(r,e){return r&&e?{x:r.left-e.left,y:r.top-e.top}:ya}function ZB(r){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return o.reduce((a,c)=>({...a,top:a.top+r*c.y,bottom:a.bottom+r*c.y,left:a.left+r*c.x,right:a.right+r*c.x}),{...t})}}const KB=ZB(1);function XB(r){if(r.startsWith("matrix3d(")){const e=r.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(r.startsWith("matrix(")){const e=r.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function JB(r,e,t){const n=XB(e);if(!n)return r;const{scaleX:o,scaleY:i,x:a,y:c}=n,d=r.left-a-(1-o)*parseFloat(t),h=r.top-c-(1-i)*parseFloat(t.slice(t.indexOf(" ")+1)),g=o?r.width/o:r.width,m=i?r.height/i:r.height;return{width:g,height:m,top:h,right:d+g,bottom:h+m,left:d}}const QB={ignoreTransform:!1};function bf(r,e){e===void 0&&(e=QB);let t=r.getBoundingClientRect();if(e.ignoreTransform){const{transform:h,transformOrigin:g}=Bi(r).getComputedStyle(r);h&&(t=JB(t,h,g))}const{top:n,left:o,width:i,height:a,bottom:c,right:d}=t;return{top:n,left:o,width:i,height:a,bottom:c,right:d}}function Zb(r){return bf(r,{ignoreTransform:!0})}function eF(r){const e=r.innerWidth,t=r.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function tF(r,e){return e===void 0&&(e=Bi(r).getComputedStyle(r)),e.position==="fixed"}function rF(r,e){e===void 0&&(e=Bi(r).getComputedStyle(r));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const i=e[o];return typeof i=="string"?t.test(i):!1})}function $v(r,e){const t=[];function n(o){if(e!=null&&t.length>=e||!o)return t;if(jv(o)&&o.scrollingElement!=null&&!t.includes(o.scrollingElement))return t.push(o.scrollingElement),t;if(!Ph(o)||HC(o)||t.includes(o))return t;const i=Bi(r).getComputedStyle(o);return o!==r&&rF(o,i)&&t.push(o),tF(o,i)?t:n(o.parentNode)}return r?n(r):t}function qC(r){const[e]=$v(r,1);return e??null}function Em(r){return!wg||!r?null:vf(r)?r:Fv(r)?jv(r)||r===yf(r).scrollingElement?window:Ph(r)?r:null:null}function WC(r){return vf(r)?r.scrollX:r.scrollLeft}function VC(r){return vf(r)?r.scrollY:r.scrollTop}function ev(r){return{x:WC(r),y:VC(r)}}var Lo;(function(r){r[r.Forward=1]="Forward",r[r.Backward=-1]="Backward"})(Lo||(Lo={}));function GC(r){return!wg||!r?!1:r===document.scrollingElement}function YC(r){const e={x:0,y:0},t=GC(r)?{height:window.innerHeight,width:window.innerWidth}:{height:r.clientHeight,width:r.clientWidth},n={x:r.scrollWidth-t.width,y:r.scrollHeight-t.height},o=r.scrollTop<=e.y,i=r.scrollLeft<=e.x,a=r.scrollTop>=n.y,c=r.scrollLeft>=n.x;return{isTop:o,isLeft:i,isBottom:a,isRight:c,maxScroll:n,minScroll:e}}const nF={x:.2,y:.2};function oF(r,e,t,n,o){let{top:i,left:a,right:c,bottom:d}=t;n===void 0&&(n=10),o===void 0&&(o=nF);const{isTop:h,isBottom:g,isLeft:m,isRight:p}=YC(r),v={x:0,y:0},w={x:0,y:0},T={height:e.height*o.y,width:e.width*o.x};return!h&&i<=e.top+T.height?(v.y=Lo.Backward,w.y=n*Math.abs((e.top+T.height-i)/T.height)):!g&&d>=e.bottom-T.height&&(v.y=Lo.Forward,w.y=n*Math.abs((e.bottom-T.height-d)/T.height)),!p&&c>=e.right-T.width?(v.x=Lo.Forward,w.x=n*Math.abs((e.right-T.width-c)/T.width)):!m&&a<=e.left+T.width&&(v.x=Lo.Backward,w.x=n*Math.abs((e.left+T.width-a)/T.width)),{direction:v,speed:w}}function iF(r){if(r===document.scrollingElement){const{innerWidth:i,innerHeight:a}=window;return{top:0,left:0,right:i,bottom:a,width:i,height:a}}const{top:e,left:t,right:n,bottom:o}=r.getBoundingClientRect();return{top:e,left:t,right:n,bottom:o,width:r.clientWidth,height:r.clientHeight}}function ZC(r){return r.reduce((e,t)=>rf(e,ev(t)),ya)}function sF(r){return r.reduce((e,t)=>e+WC(t),0)}function aF(r){return r.reduce((e,t)=>e+VC(t),0)}function lF(r,e){if(e===void 0&&(e=bf),!r)return;const{top:t,left:n,bottom:o,right:i}=e(r);qC(r)&&(o<=0||i<=0||t>=window.innerHeight||n>=window.innerWidth)&&r.scrollIntoView({block:"center",inline:"center"})}const cF=[["x",["left","right"],sF],["y",["top","bottom"],aF]];class Uv{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=$v(t),o=ZC(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[i,a,c]of cF)for(const d of a)Object.defineProperty(this,d,{get:()=>{const h=c(n),g=o[i]-h;return this.rect[d]+g},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class lh{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(t=>{var n;return(n=this.target)==null?void 0:n.removeEventListener(...t)})},this.target=e}add(e,t,n){var o;(o=this.target)==null||o.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function uF(r){const{EventTarget:e}=Bi(r);return r instanceof e?r:yf(r)}function Tm(r,e){const t=Math.abs(r.x),n=Math.abs(r.y);return typeof e=="number"?Math.sqrt(t**2+n**2)>e:"x"in e&&"y"in e?t>e.x&&n>e.y:"x"in e?t>e.x:"y"in e?n>e.y:!1}var Rs;(function(r){r.Click="click",r.DragStart="dragstart",r.Keydown="keydown",r.ContextMenu="contextmenu",r.Resize="resize",r.SelectionChange="selectionchange",r.VisibilityChange="visibilitychange"})(Rs||(Rs={}));function Kb(r){r.preventDefault()}function dF(r){r.stopPropagation()}var cn;(function(r){r.Space="Space",r.Down="ArrowDown",r.Right="ArrowRight",r.Left="ArrowLeft",r.Up="ArrowUp",r.Esc="Escape",r.Enter="Enter",r.Tab="Tab"})(cn||(cn={}));const KC={start:[cn.Space,cn.Enter],cancel:[cn.Esc],end:[cn.Space,cn.Enter,cn.Tab]},fF=(r,e)=>{let{currentCoordinates:t}=e;switch(r.code){case cn.Right:return{...t,x:t.x+25};case cn.Left:return{...t,x:t.x-25};case cn.Down:return{...t,y:t.y+25};case cn.Up:return{...t,y:t.y-25}}};class qv{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new lh(yf(t)),this.windowListeners=new lh(Bi(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Rs.Resize,this.handleCancel),this.windowListeners.add(Rs.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Rs.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&lF(n),t(ya)}handleKeyDown(e){if(zv(e)){const{active:t,context:n,options:o}=this.props,{keyboardCodes:i=KC,coordinateGetter:a=fF,scrollBehavior:c="smooth"}=o,{code:d}=e;if(i.end.includes(d)){this.handleEnd(e);return}if(i.cancel.includes(d)){this.handleCancel(e);return}const{collisionRect:h}=n.current,g=h?{x:h.left,y:h.top}:ya;this.referenceCoordinates||(this.referenceCoordinates=g);const m=a(e,{active:t,context:n.current,currentCoordinates:g});if(m){const p=rg(m,g),v={x:0,y:0},{scrollableAncestors:w}=n.current;for(const T of w){const _=e.code,{isTop:A,isRight:R,isLeft:D,isBottom:I,maxScroll:F,minScroll:B}=YC(T),H=iF(T),j={x:Math.min(_===cn.Right?H.right-H.width/2:H.right,Math.max(_===cn.Right?H.left:H.left+H.width/2,m.x)),y:Math.min(_===cn.Down?H.bottom-H.height/2:H.bottom,Math.max(_===cn.Down?H.top:H.top+H.height/2,m.y))},G=_===cn.Right&&!R||_===cn.Left&&!D,ge=_===cn.Down&&!I||_===cn.Up&&!A;if(G&&j.x!==m.x){const P=T.scrollLeft+p.x,q=_===cn.Right&&P<=F.x||_===cn.Left&&P>=B.x;if(q&&!p.y){T.scrollTo({left:P,behavior:c});return}q?v.x=T.scrollLeft-P:v.x=_===cn.Right?T.scrollLeft-F.x:T.scrollLeft-B.x,v.x&&T.scrollBy({left:-v.x,behavior:c});break}else if(ge&&j.y!==m.y){const P=T.scrollTop+p.y,q=_===cn.Down&&P<=F.y||_===cn.Up&&P>=B.y;if(q&&!p.x){T.scrollTo({top:P,behavior:c});return}q?v.y=T.scrollTop-P:v.y=_===cn.Down?T.scrollTop-F.y:T.scrollTop-B.y,v.y&&T.scrollBy({top:-v.y,behavior:c});break}}this.handleMove(e,rf(rg(m,this.referenceCoordinates),v))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}qv.activators=[{eventName:"onKeyDown",handler:(r,e,t)=>{let{keyboardCodes:n=KC,onActivation:o}=e,{active:i}=t;const{code:a}=r.nativeEvent;if(n.start.includes(a)){const c=i.activatorNode.current;return c&&r.target!==c?!1:(r.preventDefault(),o==null||o({event:r.nativeEvent}),!0)}return!1}}];function Xb(r){return!!(r&&"distance"in r)}function Jb(r){return!!(r&&"delay"in r)}class Wv{constructor(e,t,n){var o;n===void 0&&(n=uF(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:a}=i;this.props=e,this.events=t,this.document=yf(a),this.documentListeners=new lh(this.document),this.listeners=new lh(n),this.windowListeners=new lh(Bi(a)),this.initialCoordinates=(o=Q1(i))!=null?o:ya,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(Rs.Resize,this.handleCancel),this.windowListeners.add(Rs.DragStart,Kb),this.windowListeners.add(Rs.VisibilityChange,this.handleCancel),this.windowListeners.add(Rs.ContextMenu,Kb),this.documentListeners.add(Rs.Keydown,this.handleKeydown),t){if(n!=null&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Jb(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(Xb(t)){this.handlePending(t);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:n,onPending:o}=this.props;o(n,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(Rs.Click,dF,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Rs.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:o,props:i}=this,{onMove:a,options:{activationConstraint:c}}=i;if(!o)return;const d=(t=Q1(e))!=null?t:ya,h=rg(o,d);if(!n&&c){if(Xb(c)){if(c.tolerance!=null&&Tm(h,c.tolerance))return this.handleCancel();if(Tm(h,c.distance))return this.handleStart()}if(Jb(c)&&Tm(h,c.tolerance))return this.handleCancel();this.handlePending(c,h);return}e.cancelable&&e.preventDefault(),a(d)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===cn.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}}const hF={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Vv extends Wv{constructor(e){const{event:t}=e,n=yf(t.target);super(e,hF,n)}}Vv.activators=[{eventName:"onPointerDown",handler:(r,e)=>{let{nativeEvent:t}=r,{onActivation:n}=e;return!t.isPrimary||t.button!==0?!1:(n==null||n({event:t}),!0)}}];const pF={move:{name:"mousemove"},end:{name:"mouseup"}};var tv;(function(r){r[r.RightClick=2]="RightClick"})(tv||(tv={}));class gF extends Wv{constructor(e){super(e,pF,yf(e.event.target))}}gF.activators=[{eventName:"onMouseDown",handler:(r,e)=>{let{nativeEvent:t}=r,{onActivation:n}=e;return t.button===tv.RightClick?!1:(n==null||n({event:t}),!0)}}];const Rm={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class mF extends Wv{constructor(e){super(e,Rm)}static setup(){return window.addEventListener(Rm.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(Rm.move.name,e)};function e(){}}}mF.activators=[{eventName:"onTouchStart",handler:(r,e)=>{let{nativeEvent:t}=r,{onActivation:n}=e;const{touches:o}=t;return o.length>1?!1:(n==null||n({event:t}),!0)}}];var ch;(function(r){r[r.Pointer=0]="Pointer",r[r.DraggableRect=1]="DraggableRect"})(ch||(ch={}));var og;(function(r){r[r.TreeOrder=0]="TreeOrder",r[r.ReversedTreeOrder=1]="ReversedTreeOrder"})(og||(og={}));function vF(r){let{acceleration:e,activator:t=ch.Pointer,canScroll:n,draggingRect:o,enabled:i,interval:a=5,order:c=og.TreeOrder,pointerCoordinates:d,scrollableAncestors:h,scrollableAncestorRects:g,delta:m,threshold:p}=r;const v=bF({delta:m,disabled:!i}),[w,T]=TB(),_=C.useRef({x:0,y:0}),A=C.useRef({x:0,y:0}),R=C.useMemo(()=>{switch(t){case ch.Pointer:return d?{top:d.y,bottom:d.y,left:d.x,right:d.x}:null;case ch.DraggableRect:return o}},[t,o,d]),D=C.useRef(null),I=C.useCallback(()=>{const B=D.current;if(!B)return;const H=_.current.x*A.current.x,j=_.current.y*A.current.y;B.scrollBy(H,j)},[]),F=C.useMemo(()=>c===og.TreeOrder?[...h].reverse():h,[c,h]);C.useEffect(()=>{if(!i||!h.length||!R){T();return}for(const B of F){if((n==null?void 0:n(B))===!1)continue;const H=h.indexOf(B),j=g[H];if(!j)continue;const{direction:G,speed:ge}=oF(B,j,R,e,p);for(const P of["x","y"])v[P][G[P]]||(ge[P]=0,G[P]=0);if(ge.x>0||ge.y>0){T(),D.current=B,w(I,a),_.current=ge,A.current=G;return}}_.current={x:0,y:0},A.current={x:0,y:0},T()},[e,I,n,T,i,a,JSON.stringify(R),JSON.stringify(v),w,h,F,g,JSON.stringify(p)])}const yF={x:{[Lo.Backward]:!1,[Lo.Forward]:!1},y:{[Lo.Backward]:!1,[Lo.Forward]:!1}};function bF(r){let{delta:e,disabled:t}=r;const n=J1(e);return Bh(o=>{if(t||!n||!o)return yF;const i={x:Math.sign(e.x-n.x),y:Math.sign(e.y-n.y)};return{x:{[Lo.Backward]:o.x[Lo.Backward]||i.x===-1,[Lo.Forward]:o.x[Lo.Forward]||i.x===1},y:{[Lo.Backward]:o.y[Lo.Backward]||i.y===-1,[Lo.Forward]:o.y[Lo.Forward]||i.y===1}}},[t,e,n])}function xF(r,e){const t=e!=null?r.get(e):void 0,n=t?t.node.current:null;return Bh(o=>{var i;return e==null?null:(i=n??o)!=null?i:null},[n,e])}function wF(r,e){return C.useMemo(()=>r.reduce((t,n)=>{const{sensor:o}=n,i=o.activators.map(a=>({eventName:a.eventName,handler:e(a.handler,n)}));return[...t,...i]},[]),[r,e])}var hf;(function(r){r[r.Always=0]="Always",r[r.BeforeDragging=1]="BeforeDragging",r[r.WhileDragging=2]="WhileDragging"})(hf||(hf={}));var rv;(function(r){r.Optimized="optimized"})(rv||(rv={}));const Qb=new Map;function CF(r,e){let{dragging:t,dependencies:n,config:o}=e;const[i,a]=C.useState(null),{frequency:c,measure:d,strategy:h}=o,g=C.useRef(r),m=_(),p=Rh(m),v=C.useCallback(function(A){A===void 0&&(A=[]),!p.current&&a(R=>R===null?A:R.concat(A.filter(D=>!R.includes(D))))},[p]),w=C.useRef(null),T=Bh(A=>{if(m&&!t)return Qb;if(!A||A===Qb||g.current!==r||i!=null){const R=new Map;for(let D of r){if(!D)continue;if(i&&i.length>0&&!i.includes(D.id)&&D.rect.current){R.set(D.id,D.rect.current);continue}const I=D.node.current,F=I?new Uv(d(I),I):null;D.rect.current=F,F&&R.set(D.id,F)}return R}return A},[r,i,t,m,d]);return C.useEffect(()=>{g.current=r},[r]),C.useEffect(()=>{m||v()},[t,m]),C.useEffect(()=>{i&&i.length>0&&a(null)},[JSON.stringify(i)]),C.useEffect(()=>{m||typeof c!="number"||w.current!==null||(w.current=setTimeout(()=>{v(),w.current=null},c))},[c,m,v,...n]),{droppableRects:T,measureDroppableContainers:v,measuringScheduled:i!=null};function _(){switch(h){case hf.Always:return!1;case hf.BeforeDragging:return t;default:return!t}}}function XC(r,e){return Bh(t=>r?t||(typeof e=="function"?e(r):r):null,[e,r])}function SF(r,e){return XC(r,e)}function _F(r){let{callback:e,disabled:t}=r;const n=Hv(e),o=C.useMemo(()=>{if(t||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(n)},[n,t]);return C.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function Cg(r){let{callback:e,disabled:t}=r;const n=Hv(e),o=C.useMemo(()=>{if(t||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(n)},[t]);return C.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function AF(r){return new Uv(bf(r),r)}function ex(r,e,t){e===void 0&&(e=AF);const[n,o]=C.useState(null);function i(){o(d=>{if(!r)return null;if(r.isConnected===!1){var h;return(h=d??t)!=null?h:null}const g=e(r);return JSON.stringify(d)===JSON.stringify(g)?d:g})}const a=_F({callback(d){if(r)for(const h of d){const{type:g,target:m}=h;if(g==="childList"&&m instanceof HTMLElement&&m.contains(r)){i();break}}}}),c=Cg({callback:i});return sl(()=>{i(),r?(c==null||c.observe(r),a==null||a.observe(document.body,{childList:!0,subtree:!0})):(c==null||c.disconnect(),a==null||a.disconnect())},[r]),n}function EF(r){const e=XC(r);return UC(r,e)}const tx=[];function TF(r){const e=C.useRef(r),t=Bh(n=>r?n&&n!==tx&&r&&e.current&&r.parentNode===e.current.parentNode?n:$v(r):tx,[r]);return C.useEffect(()=>{e.current=r},[r]),t}function RF(r){const[e,t]=C.useState(null),n=C.useRef(r),o=C.useCallback(i=>{const a=Em(i.target);a&&t(c=>c?(c.set(a,ev(a)),new Map(c)):null)},[]);return C.useEffect(()=>{const i=n.current;if(r!==i){a(i);const c=r.map(d=>{const h=Em(d);return h?(h.addEventListener("scroll",o,{passive:!0}),[h,ev(h)]):null}).filter(d=>d!=null);t(c.length?new Map(c):null),n.current=r}return()=>{a(r),a(i)};function a(c){c.forEach(d=>{const h=Em(d);h==null||h.removeEventListener("scroll",o)})}},[o,r]),C.useMemo(()=>r.length?e?Array.from(e.values()).reduce((i,a)=>rf(i,a),ya):ZC(r):ya,[r,e])}function rx(r,e){e===void 0&&(e=[]);const t=C.useRef(null);return C.useEffect(()=>{t.current=null},e),C.useEffect(()=>{const n=r!==ya;n&&!t.current&&(t.current=r),!n&&t.current&&(t.current=null)},[r]),t.current?rg(r,t.current):ya}function kF(r){C.useEffect(()=>{if(!wg)return;const e=r.map(t=>{let{sensor:n}=t;return n.setup==null?void 0:n.setup()});return()=>{for(const t of e)t==null||t()}},r.map(e=>{let{sensor:t}=e;return t}))}function IF(r,e){return C.useMemo(()=>r.reduce((t,n)=>{let{eventName:o,handler:i}=n;return t[o]=a=>{i(a,e)},t},{}),[r,e])}function JC(r){return C.useMemo(()=>r?eF(r):null,[r])}const nx=[];function MF(r,e){e===void 0&&(e=bf);const[t]=r,n=JC(t?Bi(t):null),[o,i]=C.useState(nx);function a(){i(()=>r.length?r.map(d=>GC(d)?n:new Uv(e(d),d)):nx)}const c=Cg({callback:a});return sl(()=>{c==null||c.disconnect(),a(),r.forEach(d=>c==null?void 0:c.observe(d))},[r]),o}function LF(r){if(!r)return null;if(r.children.length>1)return r;const e=r.children[0];return Ph(e)?e:r}function DF(r){let{measure:e}=r;const[t,n]=C.useState(null),o=C.useCallback(h=>{for(const{target:g}of h)if(Ph(g)){n(m=>{const p=e(g);return m?{...m,width:p.width,height:p.height}:p});break}},[e]),i=Cg({callback:o}),a=C.useCallback(h=>{const g=LF(h);i==null||i.disconnect(),g&&(i==null||i.observe(g)),n(g?e(g):null)},[e,i]),[c,d]=tg(a);return C.useMemo(()=>({nodeRef:c,rect:t,setRef:d}),[t,c,d])}const OF=[{sensor:Vv,options:{}},{sensor:qv,options:{}}],NF={current:{}},Op={draggable:{measure:Zb},droppable:{measure:Zb,strategy:hf.WhileDragging,frequency:rv.Optimized},dragOverlay:{measure:bf}};class uh extends Map{get(e){var t;return e!=null&&(t=super.get(e))!=null?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,n;return(t=(n=this.get(e))==null?void 0:n.node.current)!=null?t:void 0}}const PF={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new uh,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:ng},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Op,measureDroppableContainers:ng,windowRect:null,measuringScheduled:!1},BF={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:ng,draggableNodes:new Map,over:null,measureDroppableContainers:ng},Sg=C.createContext(BF),QC=C.createContext(PF);function FF(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new uh}}}function jF(r,e){switch(e.type){case Co.DragStart:return{...r,draggable:{...r.draggable,initialCoordinates:e.initialCoordinates,active:e.active}};case Co.DragMove:return r.draggable.active==null?r:{...r,draggable:{...r.draggable,translate:{x:e.coordinates.x-r.draggable.initialCoordinates.x,y:e.coordinates.y-r.draggable.initialCoordinates.y}}};case Co.DragEnd:case Co.DragCancel:return{...r,draggable:{...r.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Co.RegisterDroppable:{const{element:t}=e,{id:n}=t,o=new uh(r.droppable.containers);return o.set(n,t),{...r,droppable:{...r.droppable,containers:o}}}case Co.SetDroppableDisabled:{const{id:t,key:n,disabled:o}=e,i=r.droppable.containers.get(t);if(!i||n!==i.key)return r;const a=new uh(r.droppable.containers);return a.set(t,{...i,disabled:o}),{...r,droppable:{...r.droppable,containers:a}}}case Co.UnregisterDroppable:{const{id:t,key:n}=e,o=r.droppable.containers.get(t);if(!o||n!==o.key)return r;const i=new uh(r.droppable.containers);return i.delete(t),{...r,droppable:{...r.droppable,containers:i}}}default:return r}}function HF(r){let{disabled:e}=r;const{active:t,activatorEvent:n,draggableNodes:o}=C.useContext(Sg),i=J1(n),a=J1(t==null?void 0:t.id);return C.useEffect(()=>{if(!e&&!n&&i&&a!=null){if(!zv(i)||document.activeElement===i.target)return;const c=o.get(a);if(!c)return;const{activatorNode:d,node:h}=c;if(!d.current&&!h.current)return;requestAnimationFrame(()=>{for(const g of[d.current,h.current]){if(!g)continue;const m=IB(g);if(m){m.focus();break}}})}},[n,e,o,a,i]),null}function zF(r,e){let{transform:t,...n}=e;return r!=null&&r.length?r.reduce((o,i)=>i({transform:o,...n}),t):t}function $F(r){return C.useMemo(()=>({draggable:{...Op.draggable,...r==null?void 0:r.draggable},droppable:{...Op.droppable,...r==null?void 0:r.droppable},dragOverlay:{...Op.dragOverlay,...r==null?void 0:r.dragOverlay}}),[r==null?void 0:r.draggable,r==null?void 0:r.droppable,r==null?void 0:r.dragOverlay])}function UF(r){let{activeNode:e,measure:t,initialRect:n,config:o=!0}=r;const i=C.useRef(!1),{x:a,y:c}=typeof o=="boolean"?{x:o,y:o}:o;sl(()=>{if(!a&&!c||!e){i.current=!1;return}if(i.current||!n)return;const h=e==null?void 0:e.node.current;if(!h||h.isConnected===!1)return;const g=t(h),m=UC(g,n);if(a||(m.x=0),c||(m.y=0),i.current=!0,Math.abs(m.x)>0||Math.abs(m.y)>0){const p=qC(h);p&&p.scrollBy({top:m.y,left:m.x})}},[e,a,c,n,t])}const eS=C.createContext({...ya,scaleX:1,scaleY:1});var Nc;(function(r){r[r.Uninitialized=0]="Uninitialized",r[r.Initializing=1]="Initializing",r[r.Initialized=2]="Initialized"})(Nc||(Nc={}));const qF=C.memo(function(e){var t,n,o,i;let{id:a,accessibility:c,autoScroll:d=!0,children:h,sensors:g=OF,collisionDetection:m=GB,measuring:p,modifiers:v,...w}=e;const T=C.useReducer(jF,void 0,FF),[_,A]=T,[R,D]=PB(),[I,F]=C.useState(Nc.Uninitialized),B=I===Nc.Initialized,{draggable:{active:H,nodes:j,translate:G},droppable:{containers:ge}}=_,P=H!=null?j.get(H):null,q=C.useRef({initial:null,translated:null}),V=C.useMemo(()=>{var Tt;return H!=null?{id:H,data:(Tt=P==null?void 0:P.data)!=null?Tt:NF,rect:q}:null},[H,P]),Q=C.useRef(null),[ie,se]=C.useState(null),[ae,le]=C.useState(null),fe=Rh(w,Object.values(w)),ee=Fh("DndDescribedBy",a),ne=C.useMemo(()=>ge.getEnabled(),[ge]),ce=$F(p),{droppableRects:xe,measureDroppableContainers:Me,measuringScheduled:oe}=CF(ne,{dragging:B,dependencies:[G.x,G.y],config:ce.droppable}),Se=xF(j,H),Le=C.useMemo(()=>ae?Q1(ae):null,[ae]),We=_t(),Ve=SF(Se,ce.draggable.measure);UF({activeNode:H!=null?j.get(H):null,config:We.layoutShiftCompensation,initialRect:Ve,measure:ce.draggable.measure});const we=ex(Se,ce.draggable.measure,Ve),_e=ex(Se?Se.parentElement:null),Ae=C.useRef({activatorEvent:null,active:null,activeNode:Se,collisionRect:null,collisions:null,droppableRects:xe,draggableNodes:j,draggingNode:null,draggingNodeRect:null,droppableContainers:ge,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Ie=ge.getNodeFor((t=Ae.current.over)==null?void 0:t.id),je=DF({measure:ce.dragOverlay.measure}),it=(n=je.nodeRef.current)!=null?n:Se,Ue=B?(o=je.rect)!=null?o:we:null,tt=!!(je.nodeRef.current&&je.rect),lt=EF(tt?null:we),bt=JC(it?Bi(it):null),Mt=TF(B?Ie??Se:null),Qe=MF(Mt),Xe=zF(v,{transform:{x:G.x-lt.x,y:G.y-lt.y,scaleX:1,scaleY:1},activatorEvent:ae,active:V,activeNodeRect:we,containerNodeRect:_e,draggingNodeRect:Ue,over:Ae.current.over,overlayNodeRect:je.rect,scrollableAncestors:Mt,scrollableAncestorRects:Qe,windowRect:bt}),ht=Le?rf(Le,G):null,ft=RF(Mt),Oe=rx(ft),Je=rx(ft,[we]),gt=rf(Xe,Oe),It=Ue?KB(Ue,Xe):null,Et=V&&It?m({active:V,collisionRect:It,droppableRects:xe,droppableContainers:ne,pointerCoordinates:ht}):null,Dt=qB(Et,"id"),[Xt,Wt]=C.useState(null),hr=tt?Xe:rf(Xe,Je),dr=YB(hr,(i=Xt==null?void 0:Xt.rect)!=null?i:null,we),cr=C.useRef(null),Te=C.useCallback((Tt,Ut)=>{let{sensor:Ge,options:at}=Ut;if(Q.current==null)return;const ct=j.get(Q.current);if(!ct)return;const xt=Tt.nativeEvent,Nt=new Ge({active:Q.current,activeNode:ct,event:xt,options:at,context:Ae,onAbort(qt){if(!j.get(qt))return;const{onDragAbort:ir}=fe.current,jt={id:qt};ir==null||ir(jt),R({type:"onDragAbort",event:jt})},onPending(qt,Yt,ir,jt){if(!j.get(qt))return;const{onDragPending:jr}=fe.current,Ze={id:qt,constraint:Yt,initialCoordinates:ir,offset:jt};jr==null||jr(Ze),R({type:"onDragPending",event:Ze})},onStart(qt){const Yt=Q.current;if(Yt==null)return;const ir=j.get(Yt);if(!ir)return;const{onDragStart:jt}=fe.current,xr={activatorEvent:xt,active:{id:Yt,data:ir.data,rect:q}};Ls.unstable_batchedUpdates(()=>{jt==null||jt(xr),F(Nc.Initializing),A({type:Co.DragStart,initialCoordinates:qt,active:Yt}),R({type:"onDragStart",event:xr}),se(cr.current),le(xt)})},onMove(qt){A({type:Co.DragMove,coordinates:qt})},onEnd:Bt(Co.DragEnd),onCancel:Bt(Co.DragCancel)});cr.current=Nt;function Bt(qt){return async function(){const{active:ir,collisions:jt,over:xr,scrollAdjustedTranslate:jr}=Ae.current;let Ze=null;if(ir&&jr){const{cancelDrop:te}=fe.current;Ze={activatorEvent:xt,active:ir,collisions:jt,delta:jr,over:xr},qt===Co.DragEnd&&typeof te=="function"&&await Promise.resolve(te(Ze))&&(qt=Co.DragCancel)}Q.current=null,Ls.unstable_batchedUpdates(()=>{A({type:qt}),F(Nc.Uninitialized),Wt(null),se(null),le(null),cr.current=null;const te=qt===Co.DragEnd?"onDragEnd":"onDragCancel";if(Ze){const ye=fe.current[te];ye==null||ye(Ze),R({type:te,event:Ze})}})}}},[j]),ue=C.useCallback((Tt,Ut)=>(Ge,at)=>{const ct=Ge.nativeEvent,xt=j.get(at);if(Q.current!==null||!xt||ct.dndKit||ct.defaultPrevented)return;const Nt={active:xt};Tt(Ge,Ut.options,Nt)===!0&&(ct.dndKit={capturedBy:Ut.sensor},Q.current=at,Te(Ge,Ut))},[j,Te]),st=wF(g,ue);kF(g),sl(()=>{we&&I===Nc.Initializing&&F(Nc.Initialized)},[we,I]),C.useEffect(()=>{const{onDragMove:Tt}=fe.current,{active:Ut,activatorEvent:Ge,collisions:at,over:ct}=Ae.current;if(!Ut||!Ge)return;const xt={active:Ut,activatorEvent:Ge,collisions:at,delta:{x:gt.x,y:gt.y},over:ct};Ls.unstable_batchedUpdates(()=>{Tt==null||Tt(xt),R({type:"onDragMove",event:xt})})},[gt.x,gt.y]),C.useEffect(()=>{const{active:Tt,activatorEvent:Ut,collisions:Ge,droppableContainers:at,scrollAdjustedTranslate:ct}=Ae.current;if(!Tt||Q.current==null||!Ut||!ct)return;const{onDragOver:xt}=fe.current,Nt=at.get(Dt),Bt=Nt&&Nt.rect.current?{id:Nt.id,rect:Nt.rect.current,data:Nt.data,disabled:Nt.disabled}:null,qt={active:Tt,activatorEvent:Ut,collisions:Ge,delta:{x:ct.x,y:ct.y},over:Bt};Ls.unstable_batchedUpdates(()=>{Wt(Bt),xt==null||xt(qt),R({type:"onDragOver",event:qt})})},[Dt]),sl(()=>{Ae.current={activatorEvent:ae,active:V,activeNode:Se,collisionRect:It,collisions:Et,droppableRects:xe,draggableNodes:j,draggingNode:it,draggingNodeRect:Ue,droppableContainers:ge,over:Xt,scrollableAncestors:Mt,scrollAdjustedTranslate:gt},q.current={initial:Ue,translated:It}},[V,Se,Et,It,j,it,Ue,xe,ge,Xt,Mt,gt]),vF({...We,delta:G,draggingRect:It,pointerCoordinates:ht,scrollableAncestors:Mt,scrollableAncestorRects:Qe});const ze=C.useMemo(()=>({active:V,activeNode:Se,activeNodeRect:we,activatorEvent:ae,collisions:Et,containerNodeRect:_e,dragOverlay:je,draggableNodes:j,droppableContainers:ge,droppableRects:xe,over:Xt,measureDroppableContainers:Me,scrollableAncestors:Mt,scrollableAncestorRects:Qe,measuringConfiguration:ce,measuringScheduled:oe,windowRect:bt}),[V,Se,we,ae,Et,_e,je,j,ge,xe,Xt,Me,Mt,Qe,ce,oe,bt]),vt=C.useMemo(()=>({activatorEvent:ae,activators:st,active:V,activeNodeRect:we,ariaDescribedById:{draggable:ee},dispatch:A,draggableNodes:j,over:Xt,measureDroppableContainers:Me}),[ae,st,V,we,A,ee,j,Xt,Me]);return C.createElement($C.Provider,{value:D},C.createElement(Sg.Provider,{value:vt},C.createElement(QC.Provider,{value:ze},C.createElement(eS.Provider,{value:dr},h)),C.createElement(HF,{disabled:(c==null?void 0:c.restoreFocus)===!1})),C.createElement(jB,{...c,hiddenTextDescribedById:ee}));function _t(){const Tt=(ie==null?void 0:ie.autoScrollEnabled)===!1,Ut=typeof d=="object"?d.enabled===!1:d===!1,Ge=B&&!Tt&&!Ut;return typeof d=="object"?{...d,enabled:Ge}:{enabled:Ge}}}),WF=C.createContext(null),ox="button",VF="Draggable";function GF(r){let{id:e,data:t,disabled:n=!1,attributes:o}=r;const i=Fh(VF),{activators:a,activatorEvent:c,active:d,activeNodeRect:h,ariaDescribedById:g,draggableNodes:m,over:p}=C.useContext(Sg),{role:v=ox,roleDescription:w="draggable",tabIndex:T=0}=o??{},_=(d==null?void 0:d.id)===e,A=C.useContext(_?eS:WF),[R,D]=tg(),[I,F]=tg(),B=IF(a,e),H=Rh(t);sl(()=>(m.set(e,{id:e,key:i,node:R,activatorNode:I,data:H}),()=>{const G=m.get(e);G&&G.key===i&&m.delete(e)}),[m,e]);const j=C.useMemo(()=>({role:v,tabIndex:T,"aria-disabled":n,"aria-pressed":_&&v===ox?!0:void 0,"aria-roledescription":w,"aria-describedby":g.draggable}),[n,v,T,_,w,g.draggable]);return{active:d,activatorEvent:c,activeNodeRect:h,attributes:j,isDragging:_,listeners:n?void 0:B,node:R,over:p,setNodeRef:D,setActivatorNodeRef:F,transform:A}}function YF(){return C.useContext(QC)}const ZF="Droppable",KF={timeout:25};function XF(r){let{data:e,disabled:t=!1,id:n,resizeObserverConfig:o}=r;const i=Fh(ZF),{active:a,dispatch:c,over:d,measureDroppableContainers:h}=C.useContext(Sg),g=C.useRef({disabled:t}),m=C.useRef(!1),p=C.useRef(null),v=C.useRef(null),{disabled:w,updateMeasurementsFor:T,timeout:_}={...KF,...o},A=Rh(T??n),R=C.useCallback(()=>{if(!m.current){m.current=!0;return}v.current!=null&&clearTimeout(v.current),v.current=setTimeout(()=>{h(Array.isArray(A.current)?A.current:[A.current]),v.current=null},_)},[_]),D=Cg({callback:R,disabled:w||!a}),I=C.useCallback((j,G)=>{D&&(G&&(D.unobserve(G),m.current=!1),j&&D.observe(j))},[D]),[F,B]=tg(I),H=Rh(e);return C.useEffect(()=>{!D||!F.current||(D.disconnect(),m.current=!1,D.observe(F.current))},[F,D]),C.useEffect(()=>(c({type:Co.RegisterDroppable,element:{id:n,key:i,disabled:t,node:F,rect:p,data:H}}),()=>c({type:Co.UnregisterDroppable,key:i,id:n})),[n]),C.useEffect(()=>{t!==g.current.disabled&&(c({type:Co.SetDroppableDisabled,id:n,key:i,disabled:t}),g.current.disabled=t)},[n,i,t,c]),{active:a,rect:p,isOver:(d==null?void 0:d.id)===n,node:F,over:d,setNodeRef:B}}function tS(r,e,t){const n={...r};return e.top+r.y<=t.top?n.y=t.top-e.top:e.bottom+r.y>=t.top+t.height&&(n.y=t.top+t.height-e.bottom),e.left+r.x<=t.left?n.x=t.left-e.left:e.right+r.x>=t.left+t.width&&(n.x=t.left+t.width-e.right),n}const JF=r=>{let{containerNodeRect:e,draggingNodeRect:t,transform:n}=r;return!t||!e?n:tS(n,t,e)},QF=r=>{let{transform:e,draggingNodeRect:t,windowRect:n}=r;return!t||!n?e:tS(e,t,n)};function ig(r,e,t){const n=r.slice();return n.splice(t<0?n.length+t:t,0,n.splice(e,1)[0]),n}function ej(r,e){return r.reduce((t,n,o)=>{const i=e.get(n);return i&&(t[o]=i),t},Array(r.length))}function _p(r){return r!==null&&r>=0}function tj(r,e){if(r===e)return!0;if(r.length!==e.length)return!1;for(let t=0;t<r.length;t++)if(r[t]!==e[t])return!1;return!0}function rj(r){return typeof r=="boolean"?{draggable:r,droppable:r}:r}const rS=r=>{let{rects:e,activeIndex:t,overIndex:n,index:o}=r;const i=ig(e,n,t),a=e[o],c=i[o];return!c||!a?null:{x:c.left-a.left,y:c.top-a.top,scaleX:c.width/a.width,scaleY:c.height/a.height}},Ap={scaleX:1,scaleY:1},nj=r=>{var e;let{activeIndex:t,activeNodeRect:n,index:o,rects:i,overIndex:a}=r;const c=(e=i[t])!=null?e:n;if(!c)return null;if(o===t){const h=i[a];return h?{x:0,y:t<a?h.top+h.height-(c.top+c.height):h.top-c.top,...Ap}:null}const d=oj(i,o,t);return o>t&&o<=a?{x:0,y:-c.height-d,...Ap}:o<t&&o>=a?{x:0,y:c.height+d,...Ap}:{x:0,y:0,...Ap}};function oj(r,e,t){const n=r[e],o=r[e-1],i=r[e+1];return n?t<e?o?n.top-(o.top+o.height):i?i.top-(n.top+n.height):0:i?i.top-(n.top+n.height):o?n.top-(o.top+o.height):0:0}const nS="Sortable",oS=C.createContext({activeIndex:-1,containerId:nS,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:rS,disabled:{draggable:!1,droppable:!1}});function ij(r){let{children:e,id:t,items:n,strategy:o=rS,disabled:i=!1}=r;const{active:a,dragOverlay:c,droppableRects:d,over:h,measureDroppableContainers:g}=YF(),m=Fh(nS,t),p=c.rect!==null,v=C.useMemo(()=>n.map(B=>typeof B=="object"&&"id"in B?B.id:B),[n]),w=a!=null,T=a?v.indexOf(a.id):-1,_=h?v.indexOf(h.id):-1,A=C.useRef(v),R=!tj(v,A.current),D=_!==-1&&T===-1||R,I=rj(i);sl(()=>{R&&w&&g(v)},[R,v,w,g]),C.useEffect(()=>{A.current=v},[v]);const F=C.useMemo(()=>({activeIndex:T,containerId:m,disabled:I,disableTransforms:D,items:v,overIndex:_,useDragOverlay:p,sortedRects:ej(v,d),strategy:o}),[T,m,I.draggable,I.droppable,D,v,_,d,p,o]);return C.createElement(oS.Provider,{value:F},e)}const sj=r=>{let{id:e,items:t,activeIndex:n,overIndex:o}=r;return ig(t,n,o).indexOf(e)},aj=r=>{let{containerId:e,isSorting:t,wasDragging:n,index:o,items:i,newIndex:a,previousItems:c,previousContainerId:d,transition:h}=r;return!h||!n||c!==i&&o===a?!1:t?!0:a!==o&&e===d},lj={duration:200,easing:"ease"},iS="transform",cj=kh.Transition.toString({property:iS,duration:0,easing:"linear"}),uj={roleDescription:"sortable"};function dj(r){let{disabled:e,index:t,node:n,rect:o}=r;const[i,a]=C.useState(null),c=C.useRef(t);return sl(()=>{if(!e&&t!==c.current&&n.current){const d=o.current;if(d){const h=bf(n.current,{ignoreTransform:!0}),g={x:d.left-h.left,y:d.top-h.top,scaleX:d.width/h.width,scaleY:d.height/h.height};(g.x||g.y)&&a(g)}}t!==c.current&&(c.current=t)},[e,t,n,o]),C.useEffect(()=>{i&&a(null)},[i]),i}function fj(r){let{animateLayoutChanges:e=aj,attributes:t,disabled:n,data:o,getNewIndex:i=sj,id:a,strategy:c,resizeObserverConfig:d,transition:h=lj}=r;const{items:g,containerId:m,activeIndex:p,disabled:v,disableTransforms:w,sortedRects:T,overIndex:_,useDragOverlay:A,strategy:R}=C.useContext(oS),D=hj(n,v),I=g.indexOf(a),F=C.useMemo(()=>({sortable:{containerId:m,index:I,items:g},...o}),[m,o,I,g]),B=C.useMemo(()=>g.slice(g.indexOf(a)),[g,a]),{rect:H,node:j,isOver:G,setNodeRef:ge}=XF({id:a,data:F,disabled:D.droppable,resizeObserverConfig:{updateMeasurementsFor:B,...d}}),{active:P,activatorEvent:q,activeNodeRect:V,attributes:Q,setNodeRef:ie,listeners:se,isDragging:ae,over:le,setActivatorNodeRef:fe,transform:ee}=GF({id:a,data:F,attributes:{...uj,...t},disabled:D.draggable}),ne=EB(ge,ie),ce=!!P,xe=ce&&!w&&_p(p)&&_p(_),Me=!A&&ae,oe=Me&&xe?ee:null,Le=xe?oe??(c??R)({rects:T,activeNodeRect:V,activeIndex:p,overIndex:_,index:I}):null,We=_p(p)&&_p(_)?i({id:a,items:g,activeIndex:p,overIndex:_}):I,Ve=P==null?void 0:P.id,we=C.useRef({activeId:Ve,items:g,newIndex:We,containerId:m}),_e=g!==we.current.items,Ae=e({active:P,containerId:m,isDragging:ae,isSorting:ce,id:a,index:I,items:g,newIndex:we.current.newIndex,previousItems:we.current.items,previousContainerId:we.current.containerId,transition:h,wasDragging:we.current.activeId!=null}),Ie=dj({disabled:!Ae,index:I,node:j,rect:H});return C.useEffect(()=>{ce&&we.current.newIndex!==We&&(we.current.newIndex=We),m!==we.current.containerId&&(we.current.containerId=m),g!==we.current.items&&(we.current.items=g)},[ce,We,m,g]),C.useEffect(()=>{if(Ve===we.current.activeId)return;if(Ve!=null&&we.current.activeId==null){we.current.activeId=Ve;return}const it=setTimeout(()=>{we.current.activeId=Ve},50);return()=>clearTimeout(it)},[Ve]),{active:P,activeIndex:p,attributes:Q,data:F,rect:H,index:I,newIndex:We,items:g,isOver:G,isSorting:ce,isDragging:ae,listeners:se,node:j,overIndex:_,over:le,setNodeRef:ne,setActivatorNodeRef:fe,setDroppableNodeRef:ge,setDraggableNodeRef:ie,transform:Ie??Le,transition:je()};function je(){if(Ie||_e&&we.current.newIndex===I)return cj;if(!(Me&&!zv(q)||!h)&&(ce||Ae))return kh.Transition.toString({...h,property:iS})}}function hj(r,e){var t,n;return typeof r=="boolean"?{draggable:r,droppable:!1}:{draggable:(t=r==null?void 0:r.draggable)!=null?t:e.draggable,droppable:(n=r==null?void 0:r.droppable)!=null?n:e.droppable}}cn.Down,cn.Right,cn.Up,cn.Left;function sg(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=sg(t.children,e);if(n)return n}}function jh(r,e){Array.isArray(r)||(r=[r]);for(const t of r)e(t),!(!t.children||t.children.length<1)&&jh(t.children,e)}function sS(r,e){Array.isArray(r)||(r=[r]);const t=[];return jh(r,(n,o)=>t.push(e(n,o))),t}function aS(r,e){Array.isArray(r)||(r=[r]);for(const t of r){if(!e(t))return!1;if(!(!t.children||t.children.length<1)&&!aS(t.children,e))return!1}return!0}function pj(r,e){Array.isArray(r)||(r=[r]);const t=[];return jh(r,(n,o)=>{e(n,o)&&t.push(n)}),t}function gj(r){Array.isArray(r)||(r=[r]);let e=0;return jh(r,()=>e++),e}function mj(r,e,t,n){if(n(e,t))return null;Array.isArray(r)||(r=[r]);const o=sg(r,a=>{var c;return(c=a.children)==null?void 0:c.some(d=>n(d,e))}),i=sg(r,a=>{var c;return(c=a.children)==null?void 0:c.some(d=>n(d,t))});if(o===void 0&&i===void 0){const a=r.findIndex(d=>n(d,e)),c=r.findIndex(d=>n(d,t));return r.splice(a,1),r.splice(c,0,e),[...r]}else if(o!==void 0&&i!==void 0&&n(o,i)&&o.children){const a=o.children.findIndex(d=>n(d,e)),c=o.children.findIndex(d=>n(d,t));return a===void 0||c===void 0?null:(o.children.splice(a,1),o.children.splice(c,0,e),o.children=[...o.children],[...r])}return null}function vj(r,e,t){const n=[],o=[...e];for(;o.length>0;){const i=o.shift();if(i&&!n.find(a=>t(a,i))&&(n.push(i),!(!i.children||i.children.length<1)))for(const a of i.children)o.push(a)}return n}function yj(r,e,t){Array.isArray(r)||(r=[r]);const n=sS(r,a=>a),o=[],i=[...e];for(;i.length>0;){const a=i.shift();if(!a||o.find(d=>t(d,a)))continue;o.push(a);const c=n.find(d=>{var h;return(h=d.children)==null?void 0:h.some(g=>t(g,a))});c&&i.push(c)}return o}const Pc={find:sg,forEach:jh,map:sS,every:aS,filter:pj,length:gj,replace:mj,descendants:vj,ancestors:yj},bj="_AWrap_1tiv0_1",xj="_AContainer_1tiv0_10",wj="_ATree_1tiv0_18",Cj="_ATreeBody_1tiv0_30",Sj="_CoverBorder_1tiv0_36",_j="_InsertBorder_1tiv0_45",Aj="_ATreeHeader_1tiv0_76",Ej="_ATreeBodyHeader_1tiv0_82",Tj="_ATreeBodyHeaderResources_1tiv0_92",Rj="_ATreeItem_1tiv0_98",kj="_IsSelectUsed_1tiv0_114",Ij="_IsSelected_1tiv0_117",Mj="_IsSearchSelected_1tiv0_122",Lj="_IsHovered_1tiv0_133",Dj="_CheckBox_1tiv0_137",Oj="_Indents_1tiv0_149",Nj="_ExpandIcon_1tiv0_156",Pj="_Content_1tiv0_168",Bj="_RightSticky_1tiv0_177",Fj="_SearchInputWrap_1tiv0_187",jj="_SearchInput_1tiv0_187",Hj="_RightAddon_1tiv0_199",zj="_RightAddonIcon_1tiv0_210",$j="_Loader_1tiv0_217",Uj="_IsChildOfDragSource_1tiv0_222",xn={AWrap:bj,AContainer:xj,ATree:wj,ATreeBody:Cj,CoverBorder:Sj,InsertBorder:_j,ATreeHeader:Aj,ATreeBodyHeader:Ej,ATreeBodyHeaderResources:Tj,ATreeItem:Rj,IsSelectUsed:kj,IsSelected:Ij,IsSearchSelected:Mj,IsHovered:Lj,CheckBox:Dj,Indents:Oj,ExpandIcon:Nj,Content:Pj,RightSticky:Bj,SearchInputWrap:Fj,SearchInput:jj,RightAddon:Hj,RightAddonIcon:zj,Loader:$j,IsChildOfDragSource:Uj},qj=r=>{const{isEqual:e,item:t,itemId:n,selectDisabled:o,selectUnused:i,isParentDisabled:a,indents:c,extIndents:d,useExpand:h,useSelect:g,useSearch:m,showCheckbox:p,icons:v,iconWidth:w,isSelectMulti:T,isDraggable:_,isParentCheckHovered:A,hoverdItem:R,onMouseOver:D,onMouseLeave:I,ContentRenderer:F,TreeItemRenderer:B,RightStickyAddon:H,resources:j,containerRef:G,TreeItemStyle:ge,TreeItemClassName:P,searchItemStyle:q,searchItemClassName:V,height:Q,isDragSrcItem:ie,isChildOfDragItem:se}=r,{children:ae}=C.useMemo(()=>t,[t]),[le,fe]=C.useMemo(()=>h,[h]),[ee,ne]=C.useMemo(()=>g,[g]),[ce,xe]=C.useMemo(()=>m,[m]),Me=C.useMemo(()=>i?i(t):!1,[i,t]),oe=C.useMemo(()=>!o||a?a:o(t),[o,a,t]),Se=C.useMemo(()=>le.some(ze=>e(ze,t)),[le,e,t]),Le=C.useMemo(()=>!ae||ae.length<1?"noChild":Se?"expanded":"collapsed",[ae,Se]),We=C.useMemo(()=>{const ze=v[Le];return sv.includes(ze)?S.jsx(gn,{icon:ze,style:{width:w,height:w}}):ze},[v,w,Le]),Ve=C.useCallback(ze=>{!fe||Le==="noChild"||(fe(Se?le.filter(vt=>!e(vt,t)):[...le,t]),ze.stopPropagation())},[fe,le,Se,t,e,Le]),we=C.useMemo(()=>ee.some(ze=>e(ze,t)),[ee,e,t]),_e=C.useCallback(()=>{!ne||oe||(ne(T?we?ee.filter(ze=>!e(ze,t)):[...ee,t]:[t]),ce&&xe&&ce.items.some(ze=>e(ze,t))&&xe({...ce,item:t}))},[T,oe,we,ce,xe,ne,e,ee,t]),Ae=C.useMemo(()=>ce==null?void 0:ce.items.some(ze=>e(ze,t)),[ce,e,t]),Ie=C.useMemo(()=>Ae&&(ce==null?void 0:ce.item)&&e(ce.item,t),[Ae,ce,e,t]),je=C.useRef(null),it=C.useRef(null),{attributes:Ue,listeners:tt,setNodeRef:lt,transform:bt,transition:Mt,isDragging:Qe}=fj({id:n||`item-${JSON.stringify(t)}`,disabled:!_||!!a||!n}),Xe=C.useMemo(()=>se?se(t):!1,[se,t]),ht=C.useMemo(()=>{const ze=bt?{transform:kh.Transform.toString(bt),transition:Mt,opacity:Qe?.5:1,zIndex:Qe?1:"auto"}:{};return ie||Xe?{...ze,opacity:.5,zIndex:10}:ze},[bt,Mt,Qe,ie,Xe]);C.useEffect(()=>{n&<&&it.current&<(it.current)},[n,lt]),C.useEffect(()=>{setTimeout(()=>{if(Ie&&je.current&&G.current){const{top:ze,bottom:vt}=je.current.getBoundingClientRect(),{top:_t,bottom:Tt}=G.current.getBoundingClientRect();(ze<_t||vt>Tt)&&je.current.scrollIntoView({behavior:"smooth",block:"center"})}},10)},[G,Ie]);const[ft,Oe]=C.useState(!1),Je=C.useCallback(()=>!oe&&Oe(!0),[oe]),gt=C.useCallback(()=>!oe&&Oe(!1),[oe]),It=C.useMemo(()=>Pc.map(t,ze=>ze).filter(ze=>!(o!=null&&o(ze))&&!(i!=null&&i(ze))),[o,i,t]),Et=C.useMemo(()=>!p||!T?!1:we&&It.some(ze=>ee.some(vt=>e(ze,vt)))&&It.some(ze=>!ee.some(vt=>e(ze,vt))),[p,T,we,It,e,ee]),Dt=C.useMemo(()=>p?T?It.every(ze=>ee.some(vt=>e(ze,vt))):ee.some(ze=>e(ze,t)):!1,[p,T,It,t,e,ee]),Xt=C.useCallback(()=>{if(!(!ne||oe))if(T)if(we){const ze=ee.filter(vt=>!(i!=null&&i(vt))&&!(o!=null&&o(vt))&&It.some(_t=>e(_t,vt)));ze.length>0&&ne(ee.filter(vt=>!ze.some(_t=>e(vt,_t))))}else{const ze=It.filter(vt=>!(i!=null&&i(vt))&&!(o!=null&&o(vt))&&!ee.some(_t=>e(_t,vt)));ze.length>0&&ne([...ee,...ze])}else ne([t])},[oe,o,i,T,ne,e,we,ee,It,t]),Wt=C.useCallback(ze=>{oe||Xt(),ze.stopPropagation()},[oe,Xt]),hr=C.useMemo(()=>{if(!p||!T||oe)return"";if(we){const vt=ee.filter(_t=>!(i!=null&&i(_t))&&!(o!=null&&o(_t))&&It.some(Tt=>e(Tt,_t)));if(vt.length>0)return j["deselect n"](vt.length)}const ze=It.filter(vt=>!(i!=null&&i(vt))&&!(o!=null&&o(vt))&&!ee.some(_t=>e(_t,vt)));return j["select n"](ze.length)},[o,i,j,oe,p,T,we,It,e,ee]),dr=C.useMemo(()=>Pr.getContent(H,r),[H,r]),cr=C.useMemo(()=>Pr.getContent(ge,r),[r,ge]),Te=C.useMemo(()=>Pr.getContent(P,r),[r,P]),ue=C.useMemo(()=>Pr.getContent(V,r),[r,V]),st=C.useMemo(()=>Pr.getContent(q,r),[r,q]);return S.jsxs(C.Fragment,{children:[S.jsxs(Jr,{abaseRef:it,isDisabled:oe,className:Ye.clsx(xn.ATreeItem,we&&xn.IsSelected,!oe&&(ft||A)&&xn.IsHovered,Ae&&xn.IsSearched,Ie&&(ue||xn.IsSearchSelected),!Me&&xn.IsSelectUsed,Xe&&xn.IsChildOfDragSource,"NoSelect",Te),style:{...cr,...Ie&&st?st:{},"--ATreeItem_height":`${Q}px`,...ht||{}},onClick:_e,onMouseLeave:ze=>I==null?void 0:I(ze,t),onMouseOver:ze=>D==null?void 0:D(ze,t),..._&&!oe&&Ue?Ue:{},..._&&!oe&&tt?tt:{},children:[p&&S.jsx(of,{className:xn.CheckBox,isDisabled:oe,isIndeterminate:Et,tooltip:hr,useCheck:[+Dt,Xt],style:{visibility:oe||Me?"hidden":"visible",zIndex:oe||Me?0:2},onClick:Wt,onMouseOut:gt,onMouseOver:Je}),S.jsx("div",{className:xn.Indents,style:{paddingLeft:p?0:r.icons.noChild?12:0},children:c.map((ze,vt)=>{const _t=vt===c.length-1;return S.jsx(Gw,{value:ze,map:{Collapsed:d?d({iconWidth:w}).collapsed:S.jsx(Vj,{iconWidth:w}),Expanded:d?d({iconWidth:w,isLast:_t}).expanded:S.jsx(Wj,{iconWidth:w,isLast:_t}),IsLast:d?d({iconWidth:w}).isLast:S.jsx(Gj,{iconWidth:w})}},vt)})}),We&&S.jsx("div",{className:xn.ExpandIcon,style:{width:w,minWidth:w,maxWidth:w},onClick:Ve,children:We}),S.jsx("div",{className:Ye.clsx(xn.Content,"NoSelect"),children:S.jsx(F,{containerRef:G,ContentRenderer:F,extIndents:d,height:Q,hoverdItem:R,icons:v,iconWidth:w,indents:c,isDraggable:_,isEqual:e,isParentCheckHovered:T&&(ft||A),isSelectMulti:T,item:t,itemId:n,resources:j,RightStickyAddon:H,searchItemClassName:ue,searchItemStyle:q,showCheckbox:p,TreeItemClassName:P,TreeItemRenderer:B,TreeItemStyle:ge,useExpand:h,useSearch:m,useSelect:g,onMouseLeave:I,onMouseOver:D})}),dr&&S.jsx("div",{className:xn.RightSticky,children:dr})]}),Se&&(ae==null?void 0:ae.map((ze,vt)=>S.jsx(B,{containerRef:G,ContentRenderer:F,extIndents:d,height:Q,hoverdItem:R,icons:v,iconWidth:w,isChildOfDragItem:se,isDraggable:_,isDragSrcItem:ie,isEqual:e,isParentCheckHovered:T&&(ft||A),isSelectMulti:T,item:ze,itemId:n?`${n}-child-${vt}`:void 0,resources:j,RightStickyAddon:H,searchItemClassName:ue,searchItemStyle:q,selectDisabled:o,selectUnused:i,showCheckbox:p,TreeItemClassName:P,TreeItemRenderer:B,TreeItemStyle:ge,useExpand:h,useSearch:m,useSelect:g,indents:[...c.map(_t=>_t==="IsLast"?"Collapsed":_t),vt===ae.length-1?"IsLast":"Expanded"],onMouseLeave:I,onMouseOver:D},vt)))]})},Wj=({iconWidth:r,isLast:e})=>S.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&&S.jsx("div",{style:{borderBottom:"var(--ATree_Indent_border)",height:"50%",transition:"border-color var(--Transition)"}})}),Vj=({iconWidth:r})=>S.jsx("div",{style:{width:r,height:"100%",borderLeft:"none",marginLeft:0,transition:"border-color var(--Transition)"}}),Gj=({iconWidth:r})=>S.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)"}}),Yj=r=>{const{isEqual:e,searchResult:t,initSearch:n,searchUp:o,searchDown:i,searchEnter:a,isDisabled:c,isLoading:d,resources:h,maxLength:g,autoFocus:m}=r,p=C.useCallback(T=>{T.key==="Enter"?a():T.key==="ArrowDown"?i():T.key==="ArrowUp"&&o(),T.preventDefault(),T.stopPropagation()},[i,a,o]),v=C.useCallback(T=>{n(T)},[n]),w=C.useMemo(()=>c||d?-1:void 0,[c,d]);return S.jsx(Zc,{autoFocus:m,className:xn.SearchInput,isDisabled:c,maxLength:g,placeholder:h["Search(Placeholder)"],tabIndex:w,useValue:[(t==null?void 0:t.keyword)??"",v],RightAddon:S.jsx(Zj,{isEqual:e,resources:h,searchDown:i,searchEnter:a,searchResult:t,searchUp:o}),wrapProps:{className:xn.SearchInputWrap},onKeyDown:p})},Zj=r=>{const{isEqual:e,searchResult:t,searchUp:n,searchDown:o,searchEnter:i,resources:a}=r,c=C.useMemo(()=>!t||t.items.length<1?0:t.items.findIndex(w=>t.item&&e(w,t.item))+1,[t,e]),d=C.useMemo(()=>!t||t.items.length<1?0:t.items.length,[t]),h=C.useMemo(()=>c<2,[c]),g=C.useMemo(()=>c>=d,[c,d]),m=C.useCallback(w=>{w.stopPropagation(),!h&&n()},[n,h]),p=C.useCallback(w=>{w.stopPropagation(),!g&&o()},[o,g]),v=C.useCallback(w=>{w.stopPropagation(),i()},[i]);return S.jsx("div",{className:Ye.clsx(xn.RightAddon,"NoSelect"),children:t?S.jsxs(S.Fragment,{children:[c,"/",d,S.jsx(Jr,{isDisabled:h,onClick:m,children:S.jsx(gn,{className:xn.RightAddonIcon,icon:"ArrowUp",mask:""})}),S.jsx(Jr,{isDisabled:g,onClick:p,children:S.jsx(gn,{className:xn.RightAddonIcon,icon:"ArrowDown"})})]}):S.jsx(_o,{className:xn.RightAddonIcon,icon:"Search",style:{marginRight:4},tooltip:a["Search(Button)"],type:"Raw",onClick:v})})},Kj=r=>{var jr;const{pk:e,selectDisabled:t,selectUnused:n,useItems:o,useExpand:i,useSelect:a,useSearch:c,showCheckbox:d,iconWidth:h=24,icons:g={noChild:"Folder",collapsed:"FolderCopy",expanded:"FolderOpen"},indents:m,isSelectMulti:p=!1,noSearch:v=!1,isDraggable:w,noSyncSearchSelect:T=!1,actionRef:_,placeholder:A,searchPredicate:R=Jj,isDisabled:D,isLoading:I,ContentRenderer:F=Xj,TreeItemRenderer:B=qj,RightStickyAddon:H,TopRightAddon:j,TreeTopAddon:G,resources:ge,maxLength:P,autoFocus:q,TreeItemStyle:V,TreeItemClassName:Q,OverflowPadding:ie,insertBorder:se,width:ae,searchItemClassName:le,searchItemStyle:fe,height:ee=40,...ne}=r,ce=C.useMemo(()=>({...wr.ATree,...ge}),[ge]),xe=C.useCallback((Ze,te)=>!Ze||!te?!1:e!==void 0?Array.isArray(e)?e.every(ye=>Ze&&te&&Ze[ye]!==void 0&&te[ye]!==void 0&&Za.isEqual(Ze[ye],te[ye])):Ze&&te&&Ze[e]!==void 0&&te[e]!==void 0&&Za.isEqual(Ze[e],te[e]):Za.isEqual(Ze,te),[e]),Me=C.useRef(null),[oe,Se]=wn(o,[]),Le=C.useMemo(()=>Pc.map(oe,Ze=>Ze),[oe]),[We,Ve]=wn(i,[]),[we,_e]=wn(a,[]),[Ae,Ie]=wn(c,void 0),je=C.useCallback(Ze=>{if(D||!Ve||We.some(Be=>xe(Be,Ze)))return;const te=[];let ye=Ze;for(;ye;){const Be=ye;We.find(At=>xe(At,Be))||te.push(Be),ye=Le.find(At=>{var Ft;return(Ft=At.children)==null?void 0:Ft.some(Ot=>xe(Ot,Be))})}Ve([...We,...te])},[We,D,xe,Ve,Le]),it=C.useCallback(()=>{!Ve||D||Ve([...Le])},[Le,D,Ve]),Ue=C.useCallback(()=>{!Ve||D||Ve([])},[Ve,D]),tt=C.useCallback(Ze=>{!_e||D||n!=null&&n(Ze)||(_e([Ze]),je(Ze))},[_e,D,n,je]),lt=C.useCallback(Ze=>{if(!Ie||D)return;if(!Ze||v){Ie(void 0),T||_e==null||_e([]);return}const te=Pc.filter(oe,Be=>R(Ze,Be));let ye;if(te.find(Be=>(Ae==null?void 0:Ae.item)&&xe(Be,Ae.item))?ye=Ae==null?void 0:Ae.item:te.length>0&&(ye=te[0]),Ie({keyword:Ze,items:te,item:ye}),ye&&je(ye),_e&&!T)if(p)_e(te);else{const Be=te.find(At=>ye&&xe(At,ye));_e(Be?[Be]:[])}},[oe,D,xe,R,Ie,_e,je,T,v,p,Ae]),bt=C.useRef(!1);C.useEffect(()=>{bt.current=!0},[oe]),C.useEffect(()=>{Ae&&bt.current&&(lt(Ae.keyword),bt.current=!1)},[lt,Ae]);const Mt=C.useCallback(()=>{if(!Ae||!Ie||D)return;let Ze=Ae.items.findIndex(te=>Ae.item&&xe(te,Ae.item))-1;Ze<0||(Ie({...Ae,item:Ae.items[Ze]}),je(Ae.items[Ze]),T||tt(Ae.items[Ze]))},[Ae,je,Ie,D,tt,xe,T]),Qe=C.useCallback(()=>{if(!Ae||!Ie||D)return;let Ze=Ae.items.findIndex(te=>Ae.item&&xe(te,Ae.item))+1;Ze>=Ae.items.length||(Ie({...Ae,item:Ae.items[Ze]}),je(Ae.items[Ze]),T||tt(Ae.items[Ze]))},[Ae,je,D,Ie,tt,xe,T]),Xe=C.useCallback(()=>{if(!Ae||!Ie||D)return;let Ze=Ae.items.findIndex(ye=>Ae.item&&xe(ye,Ae.item));if(!T||n!=null&&n(Ae.items[Ze])){Qe();return}if(we.some(ye=>Ae.item&&xe(ye,Ae.item))){let ye=Ze+1;const Be=Ae.items[ye];if(ye>=Ae.items.length)return;Ie({...Ae,item:Be}),tt(Be)}else tt(Ae.items[Ze])},[Ae,Ie,D,we,T,Qe,xe,tt,n]),[ht,ft]=C.useState(!1),Oe=C.useCallback(()=>ft(!0),[]),Je=C.useCallback(()=>ft(!1),[]),gt=C.useMemo(()=>n?Pc.map(oe,Ze=>Ze).filter(Ze=>!n(Ze)):t?Pc.map(oe,Ze=>Ze).filter(Ze=>!t(Ze)):Pc.map(oe,Ze=>Ze),[n,t,oe]),It=C.useMemo(()=>!d||!p?!1:we.length>0&>.length>we.length,[d,p,we,gt]),Et=C.useMemo(()=>!d||!p?!1:we.length>0&>.length===we.length,[d,p,we,gt]),Dt=C.useCallback(()=>{if(!_e||!p||D)return;const Ze=we.filter(te=>!(n!=null&&n(te))&&!(t!=null&&t(te))&>.some(ye=>xe(ye,te)));if(Ze.length>0)_e(we.filter(te=>!Ze.some(ye=>xe(te,ye))));else{const te=gt.filter(ye=>!(n!=null&&n(ye))&&!(t!=null&&t(ye))&&!we.some(Be=>xe(Be,ye)));te.length>0&&_e([...we,...te])}},[p,D,n,t,_e,we,gt,xe]),Xt=C.useMemo(()=>{if(!d||!p||D)return"";const Ze=we.filter(te=>!(n!=null&&n(te))&&!(t!=null&&t(te))&>.some(ye=>xe(ye,te)));if(Ze.length>0)return ce["deselect n"](Ze.length);{const te=gt.filter(ye=>!(n!=null&&n(ye))&&!(t!=null&&t(ye))&&!we.some(Be=>xe(Be,ye)));return ce["select n"](te.length)}},[n,t,D,ce,d,p,gt,we,xe]),[Wt,hr]=C.useState(),dr=HB(Gb(Vv,{activationConstraint:{distance:8}}),Gb(qv)),cr=C.useRef(new Map),Te=C.useCallback(Ze=>{if(!cr.current.has(Ze)){const te=`item_${Za.uniqueId()}`;cr.current.set(Ze,te)}return cr.current.get(Ze)},[]),ue=C.useCallback(Ze=>Le.find(te=>Te(te)===Ze),[Le,Te]),st=C.useCallback(Ze=>!Wt||!Wt.children?!1:Wt.children.some(ye=>xe(ye,Ze))?!0:Wt.children.some(ye=>ye.children?Pc.find(ye,Be=>xe(Be,Ze))!==void 0:!1),[Wt,xe]),ze=C.useCallback(Ze=>{if(!w||D)return;const te=ue(Ze.active.id);te&&hr(te)},[w,D,ue]),vt=C.useCallback((Ze,te,ye,Be)=>{const At=Ze.findIndex(Ot=>Be(Ot,te)),Ft=Ze.findIndex(Ot=>Be(Ot,ye));return At!==-1&&Ft!==-1?ig(Ze,At,Ft):Ze.map(Ot=>{if(!Ot.children)return Ot;const er=Ot.children.findIndex(kt=>Be(kt,te)),Qt=Ot.children.findIndex(kt=>Be(kt,ye));return er!==-1&&Qt!==-1?{...Ot,children:ig(Ot.children,er,Qt)}:Ot.children?{...Ot,children:vt(Ot.children,te,ye,Be)}:Ot})},[]),_t=C.useCallback(Ze=>{!w||D||!Wt||!Ze.over||ue(Ze.over.id)},[w,D,Wt,ue]),Tt=C.useCallback(Ze=>{if(!w||D||!Se||!Wt||!Ze.over)return;const te=ue(Ze.over.id);if(!te||xe(Wt,te)){hr(void 0);return}const ye=vt(oe,Wt,te,xe);Se(ye),hr(void 0)},[w,D,Se,Wt,ue,xe,oe,vt]),Ut=C.useMemo(()=>oe.map(Ze=>Te(Ze)),[oe,Te]);C.useEffect(()=>{var Ze;d||(Ze=Me.current)==null||Ze.scrollTo(0,0)},[d,Me]),C.useEffect(()=>{!p&&we.length>1&&(_e==null||_e([we[we.length-1]]))},[p,_e,we]),C.useEffect(()=>{_&&(_.current={expandAll:it,collapseAll:Ue})},[_,it,Ue]),C.useEffect(()=>{if(!t||!_e)return;const Ze=we.filter(te=>!t(te));we.length!==Ze.length&&_e(Ze)},[t,we,_e]),C.useEffect(()=>{if(!n||!_e)return;const Ze=we.filter(te=>!n(te));we.length!==Ze.length&&_e(Ze)},[n,we,_e]),C.useEffect(()=>{Ie&&Ie(void 0)},[Ie]);const[Ge,at]=C.useState(!1);C.useEffect(()=>{at(Ze=>!Ze)},[oe]);const[ct,xt]=C.useState(null),Nt=C.useCallback((Ze,te)=>{D||(Ze.stopPropagation(),Ze.preventDefault(),xt(te))},[D]),Bt=C.useCallback((Ze,te)=>{ct===null||D||xe(te,ct)&&(Ze.stopPropagation(),Ze.preventDefault(),xt(null))},[ct,D,xe]),qt=C.useRef(null),[Yt,ir]=C.useState(!1),[jt,xr]=C.useState((jr=qt.current)==null?void 0:jr.scrollHeight);return C.useEffect(()=>{if(We.length<0)return;const Ze=Me.current,te=qt.current,ye=Ze.clientHeight<te.clientHeight;xr(ye?te.scrollHeight:Ze.clientHeight),ir(ye)},[We]),S.jsxs(Jr,{...ne,className:Ye.clsx(ne.className,xn.AWrap),isDisabled:D,children:[(!v||j)&&S.jsxs(On,{className:xn.ATreeHeader,children:[!v&&S.jsx(Yj,{autoFocus:q,initSearch:lt,isDisabled:D,isEqual:xe,isLoading:I,maxLength:P,resources:ce,searchDown:Qe,searchEnter:Xe,searchResult:Ae,searchUp:Mt}),!v&&j&&S.jsx(Nn,{w:8}),j]}),(!v||j||d&&p||w)&&S.jsx(gv,{isLoading:I&&oe.length!==0}),(d&&p||w)&&S.jsxs("div",{className:Ye.clsx(xn.ATreeBodyHeader,"NoSelect"),children:[d&&S.jsx(of,{className:xn.CheckBox,isDisabled:D,isIndeterminate:It,tooltip:Xt,useCheck:[+Et,()=>Dt()],onMouseOut:Je,onMouseOver:Oe}),ce.Items,S.jsx(Zu,{}),S.jsxs("div",{className:Ye.clsx(xn.ATreeBodyHeaderResources,"NoSelect"),style:{marginRight:Yt?8:0},children:[S.jsx("span",{children:d&&ce["*Click row for single select"]}),S.jsx("span",{children:w&&ce["*Change order to row drag"]})]})]}),S.jsx("div",{ref:Me,className:Ye.clsx(ne.className,xn.AContainer),children:S.jsxs("div",{className:xn.ATree,style:{minWidth:ae||"fit-content",marginRight:ie&&Yt?8:0},children:[S.jsxs("div",{ref:qt,className:xn.ATreeBody,children:[oe.length===0?I?S.jsx(Qj,{text:ce["Loading Contents..."]}):A:G,S.jsx(qF,{collisionDetection:WB,modifiers:[JF,QF],sensors:dr,measuring:{droppable:{strategy:hf.Always}},onDragEnd:Tt,onDragOver:_t,onDragStart:ze,children:S.jsx(ij,{items:Ut,strategy:nj,children:oe.map((Ze,te)=>S.jsx(B,{containerRef:Me,ContentRenderer:F,extIndents:m,height:ee,hoverdItem:ct,icons:g,iconWidth:h,indents:[],isChildOfDragItem:st,isDraggable:w,isDragSrcItem:xe(Ze,Wt),isEqual:xe,isParentCheckHovered:p&&ht,isParentDisabled:D,isSelectMulti:p,item:Ze,itemId:Te(Ze),resources:ce,RightStickyAddon:H,searchItemClassName:le,searchItemStyle:fe,selectDisabled:t,selectUnused:n,showCheckbox:d,TreeItemClassName:Q,TreeItemRenderer:B,TreeItemStyle:V,useExpand:[We,Ve],useSearch:[Ae,Ie],useSelect:[we,_e],onMouseLeave:Bt,onMouseOver:Nt},`${te}${Ge}`))})})]}),se&&S.jsxs(S.Fragment,{children:[S.jsx("div",{className:xn.CoverBorder}),S.jsx("div",{className:xn.InsertBorder,style:{"--InsertBorder_height":`${ee}px`,height:Yt?jt:"100%"}})]})]})})]})},Xj=r=>{const{item:e}=r,t={};return ar.keys(e).forEach(n=>{n!=="children"&&(t[n]=e[n])}),JSON.stringify(t)};function Jj(r,e){return ar.some(e,(t,n)=>{var o;return(o=ar.stringify(n))==null?void 0:o.toLowerCase().includes(r.toLowerCase())})}const Qj=r=>{const{text:e}=r;return S.jsxs(On,{className:Ye.clsx(xn.Loader,"NoSelect"),children:[S.jsx(gn,{height:40,icon:"Spinner",style:{height:40},width:40}),S.jsx(i2,{text:e})]})};var km,ix;function xf(){return ix||(ix=1,km=TypeError),km}const eH={},tH=Object.freeze(Object.defineProperty({__proto__:null,default:eH},Symbol.toStringTag,{value:"Module"})),rH=X3(tH);var Im,sx;function _g(){if(sx)return Im;sx=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,o=typeof Set=="function"&&Set.prototype,i=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,a=o&&i&&typeof i.get=="function"?i.get:null,c=o&&Set.prototype.forEach,d=typeof WeakMap=="function"&&WeakMap.prototype,h=d?WeakMap.prototype.has:null,g=typeof WeakSet=="function"&&WeakSet.prototype,m=g?WeakSet.prototype.has:null,p=typeof WeakRef=="function"&&WeakRef.prototype,v=p?WeakRef.prototype.deref:null,w=Boolean.prototype.valueOf,T=Object.prototype.toString,_=Function.prototype.toString,A=String.prototype.match,R=String.prototype.slice,D=String.prototype.replace,I=String.prototype.toUpperCase,F=String.prototype.toLowerCase,B=RegExp.prototype.test,H=Array.prototype.concat,j=Array.prototype.join,G=Array.prototype.slice,ge=Math.floor,P=typeof BigInt=="function"?BigInt.prototype.valueOf:null,q=Object.getOwnPropertySymbols,V=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Q=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ie=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Q||!0)?Symbol.toStringTag:null,se=Object.prototype.propertyIsEnumerable,ae=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(Te){return Te.__proto__}:null);function le(Te,ue){if(Te===1/0||Te===-1/0||Te!==Te||Te&&Te>-1e3&&Te<1e3||B.call(/e/,ue))return ue;var st=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof Te=="number"){var ze=Te<0?-ge(-Te):ge(Te);if(ze!==Te){var vt=String(ze),_t=R.call(ue,vt.length+1);return D.call(vt,st,"$&_")+"."+D.call(D.call(_t,/([0-9]{3})/g,"$&_"),/_$/,"")}}return D.call(ue,st,"$&_")}var fe=rH,ee=fe.custom,ne=je(ee)?ee:null,ce={__proto__:null,double:'"',single:"'"},xe={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Im=function Te(ue,st,ze,vt){var _t=st||{};if(tt(_t,"quoteStyle")&&!tt(ce,_t.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(tt(_t,"maxStringLength")&&(typeof _t.maxStringLength=="number"?_t.maxStringLength<0&&_t.maxStringLength!==1/0:_t.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Tt=tt(_t,"customInspect")?_t.customInspect:!0;if(typeof Tt!="boolean"&&Tt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(tt(_t,"indent")&&_t.indent!==null&&_t.indent!==" "&&!(parseInt(_t.indent,10)===_t.indent&&_t.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(tt(_t,"numericSeparator")&&typeof _t.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Ut=_t.numericSeparator;if(typeof ue>"u")return"undefined";if(ue===null)return"null";if(typeof ue=="boolean")return ue?"true":"false";if(typeof ue=="string")return gt(ue,_t);if(typeof ue=="number"){if(ue===0)return 1/0/ue>0?"0":"-0";var Ge=String(ue);return Ut?le(ue,Ge):Ge}if(typeof ue=="bigint"){var at=String(ue)+"n";return Ut?le(ue,at):at}var ct=typeof _t.depth>"u"?5:_t.depth;if(typeof ze>"u"&&(ze=0),ze>=ct&&ct>0&&typeof ue=="object")return Le(ue)?"[Array]":"[Object]";var xt=hr(_t,ze);if(typeof vt>"u")vt=[];else if(Mt(vt,ue)>=0)return"[Circular]";function Nt(kt,be,nt){if(be&&(vt=G.call(vt),vt.push(be)),nt){var yt={depth:_t.depth};return tt(_t,"quoteStyle")&&(yt.quoteStyle=_t.quoteStyle),Te(kt,yt,ze+1,vt)}return Te(kt,_t,ze+1,vt)}if(typeof ue=="function"&&!Ve(ue)){var Bt=bt(ue),qt=cr(ue,Nt);return"[Function"+(Bt?": "+Bt:" (anonymous)")+"]"+(qt.length>0?" { "+j.call(qt,", ")+" }":"")}if(je(ue)){var Yt=Q?D.call(String(ue),/^(Symbol\(.*\))_[^)]*$/,"$1"):V.call(ue);return typeof ue=="object"&&!Q?Et(Yt):Yt}if(Je(ue)){for(var ir="<"+F.call(String(ue.nodeName)),jt=ue.attributes||[],xr=0;xr<jt.length;xr++)ir+=" "+jt[xr].name+"="+Me(oe(jt[xr].value),"double",_t);return ir+=">",ue.childNodes&&ue.childNodes.length&&(ir+="..."),ir+="</"+F.call(String(ue.nodeName))+">",ir}if(Le(ue)){if(ue.length===0)return"[]";var jr=cr(ue,Nt);return xt&&!Wt(jr)?"["+dr(jr,xt)+"]":"[ "+j.call(jr,", ")+" ]"}if(we(ue)){var Ze=cr(ue,Nt);return!("cause"in Error.prototype)&&"cause"in ue&&!se.call(ue,"cause")?"{ ["+String(ue)+"] "+j.call(H.call("[cause]: "+Nt(ue.cause),Ze),", ")+" }":Ze.length===0?"["+String(ue)+"]":"{ ["+String(ue)+"] "+j.call(Ze,", ")+" }"}if(typeof ue=="object"&&Tt){if(ne&&typeof ue[ne]=="function"&&fe)return fe(ue,{depth:ct-ze});if(Tt!=="symbol"&&typeof ue.inspect=="function")return ue.inspect()}if(Qe(ue)){var te=[];return n&&n.call(ue,function(kt,be){te.push(Nt(be,ue,!0)+" => "+Nt(kt,ue))}),Xt("Map",t.call(ue),te,xt)}if(ft(ue)){var ye=[];return c&&c.call(ue,function(kt){ye.push(Nt(kt,ue))}),Xt("Set",a.call(ue),ye,xt)}if(Xe(ue))return Dt("WeakMap");if(Oe(ue))return Dt("WeakSet");if(ht(ue))return Dt("WeakRef");if(Ae(ue))return Et(Nt(Number(ue)));if(it(ue))return Et(Nt(P.call(ue)));if(Ie(ue))return Et(w.call(ue));if(_e(ue))return Et(Nt(String(ue)));if(typeof window<"u"&&ue===window)return"{ [object Window] }";if(typeof globalThis<"u"&&ue===globalThis||typeof Pi<"u"&&ue===Pi)return"{ [object globalThis] }";if(!We(ue)&&!Ve(ue)){var Be=cr(ue,Nt),At=ae?ae(ue)===Object.prototype:ue instanceof Object||ue.constructor===Object,Ft=ue instanceof Object?"":"null prototype",Ot=!At&&ie&&Object(ue)===ue&&ie in ue?R.call(lt(ue),8,-1):Ft?"Object":"",er=At||typeof ue.constructor!="function"?"":ue.constructor.name?ue.constructor.name+" ":"",Qt=er+(Ot||Ft?"["+j.call(H.call([],Ot||[],Ft||[]),": ")+"] ":"");return Be.length===0?Qt+"{}":xt?Qt+"{"+dr(Be,xt)+"}":Qt+"{ "+j.call(Be,", ")+" }"}return String(ue)};function Me(Te,ue,st){var ze=st.quoteStyle||ue,vt=ce[ze];return vt+Te+vt}function oe(Te){return D.call(String(Te),/"/g,""")}function Se(Te){return!ie||!(typeof Te=="object"&&(ie in Te||typeof Te[ie]<"u"))}function Le(Te){return lt(Te)==="[object Array]"&&Se(Te)}function We(Te){return lt(Te)==="[object Date]"&&Se(Te)}function Ve(Te){return lt(Te)==="[object RegExp]"&&Se(Te)}function we(Te){return lt(Te)==="[object Error]"&&Se(Te)}function _e(Te){return lt(Te)==="[object String]"&&Se(Te)}function Ae(Te){return lt(Te)==="[object Number]"&&Se(Te)}function Ie(Te){return lt(Te)==="[object Boolean]"&&Se(Te)}function je(Te){if(Q)return Te&&typeof Te=="object"&&Te instanceof Symbol;if(typeof Te=="symbol")return!0;if(!Te||typeof Te!="object"||!V)return!1;try{return V.call(Te),!0}catch{}return!1}function it(Te){if(!Te||typeof Te!="object"||!P)return!1;try{return P.call(Te),!0}catch{}return!1}var Ue=Object.prototype.hasOwnProperty||function(Te){return Te in this};function tt(Te,ue){return Ue.call(Te,ue)}function lt(Te){return T.call(Te)}function bt(Te){if(Te.name)return Te.name;var ue=A.call(_.call(Te),/^function\s*([\w$]+)/);return ue?ue[1]:null}function Mt(Te,ue){if(Te.indexOf)return Te.indexOf(ue);for(var st=0,ze=Te.length;st<ze;st++)if(Te[st]===ue)return st;return-1}function Qe(Te){if(!t||!Te||typeof Te!="object")return!1;try{t.call(Te);try{a.call(Te)}catch{return!0}return Te instanceof Map}catch{}return!1}function Xe(Te){if(!h||!Te||typeof Te!="object")return!1;try{h.call(Te,h);try{m.call(Te,m)}catch{return!0}return Te instanceof WeakMap}catch{}return!1}function ht(Te){if(!v||!Te||typeof Te!="object")return!1;try{return v.call(Te),!0}catch{}return!1}function ft(Te){if(!a||!Te||typeof Te!="object")return!1;try{a.call(Te);try{t.call(Te)}catch{return!0}return Te instanceof Set}catch{}return!1}function Oe(Te){if(!m||!Te||typeof Te!="object")return!1;try{m.call(Te,m);try{h.call(Te,h)}catch{return!0}return Te instanceof WeakSet}catch{}return!1}function Je(Te){return!Te||typeof Te!="object"?!1:typeof HTMLElement<"u"&&Te instanceof HTMLElement?!0:typeof Te.nodeName=="string"&&typeof Te.getAttribute=="function"}function gt(Te,ue){if(Te.length>ue.maxStringLength){var st=Te.length-ue.maxStringLength,ze="... "+st+" more character"+(st>1?"s":"");return gt(R.call(Te,0,ue.maxStringLength),ue)+ze}var vt=xe[ue.quoteStyle||"single"];vt.lastIndex=0;var _t=D.call(D.call(Te,vt,"\\$1"),/[\x00-\x1f]/g,It);return Me(_t,"single",ue)}function It(Te){var ue=Te.charCodeAt(0),st={8:"b",9:"t",10:"n",12:"f",13:"r"}[ue];return st?"\\"+st:"\\x"+(ue<16?"0":"")+I.call(ue.toString(16))}function Et(Te){return"Object("+Te+")"}function Dt(Te){return Te+" { ? }"}function Xt(Te,ue,st,ze){var vt=ze?dr(st,ze):j.call(st,", ");return Te+" ("+ue+") {"+vt+"}"}function Wt(Te){for(var ue=0;ue<Te.length;ue++)if(Mt(Te[ue],`
|
363
|
-
`)>=0)return!1;return!0}function hr(Te,ue){var
|
364
|
-
`+ue.prev+ue.base;return
|
365
|
-
`+ue.prev}function cr(Te,ue){var st=Le(Te),ze=[];if(st){ze.length=Te.length;for(var vt=0;vt<Te.length;vt++)ze[vt]=tt(Te,vt)?ue(Te[vt],Te):""}var _t=typeof q=="function"?q(Te):[],Tt;if(Q){Tt={};for(var Ut=0;Ut<_t.length;Ut++)Tt["$"+_t[Ut]]=_t[Ut]}for(var Ge in Te)tt(Te,Ge)&&(st&&String(Number(Ge))===Ge&&Ge<Te.length||Q&&Tt["$"+Ge]instanceof Symbol||(B.call(/[^\w$]/,Ge)?ze.push(ue(Ge,Te)+": "+ue(Te[Ge],Te)):ze.push(Ge+": "+ue(Te[Ge],Te))));if(typeof q=="function")for(var at=0;at<_t.length;at++)se.call(Te,_t[at])&&ze.push("["+ue(_t[at])+"]: "+ue(Te[_t[at]],Te));return ze}return Im}var Mm,ax;function nH(){if(ax)return Mm;ax=1;var r=_g(),e=xf(),t=function(c,d,h){for(var g=c,m;(m=g.next)!=null;g=m)if(m.key===d)return g.next=m.next,h||(m.next=c.next,c.next=m),m},n=function(c,d){if(c){var h=t(c,d);return h&&h.value}},o=function(c,d,h){var g=t(c,d);g?g.value=h:c.next={key:d,next:c.next,value:h}},i=function(c,d){return c?!!t(c,d):!1},a=function(c,d){if(c)return t(c,d,!0)};return Mm=function(){var d,h={assert:function(g){if(!h.has(g))throw new e("Side channel does not contain "+r(g))},delete:function(g){var m=d&&d.next,p=a(d,g);return p&&m&&m===p&&(d=void 0),!!p},get:function(g){return n(d,g)},has:function(g){return i(d,g)},set:function(g,m){d||(d={next:void 0}),o(d,g,m)}};return h},Mm}var Lm,lx;function lS(){return lx||(lx=1,Lm=Object),Lm}var Dm,cx;function oH(){return cx||(cx=1,Dm=Error),Dm}var Om,ux;function iH(){return ux||(ux=1,Om=EvalError),Om}var Nm,dx;function sH(){return dx||(dx=1,Nm=RangeError),Nm}var Pm,fx;function aH(){return fx||(fx=1,Pm=ReferenceError),Pm}var Bm,hx;function lH(){return hx||(hx=1,Bm=SyntaxError),Bm}var Fm,px;function cH(){return px||(px=1,Fm=URIError),Fm}var jm,gx;function uH(){return gx||(gx=1,jm=Math.abs),jm}var Hm,mx;function dH(){return mx||(mx=1,Hm=Math.floor),Hm}var zm,vx;function fH(){return vx||(vx=1,zm=Math.max),zm}var $m,yx;function hH(){return yx||(yx=1,$m=Math.min),$m}var Um,bx;function pH(){return bx||(bx=1,Um=Math.pow),Um}var qm,xx;function gH(){return xx||(xx=1,qm=Math.round),qm}var Wm,wx;function mH(){return wx||(wx=1,Wm=Number.isNaN||function(e){return e!==e}),Wm}var Vm,Cx;function vH(){if(Cx)return Vm;Cx=1;var r=mH();return Vm=function(t){return r(t)||t===0?t:t<0?-1:1},Vm}var Gm,Sx;function yH(){return Sx||(Sx=1,Gm=Object.getOwnPropertyDescriptor),Gm}var Ym,_x;function cS(){if(_x)return Ym;_x=1;var r=yH();if(r)try{r([],"length")}catch{r=null}return Ym=r,Ym}var Zm,Ax;function bH(){if(Ax)return Zm;Ax=1;var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return Zm=r,Zm}var Km,Ex;function xH(){return Ex||(Ex=1,Km=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 o=42;e[t]=o;for(var i 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 a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(e,t);if(c.value!==o||c.enumerable!==!0)return!1}return!0}),Km}var Xm,Tx;function wH(){if(Tx)return Xm;Tx=1;var r=typeof Symbol<"u"&&Symbol,e=xH();return Xm=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Xm}var Jm,Rx;function uS(){return Rx||(Rx=1,Jm=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Jm}var Qm,kx;function dS(){if(kx)return Qm;kx=1;var r=lS();return Qm=r.getPrototypeOf||null,Qm}var e1,Ix;function CH(){if(Ix)return e1;Ix=1;var r="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,n="[object Function]",o=function(d,h){for(var g=[],m=0;m<d.length;m+=1)g[m]=d[m];for(var p=0;p<h.length;p+=1)g[p+d.length]=h[p];return g},i=function(d,h){for(var g=[],m=h,p=0;m<d.length;m+=1,p+=1)g[p]=d[m];return g},a=function(c,d){for(var h="",g=0;g<c.length;g+=1)h+=c[g],g+1<c.length&&(h+=d);return h};return e1=function(d){var h=this;if(typeof h!="function"||e.apply(h)!==n)throw new TypeError(r+h);for(var g=i(arguments,1),m,p=function(){if(this instanceof m){var A=h.apply(this,o(g,arguments));return Object(A)===A?A:this}return h.apply(d,o(g,arguments))},v=t(0,h.length-g.length),w=[],T=0;T<v;T++)w[T]="$"+T;if(m=Function("binder","return function ("+a(w,",")+"){ return binder.apply(this,arguments); }")(p),h.prototype){var _=function(){};_.prototype=h.prototype,m.prototype=new _,_.prototype=null}return m},e1}var t1,Mx;function Ag(){if(Mx)return t1;Mx=1;var r=CH();return t1=Function.prototype.bind||r,t1}var r1,Lx;function Gv(){return Lx||(Lx=1,r1=Function.prototype.call),r1}var n1,Dx;function fS(){return Dx||(Dx=1,n1=Function.prototype.apply),n1}var o1,Ox;function SH(){return Ox||(Ox=1,o1=typeof Reflect<"u"&&Reflect&&Reflect.apply),o1}var i1,Nx;function _H(){if(Nx)return i1;Nx=1;var r=Ag(),e=fS(),t=Gv(),n=SH();return i1=n||r.call(t,e),i1}var s1,Px;function hS(){if(Px)return s1;Px=1;var r=Ag(),e=xf(),t=Gv(),n=_H();return s1=function(i){if(i.length<1||typeof i[0]!="function")throw new e("a function is required");return n(r,t,i)},s1}var a1,Bx;function AH(){if(Bx)return a1;Bx=1;var r=hS(),e=cS(),t;try{t=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var n=!!t&&e&&e(Object.prototype,"__proto__"),o=Object,i=o.getPrototypeOf;return a1=n&&typeof n.get=="function"?r([n.get]):typeof i=="function"?function(c){return i(c==null?c:o(c))}:!1,a1}var l1,Fx;function EH(){if(Fx)return l1;Fx=1;var r=uS(),e=dS(),t=AH();return l1=r?function(o){return r(o)}:e?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return e(o)}:t?function(o){return t(o)}:null,l1}var c1,jx;function TH(){if(jx)return c1;jx=1;var r=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=Ag();return c1=t.call(r,e),c1}var u1,Hx;function Yv(){if(Hx)return u1;Hx=1;var r,e=lS(),t=oH(),n=iH(),o=sH(),i=aH(),a=lH(),c=xf(),d=cH(),h=uH(),g=dH(),m=fH(),p=hH(),v=pH(),w=gH(),T=vH(),_=Function,A=function(Ve){try{return _('"use strict"; return ('+Ve+").constructor;")()}catch{}},R=cS(),D=bH(),I=function(){throw new c},F=R?function(){try{return arguments.callee,I}catch{try{return R(arguments,"callee").get}catch{return I}}}():I,B=wH()(),H=EH(),j=dS(),G=uS(),ge=fS(),P=Gv(),q={},V=typeof Uint8Array>"u"||!H?r:H(Uint8Array),Q={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":B&&H?H([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":q,"%AsyncGenerator%":q,"%AsyncGeneratorFunction%":q,"%AsyncIteratorPrototype%":q,"%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%":_,"%GeneratorFunction%":q,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":B&&H?H(H([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!B||!H?r:H(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":R,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":o,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!B||!H?r:H(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":B&&H?H(""[Symbol.iterator]()):r,"%Symbol%":B?Symbol:r,"%SyntaxError%":a,"%ThrowTypeError%":F,"%TypedArray%":V,"%TypeError%":c,"%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%":d,"%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%":ge,"%Object.defineProperty%":D,"%Object.getPrototypeOf%":j,"%Math.abs%":h,"%Math.floor%":g,"%Math.max%":m,"%Math.min%":p,"%Math.pow%":v,"%Math.round%":w,"%Math.sign%":T,"%Reflect.getPrototypeOf%":G};if(H)try{null.error}catch(Ve){var ie=H(H(Ve));Q["%Error.prototype%"]=ie}var se=function Ve(we){var _e;if(we==="%AsyncFunction%")_e=A("async function () {}");else if(we==="%GeneratorFunction%")_e=A("function* () {}");else if(we==="%AsyncGeneratorFunction%")_e=A("async function* () {}");else if(we==="%AsyncGenerator%"){var Ae=Ve("%AsyncGeneratorFunction%");Ae&&(_e=Ae.prototype)}else if(we==="%AsyncIteratorPrototype%"){var Ie=Ve("%AsyncGenerator%");Ie&&H&&(_e=H(Ie.prototype))}return Q[we]=_e,_e},ae={__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=Ag(),fe=TH(),ee=le.call(P,Array.prototype.concat),ne=le.call(ge,Array.prototype.splice),ce=le.call(P,String.prototype.replace),xe=le.call(P,String.prototype.slice),Me=le.call(P,RegExp.prototype.exec),oe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Se=/\\(\\)?/g,Le=function(we){var _e=xe(we,0,1),Ae=xe(we,-1);if(_e==="%"&&Ae!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(Ae==="%"&&_e!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var Ie=[];return ce(we,oe,function(je,it,Ue,tt){Ie[Ie.length]=Ue?ce(tt,Se,"$1"):it||je}),Ie},We=function(we,_e){var Ae=we,Ie;if(fe(ae,Ae)&&(Ie=ae[Ae],Ae="%"+Ie[0]+"%"),fe(Q,Ae)){var je=Q[Ae];if(je===q&&(je=se(Ae)),typeof je>"u"&&!_e)throw new c("intrinsic "+we+" exists, but is not available. Please file an issue!");return{alias:Ie,name:Ae,value:je}}throw new a("intrinsic "+we+" does not exist!")};return u1=function(we,_e){if(typeof we!="string"||we.length===0)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof _e!="boolean")throw new c('"allowMissing" argument must be a boolean');if(Me(/^%?[^%]*%?$/,we)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Ae=Le(we),Ie=Ae.length>0?Ae[0]:"",je=We("%"+Ie+"%",_e),it=je.name,Ue=je.value,tt=!1,lt=je.alias;lt&&(Ie=lt[0],ne(Ae,ee([0,1],lt)));for(var bt=1,Mt=!0;bt<Ae.length;bt+=1){var Qe=Ae[bt],Xe=xe(Qe,0,1),ht=xe(Qe,-1);if((Xe==='"'||Xe==="'"||Xe==="`"||ht==='"'||ht==="'"||ht==="`")&&Xe!==ht)throw new a("property names with quotes must have matching quotes");if((Qe==="constructor"||!Mt)&&(tt=!0),Ie+="."+Qe,it="%"+Ie+"%",fe(Q,it))Ue=Q[it];else if(Ue!=null){if(!(Qe in Ue)){if(!_e)throw new c("base intrinsic for "+we+" exists, but the property is not available.");return}if(R&&bt+1>=Ae.length){var ft=R(Ue,Qe);Mt=!!ft,Mt&&"get"in ft&&!("originalValue"in ft.get)?Ue=ft.get:Ue=Ue[Qe]}else Mt=fe(Ue,Qe),Ue=Ue[Qe];Mt&&!tt&&(Q[it]=Ue)}}return Ue},u1}var d1,zx;function pS(){if(zx)return d1;zx=1;var r=Yv(),e=hS(),t=e([r("%String.prototype.indexOf%")]);return d1=function(o,i){var a=r(o,!!i);return typeof a=="function"&&t(o,".prototype.")>-1?e([a]):a},d1}var f1,$x;function gS(){if($x)return f1;$x=1;var r=Yv(),e=pS(),t=_g(),n=xf(),o=r("%Map%",!0),i=e("Map.prototype.get",!0),a=e("Map.prototype.set",!0),c=e("Map.prototype.has",!0),d=e("Map.prototype.delete",!0),h=e("Map.prototype.size",!0);return f1=!!o&&function(){var m,p={assert:function(v){if(!p.has(v))throw new n("Side channel does not contain "+t(v))},delete:function(v){if(m){var w=d(m,v);return h(m)===0&&(m=void 0),w}return!1},get:function(v){if(m)return i(m,v)},has:function(v){return m?c(m,v):!1},set:function(v,w){m||(m=new o),a(m,v,w)}};return p},f1}var h1,Ux;function RH(){if(Ux)return h1;Ux=1;var r=Yv(),e=pS(),t=_g(),n=gS(),o=xf(),i=r("%WeakMap%",!0),a=e("WeakMap.prototype.get",!0),c=e("WeakMap.prototype.set",!0),d=e("WeakMap.prototype.has",!0),h=e("WeakMap.prototype.delete",!0);return h1=i?function(){var m,p,v={assert:function(w){if(!v.has(w))throw new o("Side channel does not contain "+t(w))},delete:function(w){if(i&&w&&(typeof w=="object"||typeof w=="function")){if(m)return h(m,w)}else if(n&&p)return p.delete(w);return!1},get:function(w){return i&&w&&(typeof w=="object"||typeof w=="function")&&m?a(m,w):p&&p.get(w)},has:function(w){return i&&w&&(typeof w=="object"||typeof w=="function")&&m?d(m,w):!!p&&p.has(w)},set:function(w,T){i&&w&&(typeof w=="object"||typeof w=="function")?(m||(m=new i),c(m,w,T)):n&&(p||(p=n()),p.set(w,T))}};return v}:n,h1}var p1,qx;function kH(){if(qx)return p1;qx=1;var r=xf(),e=_g(),t=nH(),n=gS(),o=RH(),i=o||n||t;return p1=function(){var c,d={assert:function(h){if(!d.has(h))throw new r("Side channel does not contain "+e(h))},delete:function(h){return!!c&&c.delete(h)},get:function(h){return c&&c.get(h)},has:function(h){return!!c&&c.has(h)},set:function(h,g){c||(c=i()),c.set(h,g)}};return d},p1}var g1,Wx;function Zv(){if(Wx)return g1;Wx=1;var r=String.prototype.replace,e=/%20/g,t={RFC1738:"RFC1738",RFC3986:"RFC3986"};return g1={default:t.RFC3986,formatters:{RFC1738:function(n){return r.call(n,e,"+")},RFC3986:function(n){return String(n)}},RFC1738:t.RFC1738,RFC3986:t.RFC3986},g1}var m1,Vx;function mS(){if(Vx)return m1;Vx=1;var r=Zv(),e=Object.prototype.hasOwnProperty,t=Array.isArray,n=function(){for(var _=[],A=0;A<256;++A)_.push("%"+((A<16?"0":"")+A.toString(16)).toUpperCase());return _}(),o=function(A){for(;A.length>1;){var R=A.pop(),D=R.obj[R.prop];if(t(D)){for(var I=[],F=0;F<D.length;++F)typeof D[F]<"u"&&I.push(D[F]);R.obj[R.prop]=I}}},i=function(A,R){for(var D=R&&R.plainObjects?{__proto__:null}:{},I=0;I<A.length;++I)typeof A[I]<"u"&&(D[I]=A[I]);return D},a=function _(A,R,D){if(!R)return A;if(typeof R!="object"&&typeof R!="function"){if(t(A))A.push(R);else if(A&&typeof A=="object")(D&&(D.plainObjects||D.allowPrototypes)||!e.call(Object.prototype,R))&&(A[R]=!0);else return[A,R];return A}if(!A||typeof A!="object")return[A].concat(R);var I=A;return t(A)&&!t(R)&&(I=i(A,D)),t(A)&&t(R)?(R.forEach(function(F,B){if(e.call(A,B)){var H=A[B];H&&typeof H=="object"&&F&&typeof F=="object"?A[B]=_(H,F,D):A.push(F)}else A[B]=F}),A):Object.keys(R).reduce(function(F,B){var H=R[B];return e.call(F,B)?F[B]=_(F[B],H,D):F[B]=H,F},I)},c=function(A,R){return Object.keys(R).reduce(function(D,I){return D[I]=R[I],D},A)},d=function(_,A,R){var D=_.replace(/\+/g," ");if(R==="iso-8859-1")return D.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(D)}catch{return D}},h=1024,g=function(A,R,D,I,F){if(A.length===0)return A;var B=A;if(typeof A=="symbol"?B=Symbol.prototype.toString.call(A):typeof A!="string"&&(B=String(A)),D==="iso-8859-1")return escape(B).replace(/%u[0-9a-f]{4}/gi,function(V){return"%26%23"+parseInt(V.slice(2),16)+"%3B"});for(var H="",j=0;j<B.length;j+=h){for(var G=B.length>=h?B.slice(j,j+h):B,ge=[],P=0;P<G.length;++P){var q=G.charCodeAt(P);if(q===45||q===46||q===95||q===126||q>=48&&q<=57||q>=65&&q<=90||q>=97&&q<=122||F===r.RFC1738&&(q===40||q===41)){ge[ge.length]=G.charAt(P);continue}if(q<128){ge[ge.length]=n[q];continue}if(q<2048){ge[ge.length]=n[192|q>>6]+n[128|q&63];continue}if(q<55296||q>=57344){ge[ge.length]=n[224|q>>12]+n[128|q>>6&63]+n[128|q&63];continue}P+=1,q=65536+((q&1023)<<10|G.charCodeAt(P)&1023),ge[ge.length]=n[240|q>>18]+n[128|q>>12&63]+n[128|q>>6&63]+n[128|q&63]}H+=ge.join("")}return H},m=function(A){for(var R=[{obj:{o:A},prop:"o"}],D=[],I=0;I<R.length;++I)for(var F=R[I],B=F.obj[F.prop],H=Object.keys(B),j=0;j<H.length;++j){var G=H[j],ge=B[G];typeof ge=="object"&&ge!==null&&D.indexOf(ge)===-1&&(R.push({obj:B,prop:G}),D.push(ge))}return o(R),A},p=function(A){return Object.prototype.toString.call(A)==="[object RegExp]"},v=function(A){return!A||typeof A!="object"?!1:!!(A.constructor&&A.constructor.isBuffer&&A.constructor.isBuffer(A))},w=function(A,R){return[].concat(A,R)},T=function(A,R){if(t(A)){for(var D=[],I=0;I<A.length;I+=1)D.push(R(A[I]));return D}return R(A)};return m1={arrayToObject:i,assign:c,combine:w,compact:m,decode:d,encode:g,isBuffer:v,isRegExp:p,maybeMap:T,merge:a},m1}var v1,Gx;function IH(){if(Gx)return v1;Gx=1;var r=kH(),e=mS(),t=Zv(),n=Object.prototype.hasOwnProperty,o={brackets:function(_){return _+"[]"},comma:"comma",indices:function(_,A){return _+"["+A+"]"},repeat:function(_){return _}},i=Array.isArray,a=Array.prototype.push,c=function(T,_){a.apply(T,i(_)?_:[_])},d=Date.prototype.toISOString,h=t.default,g={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:h,formatter:t.formatters[h],indices:!1,serializeDate:function(_){return d.call(_)},skipNulls:!1,strictNullHandling:!1},m=function(_){return typeof _=="string"||typeof _=="number"||typeof _=="boolean"||typeof _=="symbol"||typeof _=="bigint"},p={},v=function T(_,A,R,D,I,F,B,H,j,G,ge,P,q,V,Q,ie,se,ae){for(var le=_,fe=ae,ee=0,ne=!1;(fe=fe.get(p))!==void 0&&!ne;){var ce=fe.get(_);if(ee+=1,typeof ce<"u"){if(ce===ee)throw new RangeError("Cyclic object value");ne=!0}typeof fe.get(p)>"u"&&(ee=0)}if(typeof G=="function"?le=G(A,le):le instanceof Date?le=q(le):R==="comma"&&i(le)&&(le=e.maybeMap(le,function(it){return it instanceof Date?q(it):it})),le===null){if(F)return j&&!ie?j(A,g.encoder,se,"key",V):A;le=""}if(m(le)||e.isBuffer(le)){if(j){var xe=ie?A:j(A,g.encoder,se,"key",V);return[Q(xe)+"="+Q(j(le,g.encoder,se,"value",V))]}return[Q(A)+"="+Q(String(le))]}var Me=[];if(typeof le>"u")return Me;var oe;if(R==="comma"&&i(le))ie&&j&&(le=e.maybeMap(le,j)),oe=[{value:le.length>0?le.join(",")||null:void 0}];else if(i(G))oe=G;else{var Se=Object.keys(le);oe=ge?Se.sort(ge):Se}var Le=H?String(A).replace(/\./g,"%2E"):String(A),We=D&&i(le)&&le.length===1?Le+"[]":Le;if(I&&i(le)&&le.length===0)return We+"[]";for(var Ve=0;Ve<oe.length;++Ve){var we=oe[Ve],_e=typeof we=="object"&&we&&typeof we.value<"u"?we.value:le[we];if(!(B&&_e===null)){var Ae=P&&H?String(we).replace(/\./g,"%2E"):String(we),Ie=i(le)?typeof R=="function"?R(We,Ae):We:We+(P?"."+Ae:"["+Ae+"]");ae.set(_,ee);var je=r();je.set(p,ae),c(Me,T(_e,Ie,R,D,I,F,B,H,R==="comma"&&ie&&i(le)?null:j,G,ge,P,q,V,Q,ie,se,je))}}return Me},w=function(_){if(!_)return g;if(typeof _.allowEmptyArrays<"u"&&typeof _.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof _.encodeDotInKeys<"u"&&typeof _.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(_.encoder!==null&&typeof _.encoder<"u"&&typeof _.encoder!="function")throw new TypeError("Encoder has to be a function.");var A=_.charset||g.charset;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");var R=t.default;if(typeof _.format<"u"){if(!n.call(t.formatters,_.format))throw new TypeError("Unknown format option provided.");R=_.format}var D=t.formatters[R],I=g.filter;(typeof _.filter=="function"||i(_.filter))&&(I=_.filter);var F;if(_.arrayFormat in o?F=_.arrayFormat:"indices"in _?F=_.indices?"indices":"repeat":F=g.arrayFormat,"commaRoundTrip"in _&&typeof _.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var B=typeof _.allowDots>"u"?_.encodeDotInKeys===!0?!0:g.allowDots:!!_.allowDots;return{addQueryPrefix:typeof _.addQueryPrefix=="boolean"?_.addQueryPrefix:g.addQueryPrefix,allowDots:B,allowEmptyArrays:typeof _.allowEmptyArrays=="boolean"?!!_.allowEmptyArrays:g.allowEmptyArrays,arrayFormat:F,charset:A,charsetSentinel:typeof _.charsetSentinel=="boolean"?_.charsetSentinel:g.charsetSentinel,commaRoundTrip:!!_.commaRoundTrip,delimiter:typeof _.delimiter>"u"?g.delimiter:_.delimiter,encode:typeof _.encode=="boolean"?_.encode:g.encode,encodeDotInKeys:typeof _.encodeDotInKeys=="boolean"?_.encodeDotInKeys:g.encodeDotInKeys,encoder:typeof _.encoder=="function"?_.encoder:g.encoder,encodeValuesOnly:typeof _.encodeValuesOnly=="boolean"?_.encodeValuesOnly:g.encodeValuesOnly,filter:I,format:R,formatter:D,serializeDate:typeof _.serializeDate=="function"?_.serializeDate:g.serializeDate,skipNulls:typeof _.skipNulls=="boolean"?_.skipNulls:g.skipNulls,sort:typeof _.sort=="function"?_.sort:null,strictNullHandling:typeof _.strictNullHandling=="boolean"?_.strictNullHandling:g.strictNullHandling}};return v1=function(T,_){var A=T,R=w(_),D,I;typeof R.filter=="function"?(I=R.filter,A=I("",A)):i(R.filter)&&(I=R.filter,D=I);var F=[];if(typeof A!="object"||A===null)return"";var B=o[R.arrayFormat],H=B==="comma"&&R.commaRoundTrip;D||(D=Object.keys(A)),R.sort&&D.sort(R.sort);for(var j=r(),G=0;G<D.length;++G){var ge=D[G],P=A[ge];R.skipNulls&&P===null||c(F,v(P,ge,B,H,R.allowEmptyArrays,R.strictNullHandling,R.skipNulls,R.encodeDotInKeys,R.encode?R.encoder:null,R.filter,R.sort,R.allowDots,R.serializeDate,R.format,R.formatter,R.encodeValuesOnly,R.charset,j))}var q=F.join(R.delimiter),V=R.addQueryPrefix===!0?"?":"";return R.charsetSentinel&&(R.charset==="iso-8859-1"?V+="utf8=%26%2310003%3B&":V+="utf8=%E2%9C%93&"),q.length>0?V+q:""},v1}var y1,Yx;function MH(){if(Yx)return y1;Yx=1;var r=mS(),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},o=function(p){return p.replace(/&#(\d+);/g,function(v,w){return String.fromCharCode(parseInt(w,10))})},i=function(p,v,w){if(p&&typeof p=="string"&&v.comma&&p.indexOf(",")>-1)return p.split(",");if(v.throwOnLimitExceeded&&w>=v.arrayLimit)throw new RangeError("Array limit exceeded. Only "+v.arrayLimit+" element"+(v.arrayLimit===1?"":"s")+" allowed in an array.");return p},a="utf8=%26%2310003%3B",c="utf8=%E2%9C%93",d=function(v,w){var T={__proto__:null},_=w.ignoreQueryPrefix?v.replace(/^\?/,""):v;_=_.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var A=w.parameterLimit===1/0?void 0:w.parameterLimit,R=_.split(w.delimiter,w.throwOnLimitExceeded?A+1:A);if(w.throwOnLimitExceeded&&R.length>A)throw new RangeError("Parameter limit exceeded. Only "+A+" parameter"+(A===1?"":"s")+" allowed.");var D=-1,I,F=w.charset;if(w.charsetSentinel)for(I=0;I<R.length;++I)R[I].indexOf("utf8=")===0&&(R[I]===c?F="utf-8":R[I]===a&&(F="iso-8859-1"),D=I,I=R.length);for(I=0;I<R.length;++I)if(I!==D){var B=R[I],H=B.indexOf("]="),j=H===-1?B.indexOf("="):H+1,G,ge;j===-1?(G=w.decoder(B,n.decoder,F,"key"),ge=w.strictNullHandling?null:""):(G=w.decoder(B.slice(0,j),n.decoder,F,"key"),ge=r.maybeMap(i(B.slice(j+1),w,t(T[G])?T[G].length:0),function(q){return w.decoder(q,n.decoder,F,"value")})),ge&&w.interpretNumericEntities&&F==="iso-8859-1"&&(ge=o(String(ge))),B.indexOf("[]=")>-1&&(ge=t(ge)?[ge]:ge);var P=e.call(T,G);P&&w.duplicates==="combine"?T[G]=r.combine(T[G],ge):(!P||w.duplicates==="last")&&(T[G]=ge)}return T},h=function(p,v,w,T){var _=0;if(p.length>0&&p[p.length-1]==="[]"){var A=p.slice(0,-1).join("");_=Array.isArray(v)&&v[A]?v[A].length:0}for(var R=T?v:i(v,w,_),D=p.length-1;D>=0;--D){var I,F=p[D];if(F==="[]"&&w.parseArrays)I=w.allowEmptyArrays&&(R===""||w.strictNullHandling&&R===null)?[]:r.combine([],R);else{I=w.plainObjects?{__proto__:null}:{};var B=F.charAt(0)==="["&&F.charAt(F.length-1)==="]"?F.slice(1,-1):F,H=w.decodeDotInKeys?B.replace(/%2E/g,"."):B,j=parseInt(H,10);!w.parseArrays&&H===""?I={0:R}:!isNaN(j)&&F!==H&&String(j)===H&&j>=0&&w.parseArrays&&j<=w.arrayLimit?(I=[],I[j]=R):H!=="__proto__"&&(I[H]=R)}R=I}return R},g=function(v,w,T,_){if(v){var A=T.allowDots?v.replace(/\.([^.[]+)/g,"[$1]"):v,R=/(\[[^[\]]*])/,D=/(\[[^[\]]*])/g,I=T.depth>0&&R.exec(A),F=I?A.slice(0,I.index):A,B=[];if(F){if(!T.plainObjects&&e.call(Object.prototype,F)&&!T.allowPrototypes)return;B.push(F)}for(var H=0;T.depth>0&&(I=D.exec(A))!==null&&H<T.depth;){if(H+=1,!T.plainObjects&&e.call(Object.prototype,I[1].slice(1,-1))&&!T.allowPrototypes)return;B.push(I[1])}if(I){if(T.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+T.depth+" and strictDepth is true");B.push("["+A.slice(I.index)+"]")}return h(B,w,T,_)}},m=function(v){if(!v)return n;if(typeof v.allowEmptyArrays<"u"&&typeof v.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof v.decodeDotInKeys<"u"&&typeof v.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(v.decoder!==null&&typeof v.decoder<"u"&&typeof v.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof v.charset<"u"&&v.charset!=="utf-8"&&v.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof v.throwOnLimitExceeded<"u"&&typeof v.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var w=typeof v.charset>"u"?n.charset:v.charset,T=typeof v.duplicates>"u"?n.duplicates:v.duplicates;if(T!=="combine"&&T!=="first"&&T!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var _=typeof v.allowDots>"u"?v.decodeDotInKeys===!0?!0:n.allowDots:!!v.allowDots;return{allowDots:_,allowEmptyArrays:typeof v.allowEmptyArrays=="boolean"?!!v.allowEmptyArrays:n.allowEmptyArrays,allowPrototypes:typeof v.allowPrototypes=="boolean"?v.allowPrototypes:n.allowPrototypes,allowSparse:typeof v.allowSparse=="boolean"?v.allowSparse:n.allowSparse,arrayLimit:typeof v.arrayLimit=="number"?v.arrayLimit:n.arrayLimit,charset:w,charsetSentinel:typeof v.charsetSentinel=="boolean"?v.charsetSentinel:n.charsetSentinel,comma:typeof v.comma=="boolean"?v.comma:n.comma,decodeDotInKeys:typeof v.decodeDotInKeys=="boolean"?v.decodeDotInKeys:n.decodeDotInKeys,decoder:typeof v.decoder=="function"?v.decoder:n.decoder,delimiter:typeof v.delimiter=="string"||r.isRegExp(v.delimiter)?v.delimiter:n.delimiter,depth:typeof v.depth=="number"||v.depth===!1?+v.depth:n.depth,duplicates:T,ignoreQueryPrefix:v.ignoreQueryPrefix===!0,interpretNumericEntities:typeof v.interpretNumericEntities=="boolean"?v.interpretNumericEntities:n.interpretNumericEntities,parameterLimit:typeof v.parameterLimit=="number"?v.parameterLimit:n.parameterLimit,parseArrays:v.parseArrays!==!1,plainObjects:typeof v.plainObjects=="boolean"?v.plainObjects:n.plainObjects,strictDepth:typeof v.strictDepth=="boolean"?!!v.strictDepth:n.strictDepth,strictNullHandling:typeof v.strictNullHandling=="boolean"?v.strictNullHandling:n.strictNullHandling,throwOnLimitExceeded:typeof v.throwOnLimitExceeded=="boolean"?v.throwOnLimitExceeded:!1}};return y1=function(p,v){var w=m(v);if(p===""||p===null||typeof p>"u")return w.plainObjects?{__proto__:null}:{};for(var T=typeof p=="string"?d(p,w):p,_=w.plainObjects?{__proto__:null}:{},A=Object.keys(T),R=0;R<A.length;++R){var D=A[R],I=g(D,T[D],w,typeof p=="string");_=r.merge(_,I,w)}return w.allowSparse===!0?_:r.compact(_)},y1}var b1,Zx;function LH(){if(Zx)return b1;Zx=1;var r=IH(),e=MH(),t=Zv();return b1={formats:t,parse:e,stringify:r},b1}var DH=LH();const OH=pf(DH),nv={StoredContexts:{},defaultHandler:()=>{}},vS={Init:()=>{},Create:r=>{const e=r.method+r.url;return nv.StoredContexts[e]=r,NH(r)},FetchBaseUrl:()=>window.location.href,useDefaultHandler:r=>{nv.defaultHandler=r}};function NH(r){const e=`[${r.method}] ${r.url}`;return{Call:async n=>{let{url:o,method:i,stream:a,paramType:c}=r;const{po:d,onStream:h,onStreamEnd:g,noDefaultHandle:m=[]}=n??{};(c==="query"||i==="GET")&&d!==void 0&&(o+="?"+OH.stringify(d,{arrayFormat:"comma"}));const p={method:i,headers:{Accept:"application/json;charset=UTF-8","X-Requested-With":"XMLHttpRequest","Cache-Control":"no-cache",Pragma:"no-cache",crossDomain:"true"}};if(c==="form"){const T=new FormData;if(d!==void 0)for(const _ in d){const A=d[_];T.append(_,A)}p.body=T}else(c==="body"||c===void 0&&r.method!=="GET")&&(p.body=JSON.stringify(d),p.headers["Content-Type"]="application/json;charset=UTF-8");let v={errorCode:0,message:""};const w=Date.now();o=vS.FetchBaseUrl()+o;try{let T=await fetch(o,p);if(T.ok===!1)return v.errorCode=T.status,v.message=T.statusText,v;{const _=new TextDecoder("utf-8");if(a){if(T.body){let A=T.body.getReader(),R="";for(;;){const D=await A.read();if(D.done)break;const I=_.decode(D.value).trim();R+=I;let F=null;try{const B=I.split("\0");let H=B[B.length-1];for(let j=B.length-2;j>=0;j--)if(B[j].trim().length!==0){H=B[j];break}F=await JSON.parse(H)}catch{try{const H=R.split("\0");let j=H[H.length-1];for(let G=H.length-2;G>=0;G--)if(H[G].trim().length!==0){j=H[G];break}F=await JSON.parse(j)}catch{}}if(F!=null&&(Object.keys(F).includes("err_code")?v.errorCode=F.err_code:(v.errorCode=0,v.data=F,R="",D.done?g==null||g(v.data):h==null||h(v.data))),D.done)break}}}else if(T.body){const R=await T.body.getReader().read(),D=_.decode(R.value);if(D==="null")return v;{let I=await JSON.parse(D.replaceAll("\0",""));Object.keys(I).includes("err_code")?(v.errorCode=I.err_code,v.message=I.err_msg):v.data=I}}}}catch(T){console.warn(T),v.errorCode=-1,v.message=T.message}return console.debug(`${e} ${Date.now()-w}ms`),m!==!0&&await nv.defaultHandler(v,m),v}}}exports.ABase=Jr;exports.ABaseStyleKeys=mw;exports.AButton=Zo;exports.AButtonStyleKeys=yw;exports.AButtonTypes=T4;exports.ACheckBox=of;exports.ACheckBoxStyleKeys=Cw;exports.AChip=cv;exports.AChipKeys=$w;exports.AChips=P5;exports.AClock=K5;exports.AColFrame=Vw;exports.ADatePicker=hv;exports.ADatePickerStyleKeys=Dw;exports.ADatePickerTypes=SR;exports.ADateRangePicker=dv;exports.ADateRangePickerStyleKeys=Ow;exports.ADialog=LR;exports.ADialogStyleKeys=Sw;exports.ADialogTypes=MR;exports.ADivideFrame=Yw;exports.AEditor=_B;exports.AEditorStyleKeys=ww;exports.AFileBox=UR;exports.AFileBoxStyleKeys=kw;exports.AFileUploader=hk;exports.AFileUploaderStyleKeys=Iw;exports.AFloatMenu=Xw;exports.AFloatMenuKeys=Fw;exports.AFrameStyleKeys=Bw;exports.AGrow=Zu;exports.AIcon=gn;exports.AIconButton=_o;exports.AIconButtonStyleKeys=Nw;exports.AIconButtonTypes=R4;exports.AIconHOC=OT;exports.AIcons=sv;exports.AInput=Zc;exports.AInputStyleKeys=bw;exports.AInputTypes=c6;exports.AListView=_k;exports.AListViewStyleKeys=Mw;exports.ALoadingBorder=gv;exports.ALoadingBorderKeys=jw;exports.AMultiSelect=Xk;exports.AMultiSelectStyleKeys=Aw;exports.ANumInput=bk;exports.AOverflowFrame=tl;exports.AProgressBar=ow;exports.ARadioSelect=Pk;exports.ARadioSelectKeys=zw;exports.ARowFrame=On;exports.ASelect=Kc;exports.ASelectStyleKeys=_w;exports.ASelectTypes=_6;exports.ASpace=Nn;exports.AStepper=fI;exports.AStepperStyleKeys=Lw;exports.ASwitch=cw;exports.ASwitchFrame=Gw;exports.ASwitchStyleKeys=Tw;exports.ATab=e2;exports.ATabStyleKeys=Rw;exports.ATabTypes=_I;exports.ATable=L8;exports.ATableStyleKeys=Pw;exports.AText=i2;exports.ATextArea=U8;exports.ATextAreaStyleKeys=xw;exports.ATextAreaTypes=$8;exports.AThemeButton=e5;exports.AThemes=th;exports.ATooltip=lw;exports.ATooltipStyleKeys=vw;exports.ATree=Kj;exports.ATreeStyleKeys=Ew;exports.AWrap=Yc;exports.AWrapKeys=Hw;exports.AWrapPropsExtract=Yu;exports.AWrapTypes=O4;exports.ApiContext=vS;exports.BodyStyleKeys=gw;exports.CreateADC=FR;exports.DefaultOptionRenderer=Qw;exports.EDir12=gf;exports.EDir4=Mo;exports.FileSizeTrans=Hu;exports.Icons=ag;exports.IsCursorPointer=ew;exports.IsFixedShape=Qx;exports.IsInteractive=tw;exports.NoSelect=Xx;exports.NoTransition=Jx;exports.Resources=wr;exports.SetResources=ZT;exports.alphanumericRegex=F5;exports.bound=eh;exports.cbF=Pr;exports.changeSemanticMode=lv;exports.componentStyleKeys=V4;exports.createEvent=Pu;exports.dateF=tr;exports.dbF=sa;exports.defaultPredicate=r2;exports.dlgF=jR;exports.emailIdRegex=H5;exports.emailRegex=j5;exports.fileF=Bu;exports.getFileKey=Kw;exports.getMonthsOptions=gh;exports.getYearsOptions=fv;exports.hangulRegex=$5;exports.hexRegex=z5;exports.noHanguljamoRegex=q5;exports.noSpaceRegex=U5;exports.numF=Jw;exports.objF=ar;exports.paletteKeys=uw;exports.paletteModes=lg;exports.passwordRegex=V5;exports.refinedDesignTokens=Oo;exports.sF=Ye;exports.semanticKeys=hw;exports.semanticModes=nf;exports.setDir12Style=av;exports.setDir12StyleElem=sw;exports.specialCharRegex=W5;exports.strF=uv;exports.tableF=Bl;exports.textMeasurement=ju;exports.treeF=Pc;exports.useADialogCore=PR;exports.useADialogCores=NR;exports.useDB=qw;exports.useEvent=o2;exports.useInit=t2;exports.useLayoutDB=Ww;exports.useValues=wn;exports.uuidRegex=G5;
|
362
|
+
`},FB={onDragStart(r){let{active:e}=r;return"Picked up draggable item "+e.id+"."},onDragOver(r){let{active:e,over:t}=r;return t?"Draggable item "+e.id+" was moved over droppable area "+t.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(r){let{active:e,over:t}=r;return t?"Draggable item "+e.id+" was dropped over droppable area "+t.id:"Draggable item "+e.id+" was dropped."},onDragCancel(r){let{active:e}=r;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function jB(r){let{announcements:e=FB,container:t,hiddenTextDescribedById:n,screenReaderInstructions:o=BB}=r;const{announce:i,announcement:a}=OB(),c=Fh("DndLiveRegion"),[d,h]=C.useState(!1);if(C.useEffect(()=>{h(!0)},[]),NB(C.useMemo(()=>({onDragStart(m){let{active:p}=m;i(e.onDragStart({active:p}))},onDragMove(m){let{active:p,over:v}=m;e.onDragMove&&i(e.onDragMove({active:p,over:v}))},onDragOver(m){let{active:p,over:v}=m;i(e.onDragOver({active:p,over:v}))},onDragEnd(m){let{active:p,over:v}=m;i(e.onDragEnd({active:p,over:v}))},onDragCancel(m){let{active:p,over:v}=m;i(e.onDragCancel({active:p,over:v}))}}),[i,e])),!d)return null;const g=C.createElement(C.Fragment,null,C.createElement(LB,{id:n,value:o.draggable}),C.createElement(DB,{id:c,announcement:a}));return t?Ls.createPortal(g,t):g}var Co;(function(r){r.DragStart="dragStart",r.DragMove="dragMove",r.DragEnd="dragEnd",r.DragCancel="dragCancel",r.DragOver="dragOver",r.RegisterDroppable="registerDroppable",r.SetDroppableDisabled="setDroppableDisabled",r.UnregisterDroppable="unregisterDroppable"})(Co||(Co={}));function ng(){}function Gb(r,e){return C.useMemo(()=>({sensor:r,options:e??{}}),[r,e])}function HB(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return C.useMemo(()=>[...e].filter(n=>n!=null),[...e])}const ya=Object.freeze({x:0,y:0});function zB(r,e){return Math.sqrt(Math.pow(r.x-e.x,2)+Math.pow(r.y-e.y,2))}function $B(r,e){let{data:{value:t}}=r,{data:{value:n}}=e;return t-n}function UB(r,e){let{data:{value:t}}=r,{data:{value:n}}=e;return n-t}function qB(r,e){if(!r||r.length===0)return null;const[t]=r;return t[e]}function Yb(r,e,t){return e===void 0&&(e=r.left),t===void 0&&(t=r.top),{x:e+r.width*.5,y:t+r.height*.5}}const WB=r=>{let{collisionRect:e,droppableRects:t,droppableContainers:n}=r;const o=Yb(e,e.left,e.top),i=[];for(const a of n){const{id:c}=a,d=t.get(c);if(d){const h=zB(Yb(d),o);i.push({id:c,data:{droppableContainer:a,value:h}})}}return i.sort($B)};function VB(r,e){const t=Math.max(e.top,r.top),n=Math.max(e.left,r.left),o=Math.min(e.left+e.width,r.left+r.width),i=Math.min(e.top+e.height,r.top+r.height),a=o-n,c=i-t;if(n<o&&t<i){const d=e.width*e.height,h=r.width*r.height,g=a*c,m=g/(d+h-g);return Number(m.toFixed(4))}return 0}const GB=r=>{let{collisionRect:e,droppableRects:t,droppableContainers:n}=r;const o=[];for(const i of n){const{id:a}=i,c=t.get(a);if(c){const d=VB(c,e);d>0&&o.push({id:a,data:{droppableContainer:i,value:d}})}}return o.sort(UB)};function YB(r,e,t){return{...r,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function UC(r,e){return r&&e?{x:r.left-e.left,y:r.top-e.top}:ya}function ZB(r){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return o.reduce((a,c)=>({...a,top:a.top+r*c.y,bottom:a.bottom+r*c.y,left:a.left+r*c.x,right:a.right+r*c.x}),{...t})}}const KB=ZB(1);function XB(r){if(r.startsWith("matrix3d(")){const e=r.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(r.startsWith("matrix(")){const e=r.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function JB(r,e,t){const n=XB(e);if(!n)return r;const{scaleX:o,scaleY:i,x:a,y:c}=n,d=r.left-a-(1-o)*parseFloat(t),h=r.top-c-(1-i)*parseFloat(t.slice(t.indexOf(" ")+1)),g=o?r.width/o:r.width,m=i?r.height/i:r.height;return{width:g,height:m,top:h,right:d+g,bottom:h+m,left:d}}const QB={ignoreTransform:!1};function bf(r,e){e===void 0&&(e=QB);let t=r.getBoundingClientRect();if(e.ignoreTransform){const{transform:h,transformOrigin:g}=Bi(r).getComputedStyle(r);h&&(t=JB(t,h,g))}const{top:n,left:o,width:i,height:a,bottom:c,right:d}=t;return{top:n,left:o,width:i,height:a,bottom:c,right:d}}function Zb(r){return bf(r,{ignoreTransform:!0})}function eF(r){const e=r.innerWidth,t=r.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function tF(r,e){return e===void 0&&(e=Bi(r).getComputedStyle(r)),e.position==="fixed"}function rF(r,e){e===void 0&&(e=Bi(r).getComputedStyle(r));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const i=e[o];return typeof i=="string"?t.test(i):!1})}function $v(r,e){const t=[];function n(o){if(e!=null&&t.length>=e||!o)return t;if(jv(o)&&o.scrollingElement!=null&&!t.includes(o.scrollingElement))return t.push(o.scrollingElement),t;if(!Ph(o)||HC(o)||t.includes(o))return t;const i=Bi(r).getComputedStyle(o);return o!==r&&rF(o,i)&&t.push(o),tF(o,i)?t:n(o.parentNode)}return r?n(r):t}function qC(r){const[e]=$v(r,1);return e??null}function Em(r){return!wg||!r?null:vf(r)?r:Fv(r)?jv(r)||r===yf(r).scrollingElement?window:Ph(r)?r:null:null}function WC(r){return vf(r)?r.scrollX:r.scrollLeft}function VC(r){return vf(r)?r.scrollY:r.scrollTop}function ev(r){return{x:WC(r),y:VC(r)}}var Lo;(function(r){r[r.Forward=1]="Forward",r[r.Backward=-1]="Backward"})(Lo||(Lo={}));function GC(r){return!wg||!r?!1:r===document.scrollingElement}function YC(r){const e={x:0,y:0},t=GC(r)?{height:window.innerHeight,width:window.innerWidth}:{height:r.clientHeight,width:r.clientWidth},n={x:r.scrollWidth-t.width,y:r.scrollHeight-t.height},o=r.scrollTop<=e.y,i=r.scrollLeft<=e.x,a=r.scrollTop>=n.y,c=r.scrollLeft>=n.x;return{isTop:o,isLeft:i,isBottom:a,isRight:c,maxScroll:n,minScroll:e}}const nF={x:.2,y:.2};function oF(r,e,t,n,o){let{top:i,left:a,right:c,bottom:d}=t;n===void 0&&(n=10),o===void 0&&(o=nF);const{isTop:h,isBottom:g,isLeft:m,isRight:p}=YC(r),v={x:0,y:0},w={x:0,y:0},T={height:e.height*o.y,width:e.width*o.x};return!h&&i<=e.top+T.height?(v.y=Lo.Backward,w.y=n*Math.abs((e.top+T.height-i)/T.height)):!g&&d>=e.bottom-T.height&&(v.y=Lo.Forward,w.y=n*Math.abs((e.bottom-T.height-d)/T.height)),!p&&c>=e.right-T.width?(v.x=Lo.Forward,w.x=n*Math.abs((e.right-T.width-c)/T.width)):!m&&a<=e.left+T.width&&(v.x=Lo.Backward,w.x=n*Math.abs((e.left+T.width-a)/T.width)),{direction:v,speed:w}}function iF(r){if(r===document.scrollingElement){const{innerWidth:i,innerHeight:a}=window;return{top:0,left:0,right:i,bottom:a,width:i,height:a}}const{top:e,left:t,right:n,bottom:o}=r.getBoundingClientRect();return{top:e,left:t,right:n,bottom:o,width:r.clientWidth,height:r.clientHeight}}function ZC(r){return r.reduce((e,t)=>rf(e,ev(t)),ya)}function sF(r){return r.reduce((e,t)=>e+WC(t),0)}function aF(r){return r.reduce((e,t)=>e+VC(t),0)}function lF(r,e){if(e===void 0&&(e=bf),!r)return;const{top:t,left:n,bottom:o,right:i}=e(r);qC(r)&&(o<=0||i<=0||t>=window.innerHeight||n>=window.innerWidth)&&r.scrollIntoView({block:"center",inline:"center"})}const cF=[["x",["left","right"],sF],["y",["top","bottom"],aF]];class Uv{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=$v(t),o=ZC(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[i,a,c]of cF)for(const d of a)Object.defineProperty(this,d,{get:()=>{const h=c(n),g=o[i]-h;return this.rect[d]+g},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class lh{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(t=>{var n;return(n=this.target)==null?void 0:n.removeEventListener(...t)})},this.target=e}add(e,t,n){var o;(o=this.target)==null||o.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function uF(r){const{EventTarget:e}=Bi(r);return r instanceof e?r:yf(r)}function Tm(r,e){const t=Math.abs(r.x),n=Math.abs(r.y);return typeof e=="number"?Math.sqrt(t**2+n**2)>e:"x"in e&&"y"in e?t>e.x&&n>e.y:"x"in e?t>e.x:"y"in e?n>e.y:!1}var Rs;(function(r){r.Click="click",r.DragStart="dragstart",r.Keydown="keydown",r.ContextMenu="contextmenu",r.Resize="resize",r.SelectionChange="selectionchange",r.VisibilityChange="visibilitychange"})(Rs||(Rs={}));function Kb(r){r.preventDefault()}function dF(r){r.stopPropagation()}var cn;(function(r){r.Space="Space",r.Down="ArrowDown",r.Right="ArrowRight",r.Left="ArrowLeft",r.Up="ArrowUp",r.Esc="Escape",r.Enter="Enter",r.Tab="Tab"})(cn||(cn={}));const KC={start:[cn.Space,cn.Enter],cancel:[cn.Esc],end:[cn.Space,cn.Enter,cn.Tab]},fF=(r,e)=>{let{currentCoordinates:t}=e;switch(r.code){case cn.Right:return{...t,x:t.x+25};case cn.Left:return{...t,x:t.x-25};case cn.Down:return{...t,y:t.y+25};case cn.Up:return{...t,y:t.y-25}}};class qv{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new lh(yf(t)),this.windowListeners=new lh(Bi(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Rs.Resize,this.handleCancel),this.windowListeners.add(Rs.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Rs.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&lF(n),t(ya)}handleKeyDown(e){if(zv(e)){const{active:t,context:n,options:o}=this.props,{keyboardCodes:i=KC,coordinateGetter:a=fF,scrollBehavior:c="smooth"}=o,{code:d}=e;if(i.end.includes(d)){this.handleEnd(e);return}if(i.cancel.includes(d)){this.handleCancel(e);return}const{collisionRect:h}=n.current,g=h?{x:h.left,y:h.top}:ya;this.referenceCoordinates||(this.referenceCoordinates=g);const m=a(e,{active:t,context:n.current,currentCoordinates:g});if(m){const p=rg(m,g),v={x:0,y:0},{scrollableAncestors:w}=n.current;for(const T of w){const _=e.code,{isTop:A,isRight:R,isLeft:D,isBottom:I,maxScroll:F,minScroll:B}=YC(T),H=iF(T),j={x:Math.min(_===cn.Right?H.right-H.width/2:H.right,Math.max(_===cn.Right?H.left:H.left+H.width/2,m.x)),y:Math.min(_===cn.Down?H.bottom-H.height/2:H.bottom,Math.max(_===cn.Down?H.top:H.top+H.height/2,m.y))},G=_===cn.Right&&!R||_===cn.Left&&!D,ge=_===cn.Down&&!I||_===cn.Up&&!A;if(G&&j.x!==m.x){const P=T.scrollLeft+p.x,q=_===cn.Right&&P<=F.x||_===cn.Left&&P>=B.x;if(q&&!p.y){T.scrollTo({left:P,behavior:c});return}q?v.x=T.scrollLeft-P:v.x=_===cn.Right?T.scrollLeft-F.x:T.scrollLeft-B.x,v.x&&T.scrollBy({left:-v.x,behavior:c});break}else if(ge&&j.y!==m.y){const P=T.scrollTop+p.y,q=_===cn.Down&&P<=F.y||_===cn.Up&&P>=B.y;if(q&&!p.x){T.scrollTo({top:P,behavior:c});return}q?v.y=T.scrollTop-P:v.y=_===cn.Down?T.scrollTop-F.y:T.scrollTop-B.y,v.y&&T.scrollBy({top:-v.y,behavior:c});break}}this.handleMove(e,rf(rg(m,this.referenceCoordinates),v))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}qv.activators=[{eventName:"onKeyDown",handler:(r,e,t)=>{let{keyboardCodes:n=KC,onActivation:o}=e,{active:i}=t;const{code:a}=r.nativeEvent;if(n.start.includes(a)){const c=i.activatorNode.current;return c&&r.target!==c?!1:(r.preventDefault(),o==null||o({event:r.nativeEvent}),!0)}return!1}}];function Xb(r){return!!(r&&"distance"in r)}function Jb(r){return!!(r&&"delay"in r)}class Wv{constructor(e,t,n){var o;n===void 0&&(n=uF(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:a}=i;this.props=e,this.events=t,this.document=yf(a),this.documentListeners=new lh(this.document),this.listeners=new lh(n),this.windowListeners=new lh(Bi(a)),this.initialCoordinates=(o=Q1(i))!=null?o:ya,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(Rs.Resize,this.handleCancel),this.windowListeners.add(Rs.DragStart,Kb),this.windowListeners.add(Rs.VisibilityChange,this.handleCancel),this.windowListeners.add(Rs.ContextMenu,Kb),this.documentListeners.add(Rs.Keydown,this.handleKeydown),t){if(n!=null&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Jb(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(Xb(t)){this.handlePending(t);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:n,onPending:o}=this.props;o(n,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(Rs.Click,dF,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Rs.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:o,props:i}=this,{onMove:a,options:{activationConstraint:c}}=i;if(!o)return;const d=(t=Q1(e))!=null?t:ya,h=rg(o,d);if(!n&&c){if(Xb(c)){if(c.tolerance!=null&&Tm(h,c.tolerance))return this.handleCancel();if(Tm(h,c.distance))return this.handleStart()}if(Jb(c)&&Tm(h,c.tolerance))return this.handleCancel();this.handlePending(c,h);return}e.cancelable&&e.preventDefault(),a(d)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===cn.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}}const hF={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Vv extends Wv{constructor(e){const{event:t}=e,n=yf(t.target);super(e,hF,n)}}Vv.activators=[{eventName:"onPointerDown",handler:(r,e)=>{let{nativeEvent:t}=r,{onActivation:n}=e;return!t.isPrimary||t.button!==0?!1:(n==null||n({event:t}),!0)}}];const pF={move:{name:"mousemove"},end:{name:"mouseup"}};var tv;(function(r){r[r.RightClick=2]="RightClick"})(tv||(tv={}));class gF extends Wv{constructor(e){super(e,pF,yf(e.event.target))}}gF.activators=[{eventName:"onMouseDown",handler:(r,e)=>{let{nativeEvent:t}=r,{onActivation:n}=e;return t.button===tv.RightClick?!1:(n==null||n({event:t}),!0)}}];const Rm={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class mF extends Wv{constructor(e){super(e,Rm)}static setup(){return window.addEventListener(Rm.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(Rm.move.name,e)};function e(){}}}mF.activators=[{eventName:"onTouchStart",handler:(r,e)=>{let{nativeEvent:t}=r,{onActivation:n}=e;const{touches:o}=t;return o.length>1?!1:(n==null||n({event:t}),!0)}}];var ch;(function(r){r[r.Pointer=0]="Pointer",r[r.DraggableRect=1]="DraggableRect"})(ch||(ch={}));var og;(function(r){r[r.TreeOrder=0]="TreeOrder",r[r.ReversedTreeOrder=1]="ReversedTreeOrder"})(og||(og={}));function vF(r){let{acceleration:e,activator:t=ch.Pointer,canScroll:n,draggingRect:o,enabled:i,interval:a=5,order:c=og.TreeOrder,pointerCoordinates:d,scrollableAncestors:h,scrollableAncestorRects:g,delta:m,threshold:p}=r;const v=bF({delta:m,disabled:!i}),[w,T]=TB(),_=C.useRef({x:0,y:0}),A=C.useRef({x:0,y:0}),R=C.useMemo(()=>{switch(t){case ch.Pointer:return d?{top:d.y,bottom:d.y,left:d.x,right:d.x}:null;case ch.DraggableRect:return o}},[t,o,d]),D=C.useRef(null),I=C.useCallback(()=>{const B=D.current;if(!B)return;const H=_.current.x*A.current.x,j=_.current.y*A.current.y;B.scrollBy(H,j)},[]),F=C.useMemo(()=>c===og.TreeOrder?[...h].reverse():h,[c,h]);C.useEffect(()=>{if(!i||!h.length||!R){T();return}for(const B of F){if((n==null?void 0:n(B))===!1)continue;const H=h.indexOf(B),j=g[H];if(!j)continue;const{direction:G,speed:ge}=oF(B,j,R,e,p);for(const P of["x","y"])v[P][G[P]]||(ge[P]=0,G[P]=0);if(ge.x>0||ge.y>0){T(),D.current=B,w(I,a),_.current=ge,A.current=G;return}}_.current={x:0,y:0},A.current={x:0,y:0},T()},[e,I,n,T,i,a,JSON.stringify(R),JSON.stringify(v),w,h,F,g,JSON.stringify(p)])}const yF={x:{[Lo.Backward]:!1,[Lo.Forward]:!1},y:{[Lo.Backward]:!1,[Lo.Forward]:!1}};function bF(r){let{delta:e,disabled:t}=r;const n=J1(e);return Bh(o=>{if(t||!n||!o)return yF;const i={x:Math.sign(e.x-n.x),y:Math.sign(e.y-n.y)};return{x:{[Lo.Backward]:o.x[Lo.Backward]||i.x===-1,[Lo.Forward]:o.x[Lo.Forward]||i.x===1},y:{[Lo.Backward]:o.y[Lo.Backward]||i.y===-1,[Lo.Forward]:o.y[Lo.Forward]||i.y===1}}},[t,e,n])}function xF(r,e){const t=e!=null?r.get(e):void 0,n=t?t.node.current:null;return Bh(o=>{var i;return e==null?null:(i=n??o)!=null?i:null},[n,e])}function wF(r,e){return C.useMemo(()=>r.reduce((t,n)=>{const{sensor:o}=n,i=o.activators.map(a=>({eventName:a.eventName,handler:e(a.handler,n)}));return[...t,...i]},[]),[r,e])}var hf;(function(r){r[r.Always=0]="Always",r[r.BeforeDragging=1]="BeforeDragging",r[r.WhileDragging=2]="WhileDragging"})(hf||(hf={}));var rv;(function(r){r.Optimized="optimized"})(rv||(rv={}));const Qb=new Map;function CF(r,e){let{dragging:t,dependencies:n,config:o}=e;const[i,a]=C.useState(null),{frequency:c,measure:d,strategy:h}=o,g=C.useRef(r),m=_(),p=Rh(m),v=C.useCallback(function(A){A===void 0&&(A=[]),!p.current&&a(R=>R===null?A:R.concat(A.filter(D=>!R.includes(D))))},[p]),w=C.useRef(null),T=Bh(A=>{if(m&&!t)return Qb;if(!A||A===Qb||g.current!==r||i!=null){const R=new Map;for(let D of r){if(!D)continue;if(i&&i.length>0&&!i.includes(D.id)&&D.rect.current){R.set(D.id,D.rect.current);continue}const I=D.node.current,F=I?new Uv(d(I),I):null;D.rect.current=F,F&&R.set(D.id,F)}return R}return A},[r,i,t,m,d]);return C.useEffect(()=>{g.current=r},[r]),C.useEffect(()=>{m||v()},[t,m]),C.useEffect(()=>{i&&i.length>0&&a(null)},[JSON.stringify(i)]),C.useEffect(()=>{m||typeof c!="number"||w.current!==null||(w.current=setTimeout(()=>{v(),w.current=null},c))},[c,m,v,...n]),{droppableRects:T,measureDroppableContainers:v,measuringScheduled:i!=null};function _(){switch(h){case hf.Always:return!1;case hf.BeforeDragging:return t;default:return!t}}}function XC(r,e){return Bh(t=>r?t||(typeof e=="function"?e(r):r):null,[e,r])}function SF(r,e){return XC(r,e)}function _F(r){let{callback:e,disabled:t}=r;const n=Hv(e),o=C.useMemo(()=>{if(t||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(n)},[n,t]);return C.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function Cg(r){let{callback:e,disabled:t}=r;const n=Hv(e),o=C.useMemo(()=>{if(t||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(n)},[t]);return C.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function AF(r){return new Uv(bf(r),r)}function ex(r,e,t){e===void 0&&(e=AF);const[n,o]=C.useState(null);function i(){o(d=>{if(!r)return null;if(r.isConnected===!1){var h;return(h=d??t)!=null?h:null}const g=e(r);return JSON.stringify(d)===JSON.stringify(g)?d:g})}const a=_F({callback(d){if(r)for(const h of d){const{type:g,target:m}=h;if(g==="childList"&&m instanceof HTMLElement&&m.contains(r)){i();break}}}}),c=Cg({callback:i});return sl(()=>{i(),r?(c==null||c.observe(r),a==null||a.observe(document.body,{childList:!0,subtree:!0})):(c==null||c.disconnect(),a==null||a.disconnect())},[r]),n}function EF(r){const e=XC(r);return UC(r,e)}const tx=[];function TF(r){const e=C.useRef(r),t=Bh(n=>r?n&&n!==tx&&r&&e.current&&r.parentNode===e.current.parentNode?n:$v(r):tx,[r]);return C.useEffect(()=>{e.current=r},[r]),t}function RF(r){const[e,t]=C.useState(null),n=C.useRef(r),o=C.useCallback(i=>{const a=Em(i.target);a&&t(c=>c?(c.set(a,ev(a)),new Map(c)):null)},[]);return C.useEffect(()=>{const i=n.current;if(r!==i){a(i);const c=r.map(d=>{const h=Em(d);return h?(h.addEventListener("scroll",o,{passive:!0}),[h,ev(h)]):null}).filter(d=>d!=null);t(c.length?new Map(c):null),n.current=r}return()=>{a(r),a(i)};function a(c){c.forEach(d=>{const h=Em(d);h==null||h.removeEventListener("scroll",o)})}},[o,r]),C.useMemo(()=>r.length?e?Array.from(e.values()).reduce((i,a)=>rf(i,a),ya):ZC(r):ya,[r,e])}function rx(r,e){e===void 0&&(e=[]);const t=C.useRef(null);return C.useEffect(()=>{t.current=null},e),C.useEffect(()=>{const n=r!==ya;n&&!t.current&&(t.current=r),!n&&t.current&&(t.current=null)},[r]),t.current?rg(r,t.current):ya}function kF(r){C.useEffect(()=>{if(!wg)return;const e=r.map(t=>{let{sensor:n}=t;return n.setup==null?void 0:n.setup()});return()=>{for(const t of e)t==null||t()}},r.map(e=>{let{sensor:t}=e;return t}))}function IF(r,e){return C.useMemo(()=>r.reduce((t,n)=>{let{eventName:o,handler:i}=n;return t[o]=a=>{i(a,e)},t},{}),[r,e])}function JC(r){return C.useMemo(()=>r?eF(r):null,[r])}const nx=[];function MF(r,e){e===void 0&&(e=bf);const[t]=r,n=JC(t?Bi(t):null),[o,i]=C.useState(nx);function a(){i(()=>r.length?r.map(d=>GC(d)?n:new Uv(e(d),d)):nx)}const c=Cg({callback:a});return sl(()=>{c==null||c.disconnect(),a(),r.forEach(d=>c==null?void 0:c.observe(d))},[r]),o}function LF(r){if(!r)return null;if(r.children.length>1)return r;const e=r.children[0];return Ph(e)?e:r}function DF(r){let{measure:e}=r;const[t,n]=C.useState(null),o=C.useCallback(h=>{for(const{target:g}of h)if(Ph(g)){n(m=>{const p=e(g);return m?{...m,width:p.width,height:p.height}:p});break}},[e]),i=Cg({callback:o}),a=C.useCallback(h=>{const g=LF(h);i==null||i.disconnect(),g&&(i==null||i.observe(g)),n(g?e(g):null)},[e,i]),[c,d]=tg(a);return C.useMemo(()=>({nodeRef:c,rect:t,setRef:d}),[t,c,d])}const OF=[{sensor:Vv,options:{}},{sensor:qv,options:{}}],NF={current:{}},Op={draggable:{measure:Zb},droppable:{measure:Zb,strategy:hf.WhileDragging,frequency:rv.Optimized},dragOverlay:{measure:bf}};class uh extends Map{get(e){var t;return e!=null&&(t=super.get(e))!=null?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,n;return(t=(n=this.get(e))==null?void 0:n.node.current)!=null?t:void 0}}const PF={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new uh,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:ng},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Op,measureDroppableContainers:ng,windowRect:null,measuringScheduled:!1},BF={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:ng,draggableNodes:new Map,over:null,measureDroppableContainers:ng},Sg=C.createContext(BF),QC=C.createContext(PF);function FF(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new uh}}}function jF(r,e){switch(e.type){case Co.DragStart:return{...r,draggable:{...r.draggable,initialCoordinates:e.initialCoordinates,active:e.active}};case Co.DragMove:return r.draggable.active==null?r:{...r,draggable:{...r.draggable,translate:{x:e.coordinates.x-r.draggable.initialCoordinates.x,y:e.coordinates.y-r.draggable.initialCoordinates.y}}};case Co.DragEnd:case Co.DragCancel:return{...r,draggable:{...r.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Co.RegisterDroppable:{const{element:t}=e,{id:n}=t,o=new uh(r.droppable.containers);return o.set(n,t),{...r,droppable:{...r.droppable,containers:o}}}case Co.SetDroppableDisabled:{const{id:t,key:n,disabled:o}=e,i=r.droppable.containers.get(t);if(!i||n!==i.key)return r;const a=new uh(r.droppable.containers);return a.set(t,{...i,disabled:o}),{...r,droppable:{...r.droppable,containers:a}}}case Co.UnregisterDroppable:{const{id:t,key:n}=e,o=r.droppable.containers.get(t);if(!o||n!==o.key)return r;const i=new uh(r.droppable.containers);return i.delete(t),{...r,droppable:{...r.droppable,containers:i}}}default:return r}}function HF(r){let{disabled:e}=r;const{active:t,activatorEvent:n,draggableNodes:o}=C.useContext(Sg),i=J1(n),a=J1(t==null?void 0:t.id);return C.useEffect(()=>{if(!e&&!n&&i&&a!=null){if(!zv(i)||document.activeElement===i.target)return;const c=o.get(a);if(!c)return;const{activatorNode:d,node:h}=c;if(!d.current&&!h.current)return;requestAnimationFrame(()=>{for(const g of[d.current,h.current]){if(!g)continue;const m=IB(g);if(m){m.focus();break}}})}},[n,e,o,a,i]),null}function zF(r,e){let{transform:t,...n}=e;return r!=null&&r.length?r.reduce((o,i)=>i({transform:o,...n}),t):t}function $F(r){return C.useMemo(()=>({draggable:{...Op.draggable,...r==null?void 0:r.draggable},droppable:{...Op.droppable,...r==null?void 0:r.droppable},dragOverlay:{...Op.dragOverlay,...r==null?void 0:r.dragOverlay}}),[r==null?void 0:r.draggable,r==null?void 0:r.droppable,r==null?void 0:r.dragOverlay])}function UF(r){let{activeNode:e,measure:t,initialRect:n,config:o=!0}=r;const i=C.useRef(!1),{x:a,y:c}=typeof o=="boolean"?{x:o,y:o}:o;sl(()=>{if(!a&&!c||!e){i.current=!1;return}if(i.current||!n)return;const h=e==null?void 0:e.node.current;if(!h||h.isConnected===!1)return;const g=t(h),m=UC(g,n);if(a||(m.x=0),c||(m.y=0),i.current=!0,Math.abs(m.x)>0||Math.abs(m.y)>0){const p=qC(h);p&&p.scrollBy({top:m.y,left:m.x})}},[e,a,c,n,t])}const eS=C.createContext({...ya,scaleX:1,scaleY:1});var Nc;(function(r){r[r.Uninitialized=0]="Uninitialized",r[r.Initializing=1]="Initializing",r[r.Initialized=2]="Initialized"})(Nc||(Nc={}));const qF=C.memo(function(e){var t,n,o,i;let{id:a,accessibility:c,autoScroll:d=!0,children:h,sensors:g=OF,collisionDetection:m=GB,measuring:p,modifiers:v,...w}=e;const T=C.useReducer(jF,void 0,FF),[_,A]=T,[R,D]=PB(),[I,F]=C.useState(Nc.Uninitialized),B=I===Nc.Initialized,{draggable:{active:H,nodes:j,translate:G},droppable:{containers:ge}}=_,P=H!=null?j.get(H):null,q=C.useRef({initial:null,translated:null}),V=C.useMemo(()=>{var Tt;return H!=null?{id:H,data:(Tt=P==null?void 0:P.data)!=null?Tt:NF,rect:q}:null},[H,P]),Q=C.useRef(null),[ie,se]=C.useState(null),[ae,le]=C.useState(null),fe=Rh(w,Object.values(w)),ee=Fh("DndDescribedBy",a),ne=C.useMemo(()=>ge.getEnabled(),[ge]),ce=$F(p),{droppableRects:xe,measureDroppableContainers:Me,measuringScheduled:oe}=CF(ne,{dragging:B,dependencies:[G.x,G.y],config:ce.droppable}),Se=xF(j,H),Le=C.useMemo(()=>ae?Q1(ae):null,[ae]),We=_t(),Ve=SF(Se,ce.draggable.measure);UF({activeNode:H!=null?j.get(H):null,config:We.layoutShiftCompensation,initialRect:Ve,measure:ce.draggable.measure});const we=ex(Se,ce.draggable.measure,Ve),_e=ex(Se?Se.parentElement:null),Ae=C.useRef({activatorEvent:null,active:null,activeNode:Se,collisionRect:null,collisions:null,droppableRects:xe,draggableNodes:j,draggingNode:null,draggingNodeRect:null,droppableContainers:ge,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Ie=ge.getNodeFor((t=Ae.current.over)==null?void 0:t.id),je=DF({measure:ce.dragOverlay.measure}),it=(n=je.nodeRef.current)!=null?n:Se,Ue=B?(o=je.rect)!=null?o:we:null,tt=!!(je.nodeRef.current&&je.rect),lt=EF(tt?null:we),bt=JC(it?Bi(it):null),Mt=TF(B?Ie??Se:null),Qe=MF(Mt),Xe=zF(v,{transform:{x:G.x-lt.x,y:G.y-lt.y,scaleX:1,scaleY:1},activatorEvent:ae,active:V,activeNodeRect:we,containerNodeRect:_e,draggingNodeRect:Ue,over:Ae.current.over,overlayNodeRect:je.rect,scrollableAncestors:Mt,scrollableAncestorRects:Qe,windowRect:bt}),ht=Le?rf(Le,G):null,ft=RF(Mt),Oe=rx(ft),Je=rx(ft,[we]),gt=rf(Xe,Oe),It=Ue?KB(Ue,Xe):null,Et=V&&It?m({active:V,collisionRect:It,droppableRects:xe,droppableContainers:ne,pointerCoordinates:ht}):null,Dt=qB(Et,"id"),[Xt,Wt]=C.useState(null),hr=tt?Xe:rf(Xe,Je),dr=YB(hr,(i=Xt==null?void 0:Xt.rect)!=null?i:null,we),cr=C.useRef(null),Te=C.useCallback((Tt,Ut)=>{let{sensor:Ge,options:st}=Ut;if(Q.current==null)return;const ct=j.get(Q.current);if(!ct)return;const xt=Tt.nativeEvent,Nt=new Ge({active:Q.current,activeNode:ct,event:xt,options:st,context:Ae,onAbort(qt){if(!j.get(qt))return;const{onDragAbort:ir}=fe.current,jt={id:qt};ir==null||ir(jt),R({type:"onDragAbort",event:jt})},onPending(qt,Yt,ir,jt){if(!j.get(qt))return;const{onDragPending:jr}=fe.current,Ze={id:qt,constraint:Yt,initialCoordinates:ir,offset:jt};jr==null||jr(Ze),R({type:"onDragPending",event:Ze})},onStart(qt){const Yt=Q.current;if(Yt==null)return;const ir=j.get(Yt);if(!ir)return;const{onDragStart:jt}=fe.current,xr={activatorEvent:xt,active:{id:Yt,data:ir.data,rect:q}};Ls.unstable_batchedUpdates(()=>{jt==null||jt(xr),F(Nc.Initializing),A({type:Co.DragStart,initialCoordinates:qt,active:Yt}),R({type:"onDragStart",event:xr}),se(cr.current),le(xt)})},onMove(qt){A({type:Co.DragMove,coordinates:qt})},onEnd:Bt(Co.DragEnd),onCancel:Bt(Co.DragCancel)});cr.current=Nt;function Bt(qt){return async function(){const{active:ir,collisions:jt,over:xr,scrollAdjustedTranslate:jr}=Ae.current;let Ze=null;if(ir&&jr){const{cancelDrop:te}=fe.current;Ze={activatorEvent:xt,active:ir,collisions:jt,delta:jr,over:xr},qt===Co.DragEnd&&typeof te=="function"&&await Promise.resolve(te(Ze))&&(qt=Co.DragCancel)}Q.current=null,Ls.unstable_batchedUpdates(()=>{A({type:qt}),F(Nc.Uninitialized),Wt(null),se(null),le(null),cr.current=null;const te=qt===Co.DragEnd?"onDragEnd":"onDragCancel";if(Ze){const ye=fe.current[te];ye==null||ye(Ze),R({type:te,event:Ze})}})}}},[j]),ue=C.useCallback((Tt,Ut)=>(Ge,st)=>{const ct=Ge.nativeEvent,xt=j.get(st);if(Q.current!==null||!xt||ct.dndKit||ct.defaultPrevented)return;const Nt={active:xt};Tt(Ge,Ut.options,Nt)===!0&&(ct.dndKit={capturedBy:Ut.sensor},Q.current=st,Te(Ge,Ut))},[j,Te]),at=wF(g,ue);kF(g),sl(()=>{we&&I===Nc.Initializing&&F(Nc.Initialized)},[we,I]),C.useEffect(()=>{const{onDragMove:Tt}=fe.current,{active:Ut,activatorEvent:Ge,collisions:st,over:ct}=Ae.current;if(!Ut||!Ge)return;const xt={active:Ut,activatorEvent:Ge,collisions:st,delta:{x:gt.x,y:gt.y},over:ct};Ls.unstable_batchedUpdates(()=>{Tt==null||Tt(xt),R({type:"onDragMove",event:xt})})},[gt.x,gt.y]),C.useEffect(()=>{const{active:Tt,activatorEvent:Ut,collisions:Ge,droppableContainers:st,scrollAdjustedTranslate:ct}=Ae.current;if(!Tt||Q.current==null||!Ut||!ct)return;const{onDragOver:xt}=fe.current,Nt=st.get(Dt),Bt=Nt&&Nt.rect.current?{id:Nt.id,rect:Nt.rect.current,data:Nt.data,disabled:Nt.disabled}:null,qt={active:Tt,activatorEvent:Ut,collisions:Ge,delta:{x:ct.x,y:ct.y},over:Bt};Ls.unstable_batchedUpdates(()=>{Wt(Bt),xt==null||xt(qt),R({type:"onDragOver",event:qt})})},[Dt]),sl(()=>{Ae.current={activatorEvent:ae,active:V,activeNode:Se,collisionRect:It,collisions:Et,droppableRects:xe,draggableNodes:j,draggingNode:it,draggingNodeRect:Ue,droppableContainers:ge,over:Xt,scrollableAncestors:Mt,scrollAdjustedTranslate:gt},q.current={initial:Ue,translated:It}},[V,Se,Et,It,j,it,Ue,xe,ge,Xt,Mt,gt]),vF({...We,delta:G,draggingRect:It,pointerCoordinates:ht,scrollableAncestors:Mt,scrollableAncestorRects:Qe});const ze=C.useMemo(()=>({active:V,activeNode:Se,activeNodeRect:we,activatorEvent:ae,collisions:Et,containerNodeRect:_e,dragOverlay:je,draggableNodes:j,droppableContainers:ge,droppableRects:xe,over:Xt,measureDroppableContainers:Me,scrollableAncestors:Mt,scrollableAncestorRects:Qe,measuringConfiguration:ce,measuringScheduled:oe,windowRect:bt}),[V,Se,we,ae,Et,_e,je,j,ge,xe,Xt,Me,Mt,Qe,ce,oe,bt]),vt=C.useMemo(()=>({activatorEvent:ae,activators:at,active:V,activeNodeRect:we,ariaDescribedById:{draggable:ee},dispatch:A,draggableNodes:j,over:Xt,measureDroppableContainers:Me}),[ae,at,V,we,A,ee,j,Xt,Me]);return C.createElement($C.Provider,{value:D},C.createElement(Sg.Provider,{value:vt},C.createElement(QC.Provider,{value:ze},C.createElement(eS.Provider,{value:dr},h)),C.createElement(HF,{disabled:(c==null?void 0:c.restoreFocus)===!1})),C.createElement(jB,{...c,hiddenTextDescribedById:ee}));function _t(){const Tt=(ie==null?void 0:ie.autoScrollEnabled)===!1,Ut=typeof d=="object"?d.enabled===!1:d===!1,Ge=B&&!Tt&&!Ut;return typeof d=="object"?{...d,enabled:Ge}:{enabled:Ge}}}),WF=C.createContext(null),ox="button",VF="Draggable";function GF(r){let{id:e,data:t,disabled:n=!1,attributes:o}=r;const i=Fh(VF),{activators:a,activatorEvent:c,active:d,activeNodeRect:h,ariaDescribedById:g,draggableNodes:m,over:p}=C.useContext(Sg),{role:v=ox,roleDescription:w="draggable",tabIndex:T=0}=o??{},_=(d==null?void 0:d.id)===e,A=C.useContext(_?eS:WF),[R,D]=tg(),[I,F]=tg(),B=IF(a,e),H=Rh(t);sl(()=>(m.set(e,{id:e,key:i,node:R,activatorNode:I,data:H}),()=>{const G=m.get(e);G&&G.key===i&&m.delete(e)}),[m,e]);const j=C.useMemo(()=>({role:v,tabIndex:T,"aria-disabled":n,"aria-pressed":_&&v===ox?!0:void 0,"aria-roledescription":w,"aria-describedby":g.draggable}),[n,v,T,_,w,g.draggable]);return{active:d,activatorEvent:c,activeNodeRect:h,attributes:j,isDragging:_,listeners:n?void 0:B,node:R,over:p,setNodeRef:D,setActivatorNodeRef:F,transform:A}}function YF(){return C.useContext(QC)}const ZF="Droppable",KF={timeout:25};function XF(r){let{data:e,disabled:t=!1,id:n,resizeObserverConfig:o}=r;const i=Fh(ZF),{active:a,dispatch:c,over:d,measureDroppableContainers:h}=C.useContext(Sg),g=C.useRef({disabled:t}),m=C.useRef(!1),p=C.useRef(null),v=C.useRef(null),{disabled:w,updateMeasurementsFor:T,timeout:_}={...KF,...o},A=Rh(T??n),R=C.useCallback(()=>{if(!m.current){m.current=!0;return}v.current!=null&&clearTimeout(v.current),v.current=setTimeout(()=>{h(Array.isArray(A.current)?A.current:[A.current]),v.current=null},_)},[_]),D=Cg({callback:R,disabled:w||!a}),I=C.useCallback((j,G)=>{D&&(G&&(D.unobserve(G),m.current=!1),j&&D.observe(j))},[D]),[F,B]=tg(I),H=Rh(e);return C.useEffect(()=>{!D||!F.current||(D.disconnect(),m.current=!1,D.observe(F.current))},[F,D]),C.useEffect(()=>(c({type:Co.RegisterDroppable,element:{id:n,key:i,disabled:t,node:F,rect:p,data:H}}),()=>c({type:Co.UnregisterDroppable,key:i,id:n})),[n]),C.useEffect(()=>{t!==g.current.disabled&&(c({type:Co.SetDroppableDisabled,id:n,key:i,disabled:t}),g.current.disabled=t)},[n,i,t,c]),{active:a,rect:p,isOver:(d==null?void 0:d.id)===n,node:F,over:d,setNodeRef:B}}function tS(r,e,t){const n={...r};return e.top+r.y<=t.top?n.y=t.top-e.top:e.bottom+r.y>=t.top+t.height&&(n.y=t.top+t.height-e.bottom),e.left+r.x<=t.left?n.x=t.left-e.left:e.right+r.x>=t.left+t.width&&(n.x=t.left+t.width-e.right),n}const JF=r=>{let{containerNodeRect:e,draggingNodeRect:t,transform:n}=r;return!t||!e?n:tS(n,t,e)},QF=r=>{let{transform:e,draggingNodeRect:t,windowRect:n}=r;return!t||!n?e:tS(e,t,n)};function ig(r,e,t){const n=r.slice();return n.splice(t<0?n.length+t:t,0,n.splice(e,1)[0]),n}function ej(r,e){return r.reduce((t,n,o)=>{const i=e.get(n);return i&&(t[o]=i),t},Array(r.length))}function _p(r){return r!==null&&r>=0}function tj(r,e){if(r===e)return!0;if(r.length!==e.length)return!1;for(let t=0;t<r.length;t++)if(r[t]!==e[t])return!1;return!0}function rj(r){return typeof r=="boolean"?{draggable:r,droppable:r}:r}const rS=r=>{let{rects:e,activeIndex:t,overIndex:n,index:o}=r;const i=ig(e,n,t),a=e[o],c=i[o];return!c||!a?null:{x:c.left-a.left,y:c.top-a.top,scaleX:c.width/a.width,scaleY:c.height/a.height}},Ap={scaleX:1,scaleY:1},nj=r=>{var e;let{activeIndex:t,activeNodeRect:n,index:o,rects:i,overIndex:a}=r;const c=(e=i[t])!=null?e:n;if(!c)return null;if(o===t){const h=i[a];return h?{x:0,y:t<a?h.top+h.height-(c.top+c.height):h.top-c.top,...Ap}:null}const d=oj(i,o,t);return o>t&&o<=a?{x:0,y:-c.height-d,...Ap}:o<t&&o>=a?{x:0,y:c.height+d,...Ap}:{x:0,y:0,...Ap}};function oj(r,e,t){const n=r[e],o=r[e-1],i=r[e+1];return n?t<e?o?n.top-(o.top+o.height):i?i.top-(n.top+n.height):0:i?i.top-(n.top+n.height):o?n.top-(o.top+o.height):0:0}const nS="Sortable",oS=C.createContext({activeIndex:-1,containerId:nS,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:rS,disabled:{draggable:!1,droppable:!1}});function ij(r){let{children:e,id:t,items:n,strategy:o=rS,disabled:i=!1}=r;const{active:a,dragOverlay:c,droppableRects:d,over:h,measureDroppableContainers:g}=YF(),m=Fh(nS,t),p=c.rect!==null,v=C.useMemo(()=>n.map(B=>typeof B=="object"&&"id"in B?B.id:B),[n]),w=a!=null,T=a?v.indexOf(a.id):-1,_=h?v.indexOf(h.id):-1,A=C.useRef(v),R=!tj(v,A.current),D=_!==-1&&T===-1||R,I=rj(i);sl(()=>{R&&w&&g(v)},[R,v,w,g]),C.useEffect(()=>{A.current=v},[v]);const F=C.useMemo(()=>({activeIndex:T,containerId:m,disabled:I,disableTransforms:D,items:v,overIndex:_,useDragOverlay:p,sortedRects:ej(v,d),strategy:o}),[T,m,I.draggable,I.droppable,D,v,_,d,p,o]);return C.createElement(oS.Provider,{value:F},e)}const sj=r=>{let{id:e,items:t,activeIndex:n,overIndex:o}=r;return ig(t,n,o).indexOf(e)},aj=r=>{let{containerId:e,isSorting:t,wasDragging:n,index:o,items:i,newIndex:a,previousItems:c,previousContainerId:d,transition:h}=r;return!h||!n||c!==i&&o===a?!1:t?!0:a!==o&&e===d},lj={duration:200,easing:"ease"},iS="transform",cj=kh.Transition.toString({property:iS,duration:0,easing:"linear"}),uj={roleDescription:"sortable"};function dj(r){let{disabled:e,index:t,node:n,rect:o}=r;const[i,a]=C.useState(null),c=C.useRef(t);return sl(()=>{if(!e&&t!==c.current&&n.current){const d=o.current;if(d){const h=bf(n.current,{ignoreTransform:!0}),g={x:d.left-h.left,y:d.top-h.top,scaleX:d.width/h.width,scaleY:d.height/h.height};(g.x||g.y)&&a(g)}}t!==c.current&&(c.current=t)},[e,t,n,o]),C.useEffect(()=>{i&&a(null)},[i]),i}function fj(r){let{animateLayoutChanges:e=aj,attributes:t,disabled:n,data:o,getNewIndex:i=sj,id:a,strategy:c,resizeObserverConfig:d,transition:h=lj}=r;const{items:g,containerId:m,activeIndex:p,disabled:v,disableTransforms:w,sortedRects:T,overIndex:_,useDragOverlay:A,strategy:R}=C.useContext(oS),D=hj(n,v),I=g.indexOf(a),F=C.useMemo(()=>({sortable:{containerId:m,index:I,items:g},...o}),[m,o,I,g]),B=C.useMemo(()=>g.slice(g.indexOf(a)),[g,a]),{rect:H,node:j,isOver:G,setNodeRef:ge}=XF({id:a,data:F,disabled:D.droppable,resizeObserverConfig:{updateMeasurementsFor:B,...d}}),{active:P,activatorEvent:q,activeNodeRect:V,attributes:Q,setNodeRef:ie,listeners:se,isDragging:ae,over:le,setActivatorNodeRef:fe,transform:ee}=GF({id:a,data:F,attributes:{...uj,...t},disabled:D.draggable}),ne=EB(ge,ie),ce=!!P,xe=ce&&!w&&_p(p)&&_p(_),Me=!A&&ae,oe=Me&&xe?ee:null,Le=xe?oe??(c??R)({rects:T,activeNodeRect:V,activeIndex:p,overIndex:_,index:I}):null,We=_p(p)&&_p(_)?i({id:a,items:g,activeIndex:p,overIndex:_}):I,Ve=P==null?void 0:P.id,we=C.useRef({activeId:Ve,items:g,newIndex:We,containerId:m}),_e=g!==we.current.items,Ae=e({active:P,containerId:m,isDragging:ae,isSorting:ce,id:a,index:I,items:g,newIndex:we.current.newIndex,previousItems:we.current.items,previousContainerId:we.current.containerId,transition:h,wasDragging:we.current.activeId!=null}),Ie=dj({disabled:!Ae,index:I,node:j,rect:H});return C.useEffect(()=>{ce&&we.current.newIndex!==We&&(we.current.newIndex=We),m!==we.current.containerId&&(we.current.containerId=m),g!==we.current.items&&(we.current.items=g)},[ce,We,m,g]),C.useEffect(()=>{if(Ve===we.current.activeId)return;if(Ve!=null&&we.current.activeId==null){we.current.activeId=Ve;return}const it=setTimeout(()=>{we.current.activeId=Ve},50);return()=>clearTimeout(it)},[Ve]),{active:P,activeIndex:p,attributes:Q,data:F,rect:H,index:I,newIndex:We,items:g,isOver:G,isSorting:ce,isDragging:ae,listeners:se,node:j,overIndex:_,over:le,setNodeRef:ne,setActivatorNodeRef:fe,setDroppableNodeRef:ge,setDraggableNodeRef:ie,transform:Ie??Le,transition:je()};function je(){if(Ie||_e&&we.current.newIndex===I)return cj;if(!(Me&&!zv(q)||!h)&&(ce||Ae))return kh.Transition.toString({...h,property:iS})}}function hj(r,e){var t,n;return typeof r=="boolean"?{draggable:r,droppable:!1}:{draggable:(t=r==null?void 0:r.draggable)!=null?t:e.draggable,droppable:(n=r==null?void 0:r.droppable)!=null?n:e.droppable}}cn.Down,cn.Right,cn.Up,cn.Left;function sg(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=sg(t.children,e);if(n)return n}}function jh(r,e){Array.isArray(r)||(r=[r]);for(const t of r)e(t),!(!t.children||t.children.length<1)&&jh(t.children,e)}function sS(r,e){Array.isArray(r)||(r=[r]);const t=[];return jh(r,(n,o)=>t.push(e(n,o))),t}function aS(r,e){Array.isArray(r)||(r=[r]);for(const t of r){if(!e(t))return!1;if(!(!t.children||t.children.length<1)&&!aS(t.children,e))return!1}return!0}function pj(r,e){Array.isArray(r)||(r=[r]);const t=[];return jh(r,(n,o)=>{e(n,o)&&t.push(n)}),t}function gj(r){Array.isArray(r)||(r=[r]);let e=0;return jh(r,()=>e++),e}function mj(r,e,t,n){if(n(e,t))return null;Array.isArray(r)||(r=[r]);const o=sg(r,a=>{var c;return(c=a.children)==null?void 0:c.some(d=>n(d,e))}),i=sg(r,a=>{var c;return(c=a.children)==null?void 0:c.some(d=>n(d,t))});if(o===void 0&&i===void 0){const a=r.findIndex(d=>n(d,e)),c=r.findIndex(d=>n(d,t));return r.splice(a,1),r.splice(c,0,e),[...r]}else if(o!==void 0&&i!==void 0&&n(o,i)&&o.children){const a=o.children.findIndex(d=>n(d,e)),c=o.children.findIndex(d=>n(d,t));return a===void 0||c===void 0?null:(o.children.splice(a,1),o.children.splice(c,0,e),o.children=[...o.children],[...r])}return null}function vj(r,e,t){const n=[],o=[...e];for(;o.length>0;){const i=o.shift();if(i&&!n.find(a=>t(a,i))&&(n.push(i),!(!i.children||i.children.length<1)))for(const a of i.children)o.push(a)}return n}function yj(r,e,t){Array.isArray(r)||(r=[r]);const n=sS(r,a=>a),o=[],i=[...e];for(;i.length>0;){const a=i.shift();if(!a||o.find(d=>t(d,a)))continue;o.push(a);const c=n.find(d=>{var h;return(h=d.children)==null?void 0:h.some(g=>t(g,a))});c&&i.push(c)}return o}const Pc={find:sg,forEach:jh,map:sS,every:aS,filter:pj,length:gj,replace:mj,descendants:vj,ancestors:yj},bj="_AWrap_1tiv0_1",xj="_AContainer_1tiv0_10",wj="_ATree_1tiv0_18",Cj="_ATreeBody_1tiv0_30",Sj="_CoverBorder_1tiv0_36",_j="_InsertBorder_1tiv0_45",Aj="_ATreeHeader_1tiv0_76",Ej="_ATreeBodyHeader_1tiv0_82",Tj="_ATreeBodyHeaderResources_1tiv0_92",Rj="_ATreeItem_1tiv0_98",kj="_IsSelectUsed_1tiv0_114",Ij="_IsSelected_1tiv0_117",Mj="_IsSearchSelected_1tiv0_122",Lj="_IsHovered_1tiv0_133",Dj="_CheckBox_1tiv0_137",Oj="_Indents_1tiv0_149",Nj="_ExpandIcon_1tiv0_156",Pj="_Content_1tiv0_168",Bj="_RightSticky_1tiv0_177",Fj="_SearchInputWrap_1tiv0_187",jj="_SearchInput_1tiv0_187",Hj="_RightAddon_1tiv0_199",zj="_RightAddonIcon_1tiv0_210",$j="_Loader_1tiv0_217",Uj="_IsChildOfDragSource_1tiv0_222",xn={AWrap:bj,AContainer:xj,ATree:wj,ATreeBody:Cj,CoverBorder:Sj,InsertBorder:_j,ATreeHeader:Aj,ATreeBodyHeader:Ej,ATreeBodyHeaderResources:Tj,ATreeItem:Rj,IsSelectUsed:kj,IsSelected:Ij,IsSearchSelected:Mj,IsHovered:Lj,CheckBox:Dj,Indents:Oj,ExpandIcon:Nj,Content:Pj,RightSticky:Bj,SearchInputWrap:Fj,SearchInput:jj,RightAddon:Hj,RightAddonIcon:zj,Loader:$j,IsChildOfDragSource:Uj},qj=r=>{const{isEqual:e,item:t,itemId:n,selectDisabled:o,selectUnused:i,isParentDisabled:a,indents:c,extIndents:d,useExpand:h,useSelect:g,useSearch:m,showCheckbox:p,icons:v,iconWidth:w,isSelectMulti:T,isDraggable:_,isParentCheckHovered:A,hoverdItem:R,onMouseOver:D,onMouseLeave:I,ContentRenderer:F,TreeItemRenderer:B,RightStickyAddon:H,resources:j,containerRef:G,TreeItemStyle:ge,TreeItemClassName:P,searchItemStyle:q,searchItemClassName:V,height:Q,isDragSrcItem:ie,isChildOfDragItem:se}=r,{children:ae}=C.useMemo(()=>t,[t]),[le,fe]=C.useMemo(()=>h,[h]),[ee,ne]=C.useMemo(()=>g,[g]),[ce,xe]=C.useMemo(()=>m,[m]),Me=C.useMemo(()=>i?i(t):!1,[i,t]),oe=C.useMemo(()=>!o||a?a:o(t),[o,a,t]),Se=C.useMemo(()=>le.some(ze=>e(ze,t)),[le,e,t]),Le=C.useMemo(()=>!ae||ae.length<1?"noChild":Se?"expanded":"collapsed",[ae,Se]),We=C.useMemo(()=>{const ze=v[Le];return sv.includes(ze)?S.jsx(gn,{icon:ze,style:{width:w,height:w}}):ze},[v,w,Le]),Ve=C.useCallback(ze=>{!fe||Le==="noChild"||(fe(Se?le.filter(vt=>!e(vt,t)):[...le,t]),ze.stopPropagation())},[fe,le,Se,t,e,Le]),we=C.useMemo(()=>ee.some(ze=>e(ze,t)),[ee,e,t]),_e=C.useCallback(()=>{!ne||oe||(ne(T?we?ee.filter(ze=>!e(ze,t)):[...ee,t]:[t]),ce&&xe&&ce.items.some(ze=>e(ze,t))&&xe({...ce,item:t}))},[T,oe,we,ce,xe,ne,e,ee,t]),Ae=C.useMemo(()=>ce==null?void 0:ce.items.some(ze=>e(ze,t)),[ce,e,t]),Ie=C.useMemo(()=>Ae&&(ce==null?void 0:ce.item)&&e(ce.item,t),[Ae,ce,e,t]),je=C.useRef(null),it=C.useRef(null),{attributes:Ue,listeners:tt,setNodeRef:lt,transform:bt,transition:Mt,isDragging:Qe}=fj({id:n||`item-${JSON.stringify(t)}`,disabled:!_||!!a||!n}),Xe=C.useMemo(()=>se?se(t):!1,[se,t]),ht=C.useMemo(()=>{const ze=bt?{transform:kh.Transform.toString(bt),transition:Mt,opacity:Qe?.5:1,zIndex:Qe?1:"auto"}:{};return ie||Xe?{...ze,opacity:.5,zIndex:10}:ze},[bt,Mt,Qe,ie,Xe]);C.useEffect(()=>{n&<&&it.current&<(it.current)},[n,lt]),C.useEffect(()=>{setTimeout(()=>{if(Ie&&je.current&&G.current){const{top:ze,bottom:vt}=je.current.getBoundingClientRect(),{top:_t,bottom:Tt}=G.current.getBoundingClientRect();(ze<_t||vt>Tt)&&je.current.scrollIntoView({behavior:"smooth",block:"center"})}},10)},[G,Ie]);const[ft,Oe]=C.useState(!1),Je=C.useCallback(()=>!oe&&Oe(!0),[oe]),gt=C.useCallback(()=>!oe&&Oe(!1),[oe]),It=C.useMemo(()=>Pc.map(t,ze=>ze).filter(ze=>!(o!=null&&o(ze))&&!(i!=null&&i(ze))),[o,i,t]),Et=C.useMemo(()=>!p||!T?!1:we&&It.some(ze=>ee.some(vt=>e(ze,vt)))&&It.some(ze=>!ee.some(vt=>e(ze,vt))),[p,T,we,It,e,ee]),Dt=C.useMemo(()=>p?T?It.every(ze=>ee.some(vt=>e(ze,vt))):ee.some(ze=>e(ze,t)):!1,[p,T,It,t,e,ee]),Xt=C.useCallback(()=>{if(!(!ne||oe))if(T)if(we){const ze=ee.filter(vt=>!(i!=null&&i(vt))&&!(o!=null&&o(vt))&&It.some(_t=>e(_t,vt)));ze.length>0&&ne(ee.filter(vt=>!ze.some(_t=>e(vt,_t))))}else{const ze=It.filter(vt=>!(i!=null&&i(vt))&&!(o!=null&&o(vt))&&!ee.some(_t=>e(_t,vt)));ze.length>0&&ne([...ee,...ze])}else ne([t])},[oe,o,i,T,ne,e,we,ee,It,t]),Wt=C.useCallback(ze=>{oe||Xt(),ze.stopPropagation()},[oe,Xt]),hr=C.useMemo(()=>{if(!p||!T||oe)return"";if(we){const vt=ee.filter(_t=>!(i!=null&&i(_t))&&!(o!=null&&o(_t))&&It.some(Tt=>e(Tt,_t)));if(vt.length>0)return j["deselect n"](vt.length)}const ze=It.filter(vt=>!(i!=null&&i(vt))&&!(o!=null&&o(vt))&&!ee.some(_t=>e(_t,vt)));return j["select n"](ze.length)},[o,i,j,oe,p,T,we,It,e,ee]),dr=C.useMemo(()=>Pr.getContent(H,r),[H,r]),cr=C.useMemo(()=>Pr.getContent(ge,r),[r,ge]),Te=C.useMemo(()=>Pr.getContent(P,r),[r,P]),ue=C.useMemo(()=>Pr.getContent(V,r),[r,V]),at=C.useMemo(()=>Pr.getContent(q,r),[r,q]);return S.jsxs(C.Fragment,{children:[S.jsxs(Jr,{abaseRef:it,isDisabled:oe,className:Ye.clsx(xn.ATreeItem,we&&xn.IsSelected,!oe&&(ft||A)&&xn.IsHovered,Ae&&xn.IsSearched,Ie&&(ue||xn.IsSearchSelected),!Me&&xn.IsSelectUsed,Xe&&xn.IsChildOfDragSource,"NoSelect",Te),style:{...cr,...Ie&&at?at:{},"--ATreeItem_height":`${Q}px`,...ht||{}},onClick:_e,onMouseLeave:ze=>I==null?void 0:I(ze,t),onMouseOver:ze=>D==null?void 0:D(ze,t),..._&&!oe&&Ue?Ue:{},..._&&!oe&&tt?tt:{},children:[p&&S.jsx(of,{className:xn.CheckBox,isDisabled:oe,isIndeterminate:Et,tooltip:hr,useCheck:[+Dt,Xt],style:{visibility:oe||Me?"hidden":"visible",zIndex:oe||Me?0:2},onClick:Wt,onMouseOut:gt,onMouseOver:Je}),S.jsx("div",{className:xn.Indents,style:{paddingLeft:p?0:r.icons.noChild?12:0},children:c.map((ze,vt)=>{const _t=vt===c.length-1;return S.jsx(Gw,{value:ze,map:{Collapsed:d?d({iconWidth:w}).collapsed:S.jsx(Vj,{iconWidth:w}),Expanded:d?d({iconWidth:w,isLast:_t}).expanded:S.jsx(Wj,{iconWidth:w,isLast:_t}),IsLast:d?d({iconWidth:w}).isLast:S.jsx(Gj,{iconWidth:w})}},vt)})}),We&&S.jsx("div",{className:xn.ExpandIcon,style:{width:w,minWidth:w,maxWidth:w},onClick:Ve,children:We}),S.jsx("div",{className:Ye.clsx(xn.Content,"NoSelect"),children:S.jsx(F,{containerRef:G,ContentRenderer:F,extIndents:d,height:Q,hoverdItem:R,icons:v,iconWidth:w,indents:c,isDraggable:_,isEqual:e,isParentCheckHovered:T&&(ft||A),isSelectMulti:T,item:t,itemId:n,resources:j,RightStickyAddon:H,searchItemClassName:ue,searchItemStyle:q,showCheckbox:p,TreeItemClassName:P,TreeItemRenderer:B,TreeItemStyle:ge,useExpand:h,useSearch:m,useSelect:g,onMouseLeave:I,onMouseOver:D})}),dr&&S.jsx("div",{className:xn.RightSticky,children:dr})]}),Se&&(ae==null?void 0:ae.map((ze,vt)=>S.jsx(B,{containerRef:G,ContentRenderer:F,extIndents:d,height:Q,hoverdItem:R,icons:v,iconWidth:w,isChildOfDragItem:se,isDraggable:_,isDragSrcItem:ie,isEqual:e,isParentCheckHovered:T&&(ft||A),isSelectMulti:T,item:ze,itemId:n?`${n}-child-${vt}`:void 0,resources:j,RightStickyAddon:H,searchItemClassName:ue,searchItemStyle:q,selectDisabled:o,selectUnused:i,showCheckbox:p,TreeItemClassName:P,TreeItemRenderer:B,TreeItemStyle:ge,useExpand:h,useSearch:m,useSelect:g,indents:[...c.map(_t=>_t==="IsLast"?"Collapsed":_t),vt===ae.length-1?"IsLast":"Expanded"],onMouseLeave:I,onMouseOver:D},vt)))]})},Wj=({iconWidth:r,isLast:e})=>S.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&&S.jsx("div",{style:{borderBottom:"var(--ATree_Indent_border)",height:"50%",transition:"border-color var(--Transition)"}})}),Vj=({iconWidth:r})=>S.jsx("div",{style:{width:r,height:"100%",borderLeft:"none",marginLeft:0,transition:"border-color var(--Transition)"}}),Gj=({iconWidth:r})=>S.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)"}}),Yj=r=>{const{isEqual:e,searchResult:t,initSearch:n,searchUp:o,searchDown:i,searchEnter:a,isDisabled:c,isLoading:d,resources:h,maxLength:g,autoFocus:m}=r,p=C.useCallback(T=>{T.key==="Enter"?a():T.key==="ArrowDown"?i():T.key==="ArrowUp"&&o(),T.preventDefault(),T.stopPropagation()},[i,a,o]),v=C.useCallback(T=>{n(T)},[n]),w=C.useMemo(()=>c||d?-1:void 0,[c,d]);return S.jsx(Zc,{autoFocus:m,className:xn.SearchInput,isDisabled:c,maxLength:g,placeholder:h["Search(Placeholder)"],tabIndex:w,useValue:[(t==null?void 0:t.keyword)??"",v],RightAddon:S.jsx(Zj,{isEqual:e,resources:h,searchDown:i,searchEnter:a,searchResult:t,searchUp:o}),wrapProps:{className:xn.SearchInputWrap},onKeyDown:p})},Zj=r=>{const{isEqual:e,searchResult:t,searchUp:n,searchDown:o,searchEnter:i,resources:a}=r,c=C.useMemo(()=>!t||t.items.length<1?0:t.items.findIndex(w=>t.item&&e(w,t.item))+1,[t,e]),d=C.useMemo(()=>!t||t.items.length<1?0:t.items.length,[t]),h=C.useMemo(()=>c<2,[c]),g=C.useMemo(()=>c>=d,[c,d]),m=C.useCallback(w=>{w.stopPropagation(),!h&&n()},[n,h]),p=C.useCallback(w=>{w.stopPropagation(),!g&&o()},[o,g]),v=C.useCallback(w=>{w.stopPropagation(),i()},[i]);return S.jsx("div",{className:Ye.clsx(xn.RightAddon,"NoSelect"),children:t?S.jsxs(S.Fragment,{children:[c,"/",d,S.jsx(Jr,{isDisabled:h,onClick:m,children:S.jsx(gn,{className:xn.RightAddonIcon,icon:"ArrowUp",mask:""})}),S.jsx(Jr,{isDisabled:g,onClick:p,children:S.jsx(gn,{className:xn.RightAddonIcon,icon:"ArrowDown"})})]}):S.jsx(_o,{className:xn.RightAddonIcon,icon:"Search",style:{marginRight:4},tooltip:a["Search(Button)"],type:"Raw",onClick:v})})},Kj=r=>{var jr;const{pk:e,selectDisabled:t,selectUnused:n,useItems:o,useExpand:i,useSelect:a,useSearch:c,showCheckbox:d,iconWidth:h=24,icons:g={noChild:"Folder",collapsed:"FolderCopy",expanded:"FolderOpen"},indents:m,isSelectMulti:p=!1,noSearch:v=!1,isDraggable:w,noSyncSearchSelect:T=!1,actionRef:_,placeholder:A,searchPredicate:R=Jj,isDisabled:D,isLoading:I,ContentRenderer:F=Xj,TreeItemRenderer:B=qj,RightStickyAddon:H,TopRightAddon:j,TreeTopAddon:G,resources:ge,maxLength:P,autoFocus:q,TreeItemStyle:V,TreeItemClassName:Q,OverflowPadding:ie,insertBorder:se,width:ae,searchItemClassName:le,searchItemStyle:fe,height:ee=40,...ne}=r,ce=C.useMemo(()=>({...wr.ATree,...ge}),[ge]),xe=C.useCallback((Ze,te)=>!Ze||!te?!1:e!==void 0?Array.isArray(e)?e.every(ye=>Ze&&te&&Ze[ye]!==void 0&&te[ye]!==void 0&&Za.isEqual(Ze[ye],te[ye])):Ze&&te&&Ze[e]!==void 0&&te[e]!==void 0&&Za.isEqual(Ze[e],te[e]):Za.isEqual(Ze,te),[e]),Me=C.useRef(null),[oe,Se]=wn(o,[]),Le=C.useMemo(()=>Pc.map(oe,Ze=>Ze),[oe]),[We,Ve]=wn(i,[]),[we,_e]=wn(a,[]),[Ae,Ie]=wn(c,void 0),je=C.useCallback(Ze=>{if(D||!Ve||We.some(Be=>xe(Be,Ze)))return;const te=[];let ye=Ze;for(;ye;){const Be=ye;We.find(At=>xe(At,Be))||te.push(Be),ye=Le.find(At=>{var Ft;return(Ft=At.children)==null?void 0:Ft.some(Ot=>xe(Ot,Be))})}Ve([...We,...te])},[We,D,xe,Ve,Le]),it=C.useCallback(()=>{!Ve||D||Ve([...Le])},[Le,D,Ve]),Ue=C.useCallback(()=>{!Ve||D||Ve([])},[Ve,D]),tt=C.useCallback(Ze=>{!_e||D||n!=null&&n(Ze)||(_e([Ze]),je(Ze))},[_e,D,n,je]),lt=C.useCallback(Ze=>{if(!Ie||D)return;if(!Ze||v){Ie(void 0),T||_e==null||_e([]);return}const te=Pc.filter(oe,Be=>R(Ze,Be));let ye;if(te.find(Be=>(Ae==null?void 0:Ae.item)&&xe(Be,Ae.item))?ye=Ae==null?void 0:Ae.item:te.length>0&&(ye=te[0]),Ie({keyword:Ze,items:te,item:ye}),ye&&je(ye),_e&&!T)if(p)_e(te);else{const Be=te.find(At=>ye&&xe(At,ye));_e(Be?[Be]:[])}},[oe,D,xe,R,Ie,_e,je,T,v,p,Ae]),bt=C.useRef(!1);C.useEffect(()=>{bt.current=!0},[oe]),C.useEffect(()=>{Ae&&bt.current&&(lt(Ae.keyword),bt.current=!1)},[lt,Ae]);const Mt=C.useCallback(()=>{if(!Ae||!Ie||D)return;let Ze=Ae.items.findIndex(te=>Ae.item&&xe(te,Ae.item))-1;Ze<0||(Ie({...Ae,item:Ae.items[Ze]}),je(Ae.items[Ze]),T||tt(Ae.items[Ze]))},[Ae,je,Ie,D,tt,xe,T]),Qe=C.useCallback(()=>{if(!Ae||!Ie||D)return;let Ze=Ae.items.findIndex(te=>Ae.item&&xe(te,Ae.item))+1;Ze>=Ae.items.length||(Ie({...Ae,item:Ae.items[Ze]}),je(Ae.items[Ze]),T||tt(Ae.items[Ze]))},[Ae,je,D,Ie,tt,xe,T]),Xe=C.useCallback(()=>{if(!Ae||!Ie||D)return;let Ze=Ae.items.findIndex(ye=>Ae.item&&xe(ye,Ae.item));if(!T||n!=null&&n(Ae.items[Ze])){Qe();return}if(we.some(ye=>Ae.item&&xe(ye,Ae.item))){let ye=Ze+1;const Be=Ae.items[ye];if(ye>=Ae.items.length)return;Ie({...Ae,item:Be}),tt(Be)}else tt(Ae.items[Ze])},[Ae,Ie,D,we,T,Qe,xe,tt,n]),[ht,ft]=C.useState(!1),Oe=C.useCallback(()=>ft(!0),[]),Je=C.useCallback(()=>ft(!1),[]),gt=C.useMemo(()=>n?Pc.map(oe,Ze=>Ze).filter(Ze=>!n(Ze)):t?Pc.map(oe,Ze=>Ze).filter(Ze=>!t(Ze)):Pc.map(oe,Ze=>Ze),[n,t,oe]),It=C.useMemo(()=>!d||!p?!1:we.length>0&>.length>we.length,[d,p,we,gt]),Et=C.useMemo(()=>!d||!p?!1:we.length>0&>.length===we.length,[d,p,we,gt]),Dt=C.useCallback(()=>{if(!_e||!p||D)return;const Ze=we.filter(te=>!(n!=null&&n(te))&&!(t!=null&&t(te))&>.some(ye=>xe(ye,te)));if(Ze.length>0)_e(we.filter(te=>!Ze.some(ye=>xe(te,ye))));else{const te=gt.filter(ye=>!(n!=null&&n(ye))&&!(t!=null&&t(ye))&&!we.some(Be=>xe(Be,ye)));te.length>0&&_e([...we,...te])}},[p,D,n,t,_e,we,gt,xe]),Xt=C.useMemo(()=>{if(!d||!p||D)return"";const Ze=we.filter(te=>!(n!=null&&n(te))&&!(t!=null&&t(te))&>.some(ye=>xe(ye,te)));if(Ze.length>0)return ce["deselect n"](Ze.length);{const te=gt.filter(ye=>!(n!=null&&n(ye))&&!(t!=null&&t(ye))&&!we.some(Be=>xe(Be,ye)));return ce["select n"](te.length)}},[n,t,D,ce,d,p,gt,we,xe]),[Wt,hr]=C.useState(),dr=HB(Gb(Vv,{activationConstraint:{distance:8}}),Gb(qv)),cr=C.useRef(new Map),Te=C.useCallback(Ze=>{if(!cr.current.has(Ze)){const te=`item_${Za.uniqueId()}`;cr.current.set(Ze,te)}return cr.current.get(Ze)},[]),ue=C.useCallback(Ze=>Le.find(te=>Te(te)===Ze),[Le,Te]),at=C.useCallback(Ze=>!Wt||!Wt.children?!1:Wt.children.some(ye=>xe(ye,Ze))?!0:Wt.children.some(ye=>ye.children?Pc.find(ye,Be=>xe(Be,Ze))!==void 0:!1),[Wt,xe]),ze=C.useCallback(Ze=>{if(!w||D)return;const te=ue(Ze.active.id);te&&hr(te)},[w,D,ue]),vt=C.useCallback((Ze,te,ye,Be)=>{const At=Ze.findIndex(Ot=>Be(Ot,te)),Ft=Ze.findIndex(Ot=>Be(Ot,ye));return At!==-1&&Ft!==-1?ig(Ze,At,Ft):Ze.map(Ot=>{if(!Ot.children)return Ot;const er=Ot.children.findIndex(kt=>Be(kt,te)),Qt=Ot.children.findIndex(kt=>Be(kt,ye));return er!==-1&&Qt!==-1?{...Ot,children:ig(Ot.children,er,Qt)}:Ot.children?{...Ot,children:vt(Ot.children,te,ye,Be)}:Ot})},[]),_t=C.useCallback(Ze=>{!w||D||!Wt||!Ze.over||ue(Ze.over.id)},[w,D,Wt,ue]),Tt=C.useCallback(Ze=>{if(!w||D||!Se||!Wt||!Ze.over)return;const te=ue(Ze.over.id);if(!te||xe(Wt,te)){hr(void 0);return}const ye=vt(oe,Wt,te,xe);Se(ye),hr(void 0)},[w,D,Se,Wt,ue,xe,oe,vt]),Ut=C.useMemo(()=>oe.map(Ze=>Te(Ze)),[oe,Te]);C.useEffect(()=>{var Ze;d||(Ze=Me.current)==null||Ze.scrollTo(0,0)},[d,Me]),C.useEffect(()=>{!p&&we.length>1&&(_e==null||_e([we[we.length-1]]))},[p,_e,we]),C.useEffect(()=>{_&&(_.current={expandAll:it,collapseAll:Ue})},[_,it,Ue]),C.useEffect(()=>{if(!t||!_e)return;const Ze=we.filter(te=>!t(te));we.length!==Ze.length&&_e(Ze)},[t,we,_e]),C.useEffect(()=>{if(!n||!_e)return;const Ze=we.filter(te=>!n(te));we.length!==Ze.length&&_e(Ze)},[n,we,_e]),C.useEffect(()=>{Ie&&Ie(void 0)},[Ie]);const[Ge,st]=C.useState(!1);C.useEffect(()=>{st(Ze=>!Ze)},[oe]);const[ct,xt]=C.useState(null),Nt=C.useCallback((Ze,te)=>{D||(Ze.stopPropagation(),Ze.preventDefault(),xt(te))},[D]),Bt=C.useCallback((Ze,te)=>{ct===null||D||xe(te,ct)&&(Ze.stopPropagation(),Ze.preventDefault(),xt(null))},[ct,D,xe]),qt=C.useRef(null),[Yt,ir]=C.useState(!1),[jt,xr]=C.useState((jr=qt.current)==null?void 0:jr.scrollHeight);return C.useEffect(()=>{if(We.length<0)return;const Ze=Me.current,te=qt.current,ye=Ze.clientHeight<te.clientHeight;xr(ye?te.scrollHeight:Ze.clientHeight),ir(ye)},[We]),S.jsxs(Jr,{...ne,className:Ye.clsx(ne.className,xn.AWrap),isDisabled:D,children:[(!v||j)&&S.jsxs(On,{className:xn.ATreeHeader,children:[!v&&S.jsx(Yj,{autoFocus:q,initSearch:lt,isDisabled:D,isEqual:xe,isLoading:I,maxLength:P,resources:ce,searchDown:Qe,searchEnter:Xe,searchResult:Ae,searchUp:Mt}),!v&&j&&S.jsx(Nn,{w:8}),j]}),(!v||j||d&&p||w)&&S.jsx(gv,{isLoading:I&&oe.length!==0}),(d&&p||w)&&S.jsxs("div",{className:Ye.clsx(xn.ATreeBodyHeader,"NoSelect"),children:[d&&S.jsx(of,{className:xn.CheckBox,isDisabled:D,isIndeterminate:It,tooltip:Xt,useCheck:[+Et,()=>Dt()],onMouseOut:Je,onMouseOver:Oe}),ce.Items,S.jsx(Zu,{}),S.jsxs("div",{className:Ye.clsx(xn.ATreeBodyHeaderResources,"NoSelect"),style:{marginRight:Yt?8:0},children:[S.jsx("span",{children:d&&ce["*Click row for single select"]}),S.jsx("span",{children:w&&ce["*Change order to row drag"]})]})]}),S.jsx("div",{ref:Me,className:Ye.clsx(ne.className,xn.AContainer),children:S.jsxs("div",{className:xn.ATree,style:{minWidth:ae||"fit-content",marginRight:ie&&Yt?8:0},children:[S.jsxs("div",{ref:qt,className:xn.ATreeBody,children:[oe.length===0?I?S.jsx(Qj,{text:ce["Loading Contents..."]}):A:G,S.jsx(qF,{collisionDetection:WB,modifiers:[JF,QF],sensors:dr,measuring:{droppable:{strategy:hf.Always}},onDragEnd:Tt,onDragOver:_t,onDragStart:ze,children:S.jsx(ij,{items:Ut,strategy:nj,children:oe.map((Ze,te)=>S.jsx(B,{containerRef:Me,ContentRenderer:F,extIndents:m,height:ee,hoverdItem:ct,icons:g,iconWidth:h,indents:[],isChildOfDragItem:at,isDraggable:w,isDragSrcItem:xe(Ze,Wt),isEqual:xe,isParentCheckHovered:p&&ht,isParentDisabled:D,isSelectMulti:p,item:Ze,itemId:Te(Ze),resources:ce,RightStickyAddon:H,searchItemClassName:le,searchItemStyle:fe,selectDisabled:t,selectUnused:n,showCheckbox:d,TreeItemClassName:Q,TreeItemRenderer:B,TreeItemStyle:V,useExpand:[We,Ve],useSearch:[Ae,Ie],useSelect:[we,_e],onMouseLeave:Bt,onMouseOver:Nt},`${te}${Ge}`))})})]}),se&&S.jsxs(S.Fragment,{children:[S.jsx("div",{className:xn.CoverBorder}),S.jsx("div",{className:xn.InsertBorder,style:{"--InsertBorder_height":`${ee}px`,height:Yt?jt:"100%"}})]})]})})]})},Xj=r=>{const{item:e}=r,t={};return ar.keys(e).forEach(n=>{n!=="children"&&(t[n]=e[n])}),JSON.stringify(t)};function Jj(r,e){return ar.some(e,(t,n)=>{var o;return(o=ar.stringify(n))==null?void 0:o.toLowerCase().includes(r.toLowerCase())})}const Qj=r=>{const{text:e}=r;return S.jsxs(On,{className:Ye.clsx(xn.Loader,"NoSelect"),children:[S.jsx(gn,{height:40,icon:"Spinner",style:{height:40},width:40}),S.jsx(i2,{text:e})]})};var km,ix;function xf(){return ix||(ix=1,km=TypeError),km}const eH={},tH=Object.freeze(Object.defineProperty({__proto__:null,default:eH},Symbol.toStringTag,{value:"Module"})),rH=X3(tH);var Im,sx;function _g(){if(sx)return Im;sx=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,o=typeof Set=="function"&&Set.prototype,i=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,a=o&&i&&typeof i.get=="function"?i.get:null,c=o&&Set.prototype.forEach,d=typeof WeakMap=="function"&&WeakMap.prototype,h=d?WeakMap.prototype.has:null,g=typeof WeakSet=="function"&&WeakSet.prototype,m=g?WeakSet.prototype.has:null,p=typeof WeakRef=="function"&&WeakRef.prototype,v=p?WeakRef.prototype.deref:null,w=Boolean.prototype.valueOf,T=Object.prototype.toString,_=Function.prototype.toString,A=String.prototype.match,R=String.prototype.slice,D=String.prototype.replace,I=String.prototype.toUpperCase,F=String.prototype.toLowerCase,B=RegExp.prototype.test,H=Array.prototype.concat,j=Array.prototype.join,G=Array.prototype.slice,ge=Math.floor,P=typeof BigInt=="function"?BigInt.prototype.valueOf:null,q=Object.getOwnPropertySymbols,V=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Q=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ie=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Q||!0)?Symbol.toStringTag:null,se=Object.prototype.propertyIsEnumerable,ae=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(Te){return Te.__proto__}:null);function le(Te,ue){if(Te===1/0||Te===-1/0||Te!==Te||Te&&Te>-1e3&&Te<1e3||B.call(/e/,ue))return ue;var at=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof Te=="number"){var ze=Te<0?-ge(-Te):ge(Te);if(ze!==Te){var vt=String(ze),_t=R.call(ue,vt.length+1);return D.call(vt,at,"$&_")+"."+D.call(D.call(_t,/([0-9]{3})/g,"$&_"),/_$/,"")}}return D.call(ue,at,"$&_")}var fe=rH,ee=fe.custom,ne=je(ee)?ee:null,ce={__proto__:null,double:'"',single:"'"},xe={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Im=function Te(ue,at,ze,vt){var _t=at||{};if(tt(_t,"quoteStyle")&&!tt(ce,_t.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(tt(_t,"maxStringLength")&&(typeof _t.maxStringLength=="number"?_t.maxStringLength<0&&_t.maxStringLength!==1/0:_t.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Tt=tt(_t,"customInspect")?_t.customInspect:!0;if(typeof Tt!="boolean"&&Tt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(tt(_t,"indent")&&_t.indent!==null&&_t.indent!==" "&&!(parseInt(_t.indent,10)===_t.indent&&_t.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(tt(_t,"numericSeparator")&&typeof _t.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Ut=_t.numericSeparator;if(typeof ue>"u")return"undefined";if(ue===null)return"null";if(typeof ue=="boolean")return ue?"true":"false";if(typeof ue=="string")return gt(ue,_t);if(typeof ue=="number"){if(ue===0)return 1/0/ue>0?"0":"-0";var Ge=String(ue);return Ut?le(ue,Ge):Ge}if(typeof ue=="bigint"){var st=String(ue)+"n";return Ut?le(ue,st):st}var ct=typeof _t.depth>"u"?5:_t.depth;if(typeof ze>"u"&&(ze=0),ze>=ct&&ct>0&&typeof ue=="object")return Le(ue)?"[Array]":"[Object]";var xt=hr(_t,ze);if(typeof vt>"u")vt=[];else if(Mt(vt,ue)>=0)return"[Circular]";function Nt(kt,be,nt){if(be&&(vt=G.call(vt),vt.push(be)),nt){var yt={depth:_t.depth};return tt(_t,"quoteStyle")&&(yt.quoteStyle=_t.quoteStyle),Te(kt,yt,ze+1,vt)}return Te(kt,_t,ze+1,vt)}if(typeof ue=="function"&&!Ve(ue)){var Bt=bt(ue),qt=cr(ue,Nt);return"[Function"+(Bt?": "+Bt:" (anonymous)")+"]"+(qt.length>0?" { "+j.call(qt,", ")+" }":"")}if(je(ue)){var Yt=Q?D.call(String(ue),/^(Symbol\(.*\))_[^)]*$/,"$1"):V.call(ue);return typeof ue=="object"&&!Q?Et(Yt):Yt}if(Je(ue)){for(var ir="<"+F.call(String(ue.nodeName)),jt=ue.attributes||[],xr=0;xr<jt.length;xr++)ir+=" "+jt[xr].name+"="+Me(oe(jt[xr].value),"double",_t);return ir+=">",ue.childNodes&&ue.childNodes.length&&(ir+="..."),ir+="</"+F.call(String(ue.nodeName))+">",ir}if(Le(ue)){if(ue.length===0)return"[]";var jr=cr(ue,Nt);return xt&&!Wt(jr)?"["+dr(jr,xt)+"]":"[ "+j.call(jr,", ")+" ]"}if(we(ue)){var Ze=cr(ue,Nt);return!("cause"in Error.prototype)&&"cause"in ue&&!se.call(ue,"cause")?"{ ["+String(ue)+"] "+j.call(H.call("[cause]: "+Nt(ue.cause),Ze),", ")+" }":Ze.length===0?"["+String(ue)+"]":"{ ["+String(ue)+"] "+j.call(Ze,", ")+" }"}if(typeof ue=="object"&&Tt){if(ne&&typeof ue[ne]=="function"&&fe)return fe(ue,{depth:ct-ze});if(Tt!=="symbol"&&typeof ue.inspect=="function")return ue.inspect()}if(Qe(ue)){var te=[];return n&&n.call(ue,function(kt,be){te.push(Nt(be,ue,!0)+" => "+Nt(kt,ue))}),Xt("Map",t.call(ue),te,xt)}if(ft(ue)){var ye=[];return c&&c.call(ue,function(kt){ye.push(Nt(kt,ue))}),Xt("Set",a.call(ue),ye,xt)}if(Xe(ue))return Dt("WeakMap");if(Oe(ue))return Dt("WeakSet");if(ht(ue))return Dt("WeakRef");if(Ae(ue))return Et(Nt(Number(ue)));if(it(ue))return Et(Nt(P.call(ue)));if(Ie(ue))return Et(w.call(ue));if(_e(ue))return Et(Nt(String(ue)));if(typeof window<"u"&&ue===window)return"{ [object Window] }";if(typeof globalThis<"u"&&ue===globalThis||typeof Pi<"u"&&ue===Pi)return"{ [object globalThis] }";if(!We(ue)&&!Ve(ue)){var Be=cr(ue,Nt),At=ae?ae(ue)===Object.prototype:ue instanceof Object||ue.constructor===Object,Ft=ue instanceof Object?"":"null prototype",Ot=!At&&ie&&Object(ue)===ue&&ie in ue?R.call(lt(ue),8,-1):Ft?"Object":"",er=At||typeof ue.constructor!="function"?"":ue.constructor.name?ue.constructor.name+" ":"",Qt=er+(Ot||Ft?"["+j.call(H.call([],Ot||[],Ft||[]),": ")+"] ":"");return Be.length===0?Qt+"{}":xt?Qt+"{"+dr(Be,xt)+"}":Qt+"{ "+j.call(Be,", ")+" }"}return String(ue)};function Me(Te,ue,at){var ze=at.quoteStyle||ue,vt=ce[ze];return vt+Te+vt}function oe(Te){return D.call(String(Te),/"/g,""")}function Se(Te){return!ie||!(typeof Te=="object"&&(ie in Te||typeof Te[ie]<"u"))}function Le(Te){return lt(Te)==="[object Array]"&&Se(Te)}function We(Te){return lt(Te)==="[object Date]"&&Se(Te)}function Ve(Te){return lt(Te)==="[object RegExp]"&&Se(Te)}function we(Te){return lt(Te)==="[object Error]"&&Se(Te)}function _e(Te){return lt(Te)==="[object String]"&&Se(Te)}function Ae(Te){return lt(Te)==="[object Number]"&&Se(Te)}function Ie(Te){return lt(Te)==="[object Boolean]"&&Se(Te)}function je(Te){if(Q)return Te&&typeof Te=="object"&&Te instanceof Symbol;if(typeof Te=="symbol")return!0;if(!Te||typeof Te!="object"||!V)return!1;try{return V.call(Te),!0}catch{}return!1}function it(Te){if(!Te||typeof Te!="object"||!P)return!1;try{return P.call(Te),!0}catch{}return!1}var Ue=Object.prototype.hasOwnProperty||function(Te){return Te in this};function tt(Te,ue){return Ue.call(Te,ue)}function lt(Te){return T.call(Te)}function bt(Te){if(Te.name)return Te.name;var ue=A.call(_.call(Te),/^function\s*([\w$]+)/);return ue?ue[1]:null}function Mt(Te,ue){if(Te.indexOf)return Te.indexOf(ue);for(var at=0,ze=Te.length;at<ze;at++)if(Te[at]===ue)return at;return-1}function Qe(Te){if(!t||!Te||typeof Te!="object")return!1;try{t.call(Te);try{a.call(Te)}catch{return!0}return Te instanceof Map}catch{}return!1}function Xe(Te){if(!h||!Te||typeof Te!="object")return!1;try{h.call(Te,h);try{m.call(Te,m)}catch{return!0}return Te instanceof WeakMap}catch{}return!1}function ht(Te){if(!v||!Te||typeof Te!="object")return!1;try{return v.call(Te),!0}catch{}return!1}function ft(Te){if(!a||!Te||typeof Te!="object")return!1;try{a.call(Te);try{t.call(Te)}catch{return!0}return Te instanceof Set}catch{}return!1}function Oe(Te){if(!m||!Te||typeof Te!="object")return!1;try{m.call(Te,m);try{h.call(Te,h)}catch{return!0}return Te instanceof WeakSet}catch{}return!1}function Je(Te){return!Te||typeof Te!="object"?!1:typeof HTMLElement<"u"&&Te instanceof HTMLElement?!0:typeof Te.nodeName=="string"&&typeof Te.getAttribute=="function"}function gt(Te,ue){if(Te.length>ue.maxStringLength){var at=Te.length-ue.maxStringLength,ze="... "+at+" more character"+(at>1?"s":"");return gt(R.call(Te,0,ue.maxStringLength),ue)+ze}var vt=xe[ue.quoteStyle||"single"];vt.lastIndex=0;var _t=D.call(D.call(Te,vt,"\\$1"),/[\x00-\x1f]/g,It);return Me(_t,"single",ue)}function It(Te){var ue=Te.charCodeAt(0),at={8:"b",9:"t",10:"n",12:"f",13:"r"}[ue];return at?"\\"+at:"\\x"+(ue<16?"0":"")+I.call(ue.toString(16))}function Et(Te){return"Object("+Te+")"}function Dt(Te){return Te+" { ? }"}function Xt(Te,ue,at,ze){var vt=ze?dr(at,ze):j.call(at,", ");return Te+" ("+ue+") {"+vt+"}"}function Wt(Te){for(var ue=0;ue<Te.length;ue++)if(Mt(Te[ue],`
|
363
|
+
`)>=0)return!1;return!0}function hr(Te,ue){var at;if(Te.indent===" ")at=" ";else if(typeof Te.indent=="number"&&Te.indent>0)at=j.call(Array(Te.indent+1)," ");else return null;return{base:at,prev:j.call(Array(ue+1),at)}}function dr(Te,ue){if(Te.length===0)return"";var at=`
|
364
|
+
`+ue.prev+ue.base;return at+j.call(Te,","+at)+`
|
365
|
+
`+ue.prev}function cr(Te,ue){var at=Le(Te),ze=[];if(at){ze.length=Te.length;for(var vt=0;vt<Te.length;vt++)ze[vt]=tt(Te,vt)?ue(Te[vt],Te):""}var _t=typeof q=="function"?q(Te):[],Tt;if(Q){Tt={};for(var Ut=0;Ut<_t.length;Ut++)Tt["$"+_t[Ut]]=_t[Ut]}for(var Ge in Te)tt(Te,Ge)&&(at&&String(Number(Ge))===Ge&&Ge<Te.length||Q&&Tt["$"+Ge]instanceof Symbol||(B.call(/[^\w$]/,Ge)?ze.push(ue(Ge,Te)+": "+ue(Te[Ge],Te)):ze.push(Ge+": "+ue(Te[Ge],Te))));if(typeof q=="function")for(var st=0;st<_t.length;st++)se.call(Te,_t[st])&&ze.push("["+ue(_t[st])+"]: "+ue(Te[_t[st]],Te));return ze}return Im}var Mm,ax;function nH(){if(ax)return Mm;ax=1;var r=_g(),e=xf(),t=function(c,d,h){for(var g=c,m;(m=g.next)!=null;g=m)if(m.key===d)return g.next=m.next,h||(m.next=c.next,c.next=m),m},n=function(c,d){if(c){var h=t(c,d);return h&&h.value}},o=function(c,d,h){var g=t(c,d);g?g.value=h:c.next={key:d,next:c.next,value:h}},i=function(c,d){return c?!!t(c,d):!1},a=function(c,d){if(c)return t(c,d,!0)};return Mm=function(){var d,h={assert:function(g){if(!h.has(g))throw new e("Side channel does not contain "+r(g))},delete:function(g){var m=d&&d.next,p=a(d,g);return p&&m&&m===p&&(d=void 0),!!p},get:function(g){return n(d,g)},has:function(g){return i(d,g)},set:function(g,m){d||(d={next:void 0}),o(d,g,m)}};return h},Mm}var Lm,lx;function lS(){return lx||(lx=1,Lm=Object),Lm}var Dm,cx;function oH(){return cx||(cx=1,Dm=Error),Dm}var Om,ux;function iH(){return ux||(ux=1,Om=EvalError),Om}var Nm,dx;function sH(){return dx||(dx=1,Nm=RangeError),Nm}var Pm,fx;function aH(){return fx||(fx=1,Pm=ReferenceError),Pm}var Bm,hx;function lH(){return hx||(hx=1,Bm=SyntaxError),Bm}var Fm,px;function cH(){return px||(px=1,Fm=URIError),Fm}var jm,gx;function uH(){return gx||(gx=1,jm=Math.abs),jm}var Hm,mx;function dH(){return mx||(mx=1,Hm=Math.floor),Hm}var zm,vx;function fH(){return vx||(vx=1,zm=Math.max),zm}var $m,yx;function hH(){return yx||(yx=1,$m=Math.min),$m}var Um,bx;function pH(){return bx||(bx=1,Um=Math.pow),Um}var qm,xx;function gH(){return xx||(xx=1,qm=Math.round),qm}var Wm,wx;function mH(){return wx||(wx=1,Wm=Number.isNaN||function(e){return e!==e}),Wm}var Vm,Cx;function vH(){if(Cx)return Vm;Cx=1;var r=mH();return Vm=function(t){return r(t)||t===0?t:t<0?-1:1},Vm}var Gm,Sx;function yH(){return Sx||(Sx=1,Gm=Object.getOwnPropertyDescriptor),Gm}var Ym,_x;function cS(){if(_x)return Ym;_x=1;var r=yH();if(r)try{r([],"length")}catch{r=null}return Ym=r,Ym}var Zm,Ax;function bH(){if(Ax)return Zm;Ax=1;var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return Zm=r,Zm}var Km,Ex;function xH(){return Ex||(Ex=1,Km=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 o=42;e[t]=o;for(var i 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 a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(e,t);if(c.value!==o||c.enumerable!==!0)return!1}return!0}),Km}var Xm,Tx;function wH(){if(Tx)return Xm;Tx=1;var r=typeof Symbol<"u"&&Symbol,e=xH();return Xm=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Xm}var Jm,Rx;function uS(){return Rx||(Rx=1,Jm=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Jm}var Qm,kx;function dS(){if(kx)return Qm;kx=1;var r=lS();return Qm=r.getPrototypeOf||null,Qm}var e1,Ix;function CH(){if(Ix)return e1;Ix=1;var r="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,n="[object Function]",o=function(d,h){for(var g=[],m=0;m<d.length;m+=1)g[m]=d[m];for(var p=0;p<h.length;p+=1)g[p+d.length]=h[p];return g},i=function(d,h){for(var g=[],m=h,p=0;m<d.length;m+=1,p+=1)g[p]=d[m];return g},a=function(c,d){for(var h="",g=0;g<c.length;g+=1)h+=c[g],g+1<c.length&&(h+=d);return h};return e1=function(d){var h=this;if(typeof h!="function"||e.apply(h)!==n)throw new TypeError(r+h);for(var g=i(arguments,1),m,p=function(){if(this instanceof m){var A=h.apply(this,o(g,arguments));return Object(A)===A?A:this}return h.apply(d,o(g,arguments))},v=t(0,h.length-g.length),w=[],T=0;T<v;T++)w[T]="$"+T;if(m=Function("binder","return function ("+a(w,",")+"){ return binder.apply(this,arguments); }")(p),h.prototype){var _=function(){};_.prototype=h.prototype,m.prototype=new _,_.prototype=null}return m},e1}var t1,Mx;function Ag(){if(Mx)return t1;Mx=1;var r=CH();return t1=Function.prototype.bind||r,t1}var r1,Lx;function Gv(){return Lx||(Lx=1,r1=Function.prototype.call),r1}var n1,Dx;function fS(){return Dx||(Dx=1,n1=Function.prototype.apply),n1}var o1,Ox;function SH(){return Ox||(Ox=1,o1=typeof Reflect<"u"&&Reflect&&Reflect.apply),o1}var i1,Nx;function _H(){if(Nx)return i1;Nx=1;var r=Ag(),e=fS(),t=Gv(),n=SH();return i1=n||r.call(t,e),i1}var s1,Px;function hS(){if(Px)return s1;Px=1;var r=Ag(),e=xf(),t=Gv(),n=_H();return s1=function(i){if(i.length<1||typeof i[0]!="function")throw new e("a function is required");return n(r,t,i)},s1}var a1,Bx;function AH(){if(Bx)return a1;Bx=1;var r=hS(),e=cS(),t;try{t=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var n=!!t&&e&&e(Object.prototype,"__proto__"),o=Object,i=o.getPrototypeOf;return a1=n&&typeof n.get=="function"?r([n.get]):typeof i=="function"?function(c){return i(c==null?c:o(c))}:!1,a1}var l1,Fx;function EH(){if(Fx)return l1;Fx=1;var r=uS(),e=dS(),t=AH();return l1=r?function(o){return r(o)}:e?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return e(o)}:t?function(o){return t(o)}:null,l1}var c1,jx;function TH(){if(jx)return c1;jx=1;var r=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=Ag();return c1=t.call(r,e),c1}var u1,Hx;function Yv(){if(Hx)return u1;Hx=1;var r,e=lS(),t=oH(),n=iH(),o=sH(),i=aH(),a=lH(),c=xf(),d=cH(),h=uH(),g=dH(),m=fH(),p=hH(),v=pH(),w=gH(),T=vH(),_=Function,A=function(Ve){try{return _('"use strict"; return ('+Ve+").constructor;")()}catch{}},R=cS(),D=bH(),I=function(){throw new c},F=R?function(){try{return arguments.callee,I}catch{try{return R(arguments,"callee").get}catch{return I}}}():I,B=wH()(),H=EH(),j=dS(),G=uS(),ge=fS(),P=Gv(),q={},V=typeof Uint8Array>"u"||!H?r:H(Uint8Array),Q={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":B&&H?H([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":q,"%AsyncGenerator%":q,"%AsyncGeneratorFunction%":q,"%AsyncIteratorPrototype%":q,"%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%":_,"%GeneratorFunction%":q,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":B&&H?H(H([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!B||!H?r:H(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":R,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":o,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!B||!H?r:H(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":B&&H?H(""[Symbol.iterator]()):r,"%Symbol%":B?Symbol:r,"%SyntaxError%":a,"%ThrowTypeError%":F,"%TypedArray%":V,"%TypeError%":c,"%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%":d,"%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%":ge,"%Object.defineProperty%":D,"%Object.getPrototypeOf%":j,"%Math.abs%":h,"%Math.floor%":g,"%Math.max%":m,"%Math.min%":p,"%Math.pow%":v,"%Math.round%":w,"%Math.sign%":T,"%Reflect.getPrototypeOf%":G};if(H)try{null.error}catch(Ve){var ie=H(H(Ve));Q["%Error.prototype%"]=ie}var se=function Ve(we){var _e;if(we==="%AsyncFunction%")_e=A("async function () {}");else if(we==="%GeneratorFunction%")_e=A("function* () {}");else if(we==="%AsyncGeneratorFunction%")_e=A("async function* () {}");else if(we==="%AsyncGenerator%"){var Ae=Ve("%AsyncGeneratorFunction%");Ae&&(_e=Ae.prototype)}else if(we==="%AsyncIteratorPrototype%"){var Ie=Ve("%AsyncGenerator%");Ie&&H&&(_e=H(Ie.prototype))}return Q[we]=_e,_e},ae={__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=Ag(),fe=TH(),ee=le.call(P,Array.prototype.concat),ne=le.call(ge,Array.prototype.splice),ce=le.call(P,String.prototype.replace),xe=le.call(P,String.prototype.slice),Me=le.call(P,RegExp.prototype.exec),oe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Se=/\\(\\)?/g,Le=function(we){var _e=xe(we,0,1),Ae=xe(we,-1);if(_e==="%"&&Ae!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(Ae==="%"&&_e!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var Ie=[];return ce(we,oe,function(je,it,Ue,tt){Ie[Ie.length]=Ue?ce(tt,Se,"$1"):it||je}),Ie},We=function(we,_e){var Ae=we,Ie;if(fe(ae,Ae)&&(Ie=ae[Ae],Ae="%"+Ie[0]+"%"),fe(Q,Ae)){var je=Q[Ae];if(je===q&&(je=se(Ae)),typeof je>"u"&&!_e)throw new c("intrinsic "+we+" exists, but is not available. Please file an issue!");return{alias:Ie,name:Ae,value:je}}throw new a("intrinsic "+we+" does not exist!")};return u1=function(we,_e){if(typeof we!="string"||we.length===0)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof _e!="boolean")throw new c('"allowMissing" argument must be a boolean');if(Me(/^%?[^%]*%?$/,we)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Ae=Le(we),Ie=Ae.length>0?Ae[0]:"",je=We("%"+Ie+"%",_e),it=je.name,Ue=je.value,tt=!1,lt=je.alias;lt&&(Ie=lt[0],ne(Ae,ee([0,1],lt)));for(var bt=1,Mt=!0;bt<Ae.length;bt+=1){var Qe=Ae[bt],Xe=xe(Qe,0,1),ht=xe(Qe,-1);if((Xe==='"'||Xe==="'"||Xe==="`"||ht==='"'||ht==="'"||ht==="`")&&Xe!==ht)throw new a("property names with quotes must have matching quotes");if((Qe==="constructor"||!Mt)&&(tt=!0),Ie+="."+Qe,it="%"+Ie+"%",fe(Q,it))Ue=Q[it];else if(Ue!=null){if(!(Qe in Ue)){if(!_e)throw new c("base intrinsic for "+we+" exists, but the property is not available.");return}if(R&&bt+1>=Ae.length){var ft=R(Ue,Qe);Mt=!!ft,Mt&&"get"in ft&&!("originalValue"in ft.get)?Ue=ft.get:Ue=Ue[Qe]}else Mt=fe(Ue,Qe),Ue=Ue[Qe];Mt&&!tt&&(Q[it]=Ue)}}return Ue},u1}var d1,zx;function pS(){if(zx)return d1;zx=1;var r=Yv(),e=hS(),t=e([r("%String.prototype.indexOf%")]);return d1=function(o,i){var a=r(o,!!i);return typeof a=="function"&&t(o,".prototype.")>-1?e([a]):a},d1}var f1,$x;function gS(){if($x)return f1;$x=1;var r=Yv(),e=pS(),t=_g(),n=xf(),o=r("%Map%",!0),i=e("Map.prototype.get",!0),a=e("Map.prototype.set",!0),c=e("Map.prototype.has",!0),d=e("Map.prototype.delete",!0),h=e("Map.prototype.size",!0);return f1=!!o&&function(){var m,p={assert:function(v){if(!p.has(v))throw new n("Side channel does not contain "+t(v))},delete:function(v){if(m){var w=d(m,v);return h(m)===0&&(m=void 0),w}return!1},get:function(v){if(m)return i(m,v)},has:function(v){return m?c(m,v):!1},set:function(v,w){m||(m=new o),a(m,v,w)}};return p},f1}var h1,Ux;function RH(){if(Ux)return h1;Ux=1;var r=Yv(),e=pS(),t=_g(),n=gS(),o=xf(),i=r("%WeakMap%",!0),a=e("WeakMap.prototype.get",!0),c=e("WeakMap.prototype.set",!0),d=e("WeakMap.prototype.has",!0),h=e("WeakMap.prototype.delete",!0);return h1=i?function(){var m,p,v={assert:function(w){if(!v.has(w))throw new o("Side channel does not contain "+t(w))},delete:function(w){if(i&&w&&(typeof w=="object"||typeof w=="function")){if(m)return h(m,w)}else if(n&&p)return p.delete(w);return!1},get:function(w){return i&&w&&(typeof w=="object"||typeof w=="function")&&m?a(m,w):p&&p.get(w)},has:function(w){return i&&w&&(typeof w=="object"||typeof w=="function")&&m?d(m,w):!!p&&p.has(w)},set:function(w,T){i&&w&&(typeof w=="object"||typeof w=="function")?(m||(m=new i),c(m,w,T)):n&&(p||(p=n()),p.set(w,T))}};return v}:n,h1}var p1,qx;function kH(){if(qx)return p1;qx=1;var r=xf(),e=_g(),t=nH(),n=gS(),o=RH(),i=o||n||t;return p1=function(){var c,d={assert:function(h){if(!d.has(h))throw new r("Side channel does not contain "+e(h))},delete:function(h){return!!c&&c.delete(h)},get:function(h){return c&&c.get(h)},has:function(h){return!!c&&c.has(h)},set:function(h,g){c||(c=i()),c.set(h,g)}};return d},p1}var g1,Wx;function Zv(){if(Wx)return g1;Wx=1;var r=String.prototype.replace,e=/%20/g,t={RFC1738:"RFC1738",RFC3986:"RFC3986"};return g1={default:t.RFC3986,formatters:{RFC1738:function(n){return r.call(n,e,"+")},RFC3986:function(n){return String(n)}},RFC1738:t.RFC1738,RFC3986:t.RFC3986},g1}var m1,Vx;function mS(){if(Vx)return m1;Vx=1;var r=Zv(),e=Object.prototype.hasOwnProperty,t=Array.isArray,n=function(){for(var _=[],A=0;A<256;++A)_.push("%"+((A<16?"0":"")+A.toString(16)).toUpperCase());return _}(),o=function(A){for(;A.length>1;){var R=A.pop(),D=R.obj[R.prop];if(t(D)){for(var I=[],F=0;F<D.length;++F)typeof D[F]<"u"&&I.push(D[F]);R.obj[R.prop]=I}}},i=function(A,R){for(var D=R&&R.plainObjects?{__proto__:null}:{},I=0;I<A.length;++I)typeof A[I]<"u"&&(D[I]=A[I]);return D},a=function _(A,R,D){if(!R)return A;if(typeof R!="object"&&typeof R!="function"){if(t(A))A.push(R);else if(A&&typeof A=="object")(D&&(D.plainObjects||D.allowPrototypes)||!e.call(Object.prototype,R))&&(A[R]=!0);else return[A,R];return A}if(!A||typeof A!="object")return[A].concat(R);var I=A;return t(A)&&!t(R)&&(I=i(A,D)),t(A)&&t(R)?(R.forEach(function(F,B){if(e.call(A,B)){var H=A[B];H&&typeof H=="object"&&F&&typeof F=="object"?A[B]=_(H,F,D):A.push(F)}else A[B]=F}),A):Object.keys(R).reduce(function(F,B){var H=R[B];return e.call(F,B)?F[B]=_(F[B],H,D):F[B]=H,F},I)},c=function(A,R){return Object.keys(R).reduce(function(D,I){return D[I]=R[I],D},A)},d=function(_,A,R){var D=_.replace(/\+/g," ");if(R==="iso-8859-1")return D.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(D)}catch{return D}},h=1024,g=function(A,R,D,I,F){if(A.length===0)return A;var B=A;if(typeof A=="symbol"?B=Symbol.prototype.toString.call(A):typeof A!="string"&&(B=String(A)),D==="iso-8859-1")return escape(B).replace(/%u[0-9a-f]{4}/gi,function(V){return"%26%23"+parseInt(V.slice(2),16)+"%3B"});for(var H="",j=0;j<B.length;j+=h){for(var G=B.length>=h?B.slice(j,j+h):B,ge=[],P=0;P<G.length;++P){var q=G.charCodeAt(P);if(q===45||q===46||q===95||q===126||q>=48&&q<=57||q>=65&&q<=90||q>=97&&q<=122||F===r.RFC1738&&(q===40||q===41)){ge[ge.length]=G.charAt(P);continue}if(q<128){ge[ge.length]=n[q];continue}if(q<2048){ge[ge.length]=n[192|q>>6]+n[128|q&63];continue}if(q<55296||q>=57344){ge[ge.length]=n[224|q>>12]+n[128|q>>6&63]+n[128|q&63];continue}P+=1,q=65536+((q&1023)<<10|G.charCodeAt(P)&1023),ge[ge.length]=n[240|q>>18]+n[128|q>>12&63]+n[128|q>>6&63]+n[128|q&63]}H+=ge.join("")}return H},m=function(A){for(var R=[{obj:{o:A},prop:"o"}],D=[],I=0;I<R.length;++I)for(var F=R[I],B=F.obj[F.prop],H=Object.keys(B),j=0;j<H.length;++j){var G=H[j],ge=B[G];typeof ge=="object"&&ge!==null&&D.indexOf(ge)===-1&&(R.push({obj:B,prop:G}),D.push(ge))}return o(R),A},p=function(A){return Object.prototype.toString.call(A)==="[object RegExp]"},v=function(A){return!A||typeof A!="object"?!1:!!(A.constructor&&A.constructor.isBuffer&&A.constructor.isBuffer(A))},w=function(A,R){return[].concat(A,R)},T=function(A,R){if(t(A)){for(var D=[],I=0;I<A.length;I+=1)D.push(R(A[I]));return D}return R(A)};return m1={arrayToObject:i,assign:c,combine:w,compact:m,decode:d,encode:g,isBuffer:v,isRegExp:p,maybeMap:T,merge:a},m1}var v1,Gx;function IH(){if(Gx)return v1;Gx=1;var r=kH(),e=mS(),t=Zv(),n=Object.prototype.hasOwnProperty,o={brackets:function(_){return _+"[]"},comma:"comma",indices:function(_,A){return _+"["+A+"]"},repeat:function(_){return _}},i=Array.isArray,a=Array.prototype.push,c=function(T,_){a.apply(T,i(_)?_:[_])},d=Date.prototype.toISOString,h=t.default,g={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:h,formatter:t.formatters[h],indices:!1,serializeDate:function(_){return d.call(_)},skipNulls:!1,strictNullHandling:!1},m=function(_){return typeof _=="string"||typeof _=="number"||typeof _=="boolean"||typeof _=="symbol"||typeof _=="bigint"},p={},v=function T(_,A,R,D,I,F,B,H,j,G,ge,P,q,V,Q,ie,se,ae){for(var le=_,fe=ae,ee=0,ne=!1;(fe=fe.get(p))!==void 0&&!ne;){var ce=fe.get(_);if(ee+=1,typeof ce<"u"){if(ce===ee)throw new RangeError("Cyclic object value");ne=!0}typeof fe.get(p)>"u"&&(ee=0)}if(typeof G=="function"?le=G(A,le):le instanceof Date?le=q(le):R==="comma"&&i(le)&&(le=e.maybeMap(le,function(it){return it instanceof Date?q(it):it})),le===null){if(F)return j&&!ie?j(A,g.encoder,se,"key",V):A;le=""}if(m(le)||e.isBuffer(le)){if(j){var xe=ie?A:j(A,g.encoder,se,"key",V);return[Q(xe)+"="+Q(j(le,g.encoder,se,"value",V))]}return[Q(A)+"="+Q(String(le))]}var Me=[];if(typeof le>"u")return Me;var oe;if(R==="comma"&&i(le))ie&&j&&(le=e.maybeMap(le,j)),oe=[{value:le.length>0?le.join(",")||null:void 0}];else if(i(G))oe=G;else{var Se=Object.keys(le);oe=ge?Se.sort(ge):Se}var Le=H?String(A).replace(/\./g,"%2E"):String(A),We=D&&i(le)&&le.length===1?Le+"[]":Le;if(I&&i(le)&&le.length===0)return We+"[]";for(var Ve=0;Ve<oe.length;++Ve){var we=oe[Ve],_e=typeof we=="object"&&we&&typeof we.value<"u"?we.value:le[we];if(!(B&&_e===null)){var Ae=P&&H?String(we).replace(/\./g,"%2E"):String(we),Ie=i(le)?typeof R=="function"?R(We,Ae):We:We+(P?"."+Ae:"["+Ae+"]");ae.set(_,ee);var je=r();je.set(p,ae),c(Me,T(_e,Ie,R,D,I,F,B,H,R==="comma"&&ie&&i(le)?null:j,G,ge,P,q,V,Q,ie,se,je))}}return Me},w=function(_){if(!_)return g;if(typeof _.allowEmptyArrays<"u"&&typeof _.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof _.encodeDotInKeys<"u"&&typeof _.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(_.encoder!==null&&typeof _.encoder<"u"&&typeof _.encoder!="function")throw new TypeError("Encoder has to be a function.");var A=_.charset||g.charset;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");var R=t.default;if(typeof _.format<"u"){if(!n.call(t.formatters,_.format))throw new TypeError("Unknown format option provided.");R=_.format}var D=t.formatters[R],I=g.filter;(typeof _.filter=="function"||i(_.filter))&&(I=_.filter);var F;if(_.arrayFormat in o?F=_.arrayFormat:"indices"in _?F=_.indices?"indices":"repeat":F=g.arrayFormat,"commaRoundTrip"in _&&typeof _.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var B=typeof _.allowDots>"u"?_.encodeDotInKeys===!0?!0:g.allowDots:!!_.allowDots;return{addQueryPrefix:typeof _.addQueryPrefix=="boolean"?_.addQueryPrefix:g.addQueryPrefix,allowDots:B,allowEmptyArrays:typeof _.allowEmptyArrays=="boolean"?!!_.allowEmptyArrays:g.allowEmptyArrays,arrayFormat:F,charset:A,charsetSentinel:typeof _.charsetSentinel=="boolean"?_.charsetSentinel:g.charsetSentinel,commaRoundTrip:!!_.commaRoundTrip,delimiter:typeof _.delimiter>"u"?g.delimiter:_.delimiter,encode:typeof _.encode=="boolean"?_.encode:g.encode,encodeDotInKeys:typeof _.encodeDotInKeys=="boolean"?_.encodeDotInKeys:g.encodeDotInKeys,encoder:typeof _.encoder=="function"?_.encoder:g.encoder,encodeValuesOnly:typeof _.encodeValuesOnly=="boolean"?_.encodeValuesOnly:g.encodeValuesOnly,filter:I,format:R,formatter:D,serializeDate:typeof _.serializeDate=="function"?_.serializeDate:g.serializeDate,skipNulls:typeof _.skipNulls=="boolean"?_.skipNulls:g.skipNulls,sort:typeof _.sort=="function"?_.sort:null,strictNullHandling:typeof _.strictNullHandling=="boolean"?_.strictNullHandling:g.strictNullHandling}};return v1=function(T,_){var A=T,R=w(_),D,I;typeof R.filter=="function"?(I=R.filter,A=I("",A)):i(R.filter)&&(I=R.filter,D=I);var F=[];if(typeof A!="object"||A===null)return"";var B=o[R.arrayFormat],H=B==="comma"&&R.commaRoundTrip;D||(D=Object.keys(A)),R.sort&&D.sort(R.sort);for(var j=r(),G=0;G<D.length;++G){var ge=D[G],P=A[ge];R.skipNulls&&P===null||c(F,v(P,ge,B,H,R.allowEmptyArrays,R.strictNullHandling,R.skipNulls,R.encodeDotInKeys,R.encode?R.encoder:null,R.filter,R.sort,R.allowDots,R.serializeDate,R.format,R.formatter,R.encodeValuesOnly,R.charset,j))}var q=F.join(R.delimiter),V=R.addQueryPrefix===!0?"?":"";return R.charsetSentinel&&(R.charset==="iso-8859-1"?V+="utf8=%26%2310003%3B&":V+="utf8=%E2%9C%93&"),q.length>0?V+q:""},v1}var y1,Yx;function MH(){if(Yx)return y1;Yx=1;var r=mS(),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},o=function(p){return p.replace(/&#(\d+);/g,function(v,w){return String.fromCharCode(parseInt(w,10))})},i=function(p,v,w){if(p&&typeof p=="string"&&v.comma&&p.indexOf(",")>-1)return p.split(",");if(v.throwOnLimitExceeded&&w>=v.arrayLimit)throw new RangeError("Array limit exceeded. Only "+v.arrayLimit+" element"+(v.arrayLimit===1?"":"s")+" allowed in an array.");return p},a="utf8=%26%2310003%3B",c="utf8=%E2%9C%93",d=function(v,w){var T={__proto__:null},_=w.ignoreQueryPrefix?v.replace(/^\?/,""):v;_=_.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var A=w.parameterLimit===1/0?void 0:w.parameterLimit,R=_.split(w.delimiter,w.throwOnLimitExceeded?A+1:A);if(w.throwOnLimitExceeded&&R.length>A)throw new RangeError("Parameter limit exceeded. Only "+A+" parameter"+(A===1?"":"s")+" allowed.");var D=-1,I,F=w.charset;if(w.charsetSentinel)for(I=0;I<R.length;++I)R[I].indexOf("utf8=")===0&&(R[I]===c?F="utf-8":R[I]===a&&(F="iso-8859-1"),D=I,I=R.length);for(I=0;I<R.length;++I)if(I!==D){var B=R[I],H=B.indexOf("]="),j=H===-1?B.indexOf("="):H+1,G,ge;j===-1?(G=w.decoder(B,n.decoder,F,"key"),ge=w.strictNullHandling?null:""):(G=w.decoder(B.slice(0,j),n.decoder,F,"key"),ge=r.maybeMap(i(B.slice(j+1),w,t(T[G])?T[G].length:0),function(q){return w.decoder(q,n.decoder,F,"value")})),ge&&w.interpretNumericEntities&&F==="iso-8859-1"&&(ge=o(String(ge))),B.indexOf("[]=")>-1&&(ge=t(ge)?[ge]:ge);var P=e.call(T,G);P&&w.duplicates==="combine"?T[G]=r.combine(T[G],ge):(!P||w.duplicates==="last")&&(T[G]=ge)}return T},h=function(p,v,w,T){var _=0;if(p.length>0&&p[p.length-1]==="[]"){var A=p.slice(0,-1).join("");_=Array.isArray(v)&&v[A]?v[A].length:0}for(var R=T?v:i(v,w,_),D=p.length-1;D>=0;--D){var I,F=p[D];if(F==="[]"&&w.parseArrays)I=w.allowEmptyArrays&&(R===""||w.strictNullHandling&&R===null)?[]:r.combine([],R);else{I=w.plainObjects?{__proto__:null}:{};var B=F.charAt(0)==="["&&F.charAt(F.length-1)==="]"?F.slice(1,-1):F,H=w.decodeDotInKeys?B.replace(/%2E/g,"."):B,j=parseInt(H,10);!w.parseArrays&&H===""?I={0:R}:!isNaN(j)&&F!==H&&String(j)===H&&j>=0&&w.parseArrays&&j<=w.arrayLimit?(I=[],I[j]=R):H!=="__proto__"&&(I[H]=R)}R=I}return R},g=function(v,w,T,_){if(v){var A=T.allowDots?v.replace(/\.([^.[]+)/g,"[$1]"):v,R=/(\[[^[\]]*])/,D=/(\[[^[\]]*])/g,I=T.depth>0&&R.exec(A),F=I?A.slice(0,I.index):A,B=[];if(F){if(!T.plainObjects&&e.call(Object.prototype,F)&&!T.allowPrototypes)return;B.push(F)}for(var H=0;T.depth>0&&(I=D.exec(A))!==null&&H<T.depth;){if(H+=1,!T.plainObjects&&e.call(Object.prototype,I[1].slice(1,-1))&&!T.allowPrototypes)return;B.push(I[1])}if(I){if(T.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+T.depth+" and strictDepth is true");B.push("["+A.slice(I.index)+"]")}return h(B,w,T,_)}},m=function(v){if(!v)return n;if(typeof v.allowEmptyArrays<"u"&&typeof v.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof v.decodeDotInKeys<"u"&&typeof v.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(v.decoder!==null&&typeof v.decoder<"u"&&typeof v.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof v.charset<"u"&&v.charset!=="utf-8"&&v.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof v.throwOnLimitExceeded<"u"&&typeof v.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var w=typeof v.charset>"u"?n.charset:v.charset,T=typeof v.duplicates>"u"?n.duplicates:v.duplicates;if(T!=="combine"&&T!=="first"&&T!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var _=typeof v.allowDots>"u"?v.decodeDotInKeys===!0?!0:n.allowDots:!!v.allowDots;return{allowDots:_,allowEmptyArrays:typeof v.allowEmptyArrays=="boolean"?!!v.allowEmptyArrays:n.allowEmptyArrays,allowPrototypes:typeof v.allowPrototypes=="boolean"?v.allowPrototypes:n.allowPrototypes,allowSparse:typeof v.allowSparse=="boolean"?v.allowSparse:n.allowSparse,arrayLimit:typeof v.arrayLimit=="number"?v.arrayLimit:n.arrayLimit,charset:w,charsetSentinel:typeof v.charsetSentinel=="boolean"?v.charsetSentinel:n.charsetSentinel,comma:typeof v.comma=="boolean"?v.comma:n.comma,decodeDotInKeys:typeof v.decodeDotInKeys=="boolean"?v.decodeDotInKeys:n.decodeDotInKeys,decoder:typeof v.decoder=="function"?v.decoder:n.decoder,delimiter:typeof v.delimiter=="string"||r.isRegExp(v.delimiter)?v.delimiter:n.delimiter,depth:typeof v.depth=="number"||v.depth===!1?+v.depth:n.depth,duplicates:T,ignoreQueryPrefix:v.ignoreQueryPrefix===!0,interpretNumericEntities:typeof v.interpretNumericEntities=="boolean"?v.interpretNumericEntities:n.interpretNumericEntities,parameterLimit:typeof v.parameterLimit=="number"?v.parameterLimit:n.parameterLimit,parseArrays:v.parseArrays!==!1,plainObjects:typeof v.plainObjects=="boolean"?v.plainObjects:n.plainObjects,strictDepth:typeof v.strictDepth=="boolean"?!!v.strictDepth:n.strictDepth,strictNullHandling:typeof v.strictNullHandling=="boolean"?v.strictNullHandling:n.strictNullHandling,throwOnLimitExceeded:typeof v.throwOnLimitExceeded=="boolean"?v.throwOnLimitExceeded:!1}};return y1=function(p,v){var w=m(v);if(p===""||p===null||typeof p>"u")return w.plainObjects?{__proto__:null}:{};for(var T=typeof p=="string"?d(p,w):p,_=w.plainObjects?{__proto__:null}:{},A=Object.keys(T),R=0;R<A.length;++R){var D=A[R],I=g(D,T[D],w,typeof p=="string");_=r.merge(_,I,w)}return w.allowSparse===!0?_:r.compact(_)},y1}var b1,Zx;function LH(){if(Zx)return b1;Zx=1;var r=IH(),e=MH(),t=Zv();return b1={formats:t,parse:e,stringify:r},b1}var DH=LH();const OH=pf(DH),nv={StoredContexts:{},defaultHandler:()=>{}},vS={Init:()=>{},Create:r=>{const e=r.method+r.url;return nv.StoredContexts[e]=r,NH(r)},FetchBaseUrl:()=>window.location.href,useDefaultHandler:r=>{nv.defaultHandler=r}};function NH(r){const e=`[${r.method}] ${r.url}`;return{Call:async n=>{let{url:o,method:i,stream:a,paramType:c}=r;const{po:d,onStream:h,onStreamEnd:g,noDefaultHandle:m=[]}=n??{};(c==="query"||i==="GET")&&d!==void 0&&(o+="?"+OH.stringify(d,{arrayFormat:"comma"}));const p={method:i,headers:{Accept:"application/json;charset=UTF-8","X-Requested-With":"XMLHttpRequest","Cache-Control":"no-cache",Pragma:"no-cache",crossDomain:"true"}};if(c==="form"){const T=new FormData;if(d!==void 0)for(const _ in d){const A=d[_];T.append(_,A)}p.body=T}else(c==="body"||c===void 0&&r.method!=="GET")&&(p.body=JSON.stringify(d),p.headers["Content-Type"]="application/json;charset=UTF-8");let v={errorCode:0,message:""};const w=Date.now();o=vS.FetchBaseUrl()+o;try{let T=await fetch(o,p);if(T.ok===!1)return v.errorCode=T.status,v.message=T.statusText,v;{const _=new TextDecoder("utf-8");if(a){if(T.body){let A=T.body.getReader(),R="";for(;;){const D=await A.read();if(D.done)break;const I=_.decode(D.value).trim();R+=I;let F=null;try{const B=I.split("\0");let H=B[B.length-1];for(let j=B.length-2;j>=0;j--)if(B[j].trim().length!==0){H=B[j];break}F=await JSON.parse(H)}catch{try{const H=R.split("\0");let j=H[H.length-1];for(let G=H.length-2;G>=0;G--)if(H[G].trim().length!==0){j=H[G];break}F=await JSON.parse(j)}catch{}}if(F!=null&&(Object.keys(F).includes("err_code")?v.errorCode=F.err_code:(v.errorCode=0,v.data=F,R="",D.done?g==null||g(v.data):h==null||h(v.data))),D.done)break}}}else if(T.body){const R=await T.body.getReader().read(),D=_.decode(R.value);if(D==="null")return v;{let I=await JSON.parse(D.replaceAll("\0",""));Object.keys(I).includes("err_code")?(v.errorCode=I.err_code,v.message=I.err_msg):v.data=I}}}}catch(T){console.warn(T),v.errorCode=-1,v.message=T.message}return console.debug(`${e} ${Date.now()-w}ms`),m!==!0&&await nv.defaultHandler(v,m),v}}}exports.ABase=Jr;exports.ABaseStyleKeys=mw;exports.AButton=Zo;exports.AButtonStyleKeys=yw;exports.AButtonTypes=T4;exports.ACheckBox=of;exports.ACheckBoxStyleKeys=Cw;exports.AChip=cv;exports.AChipKeys=$w;exports.AChips=P5;exports.AClock=K5;exports.AColFrame=Vw;exports.ADatePicker=hv;exports.ADatePickerStyleKeys=Dw;exports.ADatePickerTypes=SR;exports.ADateRangePicker=dv;exports.ADateRangePickerStyleKeys=Ow;exports.ADialog=LR;exports.ADialogStyleKeys=Sw;exports.ADialogTypes=MR;exports.ADivideFrame=Yw;exports.AEditor=_B;exports.AEditorStyleKeys=ww;exports.AFileBox=UR;exports.AFileBoxStyleKeys=kw;exports.AFileUploader=hk;exports.AFileUploaderStyleKeys=Iw;exports.AFloatMenu=Xw;exports.AFloatMenuKeys=Fw;exports.AFrameStyleKeys=Bw;exports.AGrow=Zu;exports.AIcon=gn;exports.AIconButton=_o;exports.AIconButtonStyleKeys=Nw;exports.AIconButtonTypes=R4;exports.AIconHOC=OT;exports.AIcons=sv;exports.AInput=Zc;exports.AInputStyleKeys=bw;exports.AInputTypes=c6;exports.AListView=_k;exports.AListViewStyleKeys=Mw;exports.ALoadingBorder=gv;exports.ALoadingBorderKeys=jw;exports.AMultiSelect=Xk;exports.AMultiSelectStyleKeys=Aw;exports.ANumInput=bk;exports.AOverflowFrame=tl;exports.AProgressBar=ow;exports.ARadioSelect=Pk;exports.ARadioSelectKeys=zw;exports.ARowFrame=On;exports.ASelect=Kc;exports.ASelectStyleKeys=_w;exports.ASelectTypes=_6;exports.ASpace=Nn;exports.AStepper=fI;exports.AStepperStyleKeys=Lw;exports.ASwitch=cw;exports.ASwitchFrame=Gw;exports.ASwitchStyleKeys=Tw;exports.ATab=e2;exports.ATabStyleKeys=Rw;exports.ATabTypes=_I;exports.ATable=L8;exports.ATableStyleKeys=Pw;exports.AText=i2;exports.ATextArea=U8;exports.ATextAreaStyleKeys=xw;exports.ATextAreaTypes=$8;exports.AThemeButton=e5;exports.AThemes=th;exports.ATooltip=lw;exports.ATooltipStyleKeys=vw;exports.ATree=Kj;exports.ATreeStyleKeys=Ew;exports.AWrap=Yc;exports.AWrapKeys=Hw;exports.AWrapPropsExtract=Yu;exports.AWrapTypes=O4;exports.ApiContext=vS;exports.BodyStyleKeys=gw;exports.CreateADC=FR;exports.DefaultOptionRenderer=Qw;exports.EDir12=gf;exports.EDir4=Mo;exports.FileSizeTrans=Hu;exports.Icons=ag;exports.IsCursorPointer=ew;exports.IsFixedShape=Qx;exports.IsInteractive=tw;exports.NoSelect=Xx;exports.NoTransition=Jx;exports.Resources=wr;exports.SetResources=ZT;exports.alphanumericRegex=F5;exports.bound=eh;exports.cbF=Pr;exports.changeSemanticMode=lv;exports.componentStyleKeys=V4;exports.createEvent=Pu;exports.dateF=tr;exports.dbF=sa;exports.defaultPredicate=r2;exports.dlgF=jR;exports.emailIdRegex=H5;exports.emailRegex=j5;exports.fileF=Bu;exports.getFileKey=Kw;exports.getMonthsOptions=gh;exports.getYearsOptions=fv;exports.hangulRegex=$5;exports.hexRegex=z5;exports.noHanguljamoRegex=q5;exports.noSpaceRegex=U5;exports.numF=Jw;exports.objF=ar;exports.paletteKeys=uw;exports.paletteModes=lg;exports.passwordRegex=V5;exports.refinedDesignTokens=Oo;exports.sF=Ye;exports.semanticKeys=hw;exports.semanticModes=nf;exports.setDir12Style=av;exports.setDir12StyleElem=sw;exports.specialCharRegex=W5;exports.strF=uv;exports.tableF=Bl;exports.textMeasurement=ju;exports.treeF=Pc;exports.useADialogCore=PR;exports.useADialogCores=NR;exports.useDB=qw;exports.useEvent=o2;exports.useInit=t2;exports.useLayoutDB=Ww;exports.useValues=wn;exports.uuidRegex=G5;
|