@piedata/pieui 1.1.4 → 1.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/cli.js +7479 -10539
  2. package/dist/components/Agents/OpenAIVoiceAgentCard/index.d.ts +2 -0
  3. package/dist/components/Agents/OpenAIVoiceAgentCard/index.d.ts.map +1 -0
  4. package/dist/components/Agents/OpenAIVoiceAgentCard/types/index.d.ts +31 -0
  5. package/dist/components/Agents/OpenAIVoiceAgentCard/types/index.d.ts.map +1 -0
  6. package/dist/components/Agents/OpenAIVoiceAgentCard/ui/OpenAIVoiceAgentCard.d.ts +4 -0
  7. package/dist/components/Agents/OpenAIVoiceAgentCard/ui/OpenAIVoiceAgentCard.d.ts.map +1 -0
  8. package/dist/components/Common/AutoRedirectCard/index.d.ts +2 -0
  9. package/dist/components/Common/AutoRedirectCard/index.d.ts.map +1 -0
  10. package/dist/components/Common/AutoRedirectCard/types/index.d.ts +7 -0
  11. package/dist/components/Common/AutoRedirectCard/types/index.d.ts.map +1 -0
  12. package/dist/components/Common/AutoRedirectCard/ui/AutoRedirectCard.d.ts +4 -0
  13. package/dist/components/Common/AutoRedirectCard/ui/AutoRedirectCard.d.ts.map +1 -0
  14. package/dist/components/Common/HTMLEmbedCard/index.d.ts +2 -0
  15. package/dist/components/Common/HTMLEmbedCard/index.d.ts.map +1 -0
  16. package/dist/components/Common/HTMLEmbedCard/types/index.d.ts +14 -0
  17. package/dist/components/Common/HTMLEmbedCard/types/index.d.ts.map +1 -0
  18. package/dist/components/Common/HTMLEmbedCard/ui/HTMLEmbedCard.d.ts +4 -0
  19. package/dist/components/Common/HTMLEmbedCard/ui/HTMLEmbedCard.d.ts.map +1 -0
  20. package/dist/components/PieRoot/types/index.d.ts +1 -0
  21. package/dist/components/PieRoot/types/index.d.ts.map +1 -1
  22. package/dist/components/index.d.ts +2 -0
  23. package/dist/components/index.d.ts.map +1 -1
  24. package/dist/components/index.esm.js +67 -15
  25. package/dist/components/index.js +81 -23
  26. package/dist/index.d.ts +1 -0
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.esm.js +16 -16
  29. package/dist/index.js +23 -23
  30. package/package.json +8 -4
package/dist/index.esm.js CHANGED
@@ -1,28 +1,28 @@
1
- var EX=Object.create;var{getPrototypeOf:SX,defineProperty:R0,getOwnPropertyNames:G7,getOwnPropertyDescriptor:xX}=Object,W7=Object.prototype.hasOwnProperty;var S=(Z,J,Y)=>{Y=Z!=null?EX(SX(Z)):{};let Q=J||!Z||!Z.__esModule?R0(Y,"default",{value:Z,enumerable:!0}):Y;for(let X of G7(Z))if(!W7.call(Q,X))R0(Q,X,{get:()=>Z[X],enumerable:!0});return Q},X7=new WeakMap,CX=(Z)=>{var J=X7.get(Z),Y;if(J)return J;if(J=R0({},"__esModule",{value:!0}),Z&&typeof Z==="object"||typeof Z==="function")G7(Z).map((Q)=>!W7.call(J,Q)&&R0(J,Q,{get:()=>Z[Q],enumerable:!(Y=xX(Z,Q))||Y.enumerable}));return X7.set(Z,J),J},A=(Z,J)=>()=>(J||Z((J={exports:{}}).exports,J),J.exports);var H7=(Z,J)=>{for(var Y in J)R0(Z,Y,{get:J[Y],enumerable:!0,configurable:!0,set:(Q)=>J[Y]=()=>Q})};var z7=(Z,J)=>()=>(Z&&(J=Z(Z=0)),J);var $7=A((C$,F7)=>{var iX="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";F7.exports=iX});var q7=A((f$,I7)=>{var nX=$7();function O7(){}function V7(){}V7.resetWarningCache=O7;I7.exports=function(){function Z(Q,X,G,W,H,z){if(z===nX)return;var U=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw U.name="Invariant Violation",U}Z.isRequired=Z;function J(){return Z}var Y={array:Z,bigint:Z,bool:Z,func:Z,number:Z,object:Z,string:Z,symbol:Z,any:Z,arrayOf:J,element:Z,elementType:Z,instanceOf:J,node:Z,objectOf:J,oneOf:J,oneOfType:J,shape:J,exact:J,checkPropTypes:V7,resetWarningCache:O7};return Y.PropTypes=Y,Y}});var w6=A((j$,D7)=>{D7.exports=q7()();var oX,aX});function HG(Z){if(typeof Z==="object"&&Z!==null){var J=Z.$$typeof;switch(J){case sX:switch(Z=Z.type,Z){case QG:case XG:case tX:case ZG:case eX:case GG:return Z;default:switch(Z=Z&&Z.$$typeof,Z){case YG:case N7:case WG:case A7:case JG:return Z;default:return J}}case rX:return J}}}var J1,sX,rX,tX,eX,ZG,JG,YG,QG,XG,N7,GG,A7,WG,E6,S6=function(Z){return HG(Z)===A7};var R7=z7(()=>{J1=typeof Symbol==="function"&&Symbol.for,sX=J1?Symbol.for("react.element"):60103,rX=J1?Symbol.for("react.portal"):60106,tX=J1?Symbol.for("react.fragment"):60107,eX=J1?Symbol.for("react.strict_mode"):60108,ZG=J1?Symbol.for("react.profiler"):60114,JG=J1?Symbol.for("react.provider"):60109,YG=J1?Symbol.for("react.context"):60110,QG=J1?Symbol.for("react.async_mode"):60111,XG=J1?Symbol.for("react.concurrent_mode"):60111,N7=J1?Symbol.for("react.forward_ref"):60112,GG=J1?Symbol.for("react.suspense"):60113,A7=J1?Symbol.for("react.memo"):60115,WG=J1?Symbol.for("react.lazy"):60116;E6=N7});var x6=A((_$,x7)=>{R7();var UG={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},BG={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},KG={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},LG={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},E7={};E7[E6]=KG;function P7(Z){if(S6(Z))return LG;return E7[Z.$$typeof]||UG}var{defineProperty:MG,getOwnPropertyNames:FG,getOwnPropertySymbols:T7,getOwnPropertyDescriptor:$G,getPrototypeOf:OG,prototype:w7}=Object;function S7(Z,J,Y){if(typeof J!=="string"){if(w7){var Q=OG(J);if(Q&&Q!==w7)S7(Z,Q,Y)}var X=FG(J);if(T7)X=X.concat(T7(J));var G=P7(Z),W=P7(J);for(var H=0;H<X.length;++H){var z=X[H];if(!BG[z]&&!(Y&&Y[z])&&!(W&&W[z])&&!(G&&G[z])){var U=$G(J,z);try{MG(Z,z,U)}catch(B){}}}return Z}return Z}x7.exports=S7});var K5=A((j6,f7)=>{Object.defineProperty(j6,"__esModule",{value:!0});j6.default=NG;function NG(Z){return Z.charAt(0).toUpperCase()+Z.slice(1)}f7.exports=j6.default});var _7=A((_6,j7)=>{Object.defineProperty(_6,"__esModule",{value:!0});_6.default=wG;var RG=K5(),PG=TG(RG);function TG(Z){return Z&&Z.__esModule?Z:{default:Z}}function wG(Z,J,Y){if(Z.hasOwnProperty(J)){var Q={},X=Z[J],G=(0,PG.default)(J),W=Object.keys(Y);for(var H=0;H<W.length;H++){var z=W[H];if(z===J)for(var U=0;U<X.length;U++)Q[X[U]+G]=Y[J];Q[z]=Y[z]}return Q}return Y}j7.exports=_6.default});var k6=A((v6,v7)=>{Object.defineProperty(v6,"__esModule",{value:!0});v6.default=SG;function SG(Z,J,Y,Q,X){for(var G=0,W=Z.length;G<W;++G){var H=Z[G](J,Y,Q,X);if(H)return H}}v7.exports=v6.default});var b6=A((h6,h7)=>{Object.defineProperty(h6,"__esModule",{value:!0});h6.default=CG;function k7(Z,J){if(Z.indexOf(J)===-1)Z.push(J)}function CG(Z,J){if(Array.isArray(J))for(var Y=0,Q=J.length;Y<Q;++Y)k7(Z,J[Y]);else k7(Z,J)}h7.exports=h6.default});var y6=A((g6,b7)=>{Object.defineProperty(g6,"__esModule",{value:!0});g6.default=jG;function jG(Z){return Z instanceof Object&&!Array.isArray(Z)}b7.exports=g6.default});var m7=A((m6,y7)=>{Object.defineProperty(m6,"__esModule",{value:!0});m6.default=uG;var vG=_7(),kG=L5(vG),hG=k6(),g7=L5(hG),bG=b6(),gG=L5(bG),yG=y6(),mG=L5(yG);function L5(Z){return Z&&Z.__esModule?Z:{default:Z}}function uG(Z){var{prefixMap:J,plugins:Y}=Z;function Q(X){for(var G in X){var W=X[G];if((0,mG.default)(W))X[G]=Q(W);else if(Array.isArray(W)){var H=[];for(var z=0,U=W.length;z<U;++z){var B=(0,g7.default)(Y,G,W[z],X,J);(0,gG.default)(H,B||W[z])}if(H.length>0)X[G]=H}else{var L=(0,g7.default)(Y,G,W,X,J);if(L)X[G]=L;X=(0,kG.default)(J,G,X)}}return X}return Q}y7.exports=m6.default});var d7=A((u7,M5)=>{/*!
1
+ var EX=Object.create;var{getPrototypeOf:SX,defineProperty:R0,getOwnPropertyNames:G7,getOwnPropertyDescriptor:xX}=Object,W7=Object.prototype.hasOwnProperty;var S=(Z,J,Y)=>{Y=Z!=null?EX(SX(Z)):{};let Q=J||!Z||!Z.__esModule?R0(Y,"default",{value:Z,enumerable:!0}):Y;for(let X of G7(Z))if(!W7.call(Q,X))R0(Q,X,{get:()=>Z[X],enumerable:!0});return Q},X7=new WeakMap,CX=(Z)=>{var J=X7.get(Z),Y;if(J)return J;if(J=R0({},"__esModule",{value:!0}),Z&&typeof Z==="object"||typeof Z==="function")G7(Z).map((Q)=>!W7.call(J,Q)&&R0(J,Q,{get:()=>Z[Q],enumerable:!(Y=xX(Z,Q))||Y.enumerable}));return X7.set(Z,J),J},A=(Z,J)=>()=>(J||Z((J={exports:{}}).exports,J),J.exports);var H7=(Z,J)=>{for(var Y in J)R0(Z,Y,{get:J[Y],enumerable:!0,configurable:!0,set:(Q)=>J[Y]=()=>Q})};var z7=(Z,J)=>()=>(Z&&(J=Z(Z=0)),J);var $7=A((C$,F7)=>{var iX="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";F7.exports=iX});var q7=A((f$,V7)=>{var nX=$7();function O7(){}function I7(){}I7.resetWarningCache=O7;V7.exports=function(){function Z(Q,X,G,W,H,z){if(z===nX)return;var U=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw U.name="Invariant Violation",U}Z.isRequired=Z;function J(){return Z}var Y={array:Z,bigint:Z,bool:Z,func:Z,number:Z,object:Z,string:Z,symbol:Z,any:Z,arrayOf:J,element:Z,elementType:Z,instanceOf:J,node:Z,objectOf:J,oneOf:J,oneOfType:J,shape:J,exact:J,checkPropTypes:I7,resetWarningCache:O7};return Y.PropTypes=Y,Y}});var w6=A((j$,D7)=>{D7.exports=q7()();var oX,aX});function HG(Z){if(typeof Z==="object"&&Z!==null){var J=Z.$$typeof;switch(J){case sX:switch(Z=Z.type,Z){case QG:case XG:case tX:case ZG:case eX:case GG:return Z;default:switch(Z=Z&&Z.$$typeof,Z){case YG:case N7:case WG:case A7:case JG:return Z;default:return J}}case rX:return J}}}var J1,sX,rX,tX,eX,ZG,JG,YG,QG,XG,N7,GG,A7,WG,E6,S6=function(Z){return HG(Z)===A7};var R7=z7(()=>{J1=typeof Symbol==="function"&&Symbol.for,sX=J1?Symbol.for("react.element"):60103,rX=J1?Symbol.for("react.portal"):60106,tX=J1?Symbol.for("react.fragment"):60107,eX=J1?Symbol.for("react.strict_mode"):60108,ZG=J1?Symbol.for("react.profiler"):60114,JG=J1?Symbol.for("react.provider"):60109,YG=J1?Symbol.for("react.context"):60110,QG=J1?Symbol.for("react.async_mode"):60111,XG=J1?Symbol.for("react.concurrent_mode"):60111,N7=J1?Symbol.for("react.forward_ref"):60112,GG=J1?Symbol.for("react.suspense"):60113,A7=J1?Symbol.for("react.memo"):60115,WG=J1?Symbol.for("react.lazy"):60116;E6=N7});var x6=A((_$,x7)=>{R7();var UG={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},BG={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},KG={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},LG={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},E7={};E7[E6]=KG;function P7(Z){if(S6(Z))return LG;return E7[Z.$$typeof]||UG}var{defineProperty:MG,getOwnPropertyNames:FG,getOwnPropertySymbols:T7,getOwnPropertyDescriptor:$G,getPrototypeOf:OG,prototype:w7}=Object;function S7(Z,J,Y){if(typeof J!=="string"){if(w7){var Q=OG(J);if(Q&&Q!==w7)S7(Z,Q,Y)}var X=FG(J);if(T7)X=X.concat(T7(J));var G=P7(Z),W=P7(J);for(var H=0;H<X.length;++H){var z=X[H];if(!BG[z]&&!(Y&&Y[z])&&!(W&&W[z])&&!(G&&G[z])){var U=$G(J,z);try{MG(Z,z,U)}catch(B){}}}return Z}return Z}x7.exports=S7});var L5=A((j6,f7)=>{Object.defineProperty(j6,"__esModule",{value:!0});j6.default=NG;function NG(Z){return Z.charAt(0).toUpperCase()+Z.slice(1)}f7.exports=j6.default});var _7=A((_6,j7)=>{Object.defineProperty(_6,"__esModule",{value:!0});_6.default=wG;var RG=L5(),PG=TG(RG);function TG(Z){return Z&&Z.__esModule?Z:{default:Z}}function wG(Z,J,Y){if(Z.hasOwnProperty(J)){var Q={},X=Z[J],G=(0,PG.default)(J),W=Object.keys(Y);for(var H=0;H<W.length;H++){var z=W[H];if(z===J)for(var U=0;U<X.length;U++)Q[X[U]+G]=Y[J];Q[z]=Y[z]}return Q}return Y}j7.exports=_6.default});var k6=A((v6,v7)=>{Object.defineProperty(v6,"__esModule",{value:!0});v6.default=SG;function SG(Z,J,Y,Q,X){for(var G=0,W=Z.length;G<W;++G){var H=Z[G](J,Y,Q,X);if(H)return H}}v7.exports=v6.default});var b6=A((h6,h7)=>{Object.defineProperty(h6,"__esModule",{value:!0});h6.default=CG;function k7(Z,J){if(Z.indexOf(J)===-1)Z.push(J)}function CG(Z,J){if(Array.isArray(J))for(var Y=0,Q=J.length;Y<Q;++Y)k7(Z,J[Y]);else k7(Z,J)}h7.exports=h6.default});var y6=A((g6,b7)=>{Object.defineProperty(g6,"__esModule",{value:!0});g6.default=jG;function jG(Z){return Z instanceof Object&&!Array.isArray(Z)}b7.exports=g6.default});var m7=A((m6,y7)=>{Object.defineProperty(m6,"__esModule",{value:!0});m6.default=uG;var vG=_7(),kG=M5(vG),hG=k6(),g7=M5(hG),bG=b6(),gG=M5(bG),yG=y6(),mG=M5(yG);function M5(Z){return Z&&Z.__esModule?Z:{default:Z}}function uG(Z){var{prefixMap:J,plugins:Y}=Z;function Q(X){for(var G in X){var W=X[G];if((0,mG.default)(W))X[G]=Q(W);else if(Array.isArray(W)){var H=[];for(var z=0,U=W.length;z<U;++z){var B=(0,g7.default)(Y,G,W[z],X,J);(0,gG.default)(H,B||W[z])}if(H.length>0)X[G]=H}else{var L=(0,g7.default)(Y,G,W,X,J);if(L)X[G]=L;X=(0,kG.default)(J,G,X)}}return X}return Q}y7.exports=m6.default});var d7=A((u7,F5)=>{/*!
2
2
  * Bowser - a browser detector
3
3
  * https://github.com/ded/bowser
4
4
  * MIT License | (c) Dustin Diaz 2015
5
- */(function(Z,J,Y){if(typeof M5<"u"&&M5.exports)M5.exports=Y();else if(typeof define=="function"&&define.amd)define(J,Y);else Z[J]=Y()})(u7,"bowser",function(){var Z=!0;function J(z){function U(f1){var R1=z.match(f1);return R1&&R1.length>1&&R1[1]||""}function B(f1){var R1=z.match(f1);return R1&&R1.length>1&&R1[2]||""}var L=U(/(ipod|iphone|ipad)/i).toLowerCase(),V=/like android/i.test(z),M=!V&&/android/i.test(z),K=/nexus\s*[0-6]\s*/i.test(z),F=!K&&/nexus\s*[0-9]+/i.test(z),O=/CrOS/.test(z),D=/silk/i.test(z),P=/sailfish/i.test(z),N=/tizen/i.test(z),q=/(web|hpw)(o|0)s/i.test(z),T=/windows phone/i.test(z),C=/SamsungBrowser/i.test(z),m=!T&&/windows/i.test(z),i1=!L&&!D&&/macintosh/i.test(z),x1=!M&&!P&&!N&&!q&&/linux/i.test(z),C1=B(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),v=U(/version\/(\d+(\.\d+)?)/i),N1=/tablet/i.test(z)&&!/tablet pc/i.test(z),c=!N1&&/[^-]mobi/i.test(z),A1=/xbox/i.test(z),$;if(/opera/i.test(z))$={name:"Opera",opera:Z,version:v||U(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)};else if(/opr\/|opios/i.test(z))$={name:"Opera",opera:Z,version:U(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||v};else if(/SamsungBrowser/i.test(z))$={name:"Samsung Internet for Android",samsungBrowser:Z,version:v||U(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)};else if(/Whale/i.test(z))$={name:"NAVER Whale browser",whale:Z,version:U(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)};else if(/MZBrowser/i.test(z))$={name:"MZ Browser",mzbrowser:Z,version:U(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)};else if(/coast/i.test(z))$={name:"Opera Coast",coast:Z,version:v||U(/(?:coast)[\s\/](\d+(\.\d+)?)/i)};else if(/focus/i.test(z))$={name:"Focus",focus:Z,version:U(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)};else if(/yabrowser/i.test(z))$={name:"Yandex Browser",yandexbrowser:Z,version:v||U(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)};else if(/ucbrowser/i.test(z))$={name:"UC Browser",ucbrowser:Z,version:U(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)};else if(/mxios/i.test(z))$={name:"Maxthon",maxthon:Z,version:U(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)};else if(/epiphany/i.test(z))$={name:"Epiphany",epiphany:Z,version:U(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)};else if(/puffin/i.test(z))$={name:"Puffin",puffin:Z,version:U(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)};else if(/sleipnir/i.test(z))$={name:"Sleipnir",sleipnir:Z,version:U(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)};else if(/k-meleon/i.test(z))$={name:"K-Meleon",kMeleon:Z,version:U(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)};else if(T)if($={name:"Windows Phone",osname:"Windows Phone",windowsphone:Z},C1)$.msedge=Z,$.version=C1;else $.msie=Z,$.version=U(/iemobile\/(\d+(\.\d+)?)/i);else if(/msie|trident/i.test(z))$={name:"Internet Explorer",msie:Z,version:U(/(?:msie |rv:)(\d+(\.\d+)?)/i)};else if(O)$={name:"Chrome",osname:"Chrome OS",chromeos:Z,chromeBook:Z,chrome:Z,version:U(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)};else if(/edg([ea]|ios)/i.test(z))$={name:"Microsoft Edge",msedge:Z,version:C1};else if(/vivaldi/i.test(z))$={name:"Vivaldi",vivaldi:Z,version:U(/vivaldi\/(\d+(\.\d+)?)/i)||v};else if(P)$={name:"Sailfish",osname:"Sailfish OS",sailfish:Z,version:U(/sailfish\s?browser\/(\d+(\.\d+)?)/i)};else if(/seamonkey\//i.test(z))$={name:"SeaMonkey",seamonkey:Z,version:U(/seamonkey\/(\d+(\.\d+)?)/i)};else if(/firefox|iceweasel|fxios/i.test(z)){if($={name:"Firefox",firefox:Z,version:U(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(z))$.firefoxos=Z,$.osname="Firefox OS"}else if(D)$={name:"Amazon Silk",silk:Z,version:U(/silk\/(\d+(\.\d+)?)/i)};else if(/phantom/i.test(z))$={name:"PhantomJS",phantom:Z,version:U(/phantomjs\/(\d+(\.\d+)?)/i)};else if(/slimerjs/i.test(z))$={name:"SlimerJS",slimer:Z,version:U(/slimerjs\/(\d+(\.\d+)?)/i)};else if(/blackberry|\bbb\d+/i.test(z)||/rim\stablet/i.test(z))$={name:"BlackBerry",osname:"BlackBerry OS",blackberry:Z,version:v||U(/blackberry[\d]+\/(\d+(\.\d+)?)/i)};else if(q)$={name:"WebOS",osname:"WebOS",webos:Z,version:v||U(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(z)&&($.touchpad=Z);else if(/bada/i.test(z))$={name:"Bada",osname:"Bada",bada:Z,version:U(/dolfin\/(\d+(\.\d+)?)/i)};else if(N)$={name:"Tizen",osname:"Tizen",tizen:Z,version:U(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||v};else if(/qupzilla/i.test(z))$={name:"QupZilla",qupzilla:Z,version:U(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||v};else if(/chromium/i.test(z))$={name:"Chromium",chromium:Z,version:U(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||v};else if(/chrome|crios|crmo/i.test(z))$={name:"Chrome",chrome:Z,version:U(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)};else if(M)$={name:"Android",version:v};else if(/safari|applewebkit/i.test(z)){if($={name:"Safari",safari:Z},v)$.version=v}else if(L){if($={name:L=="iphone"?"iPhone":L=="ipad"?"iPad":"iPod"},v)$.version=v}else if(/googlebot/i.test(z))$={name:"Googlebot",googlebot:Z,version:U(/googlebot\/(\d+(\.\d+))/i)||v};else $={name:U(/^(.*)\/(.*) /),version:B(/^(.*)\/(.*) /)};if(!$.msedge&&/(apple)?webkit/i.test(z)){if(/(apple)?webkit\/537\.36/i.test(z))$.name=$.name||"Blink",$.blink=Z;else $.name=$.name||"Webkit",$.webkit=Z;if(!$.version&&v)$.version=v}else if(!$.opera&&/gecko\//i.test(z))$.name=$.name||"Gecko",$.gecko=Z,$.version=$.version||U(/gecko\/(\d+(\.\d+)?)/i);if(!$.windowsphone&&(M||$.silk))$.android=Z,$.osname="Android";else if(!$.windowsphone&&L)$[L]=Z,$.ios=Z,$.osname="iOS";else if(i1)$.mac=Z,$.osname="macOS";else if(A1)$.xbox=Z,$.osname="Xbox";else if(m)$.windows=Z,$.osname="Windows";else if(x1)$.linux=Z,$.osname="Linux";function X1(f1){switch(f1){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var g="";if($.windows)g=X1(U(/Windows ((NT|XP)( \d\d?.\d)?)/i));else if($.windowsphone)g=U(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i);else if($.mac)g=U(/Mac OS X (\d+([_\.\s]\d+)*)/i),g=g.replace(/[_\s]/g,".");else if(L)g=U(/os (\d+([_\s]\d+)*) like mac os x/i),g=g.replace(/[_\s]/g,".");else if(M)g=U(/android[ \/-](\d+(\.\d+)*)/i);else if($.webos)g=U(/(?:web|hpw)os\/(\d+(\.\d+)*)/i);else if($.blackberry)g=U(/rim\stablet\sos\s(\d+(\.\d+)*)/i);else if($.bada)g=U(/bada\/(\d+(\.\d+)*)/i);else if($.tizen)g=U(/tizen[\/\s](\d+(\.\d+)*)/i);if(g)$.osversion=g;var B1=!$.windows&&g.split(".")[0];if(N1||F||L=="ipad"||M&&(B1==3||B1>=4&&!c)||$.silk)$.tablet=Z;else if(c||L=="iphone"||L=="ipod"||M||K||$.blackberry||$.webos||$.bada)$.mobile=Z;if($.msedge||$.msie&&$.version>=10||$.yandexbrowser&&$.version>=15||$.vivaldi&&$.version>=1||$.chrome&&$.version>=20||$.samsungBrowser&&$.version>=4||$.whale&&G([$.version,"1.0"])===1||$.mzbrowser&&G([$.version,"6.0"])===1||$.focus&&G([$.version,"1.0"])===1||$.firefox&&$.version>=20||$.safari&&$.version>=6||$.opera&&$.version>=10||$.ios&&$.osversion&&$.osversion.split(".")[0]>=6||$.blackberry&&$.version>=10.1||$.chromium&&$.version>=20)$.a=Z;else if($.msie&&$.version<10||$.chrome&&$.version<20||$.firefox&&$.version<20||$.safari&&$.version<6||$.opera&&$.version<10||$.ios&&$.osversion&&$.osversion.split(".")[0]<6||$.chromium&&$.version<20)$.c=Z;else $.x=Z;return $}var Y=J(typeof navigator<"u"?navigator.userAgent||"":"");Y.test=function(z){for(var U=0;U<z.length;++U){var B=z[U];if(typeof B==="string"){if(B in Y)return!0}}return!1};function Q(z){return z.split(".").length}function X(z,U){var B=[],L;if(Array.prototype.map)return Array.prototype.map.call(z,U);for(L=0;L<z.length;L++)B.push(U(z[L]));return B}function G(z){var U=Math.max(Q(z[0]),Q(z[1])),B=X(z,function(L){var V=U-Q(L);return L=L+Array(V+1).join(".0"),X(L.split("."),function(M){return Array(20-M.length).join("0")+M}).reverse()});while(--U>=0)if(B[0][U]>B[1][U])return 1;else if(B[0][U]===B[1][U]){if(U===0)return 0}else return-1}function W(z,U,B){var L=Y;if(typeof U==="string")B=U,U=void 0;if(U===void 0)U=!1;if(B)L=J(B);var V=""+L.version;for(var M in z)if(z.hasOwnProperty(M)){if(L[M]){if(typeof z[M]!=="string")throw Error("Browser version in the minVersion map should be a string: "+M+": "+String(z));return G([V,z[M]])<0}}return U}function H(z,U,B){return!W(z,U,B)}return Y.isUnsupportedBrowser=W,Y.compareVersions=G,Y.check=H,Y._detect=J,Y.detect=J,Y})});var n7=A((u6,i7)=>{Object.defineProperty(u6,"__esModule",{value:!0});u6.default=iG;var cG=d7(),c7=pG(cG);function pG(Z){return Z&&Z.__esModule?Z:{default:Z}}var p7={chrome:"Webkit",safari:"Webkit",ios:"Webkit",android:"Webkit",phantom:"Webkit",opera:"Webkit",webos:"Webkit",blackberry:"Webkit",bada:"Webkit",tizen:"Webkit",chromium:"Webkit",vivaldi:"Webkit",firefox:"Moz",seamoney:"Moz",sailfish:"Moz",msie:"ms",msedge:"ms"},l7={chrome:"chrome",chromium:"chrome",safari:"safari",firfox:"firefox",msedge:"edge",opera:"opera",vivaldi:"opera",msie:"ie"};function lG(Z){if(Z.firefox)return"firefox";if(Z.mobile||Z.tablet){if(Z.ios)return"ios_saf";else if(Z.android)return"android";else if(Z.opera)return"op_mini"}for(var J in l7)if(Z.hasOwnProperty(J))return l7[J]}function iG(Z){var J=c7.default._detect(Z);if(J.yandexbrowser)J=c7.default._detect(Z.replace(/YaBrowser\/[0-9.]*/,""));for(var Y in p7)if(J.hasOwnProperty(Y)){var Q=p7[Y];J.jsPrefix=Q,J.cssPrefix="-"+Q.toLowerCase()+"-";break}if(J.browserName=lG(J),J.version)J.browserVersion=parseFloat(J.version);else J.browserVersion=parseInt(parseFloat(J.osversion),10);if(J.osVersion=parseFloat(J.osversion),J.browserName==="ios_saf"&&J.browserVersion>J.osVersion)J.browserVersion=J.osVersion;if(J.browserName==="android"&&J.chrome&&J.browserVersion>37)J.browserName="and_chr";if(J.browserName==="android"&&J.osVersion<5)J.browserVersion=J.osVersion;if(J.browserName==="android"&&J.samsungBrowser)J.browserName="and_chr",J.browserVersion=44;return J}i7.exports=u6.default});var a7=A((d6,o7)=>{Object.defineProperty(d6,"__esModule",{value:!0});d6.default=oG;function oG(Z,J,Y){var Q="keyframes";if(Z==="chrome"&&J<43||(Z==="safari"||Z==="ios_saf")&&J<9||Z==="opera"&&J<30||Z==="android"&&J<=4.4||Z==="and_uc")return Y+Q;return Q}o7.exports=d6.default});var t7=A((c6,r7)=>{Object.defineProperty(c6,"__esModule",{value:!0});var sG=function(){function Z(J,Y){for(var Q=0;Q<Y.length;Q++){var X=Y[Q];if(X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X)X.writable=!0;Object.defineProperty(J,X.key,X)}}return function(J,Y,Q){if(Y)Z(J.prototype,Y);if(Q)Z(J,Q);return J}}();c6.default=UW;var rG=n7(),tG=z0(rG),eG=a7(),ZW=z0(eG),JW=K5(),YW=z0(JW),QW=b6(),XW=z0(QW),GW=y6(),WW=z0(GW),HW=k6(),s7=z0(HW);function z0(Z){return Z&&Z.__esModule?Z:{default:Z}}function zW(Z,J){if(!(Z instanceof J))throw TypeError("Cannot call a class as a function")}function UW(Z){var{prefixMap:J,plugins:Y}=Z,Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(X){return X};return function(){function X(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};zW(this,X);var W=typeof navigator<"u"?navigator.userAgent:void 0;if(this._userAgent=G.userAgent||W,this._keepUnprefixed=G.keepUnprefixed||!1,this._userAgent)this._browserInfo=(0,tG.default)(this._userAgent);if(this._browserInfo&&this._browserInfo.cssPrefix)this.prefixedKeyframes=(0,ZW.default)(this._browserInfo.browserName,this._browserInfo.browserVersion,this._browserInfo.cssPrefix);else return this._useFallback=!0,!1;var H=this._browserInfo.browserName&&J[this._browserInfo.browserName];if(H){this._requiresPrefix={};for(var z in H)if(H[z]>=this._browserInfo.browserVersion)this._requiresPrefix[z]=!0;this._hasPropsRequiringPrefix=Object.keys(this._requiresPrefix).length>0}else this._useFallback=!0;this._metaData={browserVersion:this._browserInfo.browserVersion,browserName:this._browserInfo.browserName,cssPrefix:this._browserInfo.cssPrefix,jsPrefix:this._browserInfo.jsPrefix,keepUnprefixed:this._keepUnprefixed,requiresPrefix:this._requiresPrefix}}return sG(X,[{key:"prefix",value:function(W){if(this._useFallback)return Q(W);if(!this._hasPropsRequiringPrefix)return W;return this._prefixStyle(W)}},{key:"_prefixStyle",value:function(W){for(var H in W){var z=W[H];if((0,WW.default)(z))W[H]=this.prefix(z);else if(Array.isArray(z)){var U=[];for(var B=0,L=z.length;B<L;++B){var V=(0,s7.default)(Y,H,z[B],W,this._metaData);(0,XW.default)(U,V||z[B])}if(U.length>0)W[H]=U}else{var M=(0,s7.default)(Y,H,z,W,this._metaData);if(M)W[H]=M;if(this._requiresPrefix.hasOwnProperty(H)){if(W[this._browserInfo.jsPrefix+(0,YW.default)(H)]=z,!this._keepUnprefixed)delete W[H]}}}return W}}],[{key:"prefixAll",value:function(W){return Q(W)}}]),X}()}r7.exports=c6.default});var p6=A((m$,F5)=>{/*!
5
+ */(function(Z,J,Y){if(typeof F5<"u"&&F5.exports)F5.exports=Y();else if(typeof define=="function"&&define.amd)define(J,Y);else Z[J]=Y()})(u7,"bowser",function(){var Z=!0;function J(z){function U(f1){var R1=z.match(f1);return R1&&R1.length>1&&R1[1]||""}function B(f1){var R1=z.match(f1);return R1&&R1.length>1&&R1[2]||""}var L=U(/(ipod|iphone|ipad)/i).toLowerCase(),I=/like android/i.test(z),M=!I&&/android/i.test(z),K=/nexus\s*[0-6]\s*/i.test(z),F=!K&&/nexus\s*[0-9]+/i.test(z),O=/CrOS/.test(z),D=/silk/i.test(z),P=/sailfish/i.test(z),N=/tizen/i.test(z),q=/(web|hpw)(o|0)s/i.test(z),T=/windows phone/i.test(z),C=/SamsungBrowser/i.test(z),m=!T&&/windows/i.test(z),i1=!L&&!D&&/macintosh/i.test(z),x1=!M&&!P&&!N&&!q&&/linux/i.test(z),C1=B(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),v=U(/version\/(\d+(\.\d+)?)/i),N1=/tablet/i.test(z)&&!/tablet pc/i.test(z),c=!N1&&/[^-]mobi/i.test(z),A1=/xbox/i.test(z),$;if(/opera/i.test(z))$={name:"Opera",opera:Z,version:v||U(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)};else if(/opr\/|opios/i.test(z))$={name:"Opera",opera:Z,version:U(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||v};else if(/SamsungBrowser/i.test(z))$={name:"Samsung Internet for Android",samsungBrowser:Z,version:v||U(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)};else if(/Whale/i.test(z))$={name:"NAVER Whale browser",whale:Z,version:U(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)};else if(/MZBrowser/i.test(z))$={name:"MZ Browser",mzbrowser:Z,version:U(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)};else if(/coast/i.test(z))$={name:"Opera Coast",coast:Z,version:v||U(/(?:coast)[\s\/](\d+(\.\d+)?)/i)};else if(/focus/i.test(z))$={name:"Focus",focus:Z,version:U(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)};else if(/yabrowser/i.test(z))$={name:"Yandex Browser",yandexbrowser:Z,version:v||U(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)};else if(/ucbrowser/i.test(z))$={name:"UC Browser",ucbrowser:Z,version:U(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)};else if(/mxios/i.test(z))$={name:"Maxthon",maxthon:Z,version:U(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)};else if(/epiphany/i.test(z))$={name:"Epiphany",epiphany:Z,version:U(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)};else if(/puffin/i.test(z))$={name:"Puffin",puffin:Z,version:U(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)};else if(/sleipnir/i.test(z))$={name:"Sleipnir",sleipnir:Z,version:U(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)};else if(/k-meleon/i.test(z))$={name:"K-Meleon",kMeleon:Z,version:U(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)};else if(T)if($={name:"Windows Phone",osname:"Windows Phone",windowsphone:Z},C1)$.msedge=Z,$.version=C1;else $.msie=Z,$.version=U(/iemobile\/(\d+(\.\d+)?)/i);else if(/msie|trident/i.test(z))$={name:"Internet Explorer",msie:Z,version:U(/(?:msie |rv:)(\d+(\.\d+)?)/i)};else if(O)$={name:"Chrome",osname:"Chrome OS",chromeos:Z,chromeBook:Z,chrome:Z,version:U(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)};else if(/edg([ea]|ios)/i.test(z))$={name:"Microsoft Edge",msedge:Z,version:C1};else if(/vivaldi/i.test(z))$={name:"Vivaldi",vivaldi:Z,version:U(/vivaldi\/(\d+(\.\d+)?)/i)||v};else if(P)$={name:"Sailfish",osname:"Sailfish OS",sailfish:Z,version:U(/sailfish\s?browser\/(\d+(\.\d+)?)/i)};else if(/seamonkey\//i.test(z))$={name:"SeaMonkey",seamonkey:Z,version:U(/seamonkey\/(\d+(\.\d+)?)/i)};else if(/firefox|iceweasel|fxios/i.test(z)){if($={name:"Firefox",firefox:Z,version:U(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(z))$.firefoxos=Z,$.osname="Firefox OS"}else if(D)$={name:"Amazon Silk",silk:Z,version:U(/silk\/(\d+(\.\d+)?)/i)};else if(/phantom/i.test(z))$={name:"PhantomJS",phantom:Z,version:U(/phantomjs\/(\d+(\.\d+)?)/i)};else if(/slimerjs/i.test(z))$={name:"SlimerJS",slimer:Z,version:U(/slimerjs\/(\d+(\.\d+)?)/i)};else if(/blackberry|\bbb\d+/i.test(z)||/rim\stablet/i.test(z))$={name:"BlackBerry",osname:"BlackBerry OS",blackberry:Z,version:v||U(/blackberry[\d]+\/(\d+(\.\d+)?)/i)};else if(q)$={name:"WebOS",osname:"WebOS",webos:Z,version:v||U(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(z)&&($.touchpad=Z);else if(/bada/i.test(z))$={name:"Bada",osname:"Bada",bada:Z,version:U(/dolfin\/(\d+(\.\d+)?)/i)};else if(N)$={name:"Tizen",osname:"Tizen",tizen:Z,version:U(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||v};else if(/qupzilla/i.test(z))$={name:"QupZilla",qupzilla:Z,version:U(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||v};else if(/chromium/i.test(z))$={name:"Chromium",chromium:Z,version:U(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||v};else if(/chrome|crios|crmo/i.test(z))$={name:"Chrome",chrome:Z,version:U(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)};else if(M)$={name:"Android",version:v};else if(/safari|applewebkit/i.test(z)){if($={name:"Safari",safari:Z},v)$.version=v}else if(L){if($={name:L=="iphone"?"iPhone":L=="ipad"?"iPad":"iPod"},v)$.version=v}else if(/googlebot/i.test(z))$={name:"Googlebot",googlebot:Z,version:U(/googlebot\/(\d+(\.\d+))/i)||v};else $={name:U(/^(.*)\/(.*) /),version:B(/^(.*)\/(.*) /)};if(!$.msedge&&/(apple)?webkit/i.test(z)){if(/(apple)?webkit\/537\.36/i.test(z))$.name=$.name||"Blink",$.blink=Z;else $.name=$.name||"Webkit",$.webkit=Z;if(!$.version&&v)$.version=v}else if(!$.opera&&/gecko\//i.test(z))$.name=$.name||"Gecko",$.gecko=Z,$.version=$.version||U(/gecko\/(\d+(\.\d+)?)/i);if(!$.windowsphone&&(M||$.silk))$.android=Z,$.osname="Android";else if(!$.windowsphone&&L)$[L]=Z,$.ios=Z,$.osname="iOS";else if(i1)$.mac=Z,$.osname="macOS";else if(A1)$.xbox=Z,$.osname="Xbox";else if(m)$.windows=Z,$.osname="Windows";else if(x1)$.linux=Z,$.osname="Linux";function X1(f1){switch(f1){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var g="";if($.windows)g=X1(U(/Windows ((NT|XP)( \d\d?.\d)?)/i));else if($.windowsphone)g=U(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i);else if($.mac)g=U(/Mac OS X (\d+([_\.\s]\d+)*)/i),g=g.replace(/[_\s]/g,".");else if(L)g=U(/os (\d+([_\s]\d+)*) like mac os x/i),g=g.replace(/[_\s]/g,".");else if(M)g=U(/android[ \/-](\d+(\.\d+)*)/i);else if($.webos)g=U(/(?:web|hpw)os\/(\d+(\.\d+)*)/i);else if($.blackberry)g=U(/rim\stablet\sos\s(\d+(\.\d+)*)/i);else if($.bada)g=U(/bada\/(\d+(\.\d+)*)/i);else if($.tizen)g=U(/tizen[\/\s](\d+(\.\d+)*)/i);if(g)$.osversion=g;var B1=!$.windows&&g.split(".")[0];if(N1||F||L=="ipad"||M&&(B1==3||B1>=4&&!c)||$.silk)$.tablet=Z;else if(c||L=="iphone"||L=="ipod"||M||K||$.blackberry||$.webos||$.bada)$.mobile=Z;if($.msedge||$.msie&&$.version>=10||$.yandexbrowser&&$.version>=15||$.vivaldi&&$.version>=1||$.chrome&&$.version>=20||$.samsungBrowser&&$.version>=4||$.whale&&G([$.version,"1.0"])===1||$.mzbrowser&&G([$.version,"6.0"])===1||$.focus&&G([$.version,"1.0"])===1||$.firefox&&$.version>=20||$.safari&&$.version>=6||$.opera&&$.version>=10||$.ios&&$.osversion&&$.osversion.split(".")[0]>=6||$.blackberry&&$.version>=10.1||$.chromium&&$.version>=20)$.a=Z;else if($.msie&&$.version<10||$.chrome&&$.version<20||$.firefox&&$.version<20||$.safari&&$.version<6||$.opera&&$.version<10||$.ios&&$.osversion&&$.osversion.split(".")[0]<6||$.chromium&&$.version<20)$.c=Z;else $.x=Z;return $}var Y=J(typeof navigator<"u"?navigator.userAgent||"":"");Y.test=function(z){for(var U=0;U<z.length;++U){var B=z[U];if(typeof B==="string"){if(B in Y)return!0}}return!1};function Q(z){return z.split(".").length}function X(z,U){var B=[],L;if(Array.prototype.map)return Array.prototype.map.call(z,U);for(L=0;L<z.length;L++)B.push(U(z[L]));return B}function G(z){var U=Math.max(Q(z[0]),Q(z[1])),B=X(z,function(L){var I=U-Q(L);return L=L+Array(I+1).join(".0"),X(L.split("."),function(M){return Array(20-M.length).join("0")+M}).reverse()});while(--U>=0)if(B[0][U]>B[1][U])return 1;else if(B[0][U]===B[1][U]){if(U===0)return 0}else return-1}function W(z,U,B){var L=Y;if(typeof U==="string")B=U,U=void 0;if(U===void 0)U=!1;if(B)L=J(B);var I=""+L.version;for(var M in z)if(z.hasOwnProperty(M)){if(L[M]){if(typeof z[M]!=="string")throw Error("Browser version in the minVersion map should be a string: "+M+": "+String(z));return G([I,z[M]])<0}}return U}function H(z,U,B){return!W(z,U,B)}return Y.isUnsupportedBrowser=W,Y.compareVersions=G,Y.check=H,Y._detect=J,Y.detect=J,Y})});var n7=A((u6,i7)=>{Object.defineProperty(u6,"__esModule",{value:!0});u6.default=iG;var cG=d7(),c7=pG(cG);function pG(Z){return Z&&Z.__esModule?Z:{default:Z}}var p7={chrome:"Webkit",safari:"Webkit",ios:"Webkit",android:"Webkit",phantom:"Webkit",opera:"Webkit",webos:"Webkit",blackberry:"Webkit",bada:"Webkit",tizen:"Webkit",chromium:"Webkit",vivaldi:"Webkit",firefox:"Moz",seamoney:"Moz",sailfish:"Moz",msie:"ms",msedge:"ms"},l7={chrome:"chrome",chromium:"chrome",safari:"safari",firfox:"firefox",msedge:"edge",opera:"opera",vivaldi:"opera",msie:"ie"};function lG(Z){if(Z.firefox)return"firefox";if(Z.mobile||Z.tablet){if(Z.ios)return"ios_saf";else if(Z.android)return"android";else if(Z.opera)return"op_mini"}for(var J in l7)if(Z.hasOwnProperty(J))return l7[J]}function iG(Z){var J=c7.default._detect(Z);if(J.yandexbrowser)J=c7.default._detect(Z.replace(/YaBrowser\/[0-9.]*/,""));for(var Y in p7)if(J.hasOwnProperty(Y)){var Q=p7[Y];J.jsPrefix=Q,J.cssPrefix="-"+Q.toLowerCase()+"-";break}if(J.browserName=lG(J),J.version)J.browserVersion=parseFloat(J.version);else J.browserVersion=parseInt(parseFloat(J.osversion),10);if(J.osVersion=parseFloat(J.osversion),J.browserName==="ios_saf"&&J.browserVersion>J.osVersion)J.browserVersion=J.osVersion;if(J.browserName==="android"&&J.chrome&&J.browserVersion>37)J.browserName="and_chr";if(J.browserName==="android"&&J.osVersion<5)J.browserVersion=J.osVersion;if(J.browserName==="android"&&J.samsungBrowser)J.browserName="and_chr",J.browserVersion=44;return J}i7.exports=u6.default});var a7=A((d6,o7)=>{Object.defineProperty(d6,"__esModule",{value:!0});d6.default=oG;function oG(Z,J,Y){var Q="keyframes";if(Z==="chrome"&&J<43||(Z==="safari"||Z==="ios_saf")&&J<9||Z==="opera"&&J<30||Z==="android"&&J<=4.4||Z==="and_uc")return Y+Q;return Q}o7.exports=d6.default});var t7=A((c6,r7)=>{Object.defineProperty(c6,"__esModule",{value:!0});var sG=function(){function Z(J,Y){for(var Q=0;Q<Y.length;Q++){var X=Y[Q];if(X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X)X.writable=!0;Object.defineProperty(J,X.key,X)}}return function(J,Y,Q){if(Y)Z(J.prototype,Y);if(Q)Z(J,Q);return J}}();c6.default=UW;var rG=n7(),tG=z0(rG),eG=a7(),ZW=z0(eG),JW=L5(),YW=z0(JW),QW=b6(),XW=z0(QW),GW=y6(),WW=z0(GW),HW=k6(),s7=z0(HW);function z0(Z){return Z&&Z.__esModule?Z:{default:Z}}function zW(Z,J){if(!(Z instanceof J))throw TypeError("Cannot call a class as a function")}function UW(Z){var{prefixMap:J,plugins:Y}=Z,Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(X){return X};return function(){function X(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};zW(this,X);var W=typeof navigator<"u"?navigator.userAgent:void 0;if(this._userAgent=G.userAgent||W,this._keepUnprefixed=G.keepUnprefixed||!1,this._userAgent)this._browserInfo=(0,tG.default)(this._userAgent);if(this._browserInfo&&this._browserInfo.cssPrefix)this.prefixedKeyframes=(0,ZW.default)(this._browserInfo.browserName,this._browserInfo.browserVersion,this._browserInfo.cssPrefix);else return this._useFallback=!0,!1;var H=this._browserInfo.browserName&&J[this._browserInfo.browserName];if(H){this._requiresPrefix={};for(var z in H)if(H[z]>=this._browserInfo.browserVersion)this._requiresPrefix[z]=!0;this._hasPropsRequiringPrefix=Object.keys(this._requiresPrefix).length>0}else this._useFallback=!0;this._metaData={browserVersion:this._browserInfo.browserVersion,browserName:this._browserInfo.browserName,cssPrefix:this._browserInfo.cssPrefix,jsPrefix:this._browserInfo.jsPrefix,keepUnprefixed:this._keepUnprefixed,requiresPrefix:this._requiresPrefix}}return sG(X,[{key:"prefix",value:function(W){if(this._useFallback)return Q(W);if(!this._hasPropsRequiringPrefix)return W;return this._prefixStyle(W)}},{key:"_prefixStyle",value:function(W){for(var H in W){var z=W[H];if((0,WW.default)(z))W[H]=this.prefix(z);else if(Array.isArray(z)){var U=[];for(var B=0,L=z.length;B<L;++B){var I=(0,s7.default)(Y,H,z[B],W,this._metaData);(0,XW.default)(U,I||z[B])}if(U.length>0)W[H]=U}else{var M=(0,s7.default)(Y,H,z,W,this._metaData);if(M)W[H]=M;if(this._requiresPrefix.hasOwnProperty(H)){if(W[this._browserInfo.jsPrefix+(0,YW.default)(H)]=z,!this._keepUnprefixed)delete W[H]}}}return W}}],[{key:"prefixAll",value:function(W){return Q(W)}}]),X}()}r7.exports=c6.default});var p6=A((m$,$5)=>{/*!
6
6
  Copyright (c) 2015 Jed Watson.
7
7
  Based on code that is Copyright 2013-2015, Facebook, Inc.
8
8
  All rights reserved.
9
- */(function(){var Z=!!(typeof window<"u"&&window.document&&window.document.createElement),J={canUseDOM:Z,canUseWorkers:typeof Worker<"u",canUseEventListeners:Z&&!!(window.addEventListener||window.attachEvent),canUseViewport:Z&&!!window.screen};if(typeof define==="function"&&typeof define.amd==="object"&&define.amd)define(function(){return J});else if(typeof F5<"u"&&F5.exports)F5.exports=J;else window.ExecutionEnvironment=J})()});var o1=A((l6,e7)=>{Object.defineProperty(l6,"__esModule",{value:!0});l6.default=LW;var KW=/-webkit-|-moz-|-ms-/;function LW(Z){return typeof Z==="string"&&KW.test(Z)}e7.exports=l6.default});var J4=A((i6,Z4)=>{Object.defineProperty(i6,"__esModule",{value:!0});i6.default=IW;var FW=o1(),$W=OW(FW);function OW(Z){return Z&&Z.__esModule?Z:{default:Z}}var VW=["-webkit-","-moz-",""];function IW(Z,J){if(typeof J==="string"&&!(0,$W.default)(J)&&J.indexOf("calc(")>-1)return VW.map(function(Y){return J.replace(/calc\(/g,Y+"calc(")})}Z4.exports=i6.default});var Q4=A((n6,Y4)=>{Object.defineProperty(n6,"__esModule",{value:!0});n6.default=PW;var DW=o1(),NW=AW(DW);function AW(Z){return Z&&Z.__esModule?Z:{default:Z}}var RW=["-webkit-",""];function PW(Z,J){if(typeof J==="string"&&!(0,NW.default)(J)&&J.indexOf("cross-fade(")>-1)return RW.map(function(Y){return J.replace(/cross-fade\(/g,Y+"cross-fade(")})}Y4.exports=n6.default});var G4=A((o6,X4)=>{Object.defineProperty(o6,"__esModule",{value:!0});o6.default=SW;var wW=["-webkit-","-moz-",""],EW={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0};function SW(Z,J){if(Z==="cursor"&&EW.hasOwnProperty(J))return wW.map(function(Y){return Y+J})}X4.exports=o6.default});var H4=A((a6,W4)=>{Object.defineProperty(a6,"__esModule",{value:!0});a6.default=vW;var CW=o1(),fW=jW(CW);function jW(Z){return Z&&Z.__esModule?Z:{default:Z}}var _W=["-webkit-",""];function vW(Z,J){if(typeof J==="string"&&!(0,fW.default)(J)&&J.indexOf("filter(")>-1)return _W.map(function(Y){return J.replace(/filter\(/g,Y+"filter(")})}W4.exports=a6.default});var B4=A((s6,U4)=>{Object.defineProperty(s6,"__esModule",{value:!0});s6.default=hW;var z4={flex:["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex","flex"],"inline-flex":["-webkit-inline-box","-moz-inline-box","-ms-inline-flexbox","-webkit-inline-flex","inline-flex"]};function hW(Z,J){if(Z==="display"&&z4.hasOwnProperty(J))return z4[J]}U4.exports=s6.default});var M4=A((r6,L4)=>{Object.defineProperty(r6,"__esModule",{value:!0});r6.default=yW;var gW={"space-around":"distribute","space-between":"justify","flex-start":"start","flex-end":"end"},K4={alignContent:"msFlexLinePack",alignSelf:"msFlexItemAlign",alignItems:"msFlexAlign",justifyContent:"msFlexPack",order:"msFlexOrder",flexGrow:"msFlexPositive",flexShrink:"msFlexNegative",flexBasis:"msFlexPreferredSize"};function yW(Z,J,Y){if(K4.hasOwnProperty(Z))Y[K4[Z]]=gW[J]||J}L4.exports=r6.default});var O4=A((t6,$4)=>{Object.defineProperty(t6,"__esModule",{value:!0});t6.default=dW;var uW={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple",flex:"box","inline-flex":"inline-box"},F4={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines",flexGrow:"WebkitBoxFlex"};function dW(Z,J,Y){if(Z==="flexDirection"&&typeof J==="string"){if(J.indexOf("column")>-1)Y.WebkitBoxOrient="vertical";else Y.WebkitBoxOrient="horizontal";if(J.indexOf("reverse")>-1)Y.WebkitBoxDirection="reverse";else Y.WebkitBoxDirection="normal"}if(F4.hasOwnProperty(Z))Y[F4[Z]]=uW[J]||J}$4.exports=t6.default});var q4=A((e6,I4)=>{Object.defineProperty(e6,"__esModule",{value:!0});e6.default=oW;var pW=o1(),lW=iW(pW);function iW(Z){return Z&&Z.__esModule?Z:{default:Z}}var nW=["-webkit-","-moz-",""],V4=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/gi;function oW(Z,J){if(typeof J==="string"&&!(0,lW.default)(J)&&V4.test(J))return nW.map(function(Y){return J.replace(V4,function(Q){return Y+Q})})}I4.exports=e6.default});var N4=A((Z8,D4)=>{Object.defineProperty(Z8,"__esModule",{value:!0});Z8.default=ZH;var sW=o1(),rW=tW(sW);function tW(Z){return Z&&Z.__esModule?Z:{default:Z}}var eW=["-webkit-",""];function ZH(Z,J){if(typeof J==="string"&&!(0,rW.default)(J)&&J.indexOf("image-set(")>-1)return eW.map(function(Y){return J.replace(/image-set\(/g,Y+"image-set(")})}D4.exports=Z8.default});var R4=A((J8,A4)=>{Object.defineProperty(J8,"__esModule",{value:!0});J8.default=YH;function YH(Z,J){if(Z==="position"&&J==="sticky")return["-webkit-sticky","sticky"]}A4.exports=J8.default});var T4=A((Y8,P4)=>{Object.defineProperty(Y8,"__esModule",{value:!0});Y8.default=HH;var XH=["-webkit-","-moz-",""],GH={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},WH={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};function HH(Z,J){if(GH.hasOwnProperty(Z)&&WH.hasOwnProperty(J))return XH.map(function(Y){return Y+J})}P4.exports=Y8.default});var E4=A((u$,w4)=>{var UH=/[A-Z]/g,BH=/^ms-/,Q8={};function KH(Z){return"-"+Z.toLowerCase()}function LH(Z){if(Q8.hasOwnProperty(Z))return Q8[Z];var J=Z.replace(UH,KH);return Q8[Z]=BH.test(J)?"-"+J:J}w4.exports=LH});var G8=A((X8,S4)=>{Object.defineProperty(X8,"__esModule",{value:!0});X8.default=OH;var MH=E4(),FH=$H(MH);function $H(Z){return Z&&Z.__esModule?Z:{default:Z}}function OH(Z){return(0,FH.default)(Z)}S4.exports=X8.default});var f4=A((H8,C4)=>{Object.defineProperty(H8,"__esModule",{value:!0});H8.default=wH;var IH=G8(),qH=W8(IH),DH=o1(),NH=W8(DH),AH=K5(),x4=W8(AH);function W8(Z){return Z&&Z.__esModule?Z:{default:Z}}var RH={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},PH={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"};function TH(Z,J){if((0,NH.default)(Z))return Z;var Y=Z.split(/,(?![^()]*(?:\([^()]*\))?\))/g);for(var Q=0,X=Y.length;Q<X;++Q){var G=Y[Q],W=[G];for(var H in J){var z=(0,qH.default)(H);if(G.indexOf(z)>-1&&z!=="order"){var U=J[H];for(var B=0,L=U.length;B<L;++B)W.unshift(G.replace(z,PH[U[B]]+z))}}Y[Q]=W.join(",")}return Y.join(",")}function wH(Z,J,Y,Q){if(typeof J==="string"&&RH.hasOwnProperty(Z)){var X=TH(J,Q),G=X.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(H){return!/-moz-|-ms-/.test(H)}).join(",");if(Z.indexOf("Webkit")>-1)return G;var W=X.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(H){return!/-webkit-|-ms-/.test(H)}).join(",");if(Z.indexOf("Moz")>-1)return W;return Y["Webkit"+(0,x4.default)(Z)]=G,Y["Moz"+(0,x4.default)(Z)]=W,X}}C4.exports=H8.default});var G1=A((U8,l4)=>{Object.defineProperty(U8,"__esModule",{value:!0});U8.default=SH;function SH(Z,J,Y){if(Y)return[Z,J];return Z}l4.exports=U8.default});var n4=A((B8,i4)=>{Object.defineProperty(B8,"__esModule",{value:!0});B8.default=_H;var CH=G1(),fH=jH(CH);function jH(Z){return Z&&Z.__esModule?Z:{default:Z}}function _H(Z,J,Y,Q){var{browserName:X,browserVersion:G,cssPrefix:W,keepUnprefixed:H}=Q;if(typeof J==="string"&&J.indexOf("calc(")>-1&&(X==="firefox"&&G<15||X==="chrome"&&G<25||X==="safari"&&G<6.1||X==="ios_saf"&&G<7))return(0,fH.default)(J.replace(/calc\(/g,W+"calc("),J,H)}i4.exports=B8.default});var a4=A((K8,o4)=>{Object.defineProperty(K8,"__esModule",{value:!0});K8.default=gH;var kH=G1(),hH=bH(kH);function bH(Z){return Z&&Z.__esModule?Z:{default:Z}}function gH(Z,J,Y,Q){var{browserName:X,browserVersion:G,cssPrefix:W,keepUnprefixed:H}=Q;if(typeof J==="string"&&J.indexOf("cross-fade(")>-1&&(X==="chrome"||X==="opera"||X==="and_chr"||(X==="ios_saf"||X==="safari")&&G<10))return(0,hH.default)(J.replace(/cross-fade\(/g,W+"cross-fade("),J,H)}o4.exports=K8.default});var t4=A((L8,r4)=>{Object.defineProperty(L8,"__esModule",{value:!0});L8.default=pH;var mH=G1(),s4=uH(mH);function uH(Z){return Z&&Z.__esModule?Z:{default:Z}}var dH={grab:!0,grabbing:!0},cH={"zoom-in":!0,"zoom-out":!0};function pH(Z,J,Y,Q){var{browserName:X,browserVersion:G,cssPrefix:W,keepUnprefixed:H}=Q;if(Z==="cursor"&&dH[J]&&(X==="firefox"||X==="chrome"||X==="safari"||X==="opera"))return(0,s4.default)(W+J,J,H);if(Z==="cursor"&&cH[J]&&(X==="firefox"&&G<24||X==="chrome"&&G<37||X==="safari"&&G<9||X==="opera"&&G<24))return(0,s4.default)(W+J,J,H)}r4.exports=L8.default});var ZZ=A((M8,e4)=>{Object.defineProperty(M8,"__esModule",{value:!0});M8.default=aH;var iH=G1(),nH=oH(iH);function oH(Z){return Z&&Z.__esModule?Z:{default:Z}}function aH(Z,J,Y,Q){var{browserName:X,browserVersion:G,cssPrefix:W,keepUnprefixed:H}=Q;if(typeof J==="string"&&J.indexOf("filter(")>-1&&(X==="ios_saf"||X==="safari"&&G<9.1))return(0,nH.default)(J.replace(/filter\(/g,W+"filter("),J,H)}e4.exports=M8.default});var YZ=A((F8,JZ)=>{Object.defineProperty(F8,"__esModule",{value:!0});F8.default=Jz;var rH=G1(),tH=eH(rH);function eH(Z){return Z&&Z.__esModule?Z:{default:Z}}var Zz={flex:!0,"inline-flex":!0};function Jz(Z,J,Y,Q){var{browserName:X,browserVersion:G,cssPrefix:W,keepUnprefixed:H}=Q;if(Z==="display"&&Zz[J]&&(X==="chrome"&&G<29&&G>20||(X==="safari"||X==="ios_saf")&&G<9&&G>6||X==="opera"&&(G===15||G===16)))return(0,tH.default)(W+J,J,H)}JZ.exports=F8.default});var XZ=A((V8,QZ)=>{Object.defineProperty(V8,"__esModule",{value:!0});V8.default=Wz;var Qz=G1(),Xz=Gz(Qz);function Gz(Z){return Z&&Z.__esModule?Z:{default:Z}}var $8={"space-around":"distribute","space-between":"justify","flex-start":"start","flex-end":"end",flex:"flexbox","inline-flex":"inline-flexbox"},O8={alignContent:"msFlexLinePack",alignSelf:"msFlexItemAlign",alignItems:"msFlexAlign",justifyContent:"msFlexPack",order:"msFlexOrder",flexGrow:"msFlexPositive",flexShrink:"msFlexNegative",flexBasis:"msFlexPreferredSize"};function Wz(Z,J,Y,Q){var{browserName:X,browserVersion:G,cssPrefix:W,keepUnprefixed:H,requiresPrefix:z}=Q;if((O8.hasOwnProperty(Z)||Z==="display"&&typeof J==="string"&&J.indexOf("flex")>-1)&&(X==="ie_mob"||X==="ie")&&G===10){if(delete z[Z],!H&&!Array.isArray(Y[Z]))delete Y[Z];if(Z==="display"&&$8.hasOwnProperty(J))return(0,Xz.default)(W+$8[J],J,H);if(O8.hasOwnProperty(Z))Y[O8[Z]]=$8[J]||J}}QZ.exports=V8.default});var WZ=A((D8,GZ)=>{Object.defineProperty(D8,"__esModule",{value:!0});D8.default=Mz;var zz=G1(),Uz=Bz(zz);function Bz(Z){return Z&&Z.__esModule?Z:{default:Z}}var I8={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple",flex:"box","inline-flex":"inline-box"},q8={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines",flexGrow:"WebkitBoxFlex"},Kz=["alignContent","alignSelf","order","flexGrow","flexShrink","flexBasis","flexDirection"],Lz=Object.keys(q8).concat(Kz);function Mz(Z,J,Y,Q){var{browserName:X,browserVersion:G,cssPrefix:W,keepUnprefixed:H,requiresPrefix:z}=Q;if((Lz.indexOf(Z)>-1||Z==="display"&&typeof J==="string"&&J.indexOf("flex")>-1)&&(X==="firefox"&&G<22||X==="chrome"&&G<21||(X==="safari"||X==="ios_saf")&&G<=6.1||X==="android"&&G<4.4||X==="and_uc")){if(delete z[Z],!H&&!Array.isArray(Y[Z]))delete Y[Z];if(Z==="flexDirection"&&typeof J==="string"){if(J.indexOf("column")>-1)Y.WebkitBoxOrient="vertical";else Y.WebkitBoxOrient="horizontal";if(J.indexOf("reverse")>-1)Y.WebkitBoxDirection="reverse";else Y.WebkitBoxDirection="normal"}if(Z==="display"&&I8.hasOwnProperty(J))return(0,Uz.default)(W+I8[J],J,H);if(q8.hasOwnProperty(Z))Y[q8[Z]]=I8[J]||J}}GZ.exports=D8.default});var UZ=A((N8,zZ)=>{Object.defineProperty(N8,"__esModule",{value:!0});N8.default=Iz;var $z=G1(),Oz=Vz($z);function Vz(Z){return Z&&Z.__esModule?Z:{default:Z}}var HZ=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/gi;function Iz(Z,J,Y,Q){var{browserName:X,browserVersion:G,cssPrefix:W,keepUnprefixed:H}=Q;if(typeof J==="string"&&HZ.test(J)&&(X==="firefox"&&G<16||X==="chrome"&&G<26||(X==="safari"||X==="ios_saf")&&G<7||(X==="opera"||X==="op_mini")&&G<12.1||X==="android"&&G<4.4||X==="and_uc"))return(0,Oz.default)(J.replace(HZ,function(z){return W+z}),J,H)}zZ.exports=N8.default});var KZ=A((A8,BZ)=>{Object.defineProperty(A8,"__esModule",{value:!0});A8.default=Rz;var Dz=G1(),Nz=Az(Dz);function Az(Z){return Z&&Z.__esModule?Z:{default:Z}}function Rz(Z,J,Y,Q){var{browserName:X,cssPrefix:G,keepUnprefixed:W}=Q;if(typeof J==="string"&&J.indexOf("image-set(")>-1&&(X==="chrome"||X==="opera"||X==="and_chr"||X==="and_uc"||X==="ios_saf"||X==="safari"))return(0,Nz.default)(J.replace(/image-set\(/g,G+"image-set("),J,W)}BZ.exports=A8.default});var MZ=A((R8,LZ)=>{Object.defineProperty(R8,"__esModule",{value:!0});R8.default=Sz;var Tz=G1(),wz=Ez(Tz);function Ez(Z){return Z&&Z.__esModule?Z:{default:Z}}function Sz(Z,J,Y,Q){var{browserName:X,cssPrefix:G,keepUnprefixed:W}=Q;if(Z==="position"&&J==="sticky"&&(X==="safari"||X==="ios_saf"))return(0,wz.default)(G+J,J,W)}LZ.exports=R8.default});var $Z=A((P8,FZ)=>{Object.defineProperty(P8,"__esModule",{value:!0});P8.default=kz;var Cz=G1(),fz=jz(Cz);function jz(Z){return Z&&Z.__esModule?Z:{default:Z}}var _z={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},vz={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};function kz(Z,J,Y,Q){var{cssPrefix:X,keepUnprefixed:G}=Q;if(_z.hasOwnProperty(Z)&&vz.hasOwnProperty(J))return(0,fz.default)(X+J,J,G)}FZ.exports=P8.default});var VZ=A((w8,OZ)=>{Object.defineProperty(w8,"__esModule",{value:!0});w8.default=uz;var bz=G8(),gz=yz(bz);function yz(Z){return Z&&Z.__esModule?Z:{default:Z}}var mz={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},T8=void 0;function uz(Z,J,Y,Q){var{cssPrefix:X,keepUnprefixed:G,requiresPrefix:W}=Q;if(typeof J==="string"&&mz.hasOwnProperty(Z)){if(!T8)T8=Object.keys(W).map(function(z){return(0,gz.default)(z)});var H=J.split(/,(?![^()]*(?:\([^()]*\))?\))/g);return T8.forEach(function(z){H.forEach(function(U,B){if(U.indexOf(z)>-1&&z!=="order")H[B]=U.replace(z,X+z)+(G?","+U:"")})}),H.join(",")}}OZ.exports=w8.default});var iY={};H7(iY,{default:()=>zK,__values:()=>s5,__spreadArrays:()=>jY,__spreadArray:()=>_Y,__spread:()=>fY,__setFunctionName:()=>wY,__runInitializers:()=>PY,__rewriteRelativeImportExtension:()=>lY,__rest:()=>DY,__read:()=>z9,__propKey:()=>TY,__param:()=>AY,__metadata:()=>EY,__makeTemplateObject:()=>bY,__importStar:()=>gY,__importDefault:()=>yY,__generator:()=>xY,__extends:()=>qY,__exportStar:()=>CY,__esDecorate:()=>RY,__disposeResources:()=>pY,__decorate:()=>NY,__createBinding:()=>r5,__classPrivateFieldSet:()=>uY,__classPrivateFieldIn:()=>dY,__classPrivateFieldGet:()=>mY,__awaiter:()=>SY,__await:()=>I0,__asyncValues:()=>hY,__asyncGenerator:()=>vY,__asyncDelegator:()=>kY,__assign:()=>a5,__addDisposableResource:()=>cY});function qY(Z,J){if(typeof J!=="function"&&J!==null)throw TypeError("Class extends value "+String(J)+" is not a constructor or null");W9(Z,J);function Y(){this.constructor=Z}Z.prototype=J===null?Object.create(J):(Y.prototype=J.prototype,new Y)}function DY(Z,J){var Y={};for(var Q in Z)if(Object.prototype.hasOwnProperty.call(Z,Q)&&J.indexOf(Q)<0)Y[Q]=Z[Q];if(Z!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var X=0,Q=Object.getOwnPropertySymbols(Z);X<Q.length;X++)if(J.indexOf(Q[X])<0&&Object.prototype.propertyIsEnumerable.call(Z,Q[X]))Y[Q[X]]=Z[Q[X]]}return Y}function NY(Z,J,Y,Q){var X=arguments.length,G=X<3?J:Q===null?Q=Object.getOwnPropertyDescriptor(J,Y):Q,W;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")G=Reflect.decorate(Z,J,Y,Q);else for(var H=Z.length-1;H>=0;H--)if(W=Z[H])G=(X<3?W(G):X>3?W(J,Y,G):W(J,Y))||G;return X>3&&G&&Object.defineProperty(J,Y,G),G}function AY(Z,J){return function(Y,Q){J(Y,Q,Z)}}function RY(Z,J,Y,Q,X,G){function W(D){if(D!==void 0&&typeof D!=="function")throw TypeError("Function expected");return D}var H=Q.kind,z=H==="getter"?"get":H==="setter"?"set":"value",U=!J&&Z?Q.static?Z:Z.prototype:null,B=J||(U?Object.getOwnPropertyDescriptor(U,Q.name):{}),L,V=!1;for(var M=Y.length-1;M>=0;M--){var K={};for(var F in Q)K[F]=F==="access"?{}:Q[F];for(var F in Q.access)K.access[F]=Q.access[F];K.addInitializer=function(D){if(V)throw TypeError("Cannot add initializers after decoration has completed");G.push(W(D||null))};var O=(0,Y[M])(H==="accessor"?{get:B.get,set:B.set}:B[z],K);if(H==="accessor"){if(O===void 0)continue;if(O===null||typeof O!=="object")throw TypeError("Object expected");if(L=W(O.get))B.get=L;if(L=W(O.set))B.set=L;if(L=W(O.init))X.unshift(L)}else if(L=W(O))if(H==="field")X.unshift(L);else B[z]=L}if(U)Object.defineProperty(U,Q.name,B);V=!0}function PY(Z,J,Y){var Q=arguments.length>2;for(var X=0;X<J.length;X++)Y=Q?J[X].call(Z,Y):J[X].call(Z);return Q?Y:void 0}function TY(Z){return typeof Z==="symbol"?Z:"".concat(Z)}function wY(Z,J,Y){if(typeof J==="symbol")J=J.description?"[".concat(J.description,"]"):"";return Object.defineProperty(Z,"name",{configurable:!0,value:Y?"".concat(Y," ",J):J})}function EY(Z,J){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(Z,J)}function SY(Z,J,Y,Q){function X(G){return G instanceof Y?G:new Y(function(W){W(G)})}return new(Y||(Y=Promise))(function(G,W){function H(B){try{U(Q.next(B))}catch(L){W(L)}}function z(B){try{U(Q.throw(B))}catch(L){W(L)}}function U(B){B.done?G(B.value):X(B.value).then(H,z)}U((Q=Q.apply(Z,J||[])).next())})}function xY(Z,J){var Y={label:0,sent:function(){if(G[0]&1)throw G[1];return G[1]},trys:[],ops:[]},Q,X,G,W=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return W.next=H(0),W.throw=H(1),W.return=H(2),typeof Symbol==="function"&&(W[Symbol.iterator]=function(){return this}),W;function H(U){return function(B){return z([U,B])}}function z(U){if(Q)throw TypeError("Generator is already executing.");while(W&&(W=0,U[0]&&(Y=0)),Y)try{if(Q=1,X&&(G=U[0]&2?X.return:U[0]?X.throw||((G=X.return)&&G.call(X),0):X.next)&&!(G=G.call(X,U[1])).done)return G;if(X=0,G)U=[U[0]&2,G.value];switch(U[0]){case 0:case 1:G=U;break;case 4:return Y.label++,{value:U[1],done:!1};case 5:Y.label++,X=U[1],U=[0];continue;case 7:U=Y.ops.pop(),Y.trys.pop();continue;default:if((G=Y.trys,!(G=G.length>0&&G[G.length-1]))&&(U[0]===6||U[0]===2)){Y=0;continue}if(U[0]===3&&(!G||U[1]>G[0]&&U[1]<G[3])){Y.label=U[1];break}if(U[0]===6&&Y.label<G[1]){Y.label=G[1],G=U;break}if(G&&Y.label<G[2]){Y.label=G[2],Y.ops.push(U);break}if(G[2])Y.ops.pop();Y.trys.pop();continue}U=J.call(Z,Y)}catch(B){U=[6,B],X=0}finally{Q=G=0}if(U[0]&5)throw U[1];return{value:U[0]?U[1]:void 0,done:!0}}}function CY(Z,J){for(var Y in Z)if(Y!=="default"&&!Object.prototype.hasOwnProperty.call(J,Y))r5(J,Z,Y)}function s5(Z){var J=typeof Symbol==="function"&&Symbol.iterator,Y=J&&Z[J],Q=0;if(Y)return Y.call(Z);if(Z&&typeof Z.length==="number")return{next:function(){if(Z&&Q>=Z.length)Z=void 0;return{value:Z&&Z[Q++],done:!Z}}};throw TypeError(J?"Object is not iterable.":"Symbol.iterator is not defined.")}function z9(Z,J){var Y=typeof Symbol==="function"&&Z[Symbol.iterator];if(!Y)return Z;var Q=Y.call(Z),X,G=[],W;try{while((J===void 0||J-- >0)&&!(X=Q.next()).done)G.push(X.value)}catch(H){W={error:H}}finally{try{if(X&&!X.done&&(Y=Q.return))Y.call(Q)}finally{if(W)throw W.error}}return G}function fY(){for(var Z=[],J=0;J<arguments.length;J++)Z=Z.concat(z9(arguments[J]));return Z}function jY(){for(var Z=0,J=0,Y=arguments.length;J<Y;J++)Z+=arguments[J].length;for(var Q=Array(Z),X=0,J=0;J<Y;J++)for(var G=arguments[J],W=0,H=G.length;W<H;W++,X++)Q[X]=G[W];return Q}function _Y(Z,J,Y){if(Y||arguments.length===2){for(var Q=0,X=J.length,G;Q<X;Q++)if(G||!(Q in J)){if(!G)G=Array.prototype.slice.call(J,0,Q);G[Q]=J[Q]}}return Z.concat(G||Array.prototype.slice.call(J))}function I0(Z){return this instanceof I0?(this.v=Z,this):new I0(Z)}function vY(Z,J,Y){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var Q=Y.apply(Z,J||[]),X,G=[];return X=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),H("next"),H("throw"),H("return",W),X[Symbol.asyncIterator]=function(){return this},X;function W(M){return function(K){return Promise.resolve(K).then(M,L)}}function H(M,K){if(Q[M]){if(X[M]=function(F){return new Promise(function(O,D){G.push([M,F,O,D])>1||z(M,F)})},K)X[M]=K(X[M])}}function z(M,K){try{U(Q[M](K))}catch(F){V(G[0][3],F)}}function U(M){M.value instanceof I0?Promise.resolve(M.value.v).then(B,L):V(G[0][2],M)}function B(M){z("next",M)}function L(M){z("throw",M)}function V(M,K){if(M(K),G.shift(),G.length)z(G[0][0],G[0][1])}}function kY(Z){var J,Y;return J={},Q("next"),Q("throw",function(X){throw X}),Q("return"),J[Symbol.iterator]=function(){return this},J;function Q(X,G){J[X]=Z[X]?function(W){return(Y=!Y)?{value:I0(Z[X](W)),done:!1}:G?G(W):W}:G}}function hY(Z){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var J=Z[Symbol.asyncIterator],Y;return J?J.call(Z):(Z=typeof s5==="function"?s5(Z):Z[Symbol.iterator](),Y={},Q("next"),Q("throw"),Q("return"),Y[Symbol.asyncIterator]=function(){return this},Y);function Q(G){Y[G]=Z[G]&&function(W){return new Promise(function(H,z){W=Z[G](W),X(H,z,W.done,W.value)})}}function X(G,W,H,z){Promise.resolve(z).then(function(U){G({value:U,done:H})},W)}}function bY(Z,J){if(Object.defineProperty)Object.defineProperty(Z,"raw",{value:J});else Z.raw=J;return Z}function gY(Z){if(Z&&Z.__esModule)return Z;var J={};if(Z!=null){for(var Y=H9(Z),Q=0;Q<Y.length;Q++)if(Y[Q]!=="default")r5(J,Z,Y[Q])}return WK(J,Z),J}function yY(Z){return Z&&Z.__esModule?Z:{default:Z}}function mY(Z,J,Y,Q){if(Y==="a"&&!Q)throw TypeError("Private accessor was defined without a getter");if(typeof J==="function"?Z!==J||!Q:!J.has(Z))throw TypeError("Cannot read private member from an object whose class did not declare it");return Y==="m"?Q:Y==="a"?Q.call(Z):Q?Q.value:J.get(Z)}function uY(Z,J,Y,Q,X){if(Q==="m")throw TypeError("Private method is not writable");if(Q==="a"&&!X)throw TypeError("Private accessor was defined without a setter");if(typeof J==="function"?Z!==J||!X:!J.has(Z))throw TypeError("Cannot write private member to an object whose class did not declare it");return Q==="a"?X.call(Z,Y):X?X.value=Y:J.set(Z,Y),Y}function dY(Z,J){if(J===null||typeof J!=="object"&&typeof J!=="function")throw TypeError("Cannot use 'in' operator on non-object");return typeof Z==="function"?J===Z:Z.has(J)}function cY(Z,J,Y){if(J!==null&&J!==void 0){if(typeof J!=="object"&&typeof J!=="function")throw TypeError("Object expected.");var Q,X;if(Y){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");Q=J[Symbol.asyncDispose]}if(Q===void 0){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");if(Q=J[Symbol.dispose],Y)X=Q}if(typeof Q!=="function")throw TypeError("Object not disposable.");if(X)Q=function(){try{X.call(this)}catch(G){return Promise.reject(G)}};Z.stack.push({value:J,dispose:Q,async:Y})}else if(Y)Z.stack.push({async:!0});return J}function pY(Z){function J(G){Z.error=Z.hasError?new HK(G,Z.error,"An error was suppressed during disposal."):G,Z.hasError=!0}var Y,Q=0;function X(){while(Y=Z.stack.pop())try{if(!Y.async&&Q===1)return Q=0,Z.stack.push(Y),Promise.resolve().then(X);if(Y.dispose){var G=Y.dispose.call(Y.value);if(Y.async)return Q|=2,Promise.resolve(G).then(X,function(W){return J(W),X()})}else Q|=1}catch(W){J(W)}if(Q===1)return Z.hasError?Promise.reject(Z.error):Promise.resolve();if(Z.hasError)throw Z.error}return X()}function lY(Z,J){if(typeof Z==="string"&&/^\.\.?\//.test(Z))return Z.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(Y,Q,X,G,W){return Q?J?".jsx":".js":X&&(!G||!W)?Y:X+G+"."+W.toLowerCase()+"js"});return Z}var W9=function(Z,J){return W9=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,Q){Y.__proto__=Q}||function(Y,Q){for(var X in Q)if(Object.prototype.hasOwnProperty.call(Q,X))Y[X]=Q[X]},W9(Z,J)},a5=function(){return a5=Object.assign||function(J){for(var Y,Q=1,X=arguments.length;Q<X;Q++){Y=arguments[Q];for(var G in Y)if(Object.prototype.hasOwnProperty.call(Y,G))J[G]=Y[G]}return J},a5.apply(this,arguments)},r5,WK,H9=function(Z){return H9=Object.getOwnPropertyNames||function(J){var Y=[];for(var Q in J)if(Object.prototype.hasOwnProperty.call(J,Q))Y[Y.length]=Q;return Y},H9(Z)},HK,zK;var nY=z7(()=>{r5=Object.create?function(Z,J,Y,Q){if(Q===void 0)Q=Y;var X=Object.getOwnPropertyDescriptor(J,Y);if(!X||("get"in X?!J.__esModule:X.writable||X.configurable))X={enumerable:!0,get:function(){return J[Y]}};Object.defineProperty(Z,Q,X)}:function(Z,J,Y,Q){if(Q===void 0)Q=Y;Z[Q]=J[Y]};WK=Object.create?function(Z,J){Object.defineProperty(Z,"default",{enumerable:!0,value:J})}:function(Z,J){Z.default=J};HK=typeof SuppressedError==="function"?SuppressedError:function(Z,J,Y){var Q=Error(Y);return Q.name="SuppressedError",Q.error=Z,Q.suppressed=J,Q};zK={__extends:qY,__assign:a5,__rest:DY,__decorate:NY,__param:AY,__esDecorate:RY,__runInitializers:PY,__propKey:TY,__setFunctionName:wY,__metadata:EY,__awaiter:SY,__generator:xY,__createBinding:r5,__exportStar:CY,__values:s5,__read:z9,__spread:fY,__spreadArrays:jY,__spreadArray:_Y,__await:I0,__asyncGenerator:vY,__asyncDelegator:kY,__asyncValues:hY,__makeTemplateObject:bY,__importStar:gY,__importDefault:yY,__classPrivateFieldGet:mY,__classPrivateFieldSet:uY,__classPrivateFieldIn:dY,__addDisposableResource:cY,__disposeResources:pY,__rewriteRelativeImportExtension:lY}});var vQ=A((fq,_Q)=>{/*! Axios v1.13.4 Copyright (c) 2026 Matt Zabriskie and contributors */function BQ(Z,J){return function(){return Z.apply(J,arguments)}}var{toString:UK}=Object.prototype,{getPrototypeOf:O9}=Object,{iterator:X6,toStringTag:KQ}=Symbol,G6=((Z)=>(J)=>{let Y=UK.call(J);return Z[Y]||(Z[Y]=Y.slice(8,-1).toLowerCase())})(Object.create(null)),M1=(Z)=>{return Z=Z.toLowerCase(),(J)=>G6(J)===Z},W6=(Z)=>(J)=>typeof J===Z,{isArray:D0}=Array,q0=W6("undefined");function o0(Z){return Z!==null&&!q0(Z)&&Z.constructor!==null&&!q0(Z.constructor)&&t(Z.constructor.isBuffer)&&Z.constructor.isBuffer(Z)}var LQ=M1("ArrayBuffer");function BK(Z){let J;if(typeof ArrayBuffer<"u"&&ArrayBuffer.isView)J=ArrayBuffer.isView(Z);else J=Z&&Z.buffer&&LQ(Z.buffer);return J}var KK=W6("string"),t=W6("function"),MQ=W6("number"),a0=(Z)=>Z!==null&&typeof Z==="object",LK=(Z)=>Z===!0||Z===!1,e5=(Z)=>{if(G6(Z)!=="object")return!1;let J=O9(Z);return(J===null||J===Object.prototype||Object.getPrototypeOf(J)===null)&&!(KQ in Z)&&!(X6 in Z)},MK=(Z)=>{if(!a0(Z)||o0(Z))return!1;try{return Object.keys(Z).length===0&&Object.getPrototypeOf(Z)===Object.prototype}catch(J){return!1}},FK=M1("Date"),$K=M1("File"),OK=M1("Blob"),VK=M1("FileList"),IK=(Z)=>a0(Z)&&t(Z.pipe),qK=(Z)=>{let J;return Z&&(typeof FormData==="function"&&Z instanceof FormData||t(Z.append)&&((J=G6(Z))==="formdata"||J==="object"&&t(Z.toString)&&Z.toString()==="[object FormData]"))},DK=M1("URLSearchParams"),[NK,AK,RK,PK]=["ReadableStream","Request","Response","Headers"].map(M1),TK=(Z)=>Z.trim?Z.trim():Z.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function s0(Z,J,{allOwnKeys:Y=!1}={}){if(Z===null||typeof Z>"u")return;let Q,X;if(typeof Z!=="object")Z=[Z];if(D0(Z))for(Q=0,X=Z.length;Q<X;Q++)J.call(null,Z[Q],Q,Z);else{if(o0(Z))return;let G=Y?Object.getOwnPropertyNames(Z):Object.keys(Z),W=G.length,H;for(Q=0;Q<W;Q++)H=G[Q],J.call(null,Z[H],H,Z)}}function FQ(Z,J){if(o0(Z))return null;J=J.toLowerCase();let Y=Object.keys(Z),Q=Y.length,X;while(Q-- >0)if(X=Y[Q],J===X.toLowerCase())return X;return null}var Y0=(()=>{if(typeof globalThis<"u")return globalThis;return typeof self<"u"?self:typeof window<"u"?window:global})(),$Q=(Z)=>!q0(Z)&&Z!==Y0;function L9(){let{caseless:Z,skipUndefined:J}=$Q(this)&&this||{},Y={},Q=(X,G)=>{let W=Z&&FQ(Y,G)||G;if(e5(Y[W])&&e5(X))Y[W]=L9(Y[W],X);else if(e5(X))Y[W]=L9({},X);else if(D0(X))Y[W]=X.slice();else if(!J||!q0(X))Y[W]=X};for(let X=0,G=arguments.length;X<G;X++)arguments[X]&&s0(arguments[X],Q);return Y}var wK=(Z,J,Y,{allOwnKeys:Q}={})=>{return s0(J,(X,G)=>{if(Y&&t(X))Object.defineProperty(Z,G,{value:BQ(X,Y),writable:!0,enumerable:!0,configurable:!0});else Object.defineProperty(Z,G,{value:X,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:Q}),Z},EK=(Z)=>{if(Z.charCodeAt(0)===65279)Z=Z.slice(1);return Z},SK=(Z,J,Y,Q)=>{Z.prototype=Object.create(J.prototype,Q),Object.defineProperty(Z.prototype,"constructor",{value:Z,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(Z,"super",{value:J.prototype}),Y&&Object.assign(Z.prototype,Y)},xK=(Z,J,Y,Q)=>{let X,G,W,H={};if(J=J||{},Z==null)return J;do{X=Object.getOwnPropertyNames(Z),G=X.length;while(G-- >0)if(W=X[G],(!Q||Q(W,Z,J))&&!H[W])J[W]=Z[W],H[W]=!0;Z=Y!==!1&&O9(Z)}while(Z&&(!Y||Y(Z,J))&&Z!==Object.prototype);return J},CK=(Z,J,Y)=>{if(Z=String(Z),Y===void 0||Y>Z.length)Y=Z.length;Y-=J.length;let Q=Z.indexOf(J,Y);return Q!==-1&&Q===Y},fK=(Z)=>{if(!Z)return null;if(D0(Z))return Z;let J=Z.length;if(!MQ(J))return null;let Y=Array(J);while(J-- >0)Y[J]=Z[J];return Y},jK=((Z)=>{return(J)=>{return Z&&J instanceof Z}})(typeof Uint8Array<"u"&&O9(Uint8Array)),_K=(Z,J)=>{let Q=(Z&&Z[X6]).call(Z),X;while((X=Q.next())&&!X.done){let G=X.value;J.call(Z,G[0],G[1])}},vK=(Z,J)=>{let Y,Q=[];while((Y=Z.exec(J))!==null)Q.push(Y);return Q},kK=M1("HTMLFormElement"),hK=(Z)=>{return Z.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(Y,Q,X){return Q.toUpperCase()+X})},oY=(({hasOwnProperty:Z})=>(J,Y)=>Z.call(J,Y))(Object.prototype),bK=M1("RegExp"),OQ=(Z,J)=>{let Y=Object.getOwnPropertyDescriptors(Z),Q={};s0(Y,(X,G)=>{let W;if((W=J(X,G,Z))!==!1)Q[G]=W||X}),Object.defineProperties(Z,Q)},gK=(Z)=>{OQ(Z,(J,Y)=>{if(t(Z)&&["arguments","caller","callee"].indexOf(Y)!==-1)return!1;let Q=Z[Y];if(!t(Q))return;if(J.enumerable=!1,"writable"in J){J.writable=!1;return}if(!J.set)J.set=()=>{throw Error("Can not rewrite read-only method '"+Y+"'")}})},yK=(Z,J)=>{let Y={},Q=(X)=>{X.forEach((G)=>{Y[G]=!0})};return D0(Z)?Q(Z):Q(String(Z).split(J)),Y},mK=()=>{},uK=(Z,J)=>{return Z!=null&&Number.isFinite(Z=+Z)?Z:J};function dK(Z){return!!(Z&&t(Z.append)&&Z[KQ]==="FormData"&&Z[X6])}var cK=(Z)=>{let J=[,,,,,,,,,,],Y=(Q,X)=>{if(a0(Q)){if(J.indexOf(Q)>=0)return;if(o0(Q))return Q;if(!("toJSON"in Q)){J[X]=Q;let G=D0(Q)?[]:{};return s0(Q,(W,H)=>{let z=Y(W,X+1);!q0(z)&&(G[H]=z)}),J[X]=void 0,G}}return Q};return Y(Z,0)},pK=M1("AsyncFunction"),lK=(Z)=>Z&&(a0(Z)||t(Z))&&t(Z.then)&&t(Z.catch),VQ=((Z,J)=>{if(Z)return setImmediate;return J?((Y,Q)=>{return Y0.addEventListener("message",({source:X,data:G})=>{if(X===Y0&&G===Y)Q.length&&Q.shift()()},!1),(X)=>{Q.push(X),Y0.postMessage(Y,"*")}})(`axios@${Math.random()}`,[]):(Y)=>setTimeout(Y)})(typeof setImmediate==="function",t(Y0.postMessage)),iK=typeof queueMicrotask<"u"?queueMicrotask.bind(Y0):typeof process<"u"&&process.nextTick||VQ,nK=(Z)=>Z!=null&&t(Z[X6]),I={isArray:D0,isArrayBuffer:LQ,isBuffer:o0,isFormData:qK,isArrayBufferView:BK,isString:KK,isNumber:MQ,isBoolean:LK,isObject:a0,isPlainObject:e5,isEmptyObject:MK,isReadableStream:NK,isRequest:AK,isResponse:RK,isHeaders:PK,isUndefined:q0,isDate:FK,isFile:$K,isBlob:OK,isRegExp:bK,isFunction:t,isStream:IK,isURLSearchParams:DK,isTypedArray:jK,isFileList:VK,forEach:s0,merge:L9,extend:wK,trim:TK,stripBOM:EK,inherits:SK,toFlatObject:xK,kindOf:G6,kindOfTest:M1,endsWith:CK,toArray:fK,forEachEntry:_K,matchAll:vK,isHTMLForm:kK,hasOwnProperty:oY,hasOwnProp:oY,reduceDescriptors:OQ,freezeMethods:gK,toObjectSet:yK,toCamelCase:hK,noop:mK,toFiniteNumber:uK,findKey:FQ,global:Y0,isContextDefined:$Q,isSpecCompliantForm:dK,toJSONObject:cK,isAsyncFn:pK,isThenable:lK,setImmediate:VQ,asap:iK,isIterable:nK};class a extends Error{static from(Z,J,Y,Q,X,G){let W=new a(Z.message,J||Z.code,Y,Q,X);return W.cause=Z,W.name=Z.name,G&&Object.assign(W,G),W}constructor(Z,J,Y,Q,X){super(Z);if(this.name="AxiosError",this.isAxiosError=!0,J&&(this.code=J),Y&&(this.config=Y),Q&&(this.request=Q),X)this.response=X,this.status=X.status}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:I.toJSONObject(this.config),code:this.code,status:this.status}}}a.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";a.ERR_BAD_OPTION="ERR_BAD_OPTION";a.ECONNABORTED="ECONNABORTED";a.ETIMEDOUT="ETIMEDOUT";a.ERR_NETWORK="ERR_NETWORK";a.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";a.ERR_DEPRECATED="ERR_DEPRECATED";a.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";a.ERR_BAD_REQUEST="ERR_BAD_REQUEST";a.ERR_CANCELED="ERR_CANCELED";a.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";a.ERR_INVALID_URL="ERR_INVALID_URL";var x=a,oK=null;function M9(Z){return I.isPlainObject(Z)||I.isArray(Z)}function IQ(Z){return I.endsWith(Z,"[]")?Z.slice(0,-2):Z}function aY(Z,J,Y){if(!Z)return J;return Z.concat(J).map(function(X,G){return X=IQ(X),!Y&&G?"["+X+"]":X}).join(Y?".":"")}function aK(Z){return I.isArray(Z)&&!Z.some(M9)}var sK=I.toFlatObject(I,{},null,function(J){return/^is[A-Z]/.test(J)});function H6(Z,J,Y){if(!I.isObject(Z))throw TypeError("target must be an object");J=J||new FormData,Y=I.toFlatObject(Y,{metaTokens:!0,dots:!1,indexes:!1},!1,function(F,O){return!I.isUndefined(O[F])});let Q=Y.metaTokens,X=Y.visitor||B,G=Y.dots,W=Y.indexes,z=(Y.Blob||typeof Blob<"u"&&Blob)&&I.isSpecCompliantForm(J);if(!I.isFunction(X))throw TypeError("visitor must be a function");function U(K){if(K===null)return"";if(I.isDate(K))return K.toISOString();if(I.isBoolean(K))return K.toString();if(!z&&I.isBlob(K))throw new x("Blob is not supported. Use a Buffer instead.");if(I.isArrayBuffer(K)||I.isTypedArray(K))return z&&typeof Blob==="function"?new Blob([K]):Buffer.from(K);return K}function B(K,F,O){let D=K;if(K&&!O&&typeof K==="object"){if(I.endsWith(F,"{}"))F=Q?F:F.slice(0,-2),K=JSON.stringify(K);else if(I.isArray(K)&&aK(K)||(I.isFileList(K)||I.endsWith(F,"[]"))&&(D=I.toArray(K)))return F=IQ(F),D.forEach(function(N,q){!(I.isUndefined(N)||N===null)&&J.append(W===!0?aY([F],q,G):W===null?F:F+"[]",U(N))}),!1}if(M9(K))return!0;return J.append(aY(O,F,G),U(K)),!1}let L=[],V=Object.assign(sK,{defaultVisitor:B,convertValue:U,isVisitable:M9});function M(K,F){if(I.isUndefined(K))return;if(L.indexOf(K)!==-1)throw Error("Circular reference detected in "+F.join("."));L.push(K),I.forEach(K,function(D,P){if((!(I.isUndefined(D)||D===null)&&X.call(J,D,I.isString(P)?P.trim():P,F,V))===!0)M(D,F?F.concat(P):[P])}),L.pop()}if(!I.isObject(Z))throw TypeError("data must be an object");return M(Z),J}function sY(Z){let J={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(Z).replace(/[!'()~]|%20|%00/g,function(Q){return J[Q]})}function V9(Z,J){this._pairs=[],Z&&H6(Z,this,J)}var qQ=V9.prototype;qQ.append=function(J,Y){this._pairs.push([J,Y])};qQ.toString=function(J){let Y=J?function(Q){return J.call(this,Q,sY)}:sY;return this._pairs.map(function(X){return Y(X[0])+"="+Y(X[1])},"").join("&")};function rK(Z){return encodeURIComponent(Z).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function DQ(Z,J,Y){if(!J)return Z;let Q=Y&&Y.encode||rK,X=I.isFunction(Y)?{serialize:Y}:Y,G=X&&X.serialize,W;if(G)W=G(J,X);else W=I.isURLSearchParams(J)?J.toString():new V9(J,X).toString(Q);if(W){let H=Z.indexOf("#");if(H!==-1)Z=Z.slice(0,H);Z+=(Z.indexOf("?")===-1?"?":"&")+W}return Z}class NQ{constructor(){this.handlers=[]}use(Z,J,Y){return this.handlers.push({fulfilled:Z,rejected:J,synchronous:Y?Y.synchronous:!1,runWhen:Y?Y.runWhen:null}),this.handlers.length-1}eject(Z){if(this.handlers[Z])this.handlers[Z]=null}clear(){if(this.handlers)this.handlers=[]}forEach(Z){I.forEach(this.handlers,function(Y){if(Y!==null)Z(Y)})}}var rY=NQ,AQ={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},tK=typeof URLSearchParams<"u"?URLSearchParams:V9,eK=typeof FormData<"u"?FormData:null,ZL=typeof Blob<"u"?Blob:null,JL={isBrowser:!0,classes:{URLSearchParams:tK,FormData:eK,Blob:ZL},protocols:["http","https","file","blob","url","data"]},I9=typeof window<"u"&&typeof document<"u",F9=typeof navigator==="object"&&navigator||void 0,YL=I9&&(!F9||["ReactNative","NativeScript","NS"].indexOf(F9.product)<0),QL=(()=>{return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function"})(),XL=I9&&window.location.href||"http://localhost",GL=Object.freeze({__proto__:null,hasBrowserEnv:I9,hasStandardBrowserWebWorkerEnv:QL,hasStandardBrowserEnv:YL,navigator:F9,origin:XL}),i={...GL,...JL};function WL(Z,J){return H6(Z,new i.classes.URLSearchParams,{visitor:function(Y,Q,X,G){if(i.isNode&&I.isBuffer(Y))return this.append(Q,Y.toString("base64")),!1;return G.defaultVisitor.apply(this,arguments)},...J})}function HL(Z){return I.matchAll(/\w+|\[(\w*)]/g,Z).map((J)=>{return J[0]==="[]"?"":J[1]||J[0]})}function zL(Z){let J={},Y=Object.keys(Z),Q,X=Y.length,G;for(Q=0;Q<X;Q++)G=Y[Q],J[G]=Z[G];return J}function RQ(Z){function J(Y,Q,X,G){let W=Y[G++];if(W==="__proto__")return!0;let H=Number.isFinite(+W),z=G>=Y.length;if(W=!W&&I.isArray(X)?X.length:W,z){if(I.hasOwnProp(X,W))X[W]=[X[W],Q];else X[W]=Q;return!H}if(!X[W]||!I.isObject(X[W]))X[W]=[];if(J(Y,Q,X[W],G)&&I.isArray(X[W]))X[W]=zL(X[W]);return!H}if(I.isFormData(Z)&&I.isFunction(Z.entries)){let Y={};return I.forEachEntry(Z,(Q,X)=>{J(HL(Q),X,Y,0)}),Y}return null}function UL(Z,J,Y){if(I.isString(Z))try{return(J||JSON.parse)(Z),I.trim(Z)}catch(Q){if(Q.name!=="SyntaxError")throw Q}return(Y||JSON.stringify)(Z)}var q9={transitional:AQ,adapter:["xhr","http","fetch"],transformRequest:[function(J,Y){let Q=Y.getContentType()||"",X=Q.indexOf("application/json")>-1,G=I.isObject(J);if(G&&I.isHTMLForm(J))J=new FormData(J);if(I.isFormData(J))return X?JSON.stringify(RQ(J)):J;if(I.isArrayBuffer(J)||I.isBuffer(J)||I.isStream(J)||I.isFile(J)||I.isBlob(J)||I.isReadableStream(J))return J;if(I.isArrayBufferView(J))return J.buffer;if(I.isURLSearchParams(J))return Y.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),J.toString();let H;if(G){if(Q.indexOf("application/x-www-form-urlencoded")>-1)return WL(J,this.formSerializer).toString();if((H=I.isFileList(J))||Q.indexOf("multipart/form-data")>-1){let z=this.env&&this.env.FormData;return H6(H?{"files[]":J}:J,z&&new z,this.formSerializer)}}if(G||X)return Y.setContentType("application/json",!1),UL(J);return J}],transformResponse:[function(J){let Y=this.transitional||q9.transitional,Q=Y&&Y.forcedJSONParsing,X=this.responseType==="json";if(I.isResponse(J)||I.isReadableStream(J))return J;if(J&&I.isString(J)&&(Q&&!this.responseType||X)){let W=!(Y&&Y.silentJSONParsing)&&X;try{return JSON.parse(J,this.parseReviver)}catch(H){if(W){if(H.name==="SyntaxError")throw x.from(H,x.ERR_BAD_RESPONSE,this,null,this.response);throw H}}}return J}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:i.classes.FormData,Blob:i.classes.Blob},validateStatus:function(J){return J>=200&&J<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};I.forEach(["delete","get","head","post","put","patch"],(Z)=>{q9.headers[Z]={}});var D9=q9,BL=I.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),KL=(Z)=>{let J={},Y,Q,X;return Z&&Z.split(`
10
- `).forEach(function(W){if(X=W.indexOf(":"),Y=W.substring(0,X).trim().toLowerCase(),Q=W.substring(X+1).trim(),!Y||J[Y]&&BL[Y])return;if(Y==="set-cookie")if(J[Y])J[Y].push(Q);else J[Y]=[Q];else J[Y]=J[Y]?J[Y]+", "+Q:Q}),J},tY=Symbol("internals");function i0(Z){return Z&&String(Z).trim().toLowerCase()}function Z6(Z){if(Z===!1||Z==null)return Z;return I.isArray(Z)?Z.map(Z6):String(Z)}function LL(Z){let J=Object.create(null),Y=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,Q;while(Q=Y.exec(Z))J[Q[1]]=Q[2];return J}var ML=(Z)=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(Z.trim());function U9(Z,J,Y,Q,X){if(I.isFunction(Q))return Q.call(this,J,Y);if(X)J=Y;if(!I.isString(J))return;if(I.isString(Q))return J.indexOf(Q)!==-1;if(I.isRegExp(Q))return Q.test(J)}function FL(Z){return Z.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(J,Y,Q)=>{return Y.toUpperCase()+Q})}function $L(Z,J){let Y=I.toCamelCase(" "+J);["get","set","has"].forEach((Q)=>{Object.defineProperty(Z,Q+Y,{value:function(X,G,W){return this[Q].call(this,J,X,G,W)},configurable:!0})})}class r0{constructor(Z){Z&&this.set(Z)}set(Z,J,Y){let Q=this;function X(W,H,z){let U=i0(H);if(!U)throw Error("header name must be a non-empty string");let B=I.findKey(Q,U);if(!B||Q[B]===void 0||z===!0||z===void 0&&Q[B]!==!1)Q[B||H]=Z6(W)}let G=(W,H)=>I.forEach(W,(z,U)=>X(z,U,H));if(I.isPlainObject(Z)||Z instanceof this.constructor)G(Z,J);else if(I.isString(Z)&&(Z=Z.trim())&&!ML(Z))G(KL(Z),J);else if(I.isObject(Z)&&I.isIterable(Z)){let W={},H,z;for(let U of Z){if(!I.isArray(U))throw TypeError("Object iterator must return a key-value pair");W[z=U[0]]=(H=W[z])?I.isArray(H)?[...H,U[1]]:[H,U[1]]:U[1]}G(W,J)}else Z!=null&&X(J,Z,Y);return this}get(Z,J){if(Z=i0(Z),Z){let Y=I.findKey(this,Z);if(Y){let Q=this[Y];if(!J)return Q;if(J===!0)return LL(Q);if(I.isFunction(J))return J.call(this,Q,Y);if(I.isRegExp(J))return J.exec(Q);throw TypeError("parser must be boolean|regexp|function")}}}has(Z,J){if(Z=i0(Z),Z){let Y=I.findKey(this,Z);return!!(Y&&this[Y]!==void 0&&(!J||U9(this,this[Y],Y,J)))}return!1}delete(Z,J){let Y=this,Q=!1;function X(G){if(G=i0(G),G){let W=I.findKey(Y,G);if(W&&(!J||U9(Y,Y[W],W,J)))delete Y[W],Q=!0}}if(I.isArray(Z))Z.forEach(X);else X(Z);return Q}clear(Z){let J=Object.keys(this),Y=J.length,Q=!1;while(Y--){let X=J[Y];if(!Z||U9(this,this[X],X,Z,!0))delete this[X],Q=!0}return Q}normalize(Z){let J=this,Y={};return I.forEach(this,(Q,X)=>{let G=I.findKey(Y,X);if(G){J[G]=Z6(Q),delete J[X];return}let W=Z?FL(X):String(X).trim();if(W!==X)delete J[X];J[W]=Z6(Q),Y[W]=!0}),this}concat(...Z){return this.constructor.concat(this,...Z)}toJSON(Z){let J=Object.create(null);return I.forEach(this,(Y,Q)=>{Y!=null&&Y!==!1&&(J[Q]=Z&&I.isArray(Y)?Y.join(", "):Y)}),J}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([Z,J])=>Z+": "+J).join(`
11
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(Z){return Z instanceof this?Z:new this(Z)}static concat(Z,...J){let Y=new this(Z);return J.forEach((Q)=>Y.set(Q)),Y}static accessor(Z){let Y=(this[tY]=this[tY]={accessors:{}}).accessors,Q=this.prototype;function X(G){let W=i0(G);if(!Y[W])$L(Q,G),Y[W]=!0}return I.isArray(Z)?Z.forEach(X):X(Z),this}}r0.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);I.reduceDescriptors(r0.prototype,({value:Z},J)=>{let Y=J[0].toUpperCase()+J.slice(1);return{get:()=>Z,set(Q){this[Y]=Q}}});I.freezeMethods(r0);var L1=r0;function B9(Z,J){let Y=this||D9,Q=J||Y,X=L1.from(Q.headers),G=Q.data;return I.forEach(Z,function(H){G=H.call(Y,G,X.normalize(),J?J.status:void 0)}),X.normalize(),G}function PQ(Z){return!!(Z&&Z.__CANCEL__)}class TQ extends x{constructor(Z,J,Y){super(Z==null?"canceled":Z,x.ERR_CANCELED,J,Y);this.name="CanceledError",this.__CANCEL__=!0}}var t0=TQ;function wQ(Z,J,Y){let Q=Y.config.validateStatus;if(!Y.status||!Q||Q(Y.status))Z(Y);else J(new x("Request failed with status code "+Y.status,[x.ERR_BAD_REQUEST,x.ERR_BAD_RESPONSE][Math.floor(Y.status/100)-4],Y.config,Y.request,Y))}function OL(Z){let J=/^([-+\w]{1,25})(:?\/\/|:)/.exec(Z);return J&&J[1]||""}function VL(Z,J){Z=Z||10;let Y=Array(Z),Q=Array(Z),X=0,G=0,W;return J=J!==void 0?J:1000,function(z){let U=Date.now(),B=Q[G];if(!W)W=U;Y[X]=z,Q[X]=U;let L=G,V=0;while(L!==X)V+=Y[L++],L=L%Z;if(X=(X+1)%Z,X===G)G=(G+1)%Z;if(U-W<J)return;let M=B&&U-B;return M?Math.round(V*1000/M):void 0}}function IL(Z,J){let Y=0,Q=1000/J,X,G,W=(U,B=Date.now())=>{if(Y=B,X=null,G)clearTimeout(G),G=null;Z(...U)};return[(...U)=>{let B=Date.now(),L=B-Y;if(L>=Q)W(U,B);else if(X=U,!G)G=setTimeout(()=>{G=null,W(X)},Q-L)},()=>X&&W(X)]}var Q6=(Z,J,Y=3)=>{let Q=0,X=VL(50,250);return IL((G)=>{let W=G.loaded,H=G.lengthComputable?G.total:void 0,z=W-Q,U=X(z),B=W<=H;Q=W;let L={loaded:W,total:H,progress:H?W/H:void 0,bytes:z,rate:U?U:void 0,estimated:U&&H&&B?(H-W)/U:void 0,event:G,lengthComputable:H!=null,[J?"download":"upload"]:!0};Z(L)},Y)},eY=(Z,J)=>{let Y=Z!=null;return[(Q)=>J[0]({lengthComputable:Y,total:Z,loaded:Q}),J[1]]},ZQ=(Z)=>(...J)=>I.asap(()=>Z(...J)),qL=i.hasStandardBrowserEnv?((Z,J)=>(Y)=>{return Y=new URL(Y,i.origin),Z.protocol===Y.protocol&&Z.host===Y.host&&(J||Z.port===Y.port)})(new URL(i.origin),i.navigator&&/(msie|trident)/i.test(i.navigator.userAgent)):()=>!0,DL=i.hasStandardBrowserEnv?{write(Z,J,Y,Q,X,G,W){if(typeof document>"u")return;let H=[`${Z}=${encodeURIComponent(J)}`];if(I.isNumber(Y))H.push(`expires=${new Date(Y).toUTCString()}`);if(I.isString(Q))H.push(`path=${Q}`);if(I.isString(X))H.push(`domain=${X}`);if(G===!0)H.push("secure");if(I.isString(W))H.push(`SameSite=${W}`);document.cookie=H.join("; ")},read(Z){if(typeof document>"u")return null;let J=document.cookie.match(new RegExp("(?:^|; )"+Z+"=([^;]*)"));return J?decodeURIComponent(J[1]):null},remove(Z){this.write(Z,"",Date.now()-86400000,"/")}}:{write(){},read(){return null},remove(){}};function NL(Z){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(Z)}function AL(Z,J){return J?Z.replace(/\/?\/$/,"")+"/"+J.replace(/^\/+/,""):Z}function EQ(Z,J,Y){let Q=!NL(J);if(Z&&(Q||Y==!1))return AL(Z,J);return J}var JQ=(Z)=>Z instanceof L1?{...Z}:Z;function Q0(Z,J){J=J||{};let Y={};function Q(U,B,L,V){if(I.isPlainObject(U)&&I.isPlainObject(B))return I.merge.call({caseless:V},U,B);else if(I.isPlainObject(B))return I.merge({},B);else if(I.isArray(B))return B.slice();return B}function X(U,B,L,V){if(!I.isUndefined(B))return Q(U,B,L,V);else if(!I.isUndefined(U))return Q(void 0,U,L,V)}function G(U,B){if(!I.isUndefined(B))return Q(void 0,B)}function W(U,B){if(!I.isUndefined(B))return Q(void 0,B);else if(!I.isUndefined(U))return Q(void 0,U)}function H(U,B,L){if(L in J)return Q(U,B);else if(L in Z)return Q(void 0,U)}let z={url:G,method:G,data:G,baseURL:W,transformRequest:W,transformResponse:W,paramsSerializer:W,timeout:W,timeoutMessage:W,withCredentials:W,withXSRFToken:W,adapter:W,responseType:W,xsrfCookieName:W,xsrfHeaderName:W,onUploadProgress:W,onDownloadProgress:W,decompress:W,maxContentLength:W,maxBodyLength:W,beforeRedirect:W,transport:W,httpAgent:W,httpsAgent:W,cancelToken:W,socketPath:W,responseEncoding:W,validateStatus:H,headers:(U,B,L)=>X(JQ(U),JQ(B),L,!0)};return I.forEach(Object.keys({...Z,...J}),function(B){let L=z[B]||X,V=L(Z[B],J[B],B);I.isUndefined(V)&&L!==H||(Y[B]=V)}),Y}var SQ=(Z)=>{let J=Q0({},Z),{data:Y,withXSRFToken:Q,xsrfHeaderName:X,xsrfCookieName:G,headers:W,auth:H}=J;if(J.headers=W=L1.from(W),J.url=DQ(EQ(J.baseURL,J.url,J.allowAbsoluteUrls),Z.params,Z.paramsSerializer),H)W.set("Authorization","Basic "+btoa((H.username||"")+":"+(H.password?unescape(encodeURIComponent(H.password)):"")));if(I.isFormData(Y)){if(i.hasStandardBrowserEnv||i.hasStandardBrowserWebWorkerEnv)W.setContentType(void 0);else if(I.isFunction(Y.getHeaders)){let z=Y.getHeaders(),U=["content-type","content-length"];Object.entries(z).forEach(([B,L])=>{if(U.includes(B.toLowerCase()))W.set(B,L)})}}if(i.hasStandardBrowserEnv){if(Q&&I.isFunction(Q)&&(Q=Q(J)),Q||Q!==!1&&qL(J.url)){let z=X&&G&&DL.read(G);if(z)W.set(X,z)}}return J},RL=typeof XMLHttpRequest<"u",PL=RL&&function(Z){return new Promise(function(Y,Q){let X=SQ(Z),G=X.data,W=L1.from(X.headers).normalize(),{responseType:H,onUploadProgress:z,onDownloadProgress:U}=X,B,L,V,M,K;function F(){M&&M(),K&&K(),X.cancelToken&&X.cancelToken.unsubscribe(B),X.signal&&X.signal.removeEventListener("abort",B)}let O=new XMLHttpRequest;O.open(X.method.toUpperCase(),X.url,!0),O.timeout=X.timeout;function D(){if(!O)return;let N=L1.from("getAllResponseHeaders"in O&&O.getAllResponseHeaders()),T={data:!H||H==="text"||H==="json"?O.responseText:O.response,status:O.status,statusText:O.statusText,headers:N,config:Z,request:O};wQ(function(m){Y(m),F()},function(m){Q(m),F()},T),O=null}if("onloadend"in O)O.onloadend=D;else O.onreadystatechange=function(){if(!O||O.readyState!==4)return;if(O.status===0&&!(O.responseURL&&O.responseURL.indexOf("file:")===0))return;setTimeout(D)};if(O.onabort=function(){if(!O)return;Q(new x("Request aborted",x.ECONNABORTED,Z,O)),O=null},O.onerror=function(q){let T=q&&q.message?q.message:"Network Error",C=new x(T,x.ERR_NETWORK,Z,O);C.event=q||null,Q(C),O=null},O.ontimeout=function(){let q=X.timeout?"timeout of "+X.timeout+"ms exceeded":"timeout exceeded",T=X.transitional||AQ;if(X.timeoutErrorMessage)q=X.timeoutErrorMessage;Q(new x(q,T.clarifyTimeoutError?x.ETIMEDOUT:x.ECONNABORTED,Z,O)),O=null},G===void 0&&W.setContentType(null),"setRequestHeader"in O)I.forEach(W.toJSON(),function(q,T){O.setRequestHeader(T,q)});if(!I.isUndefined(X.withCredentials))O.withCredentials=!!X.withCredentials;if(H&&H!=="json")O.responseType=X.responseType;if(U)[V,K]=Q6(U,!0),O.addEventListener("progress",V);if(z&&O.upload)[L,M]=Q6(z),O.upload.addEventListener("progress",L),O.upload.addEventListener("loadend",M);if(X.cancelToken||X.signal){if(B=(N)=>{if(!O)return;Q(!N||N.type?new t0(null,Z,O):N),O.abort(),O=null},X.cancelToken&&X.cancelToken.subscribe(B),X.signal)X.signal.aborted?B():X.signal.addEventListener("abort",B)}let P=OL(X.url);if(P&&i.protocols.indexOf(P)===-1){Q(new x("Unsupported protocol "+P+":",x.ERR_BAD_REQUEST,Z));return}O.send(G||null)})},TL=(Z,J)=>{let{length:Y}=Z=Z?Z.filter(Boolean):[];if(J||Y){let Q=new AbortController,X,G=function(U){if(!X){X=!0,H();let B=U instanceof Error?U:this.reason;Q.abort(B instanceof x?B:new t0(B instanceof Error?B.message:B))}},W=J&&setTimeout(()=>{W=null,G(new x(`timeout of ${J}ms exceeded`,x.ETIMEDOUT))},J),H=()=>{if(Z)W&&clearTimeout(W),W=null,Z.forEach((U)=>{U.unsubscribe?U.unsubscribe(G):U.removeEventListener("abort",G)}),Z=null};Z.forEach((U)=>U.addEventListener("abort",G));let{signal:z}=Q;return z.unsubscribe=()=>I.asap(H),z}},wL=TL,EL=function*(Z,J){let Y=Z.byteLength;if(!J||Y<J){yield Z;return}let Q=0,X;while(Q<Y)X=Q+J,yield Z.slice(Q,X),Q=X},SL=async function*(Z,J){for await(let Y of xL(Z))yield*EL(Y,J)},xL=async function*(Z){if(Z[Symbol.asyncIterator]){yield*Z;return}let J=Z.getReader();try{for(;;){let{done:Y,value:Q}=await J.read();if(Y)break;yield Q}}finally{await J.cancel()}},YQ=(Z,J,Y,Q)=>{let X=SL(Z,J),G=0,W,H=(z)=>{if(!W)W=!0,Q&&Q(z)};return new ReadableStream({async pull(z){try{let{done:U,value:B}=await X.next();if(U){H(),z.close();return}let L=B.byteLength;if(Y){let V=G+=L;Y(V)}z.enqueue(new Uint8Array(B))}catch(U){throw H(U),U}},cancel(z){return H(z),X.return()}},{highWaterMark:2})},QQ=65536,{isFunction:t5}=I,CL=(({Request:Z,Response:J})=>({Request:Z,Response:J}))(I.global),{ReadableStream:XQ,TextEncoder:GQ}=I.global,WQ=(Z,...J)=>{try{return!!Z(...J)}catch(Y){return!1}},fL=(Z)=>{Z=I.merge.call({skipUndefined:!0},CL,Z);let{fetch:J,Request:Y,Response:Q}=Z,X=J?t5(J):typeof fetch==="function",G=t5(Y),W=t5(Q);if(!X)return!1;let H=X&&t5(XQ),z=X&&(typeof GQ==="function"?((K)=>(F)=>K.encode(F))(new GQ):async(K)=>new Uint8Array(await new Y(K).arrayBuffer())),U=G&&H&&WQ(()=>{let K=!1,F=new Y(i.origin,{body:new XQ,method:"POST",get duplex(){return K=!0,"half"}}).headers.has("Content-Type");return K&&!F}),B=W&&H&&WQ(()=>I.isReadableStream(new Q("").body)),L={stream:B&&((K)=>K.body)};X&&(()=>{["text","arrayBuffer","blob","formData","stream"].forEach((K)=>{!L[K]&&(L[K]=(F,O)=>{let D=F&&F[K];if(D)return D.call(F);throw new x(`Response type '${K}' is not supported`,x.ERR_NOT_SUPPORT,O)})})})();let V=async(K)=>{if(K==null)return 0;if(I.isBlob(K))return K.size;if(I.isSpecCompliantForm(K))return(await new Y(i.origin,{method:"POST",body:K}).arrayBuffer()).byteLength;if(I.isArrayBufferView(K)||I.isArrayBuffer(K))return K.byteLength;if(I.isURLSearchParams(K))K=K+"";if(I.isString(K))return(await z(K)).byteLength},M=async(K,F)=>{let O=I.toFiniteNumber(K.getContentLength());return O==null?V(F):O};return async(K)=>{let{url:F,method:O,data:D,signal:P,cancelToken:N,timeout:q,onDownloadProgress:T,onUploadProgress:C,responseType:m,headers:i1,withCredentials:x1="same-origin",fetchOptions:C1}=SQ(K),v=J||fetch;m=m?(m+"").toLowerCase():"text";let N1=wL([P,N&&N.toAbortSignal()],q),c=null,A1=N1&&N1.unsubscribe&&(()=>{N1.unsubscribe()}),$;try{if(C&&U&&O!=="get"&&O!=="head"&&($=await M(i1,D))!==0){let j1=new Y(F,{method:"POST",body:D,duplex:"half"}),W0;if(I.isFormData(D)&&(W0=j1.headers.get("content-type")))i1.setContentType(W0);if(j1.body){let[P6,U5]=eY($,Q6(ZQ(C)));D=YQ(j1.body,QQ,P6,U5)}}if(!I.isString(x1))x1=x1?"include":"omit";let X1=G&&"credentials"in Y.prototype,g={...C1,signal:N1,method:O.toUpperCase(),headers:i1.normalize().toJSON(),body:D,duplex:"half",credentials:X1?x1:void 0};c=G&&new Y(F,g);let B1=await(G?v(c,C1):v(F,g)),f1=B&&(m==="stream"||m==="response");if(B&&(T||f1&&A1)){let j1={};["status","statusText","headers"].forEach((Q7)=>{j1[Q7]=B1[Q7]});let W0=I.toFiniteNumber(B1.headers.get("content-length")),[P6,U5]=T&&eY(W0,Q6(ZQ(T),!0))||[];B1=new Q(YQ(B1.body,QQ,P6,()=>{U5&&U5(),A1&&A1()}),j1)}m=m||"text";let R1=await L[I.findKey(L,m)||"text"](B1,K);return!f1&&A1&&A1(),await new Promise((j1,W0)=>{wQ(j1,W0,{data:R1,headers:L1.from(B1.headers),status:B1.status,statusText:B1.statusText,config:K,request:c})})}catch(X1){if(A1&&A1(),X1&&X1.name==="TypeError"&&/Load failed|fetch/i.test(X1.message))throw Object.assign(new x("Network Error",x.ERR_NETWORK,K,c),{cause:X1.cause||X1});throw x.from(X1,X1&&X1.code,K,c)}}},jL=new Map,xQ=(Z)=>{let J=Z&&Z.env||{},{fetch:Y,Request:Q,Response:X}=J,G=[Q,X,Y],W=G.length,H=W,z,U,B=jL;while(H--)z=G[H],U=B.get(z),U===void 0&&B.set(z,U=H?new Map:fL(J)),B=U;return U};xQ();var N9={http:oK,xhr:PL,fetch:{get:xQ}};I.forEach(N9,(Z,J)=>{if(Z){try{Object.defineProperty(Z,"name",{value:J})}catch(Y){}Object.defineProperty(Z,"adapterName",{value:J})}});var HQ=(Z)=>`- ${Z}`,_L=(Z)=>I.isFunction(Z)||Z===null||Z===!1;function vL(Z,J){Z=I.isArray(Z)?Z:[Z];let{length:Y}=Z,Q,X,G={};for(let W=0;W<Y;W++){Q=Z[W];let H;if(X=Q,!_L(Q)){if(X=N9[(H=String(Q)).toLowerCase()],X===void 0)throw new x(`Unknown adapter '${H}'`)}if(X&&(I.isFunction(X)||(X=X.get(J))))break;G[H||"#"+W]=X}if(!X){let W=Object.entries(G).map(([z,U])=>`adapter ${z} `+(U===!1?"is not supported by the environment":"is not available in the build")),H=Y?W.length>1?`since :
9
+ */(function(){var Z=!!(typeof window<"u"&&window.document&&window.document.createElement),J={canUseDOM:Z,canUseWorkers:typeof Worker<"u",canUseEventListeners:Z&&!!(window.addEventListener||window.attachEvent),canUseViewport:Z&&!!window.screen};if(typeof define==="function"&&typeof define.amd==="object"&&define.amd)define(function(){return J});else if(typeof $5<"u"&&$5.exports)$5.exports=J;else window.ExecutionEnvironment=J})()});var o1=A((l6,e7)=>{Object.defineProperty(l6,"__esModule",{value:!0});l6.default=LW;var KW=/-webkit-|-moz-|-ms-/;function LW(Z){return typeof Z==="string"&&KW.test(Z)}e7.exports=l6.default});var J4=A((i6,Z4)=>{Object.defineProperty(i6,"__esModule",{value:!0});i6.default=VW;var FW=o1(),$W=OW(FW);function OW(Z){return Z&&Z.__esModule?Z:{default:Z}}var IW=["-webkit-","-moz-",""];function VW(Z,J){if(typeof J==="string"&&!(0,$W.default)(J)&&J.indexOf("calc(")>-1)return IW.map(function(Y){return J.replace(/calc\(/g,Y+"calc(")})}Z4.exports=i6.default});var Q4=A((n6,Y4)=>{Object.defineProperty(n6,"__esModule",{value:!0});n6.default=PW;var DW=o1(),NW=AW(DW);function AW(Z){return Z&&Z.__esModule?Z:{default:Z}}var RW=["-webkit-",""];function PW(Z,J){if(typeof J==="string"&&!(0,NW.default)(J)&&J.indexOf("cross-fade(")>-1)return RW.map(function(Y){return J.replace(/cross-fade\(/g,Y+"cross-fade(")})}Y4.exports=n6.default});var G4=A((o6,X4)=>{Object.defineProperty(o6,"__esModule",{value:!0});o6.default=SW;var wW=["-webkit-","-moz-",""],EW={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0};function SW(Z,J){if(Z==="cursor"&&EW.hasOwnProperty(J))return wW.map(function(Y){return Y+J})}X4.exports=o6.default});var H4=A((a6,W4)=>{Object.defineProperty(a6,"__esModule",{value:!0});a6.default=vW;var CW=o1(),fW=jW(CW);function jW(Z){return Z&&Z.__esModule?Z:{default:Z}}var _W=["-webkit-",""];function vW(Z,J){if(typeof J==="string"&&!(0,fW.default)(J)&&J.indexOf("filter(")>-1)return _W.map(function(Y){return J.replace(/filter\(/g,Y+"filter(")})}W4.exports=a6.default});var B4=A((s6,U4)=>{Object.defineProperty(s6,"__esModule",{value:!0});s6.default=hW;var z4={flex:["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex","flex"],"inline-flex":["-webkit-inline-box","-moz-inline-box","-ms-inline-flexbox","-webkit-inline-flex","inline-flex"]};function hW(Z,J){if(Z==="display"&&z4.hasOwnProperty(J))return z4[J]}U4.exports=s6.default});var M4=A((r6,L4)=>{Object.defineProperty(r6,"__esModule",{value:!0});r6.default=yW;var gW={"space-around":"distribute","space-between":"justify","flex-start":"start","flex-end":"end"},K4={alignContent:"msFlexLinePack",alignSelf:"msFlexItemAlign",alignItems:"msFlexAlign",justifyContent:"msFlexPack",order:"msFlexOrder",flexGrow:"msFlexPositive",flexShrink:"msFlexNegative",flexBasis:"msFlexPreferredSize"};function yW(Z,J,Y){if(K4.hasOwnProperty(Z))Y[K4[Z]]=gW[J]||J}L4.exports=r6.default});var O4=A((t6,$4)=>{Object.defineProperty(t6,"__esModule",{value:!0});t6.default=dW;var uW={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple",flex:"box","inline-flex":"inline-box"},F4={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines",flexGrow:"WebkitBoxFlex"};function dW(Z,J,Y){if(Z==="flexDirection"&&typeof J==="string"){if(J.indexOf("column")>-1)Y.WebkitBoxOrient="vertical";else Y.WebkitBoxOrient="horizontal";if(J.indexOf("reverse")>-1)Y.WebkitBoxDirection="reverse";else Y.WebkitBoxDirection="normal"}if(F4.hasOwnProperty(Z))Y[F4[Z]]=uW[J]||J}$4.exports=t6.default});var q4=A((e6,V4)=>{Object.defineProperty(e6,"__esModule",{value:!0});e6.default=oW;var pW=o1(),lW=iW(pW);function iW(Z){return Z&&Z.__esModule?Z:{default:Z}}var nW=["-webkit-","-moz-",""],I4=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/gi;function oW(Z,J){if(typeof J==="string"&&!(0,lW.default)(J)&&I4.test(J))return nW.map(function(Y){return J.replace(I4,function(Q){return Y+Q})})}V4.exports=e6.default});var N4=A((Z8,D4)=>{Object.defineProperty(Z8,"__esModule",{value:!0});Z8.default=ZH;var sW=o1(),rW=tW(sW);function tW(Z){return Z&&Z.__esModule?Z:{default:Z}}var eW=["-webkit-",""];function ZH(Z,J){if(typeof J==="string"&&!(0,rW.default)(J)&&J.indexOf("image-set(")>-1)return eW.map(function(Y){return J.replace(/image-set\(/g,Y+"image-set(")})}D4.exports=Z8.default});var R4=A((J8,A4)=>{Object.defineProperty(J8,"__esModule",{value:!0});J8.default=YH;function YH(Z,J){if(Z==="position"&&J==="sticky")return["-webkit-sticky","sticky"]}A4.exports=J8.default});var T4=A((Y8,P4)=>{Object.defineProperty(Y8,"__esModule",{value:!0});Y8.default=HH;var XH=["-webkit-","-moz-",""],GH={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},WH={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};function HH(Z,J){if(GH.hasOwnProperty(Z)&&WH.hasOwnProperty(J))return XH.map(function(Y){return Y+J})}P4.exports=Y8.default});var E4=A((u$,w4)=>{var UH=/[A-Z]/g,BH=/^ms-/,Q8={};function KH(Z){return"-"+Z.toLowerCase()}function LH(Z){if(Q8.hasOwnProperty(Z))return Q8[Z];var J=Z.replace(UH,KH);return Q8[Z]=BH.test(J)?"-"+J:J}w4.exports=LH});var G8=A((X8,S4)=>{Object.defineProperty(X8,"__esModule",{value:!0});X8.default=OH;var MH=E4(),FH=$H(MH);function $H(Z){return Z&&Z.__esModule?Z:{default:Z}}function OH(Z){return(0,FH.default)(Z)}S4.exports=X8.default});var f4=A((H8,C4)=>{Object.defineProperty(H8,"__esModule",{value:!0});H8.default=wH;var VH=G8(),qH=W8(VH),DH=o1(),NH=W8(DH),AH=L5(),x4=W8(AH);function W8(Z){return Z&&Z.__esModule?Z:{default:Z}}var RH={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},PH={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"};function TH(Z,J){if((0,NH.default)(Z))return Z;var Y=Z.split(/,(?![^()]*(?:\([^()]*\))?\))/g);for(var Q=0,X=Y.length;Q<X;++Q){var G=Y[Q],W=[G];for(var H in J){var z=(0,qH.default)(H);if(G.indexOf(z)>-1&&z!=="order"){var U=J[H];for(var B=0,L=U.length;B<L;++B)W.unshift(G.replace(z,PH[U[B]]+z))}}Y[Q]=W.join(",")}return Y.join(",")}function wH(Z,J,Y,Q){if(typeof J==="string"&&RH.hasOwnProperty(Z)){var X=TH(J,Q),G=X.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(H){return!/-moz-|-ms-/.test(H)}).join(",");if(Z.indexOf("Webkit")>-1)return G;var W=X.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(H){return!/-webkit-|-ms-/.test(H)}).join(",");if(Z.indexOf("Moz")>-1)return W;return Y["Webkit"+(0,x4.default)(Z)]=G,Y["Moz"+(0,x4.default)(Z)]=W,X}}C4.exports=H8.default});var G1=A((U8,l4)=>{Object.defineProperty(U8,"__esModule",{value:!0});U8.default=SH;function SH(Z,J,Y){if(Y)return[Z,J];return Z}l4.exports=U8.default});var n4=A((B8,i4)=>{Object.defineProperty(B8,"__esModule",{value:!0});B8.default=_H;var CH=G1(),fH=jH(CH);function jH(Z){return Z&&Z.__esModule?Z:{default:Z}}function _H(Z,J,Y,Q){var{browserName:X,browserVersion:G,cssPrefix:W,keepUnprefixed:H}=Q;if(typeof J==="string"&&J.indexOf("calc(")>-1&&(X==="firefox"&&G<15||X==="chrome"&&G<25||X==="safari"&&G<6.1||X==="ios_saf"&&G<7))return(0,fH.default)(J.replace(/calc\(/g,W+"calc("),J,H)}i4.exports=B8.default});var a4=A((K8,o4)=>{Object.defineProperty(K8,"__esModule",{value:!0});K8.default=gH;var kH=G1(),hH=bH(kH);function bH(Z){return Z&&Z.__esModule?Z:{default:Z}}function gH(Z,J,Y,Q){var{browserName:X,browserVersion:G,cssPrefix:W,keepUnprefixed:H}=Q;if(typeof J==="string"&&J.indexOf("cross-fade(")>-1&&(X==="chrome"||X==="opera"||X==="and_chr"||(X==="ios_saf"||X==="safari")&&G<10))return(0,hH.default)(J.replace(/cross-fade\(/g,W+"cross-fade("),J,H)}o4.exports=K8.default});var t4=A((L8,r4)=>{Object.defineProperty(L8,"__esModule",{value:!0});L8.default=pH;var mH=G1(),s4=uH(mH);function uH(Z){return Z&&Z.__esModule?Z:{default:Z}}var dH={grab:!0,grabbing:!0},cH={"zoom-in":!0,"zoom-out":!0};function pH(Z,J,Y,Q){var{browserName:X,browserVersion:G,cssPrefix:W,keepUnprefixed:H}=Q;if(Z==="cursor"&&dH[J]&&(X==="firefox"||X==="chrome"||X==="safari"||X==="opera"))return(0,s4.default)(W+J,J,H);if(Z==="cursor"&&cH[J]&&(X==="firefox"&&G<24||X==="chrome"&&G<37||X==="safari"&&G<9||X==="opera"&&G<24))return(0,s4.default)(W+J,J,H)}r4.exports=L8.default});var ZZ=A((M8,e4)=>{Object.defineProperty(M8,"__esModule",{value:!0});M8.default=aH;var iH=G1(),nH=oH(iH);function oH(Z){return Z&&Z.__esModule?Z:{default:Z}}function aH(Z,J,Y,Q){var{browserName:X,browserVersion:G,cssPrefix:W,keepUnprefixed:H}=Q;if(typeof J==="string"&&J.indexOf("filter(")>-1&&(X==="ios_saf"||X==="safari"&&G<9.1))return(0,nH.default)(J.replace(/filter\(/g,W+"filter("),J,H)}e4.exports=M8.default});var YZ=A((F8,JZ)=>{Object.defineProperty(F8,"__esModule",{value:!0});F8.default=Jz;var rH=G1(),tH=eH(rH);function eH(Z){return Z&&Z.__esModule?Z:{default:Z}}var Zz={flex:!0,"inline-flex":!0};function Jz(Z,J,Y,Q){var{browserName:X,browserVersion:G,cssPrefix:W,keepUnprefixed:H}=Q;if(Z==="display"&&Zz[J]&&(X==="chrome"&&G<29&&G>20||(X==="safari"||X==="ios_saf")&&G<9&&G>6||X==="opera"&&(G===15||G===16)))return(0,tH.default)(W+J,J,H)}JZ.exports=F8.default});var XZ=A((I8,QZ)=>{Object.defineProperty(I8,"__esModule",{value:!0});I8.default=Wz;var Qz=G1(),Xz=Gz(Qz);function Gz(Z){return Z&&Z.__esModule?Z:{default:Z}}var $8={"space-around":"distribute","space-between":"justify","flex-start":"start","flex-end":"end",flex:"flexbox","inline-flex":"inline-flexbox"},O8={alignContent:"msFlexLinePack",alignSelf:"msFlexItemAlign",alignItems:"msFlexAlign",justifyContent:"msFlexPack",order:"msFlexOrder",flexGrow:"msFlexPositive",flexShrink:"msFlexNegative",flexBasis:"msFlexPreferredSize"};function Wz(Z,J,Y,Q){var{browserName:X,browserVersion:G,cssPrefix:W,keepUnprefixed:H,requiresPrefix:z}=Q;if((O8.hasOwnProperty(Z)||Z==="display"&&typeof J==="string"&&J.indexOf("flex")>-1)&&(X==="ie_mob"||X==="ie")&&G===10){if(delete z[Z],!H&&!Array.isArray(Y[Z]))delete Y[Z];if(Z==="display"&&$8.hasOwnProperty(J))return(0,Xz.default)(W+$8[J],J,H);if(O8.hasOwnProperty(Z))Y[O8[Z]]=$8[J]||J}}QZ.exports=I8.default});var WZ=A((D8,GZ)=>{Object.defineProperty(D8,"__esModule",{value:!0});D8.default=Mz;var zz=G1(),Uz=Bz(zz);function Bz(Z){return Z&&Z.__esModule?Z:{default:Z}}var V8={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple",flex:"box","inline-flex":"inline-box"},q8={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines",flexGrow:"WebkitBoxFlex"},Kz=["alignContent","alignSelf","order","flexGrow","flexShrink","flexBasis","flexDirection"],Lz=Object.keys(q8).concat(Kz);function Mz(Z,J,Y,Q){var{browserName:X,browserVersion:G,cssPrefix:W,keepUnprefixed:H,requiresPrefix:z}=Q;if((Lz.indexOf(Z)>-1||Z==="display"&&typeof J==="string"&&J.indexOf("flex")>-1)&&(X==="firefox"&&G<22||X==="chrome"&&G<21||(X==="safari"||X==="ios_saf")&&G<=6.1||X==="android"&&G<4.4||X==="and_uc")){if(delete z[Z],!H&&!Array.isArray(Y[Z]))delete Y[Z];if(Z==="flexDirection"&&typeof J==="string"){if(J.indexOf("column")>-1)Y.WebkitBoxOrient="vertical";else Y.WebkitBoxOrient="horizontal";if(J.indexOf("reverse")>-1)Y.WebkitBoxDirection="reverse";else Y.WebkitBoxDirection="normal"}if(Z==="display"&&V8.hasOwnProperty(J))return(0,Uz.default)(W+V8[J],J,H);if(q8.hasOwnProperty(Z))Y[q8[Z]]=V8[J]||J}}GZ.exports=D8.default});var UZ=A((N8,zZ)=>{Object.defineProperty(N8,"__esModule",{value:!0});N8.default=Vz;var $z=G1(),Oz=Iz($z);function Iz(Z){return Z&&Z.__esModule?Z:{default:Z}}var HZ=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/gi;function Vz(Z,J,Y,Q){var{browserName:X,browserVersion:G,cssPrefix:W,keepUnprefixed:H}=Q;if(typeof J==="string"&&HZ.test(J)&&(X==="firefox"&&G<16||X==="chrome"&&G<26||(X==="safari"||X==="ios_saf")&&G<7||(X==="opera"||X==="op_mini")&&G<12.1||X==="android"&&G<4.4||X==="and_uc"))return(0,Oz.default)(J.replace(HZ,function(z){return W+z}),J,H)}zZ.exports=N8.default});var KZ=A((A8,BZ)=>{Object.defineProperty(A8,"__esModule",{value:!0});A8.default=Rz;var Dz=G1(),Nz=Az(Dz);function Az(Z){return Z&&Z.__esModule?Z:{default:Z}}function Rz(Z,J,Y,Q){var{browserName:X,cssPrefix:G,keepUnprefixed:W}=Q;if(typeof J==="string"&&J.indexOf("image-set(")>-1&&(X==="chrome"||X==="opera"||X==="and_chr"||X==="and_uc"||X==="ios_saf"||X==="safari"))return(0,Nz.default)(J.replace(/image-set\(/g,G+"image-set("),J,W)}BZ.exports=A8.default});var MZ=A((R8,LZ)=>{Object.defineProperty(R8,"__esModule",{value:!0});R8.default=Sz;var Tz=G1(),wz=Ez(Tz);function Ez(Z){return Z&&Z.__esModule?Z:{default:Z}}function Sz(Z,J,Y,Q){var{browserName:X,cssPrefix:G,keepUnprefixed:W}=Q;if(Z==="position"&&J==="sticky"&&(X==="safari"||X==="ios_saf"))return(0,wz.default)(G+J,J,W)}LZ.exports=R8.default});var $Z=A((P8,FZ)=>{Object.defineProperty(P8,"__esModule",{value:!0});P8.default=kz;var Cz=G1(),fz=jz(Cz);function jz(Z){return Z&&Z.__esModule?Z:{default:Z}}var _z={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},vz={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};function kz(Z,J,Y,Q){var{cssPrefix:X,keepUnprefixed:G}=Q;if(_z.hasOwnProperty(Z)&&vz.hasOwnProperty(J))return(0,fz.default)(X+J,J,G)}FZ.exports=P8.default});var IZ=A((w8,OZ)=>{Object.defineProperty(w8,"__esModule",{value:!0});w8.default=uz;var bz=G8(),gz=yz(bz);function yz(Z){return Z&&Z.__esModule?Z:{default:Z}}var mz={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},T8=void 0;function uz(Z,J,Y,Q){var{cssPrefix:X,keepUnprefixed:G,requiresPrefix:W}=Q;if(typeof J==="string"&&mz.hasOwnProperty(Z)){if(!T8)T8=Object.keys(W).map(function(z){return(0,gz.default)(z)});var H=J.split(/,(?![^()]*(?:\([^()]*\))?\))/g);return T8.forEach(function(z){H.forEach(function(U,B){if(U.indexOf(z)>-1&&z!=="order")H[B]=U.replace(z,X+z)+(G?","+U:"")})}),H.join(",")}}OZ.exports=w8.default});var iY={};H7(iY,{default:()=>zK,__values:()=>r5,__spreadArrays:()=>jY,__spreadArray:()=>_Y,__spread:()=>fY,__setFunctionName:()=>wY,__runInitializers:()=>PY,__rewriteRelativeImportExtension:()=>lY,__rest:()=>DY,__read:()=>z9,__propKey:()=>TY,__param:()=>AY,__metadata:()=>EY,__makeTemplateObject:()=>bY,__importStar:()=>gY,__importDefault:()=>yY,__generator:()=>xY,__extends:()=>qY,__exportStar:()=>CY,__esDecorate:()=>RY,__disposeResources:()=>pY,__decorate:()=>NY,__createBinding:()=>t5,__classPrivateFieldSet:()=>uY,__classPrivateFieldIn:()=>dY,__classPrivateFieldGet:()=>mY,__awaiter:()=>SY,__await:()=>V0,__asyncValues:()=>hY,__asyncGenerator:()=>vY,__asyncDelegator:()=>kY,__assign:()=>s5,__addDisposableResource:()=>cY});function qY(Z,J){if(typeof J!=="function"&&J!==null)throw TypeError("Class extends value "+String(J)+" is not a constructor or null");W9(Z,J);function Y(){this.constructor=Z}Z.prototype=J===null?Object.create(J):(Y.prototype=J.prototype,new Y)}function DY(Z,J){var Y={};for(var Q in Z)if(Object.prototype.hasOwnProperty.call(Z,Q)&&J.indexOf(Q)<0)Y[Q]=Z[Q];if(Z!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var X=0,Q=Object.getOwnPropertySymbols(Z);X<Q.length;X++)if(J.indexOf(Q[X])<0&&Object.prototype.propertyIsEnumerable.call(Z,Q[X]))Y[Q[X]]=Z[Q[X]]}return Y}function NY(Z,J,Y,Q){var X=arguments.length,G=X<3?J:Q===null?Q=Object.getOwnPropertyDescriptor(J,Y):Q,W;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")G=Reflect.decorate(Z,J,Y,Q);else for(var H=Z.length-1;H>=0;H--)if(W=Z[H])G=(X<3?W(G):X>3?W(J,Y,G):W(J,Y))||G;return X>3&&G&&Object.defineProperty(J,Y,G),G}function AY(Z,J){return function(Y,Q){J(Y,Q,Z)}}function RY(Z,J,Y,Q,X,G){function W(D){if(D!==void 0&&typeof D!=="function")throw TypeError("Function expected");return D}var H=Q.kind,z=H==="getter"?"get":H==="setter"?"set":"value",U=!J&&Z?Q.static?Z:Z.prototype:null,B=J||(U?Object.getOwnPropertyDescriptor(U,Q.name):{}),L,I=!1;for(var M=Y.length-1;M>=0;M--){var K={};for(var F in Q)K[F]=F==="access"?{}:Q[F];for(var F in Q.access)K.access[F]=Q.access[F];K.addInitializer=function(D){if(I)throw TypeError("Cannot add initializers after decoration has completed");G.push(W(D||null))};var O=(0,Y[M])(H==="accessor"?{get:B.get,set:B.set}:B[z],K);if(H==="accessor"){if(O===void 0)continue;if(O===null||typeof O!=="object")throw TypeError("Object expected");if(L=W(O.get))B.get=L;if(L=W(O.set))B.set=L;if(L=W(O.init))X.unshift(L)}else if(L=W(O))if(H==="field")X.unshift(L);else B[z]=L}if(U)Object.defineProperty(U,Q.name,B);I=!0}function PY(Z,J,Y){var Q=arguments.length>2;for(var X=0;X<J.length;X++)Y=Q?J[X].call(Z,Y):J[X].call(Z);return Q?Y:void 0}function TY(Z){return typeof Z==="symbol"?Z:"".concat(Z)}function wY(Z,J,Y){if(typeof J==="symbol")J=J.description?"[".concat(J.description,"]"):"";return Object.defineProperty(Z,"name",{configurable:!0,value:Y?"".concat(Y," ",J):J})}function EY(Z,J){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(Z,J)}function SY(Z,J,Y,Q){function X(G){return G instanceof Y?G:new Y(function(W){W(G)})}return new(Y||(Y=Promise))(function(G,W){function H(B){try{U(Q.next(B))}catch(L){W(L)}}function z(B){try{U(Q.throw(B))}catch(L){W(L)}}function U(B){B.done?G(B.value):X(B.value).then(H,z)}U((Q=Q.apply(Z,J||[])).next())})}function xY(Z,J){var Y={label:0,sent:function(){if(G[0]&1)throw G[1];return G[1]},trys:[],ops:[]},Q,X,G,W=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return W.next=H(0),W.throw=H(1),W.return=H(2),typeof Symbol==="function"&&(W[Symbol.iterator]=function(){return this}),W;function H(U){return function(B){return z([U,B])}}function z(U){if(Q)throw TypeError("Generator is already executing.");while(W&&(W=0,U[0]&&(Y=0)),Y)try{if(Q=1,X&&(G=U[0]&2?X.return:U[0]?X.throw||((G=X.return)&&G.call(X),0):X.next)&&!(G=G.call(X,U[1])).done)return G;if(X=0,G)U=[U[0]&2,G.value];switch(U[0]){case 0:case 1:G=U;break;case 4:return Y.label++,{value:U[1],done:!1};case 5:Y.label++,X=U[1],U=[0];continue;case 7:U=Y.ops.pop(),Y.trys.pop();continue;default:if((G=Y.trys,!(G=G.length>0&&G[G.length-1]))&&(U[0]===6||U[0]===2)){Y=0;continue}if(U[0]===3&&(!G||U[1]>G[0]&&U[1]<G[3])){Y.label=U[1];break}if(U[0]===6&&Y.label<G[1]){Y.label=G[1],G=U;break}if(G&&Y.label<G[2]){Y.label=G[2],Y.ops.push(U);break}if(G[2])Y.ops.pop();Y.trys.pop();continue}U=J.call(Z,Y)}catch(B){U=[6,B],X=0}finally{Q=G=0}if(U[0]&5)throw U[1];return{value:U[0]?U[1]:void 0,done:!0}}}function CY(Z,J){for(var Y in Z)if(Y!=="default"&&!Object.prototype.hasOwnProperty.call(J,Y))t5(J,Z,Y)}function r5(Z){var J=typeof Symbol==="function"&&Symbol.iterator,Y=J&&Z[J],Q=0;if(Y)return Y.call(Z);if(Z&&typeof Z.length==="number")return{next:function(){if(Z&&Q>=Z.length)Z=void 0;return{value:Z&&Z[Q++],done:!Z}}};throw TypeError(J?"Object is not iterable.":"Symbol.iterator is not defined.")}function z9(Z,J){var Y=typeof Symbol==="function"&&Z[Symbol.iterator];if(!Y)return Z;var Q=Y.call(Z),X,G=[],W;try{while((J===void 0||J-- >0)&&!(X=Q.next()).done)G.push(X.value)}catch(H){W={error:H}}finally{try{if(X&&!X.done&&(Y=Q.return))Y.call(Q)}finally{if(W)throw W.error}}return G}function fY(){for(var Z=[],J=0;J<arguments.length;J++)Z=Z.concat(z9(arguments[J]));return Z}function jY(){for(var Z=0,J=0,Y=arguments.length;J<Y;J++)Z+=arguments[J].length;for(var Q=Array(Z),X=0,J=0;J<Y;J++)for(var G=arguments[J],W=0,H=G.length;W<H;W++,X++)Q[X]=G[W];return Q}function _Y(Z,J,Y){if(Y||arguments.length===2){for(var Q=0,X=J.length,G;Q<X;Q++)if(G||!(Q in J)){if(!G)G=Array.prototype.slice.call(J,0,Q);G[Q]=J[Q]}}return Z.concat(G||Array.prototype.slice.call(J))}function V0(Z){return this instanceof V0?(this.v=Z,this):new V0(Z)}function vY(Z,J,Y){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var Q=Y.apply(Z,J||[]),X,G=[];return X=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),H("next"),H("throw"),H("return",W),X[Symbol.asyncIterator]=function(){return this},X;function W(M){return function(K){return Promise.resolve(K).then(M,L)}}function H(M,K){if(Q[M]){if(X[M]=function(F){return new Promise(function(O,D){G.push([M,F,O,D])>1||z(M,F)})},K)X[M]=K(X[M])}}function z(M,K){try{U(Q[M](K))}catch(F){I(G[0][3],F)}}function U(M){M.value instanceof V0?Promise.resolve(M.value.v).then(B,L):I(G[0][2],M)}function B(M){z("next",M)}function L(M){z("throw",M)}function I(M,K){if(M(K),G.shift(),G.length)z(G[0][0],G[0][1])}}function kY(Z){var J,Y;return J={},Q("next"),Q("throw",function(X){throw X}),Q("return"),J[Symbol.iterator]=function(){return this},J;function Q(X,G){J[X]=Z[X]?function(W){return(Y=!Y)?{value:V0(Z[X](W)),done:!1}:G?G(W):W}:G}}function hY(Z){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var J=Z[Symbol.asyncIterator],Y;return J?J.call(Z):(Z=typeof r5==="function"?r5(Z):Z[Symbol.iterator](),Y={},Q("next"),Q("throw"),Q("return"),Y[Symbol.asyncIterator]=function(){return this},Y);function Q(G){Y[G]=Z[G]&&function(W){return new Promise(function(H,z){W=Z[G](W),X(H,z,W.done,W.value)})}}function X(G,W,H,z){Promise.resolve(z).then(function(U){G({value:U,done:H})},W)}}function bY(Z,J){if(Object.defineProperty)Object.defineProperty(Z,"raw",{value:J});else Z.raw=J;return Z}function gY(Z){if(Z&&Z.__esModule)return Z;var J={};if(Z!=null){for(var Y=H9(Z),Q=0;Q<Y.length;Q++)if(Y[Q]!=="default")t5(J,Z,Y[Q])}return WK(J,Z),J}function yY(Z){return Z&&Z.__esModule?Z:{default:Z}}function mY(Z,J,Y,Q){if(Y==="a"&&!Q)throw TypeError("Private accessor was defined without a getter");if(typeof J==="function"?Z!==J||!Q:!J.has(Z))throw TypeError("Cannot read private member from an object whose class did not declare it");return Y==="m"?Q:Y==="a"?Q.call(Z):Q?Q.value:J.get(Z)}function uY(Z,J,Y,Q,X){if(Q==="m")throw TypeError("Private method is not writable");if(Q==="a"&&!X)throw TypeError("Private accessor was defined without a setter");if(typeof J==="function"?Z!==J||!X:!J.has(Z))throw TypeError("Cannot write private member to an object whose class did not declare it");return Q==="a"?X.call(Z,Y):X?X.value=Y:J.set(Z,Y),Y}function dY(Z,J){if(J===null||typeof J!=="object"&&typeof J!=="function")throw TypeError("Cannot use 'in' operator on non-object");return typeof Z==="function"?J===Z:Z.has(J)}function cY(Z,J,Y){if(J!==null&&J!==void 0){if(typeof J!=="object"&&typeof J!=="function")throw TypeError("Object expected.");var Q,X;if(Y){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");Q=J[Symbol.asyncDispose]}if(Q===void 0){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");if(Q=J[Symbol.dispose],Y)X=Q}if(typeof Q!=="function")throw TypeError("Object not disposable.");if(X)Q=function(){try{X.call(this)}catch(G){return Promise.reject(G)}};Z.stack.push({value:J,dispose:Q,async:Y})}else if(Y)Z.stack.push({async:!0});return J}function pY(Z){function J(G){Z.error=Z.hasError?new HK(G,Z.error,"An error was suppressed during disposal."):G,Z.hasError=!0}var Y,Q=0;function X(){while(Y=Z.stack.pop())try{if(!Y.async&&Q===1)return Q=0,Z.stack.push(Y),Promise.resolve().then(X);if(Y.dispose){var G=Y.dispose.call(Y.value);if(Y.async)return Q|=2,Promise.resolve(G).then(X,function(W){return J(W),X()})}else Q|=1}catch(W){J(W)}if(Q===1)return Z.hasError?Promise.reject(Z.error):Promise.resolve();if(Z.hasError)throw Z.error}return X()}function lY(Z,J){if(typeof Z==="string"&&/^\.\.?\//.test(Z))return Z.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(Y,Q,X,G,W){return Q?J?".jsx":".js":X&&(!G||!W)?Y:X+G+"."+W.toLowerCase()+"js"});return Z}var W9=function(Z,J){return W9=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,Q){Y.__proto__=Q}||function(Y,Q){for(var X in Q)if(Object.prototype.hasOwnProperty.call(Q,X))Y[X]=Q[X]},W9(Z,J)},s5=function(){return s5=Object.assign||function(J){for(var Y,Q=1,X=arguments.length;Q<X;Q++){Y=arguments[Q];for(var G in Y)if(Object.prototype.hasOwnProperty.call(Y,G))J[G]=Y[G]}return J},s5.apply(this,arguments)},t5,WK,H9=function(Z){return H9=Object.getOwnPropertyNames||function(J){var Y=[];for(var Q in J)if(Object.prototype.hasOwnProperty.call(J,Q))Y[Y.length]=Q;return Y},H9(Z)},HK,zK;var nY=z7(()=>{t5=Object.create?function(Z,J,Y,Q){if(Q===void 0)Q=Y;var X=Object.getOwnPropertyDescriptor(J,Y);if(!X||("get"in X?!J.__esModule:X.writable||X.configurable))X={enumerable:!0,get:function(){return J[Y]}};Object.defineProperty(Z,Q,X)}:function(Z,J,Y,Q){if(Q===void 0)Q=Y;Z[Q]=J[Y]};WK=Object.create?function(Z,J){Object.defineProperty(Z,"default",{enumerable:!0,value:J})}:function(Z,J){Z.default=J};HK=typeof SuppressedError==="function"?SuppressedError:function(Z,J,Y){var Q=Error(Y);return Q.name="SuppressedError",Q.error=Z,Q.suppressed=J,Q};zK={__extends:qY,__assign:s5,__rest:DY,__decorate:NY,__param:AY,__esDecorate:RY,__runInitializers:PY,__propKey:TY,__setFunctionName:wY,__metadata:EY,__awaiter:SY,__generator:xY,__createBinding:t5,__exportStar:CY,__values:r5,__read:z9,__spread:fY,__spreadArrays:jY,__spreadArray:_Y,__await:V0,__asyncGenerator:vY,__asyncDelegator:kY,__asyncValues:hY,__makeTemplateObject:bY,__importStar:gY,__importDefault:yY,__classPrivateFieldGet:mY,__classPrivateFieldSet:uY,__classPrivateFieldIn:dY,__addDisposableResource:cY,__disposeResources:pY,__rewriteRelativeImportExtension:lY}});var vQ=A((fq,_Q)=>{/*! Axios v1.13.4 Copyright (c) 2026 Matt Zabriskie and contributors */function BQ(Z,J){return function(){return Z.apply(J,arguments)}}var{toString:UK}=Object.prototype,{getPrototypeOf:O9}=Object,{iterator:G6,toStringTag:KQ}=Symbol,W6=((Z)=>(J)=>{let Y=UK.call(J);return Z[Y]||(Z[Y]=Y.slice(8,-1).toLowerCase())})(Object.create(null)),M1=(Z)=>{return Z=Z.toLowerCase(),(J)=>W6(J)===Z},H6=(Z)=>(J)=>typeof J===Z,{isArray:D0}=Array,q0=H6("undefined");function o0(Z){return Z!==null&&!q0(Z)&&Z.constructor!==null&&!q0(Z.constructor)&&t(Z.constructor.isBuffer)&&Z.constructor.isBuffer(Z)}var LQ=M1("ArrayBuffer");function BK(Z){let J;if(typeof ArrayBuffer<"u"&&ArrayBuffer.isView)J=ArrayBuffer.isView(Z);else J=Z&&Z.buffer&&LQ(Z.buffer);return J}var KK=H6("string"),t=H6("function"),MQ=H6("number"),a0=(Z)=>Z!==null&&typeof Z==="object",LK=(Z)=>Z===!0||Z===!1,Z6=(Z)=>{if(W6(Z)!=="object")return!1;let J=O9(Z);return(J===null||J===Object.prototype||Object.getPrototypeOf(J)===null)&&!(KQ in Z)&&!(G6 in Z)},MK=(Z)=>{if(!a0(Z)||o0(Z))return!1;try{return Object.keys(Z).length===0&&Object.getPrototypeOf(Z)===Object.prototype}catch(J){return!1}},FK=M1("Date"),$K=M1("File"),OK=M1("Blob"),IK=M1("FileList"),VK=(Z)=>a0(Z)&&t(Z.pipe),qK=(Z)=>{let J;return Z&&(typeof FormData==="function"&&Z instanceof FormData||t(Z.append)&&((J=W6(Z))==="formdata"||J==="object"&&t(Z.toString)&&Z.toString()==="[object FormData]"))},DK=M1("URLSearchParams"),[NK,AK,RK,PK]=["ReadableStream","Request","Response","Headers"].map(M1),TK=(Z)=>Z.trim?Z.trim():Z.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function s0(Z,J,{allOwnKeys:Y=!1}={}){if(Z===null||typeof Z>"u")return;let Q,X;if(typeof Z!=="object")Z=[Z];if(D0(Z))for(Q=0,X=Z.length;Q<X;Q++)J.call(null,Z[Q],Q,Z);else{if(o0(Z))return;let G=Y?Object.getOwnPropertyNames(Z):Object.keys(Z),W=G.length,H;for(Q=0;Q<W;Q++)H=G[Q],J.call(null,Z[H],H,Z)}}function FQ(Z,J){if(o0(Z))return null;J=J.toLowerCase();let Y=Object.keys(Z),Q=Y.length,X;while(Q-- >0)if(X=Y[Q],J===X.toLowerCase())return X;return null}var Y0=(()=>{if(typeof globalThis<"u")return globalThis;return typeof self<"u"?self:typeof window<"u"?window:global})(),$Q=(Z)=>!q0(Z)&&Z!==Y0;function L9(){let{caseless:Z,skipUndefined:J}=$Q(this)&&this||{},Y={},Q=(X,G)=>{let W=Z&&FQ(Y,G)||G;if(Z6(Y[W])&&Z6(X))Y[W]=L9(Y[W],X);else if(Z6(X))Y[W]=L9({},X);else if(D0(X))Y[W]=X.slice();else if(!J||!q0(X))Y[W]=X};for(let X=0,G=arguments.length;X<G;X++)arguments[X]&&s0(arguments[X],Q);return Y}var wK=(Z,J,Y,{allOwnKeys:Q}={})=>{return s0(J,(X,G)=>{if(Y&&t(X))Object.defineProperty(Z,G,{value:BQ(X,Y),writable:!0,enumerable:!0,configurable:!0});else Object.defineProperty(Z,G,{value:X,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:Q}),Z},EK=(Z)=>{if(Z.charCodeAt(0)===65279)Z=Z.slice(1);return Z},SK=(Z,J,Y,Q)=>{Z.prototype=Object.create(J.prototype,Q),Object.defineProperty(Z.prototype,"constructor",{value:Z,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(Z,"super",{value:J.prototype}),Y&&Object.assign(Z.prototype,Y)},xK=(Z,J,Y,Q)=>{let X,G,W,H={};if(J=J||{},Z==null)return J;do{X=Object.getOwnPropertyNames(Z),G=X.length;while(G-- >0)if(W=X[G],(!Q||Q(W,Z,J))&&!H[W])J[W]=Z[W],H[W]=!0;Z=Y!==!1&&O9(Z)}while(Z&&(!Y||Y(Z,J))&&Z!==Object.prototype);return J},CK=(Z,J,Y)=>{if(Z=String(Z),Y===void 0||Y>Z.length)Y=Z.length;Y-=J.length;let Q=Z.indexOf(J,Y);return Q!==-1&&Q===Y},fK=(Z)=>{if(!Z)return null;if(D0(Z))return Z;let J=Z.length;if(!MQ(J))return null;let Y=Array(J);while(J-- >0)Y[J]=Z[J];return Y},jK=((Z)=>{return(J)=>{return Z&&J instanceof Z}})(typeof Uint8Array<"u"&&O9(Uint8Array)),_K=(Z,J)=>{let Q=(Z&&Z[G6]).call(Z),X;while((X=Q.next())&&!X.done){let G=X.value;J.call(Z,G[0],G[1])}},vK=(Z,J)=>{let Y,Q=[];while((Y=Z.exec(J))!==null)Q.push(Y);return Q},kK=M1("HTMLFormElement"),hK=(Z)=>{return Z.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(Y,Q,X){return Q.toUpperCase()+X})},oY=(({hasOwnProperty:Z})=>(J,Y)=>Z.call(J,Y))(Object.prototype),bK=M1("RegExp"),OQ=(Z,J)=>{let Y=Object.getOwnPropertyDescriptors(Z),Q={};s0(Y,(X,G)=>{let W;if((W=J(X,G,Z))!==!1)Q[G]=W||X}),Object.defineProperties(Z,Q)},gK=(Z)=>{OQ(Z,(J,Y)=>{if(t(Z)&&["arguments","caller","callee"].indexOf(Y)!==-1)return!1;let Q=Z[Y];if(!t(Q))return;if(J.enumerable=!1,"writable"in J){J.writable=!1;return}if(!J.set)J.set=()=>{throw Error("Can not rewrite read-only method '"+Y+"'")}})},yK=(Z,J)=>{let Y={},Q=(X)=>{X.forEach((G)=>{Y[G]=!0})};return D0(Z)?Q(Z):Q(String(Z).split(J)),Y},mK=()=>{},uK=(Z,J)=>{return Z!=null&&Number.isFinite(Z=+Z)?Z:J};function dK(Z){return!!(Z&&t(Z.append)&&Z[KQ]==="FormData"&&Z[G6])}var cK=(Z)=>{let J=[,,,,,,,,,,],Y=(Q,X)=>{if(a0(Q)){if(J.indexOf(Q)>=0)return;if(o0(Q))return Q;if(!("toJSON"in Q)){J[X]=Q;let G=D0(Q)?[]:{};return s0(Q,(W,H)=>{let z=Y(W,X+1);!q0(z)&&(G[H]=z)}),J[X]=void 0,G}}return Q};return Y(Z,0)},pK=M1("AsyncFunction"),lK=(Z)=>Z&&(a0(Z)||t(Z))&&t(Z.then)&&t(Z.catch),IQ=((Z,J)=>{if(Z)return setImmediate;return J?((Y,Q)=>{return Y0.addEventListener("message",({source:X,data:G})=>{if(X===Y0&&G===Y)Q.length&&Q.shift()()},!1),(X)=>{Q.push(X),Y0.postMessage(Y,"*")}})(`axios@${Math.random()}`,[]):(Y)=>setTimeout(Y)})(typeof setImmediate==="function",t(Y0.postMessage)),iK=typeof queueMicrotask<"u"?queueMicrotask.bind(Y0):typeof process<"u"&&process.nextTick||IQ,nK=(Z)=>Z!=null&&t(Z[G6]),V={isArray:D0,isArrayBuffer:LQ,isBuffer:o0,isFormData:qK,isArrayBufferView:BK,isString:KK,isNumber:MQ,isBoolean:LK,isObject:a0,isPlainObject:Z6,isEmptyObject:MK,isReadableStream:NK,isRequest:AK,isResponse:RK,isHeaders:PK,isUndefined:q0,isDate:FK,isFile:$K,isBlob:OK,isRegExp:bK,isFunction:t,isStream:VK,isURLSearchParams:DK,isTypedArray:jK,isFileList:IK,forEach:s0,merge:L9,extend:wK,trim:TK,stripBOM:EK,inherits:SK,toFlatObject:xK,kindOf:W6,kindOfTest:M1,endsWith:CK,toArray:fK,forEachEntry:_K,matchAll:vK,isHTMLForm:kK,hasOwnProperty:oY,hasOwnProp:oY,reduceDescriptors:OQ,freezeMethods:gK,toObjectSet:yK,toCamelCase:hK,noop:mK,toFiniteNumber:uK,findKey:FQ,global:Y0,isContextDefined:$Q,isSpecCompliantForm:dK,toJSONObject:cK,isAsyncFn:pK,isThenable:lK,setImmediate:IQ,asap:iK,isIterable:nK};class a extends Error{static from(Z,J,Y,Q,X,G){let W=new a(Z.message,J||Z.code,Y,Q,X);return W.cause=Z,W.name=Z.name,G&&Object.assign(W,G),W}constructor(Z,J,Y,Q,X){super(Z);if(this.name="AxiosError",this.isAxiosError=!0,J&&(this.code=J),Y&&(this.config=Y),Q&&(this.request=Q),X)this.response=X,this.status=X.status}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:V.toJSONObject(this.config),code:this.code,status:this.status}}}a.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";a.ERR_BAD_OPTION="ERR_BAD_OPTION";a.ECONNABORTED="ECONNABORTED";a.ETIMEDOUT="ETIMEDOUT";a.ERR_NETWORK="ERR_NETWORK";a.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";a.ERR_DEPRECATED="ERR_DEPRECATED";a.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";a.ERR_BAD_REQUEST="ERR_BAD_REQUEST";a.ERR_CANCELED="ERR_CANCELED";a.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";a.ERR_INVALID_URL="ERR_INVALID_URL";var x=a,oK=null;function M9(Z){return V.isPlainObject(Z)||V.isArray(Z)}function VQ(Z){return V.endsWith(Z,"[]")?Z.slice(0,-2):Z}function aY(Z,J,Y){if(!Z)return J;return Z.concat(J).map(function(X,G){return X=VQ(X),!Y&&G?"["+X+"]":X}).join(Y?".":"")}function aK(Z){return V.isArray(Z)&&!Z.some(M9)}var sK=V.toFlatObject(V,{},null,function(J){return/^is[A-Z]/.test(J)});function z6(Z,J,Y){if(!V.isObject(Z))throw TypeError("target must be an object");J=J||new FormData,Y=V.toFlatObject(Y,{metaTokens:!0,dots:!1,indexes:!1},!1,function(F,O){return!V.isUndefined(O[F])});let Q=Y.metaTokens,X=Y.visitor||B,G=Y.dots,W=Y.indexes,z=(Y.Blob||typeof Blob<"u"&&Blob)&&V.isSpecCompliantForm(J);if(!V.isFunction(X))throw TypeError("visitor must be a function");function U(K){if(K===null)return"";if(V.isDate(K))return K.toISOString();if(V.isBoolean(K))return K.toString();if(!z&&V.isBlob(K))throw new x("Blob is not supported. Use a Buffer instead.");if(V.isArrayBuffer(K)||V.isTypedArray(K))return z&&typeof Blob==="function"?new Blob([K]):Buffer.from(K);return K}function B(K,F,O){let D=K;if(K&&!O&&typeof K==="object"){if(V.endsWith(F,"{}"))F=Q?F:F.slice(0,-2),K=JSON.stringify(K);else if(V.isArray(K)&&aK(K)||(V.isFileList(K)||V.endsWith(F,"[]"))&&(D=V.toArray(K)))return F=VQ(F),D.forEach(function(N,q){!(V.isUndefined(N)||N===null)&&J.append(W===!0?aY([F],q,G):W===null?F:F+"[]",U(N))}),!1}if(M9(K))return!0;return J.append(aY(O,F,G),U(K)),!1}let L=[],I=Object.assign(sK,{defaultVisitor:B,convertValue:U,isVisitable:M9});function M(K,F){if(V.isUndefined(K))return;if(L.indexOf(K)!==-1)throw Error("Circular reference detected in "+F.join("."));L.push(K),V.forEach(K,function(D,P){if((!(V.isUndefined(D)||D===null)&&X.call(J,D,V.isString(P)?P.trim():P,F,I))===!0)M(D,F?F.concat(P):[P])}),L.pop()}if(!V.isObject(Z))throw TypeError("data must be an object");return M(Z),J}function sY(Z){let J={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(Z).replace(/[!'()~]|%20|%00/g,function(Q){return J[Q]})}function I9(Z,J){this._pairs=[],Z&&z6(Z,this,J)}var qQ=I9.prototype;qQ.append=function(J,Y){this._pairs.push([J,Y])};qQ.toString=function(J){let Y=J?function(Q){return J.call(this,Q,sY)}:sY;return this._pairs.map(function(X){return Y(X[0])+"="+Y(X[1])},"").join("&")};function rK(Z){return encodeURIComponent(Z).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function DQ(Z,J,Y){if(!J)return Z;let Q=Y&&Y.encode||rK,X=V.isFunction(Y)?{serialize:Y}:Y,G=X&&X.serialize,W;if(G)W=G(J,X);else W=V.isURLSearchParams(J)?J.toString():new I9(J,X).toString(Q);if(W){let H=Z.indexOf("#");if(H!==-1)Z=Z.slice(0,H);Z+=(Z.indexOf("?")===-1?"?":"&")+W}return Z}class NQ{constructor(){this.handlers=[]}use(Z,J,Y){return this.handlers.push({fulfilled:Z,rejected:J,synchronous:Y?Y.synchronous:!1,runWhen:Y?Y.runWhen:null}),this.handlers.length-1}eject(Z){if(this.handlers[Z])this.handlers[Z]=null}clear(){if(this.handlers)this.handlers=[]}forEach(Z){V.forEach(this.handlers,function(Y){if(Y!==null)Z(Y)})}}var rY=NQ,AQ={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},tK=typeof URLSearchParams<"u"?URLSearchParams:I9,eK=typeof FormData<"u"?FormData:null,ZL=typeof Blob<"u"?Blob:null,JL={isBrowser:!0,classes:{URLSearchParams:tK,FormData:eK,Blob:ZL},protocols:["http","https","file","blob","url","data"]},V9=typeof window<"u"&&typeof document<"u",F9=typeof navigator==="object"&&navigator||void 0,YL=V9&&(!F9||["ReactNative","NativeScript","NS"].indexOf(F9.product)<0),QL=(()=>{return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function"})(),XL=V9&&window.location.href||"http://localhost",GL=Object.freeze({__proto__:null,hasBrowserEnv:V9,hasStandardBrowserWebWorkerEnv:QL,hasStandardBrowserEnv:YL,navigator:F9,origin:XL}),i={...GL,...JL};function WL(Z,J){return z6(Z,new i.classes.URLSearchParams,{visitor:function(Y,Q,X,G){if(i.isNode&&V.isBuffer(Y))return this.append(Q,Y.toString("base64")),!1;return G.defaultVisitor.apply(this,arguments)},...J})}function HL(Z){return V.matchAll(/\w+|\[(\w*)]/g,Z).map((J)=>{return J[0]==="[]"?"":J[1]||J[0]})}function zL(Z){let J={},Y=Object.keys(Z),Q,X=Y.length,G;for(Q=0;Q<X;Q++)G=Y[Q],J[G]=Z[G];return J}function RQ(Z){function J(Y,Q,X,G){let W=Y[G++];if(W==="__proto__")return!0;let H=Number.isFinite(+W),z=G>=Y.length;if(W=!W&&V.isArray(X)?X.length:W,z){if(V.hasOwnProp(X,W))X[W]=[X[W],Q];else X[W]=Q;return!H}if(!X[W]||!V.isObject(X[W]))X[W]=[];if(J(Y,Q,X[W],G)&&V.isArray(X[W]))X[W]=zL(X[W]);return!H}if(V.isFormData(Z)&&V.isFunction(Z.entries)){let Y={};return V.forEachEntry(Z,(Q,X)=>{J(HL(Q),X,Y,0)}),Y}return null}function UL(Z,J,Y){if(V.isString(Z))try{return(J||JSON.parse)(Z),V.trim(Z)}catch(Q){if(Q.name!=="SyntaxError")throw Q}return(Y||JSON.stringify)(Z)}var q9={transitional:AQ,adapter:["xhr","http","fetch"],transformRequest:[function(J,Y){let Q=Y.getContentType()||"",X=Q.indexOf("application/json")>-1,G=V.isObject(J);if(G&&V.isHTMLForm(J))J=new FormData(J);if(V.isFormData(J))return X?JSON.stringify(RQ(J)):J;if(V.isArrayBuffer(J)||V.isBuffer(J)||V.isStream(J)||V.isFile(J)||V.isBlob(J)||V.isReadableStream(J))return J;if(V.isArrayBufferView(J))return J.buffer;if(V.isURLSearchParams(J))return Y.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),J.toString();let H;if(G){if(Q.indexOf("application/x-www-form-urlencoded")>-1)return WL(J,this.formSerializer).toString();if((H=V.isFileList(J))||Q.indexOf("multipart/form-data")>-1){let z=this.env&&this.env.FormData;return z6(H?{"files[]":J}:J,z&&new z,this.formSerializer)}}if(G||X)return Y.setContentType("application/json",!1),UL(J);return J}],transformResponse:[function(J){let Y=this.transitional||q9.transitional,Q=Y&&Y.forcedJSONParsing,X=this.responseType==="json";if(V.isResponse(J)||V.isReadableStream(J))return J;if(J&&V.isString(J)&&(Q&&!this.responseType||X)){let W=!(Y&&Y.silentJSONParsing)&&X;try{return JSON.parse(J,this.parseReviver)}catch(H){if(W){if(H.name==="SyntaxError")throw x.from(H,x.ERR_BAD_RESPONSE,this,null,this.response);throw H}}}return J}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:i.classes.FormData,Blob:i.classes.Blob},validateStatus:function(J){return J>=200&&J<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};V.forEach(["delete","get","head","post","put","patch"],(Z)=>{q9.headers[Z]={}});var D9=q9,BL=V.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),KL=(Z)=>{let J={},Y,Q,X;return Z&&Z.split(`
10
+ `).forEach(function(W){if(X=W.indexOf(":"),Y=W.substring(0,X).trim().toLowerCase(),Q=W.substring(X+1).trim(),!Y||J[Y]&&BL[Y])return;if(Y==="set-cookie")if(J[Y])J[Y].push(Q);else J[Y]=[Q];else J[Y]=J[Y]?J[Y]+", "+Q:Q}),J},tY=Symbol("internals");function i0(Z){return Z&&String(Z).trim().toLowerCase()}function J6(Z){if(Z===!1||Z==null)return Z;return V.isArray(Z)?Z.map(J6):String(Z)}function LL(Z){let J=Object.create(null),Y=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,Q;while(Q=Y.exec(Z))J[Q[1]]=Q[2];return J}var ML=(Z)=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(Z.trim());function U9(Z,J,Y,Q,X){if(V.isFunction(Q))return Q.call(this,J,Y);if(X)J=Y;if(!V.isString(J))return;if(V.isString(Q))return J.indexOf(Q)!==-1;if(V.isRegExp(Q))return Q.test(J)}function FL(Z){return Z.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(J,Y,Q)=>{return Y.toUpperCase()+Q})}function $L(Z,J){let Y=V.toCamelCase(" "+J);["get","set","has"].forEach((Q)=>{Object.defineProperty(Z,Q+Y,{value:function(X,G,W){return this[Q].call(this,J,X,G,W)},configurable:!0})})}class r0{constructor(Z){Z&&this.set(Z)}set(Z,J,Y){let Q=this;function X(W,H,z){let U=i0(H);if(!U)throw Error("header name must be a non-empty string");let B=V.findKey(Q,U);if(!B||Q[B]===void 0||z===!0||z===void 0&&Q[B]!==!1)Q[B||H]=J6(W)}let G=(W,H)=>V.forEach(W,(z,U)=>X(z,U,H));if(V.isPlainObject(Z)||Z instanceof this.constructor)G(Z,J);else if(V.isString(Z)&&(Z=Z.trim())&&!ML(Z))G(KL(Z),J);else if(V.isObject(Z)&&V.isIterable(Z)){let W={},H,z;for(let U of Z){if(!V.isArray(U))throw TypeError("Object iterator must return a key-value pair");W[z=U[0]]=(H=W[z])?V.isArray(H)?[...H,U[1]]:[H,U[1]]:U[1]}G(W,J)}else Z!=null&&X(J,Z,Y);return this}get(Z,J){if(Z=i0(Z),Z){let Y=V.findKey(this,Z);if(Y){let Q=this[Y];if(!J)return Q;if(J===!0)return LL(Q);if(V.isFunction(J))return J.call(this,Q,Y);if(V.isRegExp(J))return J.exec(Q);throw TypeError("parser must be boolean|regexp|function")}}}has(Z,J){if(Z=i0(Z),Z){let Y=V.findKey(this,Z);return!!(Y&&this[Y]!==void 0&&(!J||U9(this,this[Y],Y,J)))}return!1}delete(Z,J){let Y=this,Q=!1;function X(G){if(G=i0(G),G){let W=V.findKey(Y,G);if(W&&(!J||U9(Y,Y[W],W,J)))delete Y[W],Q=!0}}if(V.isArray(Z))Z.forEach(X);else X(Z);return Q}clear(Z){let J=Object.keys(this),Y=J.length,Q=!1;while(Y--){let X=J[Y];if(!Z||U9(this,this[X],X,Z,!0))delete this[X],Q=!0}return Q}normalize(Z){let J=this,Y={};return V.forEach(this,(Q,X)=>{let G=V.findKey(Y,X);if(G){J[G]=J6(Q),delete J[X];return}let W=Z?FL(X):String(X).trim();if(W!==X)delete J[X];J[W]=J6(Q),Y[W]=!0}),this}concat(...Z){return this.constructor.concat(this,...Z)}toJSON(Z){let J=Object.create(null);return V.forEach(this,(Y,Q)=>{Y!=null&&Y!==!1&&(J[Q]=Z&&V.isArray(Y)?Y.join(", "):Y)}),J}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([Z,J])=>Z+": "+J).join(`
11
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(Z){return Z instanceof this?Z:new this(Z)}static concat(Z,...J){let Y=new this(Z);return J.forEach((Q)=>Y.set(Q)),Y}static accessor(Z){let Y=(this[tY]=this[tY]={accessors:{}}).accessors,Q=this.prototype;function X(G){let W=i0(G);if(!Y[W])$L(Q,G),Y[W]=!0}return V.isArray(Z)?Z.forEach(X):X(Z),this}}r0.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);V.reduceDescriptors(r0.prototype,({value:Z},J)=>{let Y=J[0].toUpperCase()+J.slice(1);return{get:()=>Z,set(Q){this[Y]=Q}}});V.freezeMethods(r0);var L1=r0;function B9(Z,J){let Y=this||D9,Q=J||Y,X=L1.from(Q.headers),G=Q.data;return V.forEach(Z,function(H){G=H.call(Y,G,X.normalize(),J?J.status:void 0)}),X.normalize(),G}function PQ(Z){return!!(Z&&Z.__CANCEL__)}class TQ extends x{constructor(Z,J,Y){super(Z==null?"canceled":Z,x.ERR_CANCELED,J,Y);this.name="CanceledError",this.__CANCEL__=!0}}var t0=TQ;function wQ(Z,J,Y){let Q=Y.config.validateStatus;if(!Y.status||!Q||Q(Y.status))Z(Y);else J(new x("Request failed with status code "+Y.status,[x.ERR_BAD_REQUEST,x.ERR_BAD_RESPONSE][Math.floor(Y.status/100)-4],Y.config,Y.request,Y))}function OL(Z){let J=/^([-+\w]{1,25})(:?\/\/|:)/.exec(Z);return J&&J[1]||""}function IL(Z,J){Z=Z||10;let Y=Array(Z),Q=Array(Z),X=0,G=0,W;return J=J!==void 0?J:1000,function(z){let U=Date.now(),B=Q[G];if(!W)W=U;Y[X]=z,Q[X]=U;let L=G,I=0;while(L!==X)I+=Y[L++],L=L%Z;if(X=(X+1)%Z,X===G)G=(G+1)%Z;if(U-W<J)return;let M=B&&U-B;return M?Math.round(I*1000/M):void 0}}function VL(Z,J){let Y=0,Q=1000/J,X,G,W=(U,B=Date.now())=>{if(Y=B,X=null,G)clearTimeout(G),G=null;Z(...U)};return[(...U)=>{let B=Date.now(),L=B-Y;if(L>=Q)W(U,B);else if(X=U,!G)G=setTimeout(()=>{G=null,W(X)},Q-L)},()=>X&&W(X)]}var X6=(Z,J,Y=3)=>{let Q=0,X=IL(50,250);return VL((G)=>{let W=G.loaded,H=G.lengthComputable?G.total:void 0,z=W-Q,U=X(z),B=W<=H;Q=W;let L={loaded:W,total:H,progress:H?W/H:void 0,bytes:z,rate:U?U:void 0,estimated:U&&H&&B?(H-W)/U:void 0,event:G,lengthComputable:H!=null,[J?"download":"upload"]:!0};Z(L)},Y)},eY=(Z,J)=>{let Y=Z!=null;return[(Q)=>J[0]({lengthComputable:Y,total:Z,loaded:Q}),J[1]]},ZQ=(Z)=>(...J)=>V.asap(()=>Z(...J)),qL=i.hasStandardBrowserEnv?((Z,J)=>(Y)=>{return Y=new URL(Y,i.origin),Z.protocol===Y.protocol&&Z.host===Y.host&&(J||Z.port===Y.port)})(new URL(i.origin),i.navigator&&/(msie|trident)/i.test(i.navigator.userAgent)):()=>!0,DL=i.hasStandardBrowserEnv?{write(Z,J,Y,Q,X,G,W){if(typeof document>"u")return;let H=[`${Z}=${encodeURIComponent(J)}`];if(V.isNumber(Y))H.push(`expires=${new Date(Y).toUTCString()}`);if(V.isString(Q))H.push(`path=${Q}`);if(V.isString(X))H.push(`domain=${X}`);if(G===!0)H.push("secure");if(V.isString(W))H.push(`SameSite=${W}`);document.cookie=H.join("; ")},read(Z){if(typeof document>"u")return null;let J=document.cookie.match(new RegExp("(?:^|; )"+Z+"=([^;]*)"));return J?decodeURIComponent(J[1]):null},remove(Z){this.write(Z,"",Date.now()-86400000,"/")}}:{write(){},read(){return null},remove(){}};function NL(Z){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(Z)}function AL(Z,J){return J?Z.replace(/\/?\/$/,"")+"/"+J.replace(/^\/+/,""):Z}function EQ(Z,J,Y){let Q=!NL(J);if(Z&&(Q||Y==!1))return AL(Z,J);return J}var JQ=(Z)=>Z instanceof L1?{...Z}:Z;function Q0(Z,J){J=J||{};let Y={};function Q(U,B,L,I){if(V.isPlainObject(U)&&V.isPlainObject(B))return V.merge.call({caseless:I},U,B);else if(V.isPlainObject(B))return V.merge({},B);else if(V.isArray(B))return B.slice();return B}function X(U,B,L,I){if(!V.isUndefined(B))return Q(U,B,L,I);else if(!V.isUndefined(U))return Q(void 0,U,L,I)}function G(U,B){if(!V.isUndefined(B))return Q(void 0,B)}function W(U,B){if(!V.isUndefined(B))return Q(void 0,B);else if(!V.isUndefined(U))return Q(void 0,U)}function H(U,B,L){if(L in J)return Q(U,B);else if(L in Z)return Q(void 0,U)}let z={url:G,method:G,data:G,baseURL:W,transformRequest:W,transformResponse:W,paramsSerializer:W,timeout:W,timeoutMessage:W,withCredentials:W,withXSRFToken:W,adapter:W,responseType:W,xsrfCookieName:W,xsrfHeaderName:W,onUploadProgress:W,onDownloadProgress:W,decompress:W,maxContentLength:W,maxBodyLength:W,beforeRedirect:W,transport:W,httpAgent:W,httpsAgent:W,cancelToken:W,socketPath:W,responseEncoding:W,validateStatus:H,headers:(U,B,L)=>X(JQ(U),JQ(B),L,!0)};return V.forEach(Object.keys({...Z,...J}),function(B){let L=z[B]||X,I=L(Z[B],J[B],B);V.isUndefined(I)&&L!==H||(Y[B]=I)}),Y}var SQ=(Z)=>{let J=Q0({},Z),{data:Y,withXSRFToken:Q,xsrfHeaderName:X,xsrfCookieName:G,headers:W,auth:H}=J;if(J.headers=W=L1.from(W),J.url=DQ(EQ(J.baseURL,J.url,J.allowAbsoluteUrls),Z.params,Z.paramsSerializer),H)W.set("Authorization","Basic "+btoa((H.username||"")+":"+(H.password?unescape(encodeURIComponent(H.password)):"")));if(V.isFormData(Y)){if(i.hasStandardBrowserEnv||i.hasStandardBrowserWebWorkerEnv)W.setContentType(void 0);else if(V.isFunction(Y.getHeaders)){let z=Y.getHeaders(),U=["content-type","content-length"];Object.entries(z).forEach(([B,L])=>{if(U.includes(B.toLowerCase()))W.set(B,L)})}}if(i.hasStandardBrowserEnv){if(Q&&V.isFunction(Q)&&(Q=Q(J)),Q||Q!==!1&&qL(J.url)){let z=X&&G&&DL.read(G);if(z)W.set(X,z)}}return J},RL=typeof XMLHttpRequest<"u",PL=RL&&function(Z){return new Promise(function(Y,Q){let X=SQ(Z),G=X.data,W=L1.from(X.headers).normalize(),{responseType:H,onUploadProgress:z,onDownloadProgress:U}=X,B,L,I,M,K;function F(){M&&M(),K&&K(),X.cancelToken&&X.cancelToken.unsubscribe(B),X.signal&&X.signal.removeEventListener("abort",B)}let O=new XMLHttpRequest;O.open(X.method.toUpperCase(),X.url,!0),O.timeout=X.timeout;function D(){if(!O)return;let N=L1.from("getAllResponseHeaders"in O&&O.getAllResponseHeaders()),T={data:!H||H==="text"||H==="json"?O.responseText:O.response,status:O.status,statusText:O.statusText,headers:N,config:Z,request:O};wQ(function(m){Y(m),F()},function(m){Q(m),F()},T),O=null}if("onloadend"in O)O.onloadend=D;else O.onreadystatechange=function(){if(!O||O.readyState!==4)return;if(O.status===0&&!(O.responseURL&&O.responseURL.indexOf("file:")===0))return;setTimeout(D)};if(O.onabort=function(){if(!O)return;Q(new x("Request aborted",x.ECONNABORTED,Z,O)),O=null},O.onerror=function(q){let T=q&&q.message?q.message:"Network Error",C=new x(T,x.ERR_NETWORK,Z,O);C.event=q||null,Q(C),O=null},O.ontimeout=function(){let q=X.timeout?"timeout of "+X.timeout+"ms exceeded":"timeout exceeded",T=X.transitional||AQ;if(X.timeoutErrorMessage)q=X.timeoutErrorMessage;Q(new x(q,T.clarifyTimeoutError?x.ETIMEDOUT:x.ECONNABORTED,Z,O)),O=null},G===void 0&&W.setContentType(null),"setRequestHeader"in O)V.forEach(W.toJSON(),function(q,T){O.setRequestHeader(T,q)});if(!V.isUndefined(X.withCredentials))O.withCredentials=!!X.withCredentials;if(H&&H!=="json")O.responseType=X.responseType;if(U)[I,K]=X6(U,!0),O.addEventListener("progress",I);if(z&&O.upload)[L,M]=X6(z),O.upload.addEventListener("progress",L),O.upload.addEventListener("loadend",M);if(X.cancelToken||X.signal){if(B=(N)=>{if(!O)return;Q(!N||N.type?new t0(null,Z,O):N),O.abort(),O=null},X.cancelToken&&X.cancelToken.subscribe(B),X.signal)X.signal.aborted?B():X.signal.addEventListener("abort",B)}let P=OL(X.url);if(P&&i.protocols.indexOf(P)===-1){Q(new x("Unsupported protocol "+P+":",x.ERR_BAD_REQUEST,Z));return}O.send(G||null)})},TL=(Z,J)=>{let{length:Y}=Z=Z?Z.filter(Boolean):[];if(J||Y){let Q=new AbortController,X,G=function(U){if(!X){X=!0,H();let B=U instanceof Error?U:this.reason;Q.abort(B instanceof x?B:new t0(B instanceof Error?B.message:B))}},W=J&&setTimeout(()=>{W=null,G(new x(`timeout of ${J}ms exceeded`,x.ETIMEDOUT))},J),H=()=>{if(Z)W&&clearTimeout(W),W=null,Z.forEach((U)=>{U.unsubscribe?U.unsubscribe(G):U.removeEventListener("abort",G)}),Z=null};Z.forEach((U)=>U.addEventListener("abort",G));let{signal:z}=Q;return z.unsubscribe=()=>V.asap(H),z}},wL=TL,EL=function*(Z,J){let Y=Z.byteLength;if(!J||Y<J){yield Z;return}let Q=0,X;while(Q<Y)X=Q+J,yield Z.slice(Q,X),Q=X},SL=async function*(Z,J){for await(let Y of xL(Z))yield*EL(Y,J)},xL=async function*(Z){if(Z[Symbol.asyncIterator]){yield*Z;return}let J=Z.getReader();try{for(;;){let{done:Y,value:Q}=await J.read();if(Y)break;yield Q}}finally{await J.cancel()}},YQ=(Z,J,Y,Q)=>{let X=SL(Z,J),G=0,W,H=(z)=>{if(!W)W=!0,Q&&Q(z)};return new ReadableStream({async pull(z){try{let{done:U,value:B}=await X.next();if(U){H(),z.close();return}let L=B.byteLength;if(Y){let I=G+=L;Y(I)}z.enqueue(new Uint8Array(B))}catch(U){throw H(U),U}},cancel(z){return H(z),X.return()}},{highWaterMark:2})},QQ=65536,{isFunction:e5}=V,CL=(({Request:Z,Response:J})=>({Request:Z,Response:J}))(V.global),{ReadableStream:XQ,TextEncoder:GQ}=V.global,WQ=(Z,...J)=>{try{return!!Z(...J)}catch(Y){return!1}},fL=(Z)=>{Z=V.merge.call({skipUndefined:!0},CL,Z);let{fetch:J,Request:Y,Response:Q}=Z,X=J?e5(J):typeof fetch==="function",G=e5(Y),W=e5(Q);if(!X)return!1;let H=X&&e5(XQ),z=X&&(typeof GQ==="function"?((K)=>(F)=>K.encode(F))(new GQ):async(K)=>new Uint8Array(await new Y(K).arrayBuffer())),U=G&&H&&WQ(()=>{let K=!1,F=new Y(i.origin,{body:new XQ,method:"POST",get duplex(){return K=!0,"half"}}).headers.has("Content-Type");return K&&!F}),B=W&&H&&WQ(()=>V.isReadableStream(new Q("").body)),L={stream:B&&((K)=>K.body)};X&&(()=>{["text","arrayBuffer","blob","formData","stream"].forEach((K)=>{!L[K]&&(L[K]=(F,O)=>{let D=F&&F[K];if(D)return D.call(F);throw new x(`Response type '${K}' is not supported`,x.ERR_NOT_SUPPORT,O)})})})();let I=async(K)=>{if(K==null)return 0;if(V.isBlob(K))return K.size;if(V.isSpecCompliantForm(K))return(await new Y(i.origin,{method:"POST",body:K}).arrayBuffer()).byteLength;if(V.isArrayBufferView(K)||V.isArrayBuffer(K))return K.byteLength;if(V.isURLSearchParams(K))K=K+"";if(V.isString(K))return(await z(K)).byteLength},M=async(K,F)=>{let O=V.toFiniteNumber(K.getContentLength());return O==null?I(F):O};return async(K)=>{let{url:F,method:O,data:D,signal:P,cancelToken:N,timeout:q,onDownloadProgress:T,onUploadProgress:C,responseType:m,headers:i1,withCredentials:x1="same-origin",fetchOptions:C1}=SQ(K),v=J||fetch;m=m?(m+"").toLowerCase():"text";let N1=wL([P,N&&N.toAbortSignal()],q),c=null,A1=N1&&N1.unsubscribe&&(()=>{N1.unsubscribe()}),$;try{if(C&&U&&O!=="get"&&O!=="head"&&($=await M(i1,D))!==0){let j1=new Y(F,{method:"POST",body:D,duplex:"half"}),W0;if(V.isFormData(D)&&(W0=j1.headers.get("content-type")))i1.setContentType(W0);if(j1.body){let[P6,B5]=eY($,X6(ZQ(C)));D=YQ(j1.body,QQ,P6,B5)}}if(!V.isString(x1))x1=x1?"include":"omit";let X1=G&&"credentials"in Y.prototype,g={...C1,signal:N1,method:O.toUpperCase(),headers:i1.normalize().toJSON(),body:D,duplex:"half",credentials:X1?x1:void 0};c=G&&new Y(F,g);let B1=await(G?v(c,C1):v(F,g)),f1=B&&(m==="stream"||m==="response");if(B&&(T||f1&&A1)){let j1={};["status","statusText","headers"].forEach((Q7)=>{j1[Q7]=B1[Q7]});let W0=V.toFiniteNumber(B1.headers.get("content-length")),[P6,B5]=T&&eY(W0,X6(ZQ(T),!0))||[];B1=new Q(YQ(B1.body,QQ,P6,()=>{B5&&B5(),A1&&A1()}),j1)}m=m||"text";let R1=await L[V.findKey(L,m)||"text"](B1,K);return!f1&&A1&&A1(),await new Promise((j1,W0)=>{wQ(j1,W0,{data:R1,headers:L1.from(B1.headers),status:B1.status,statusText:B1.statusText,config:K,request:c})})}catch(X1){if(A1&&A1(),X1&&X1.name==="TypeError"&&/Load failed|fetch/i.test(X1.message))throw Object.assign(new x("Network Error",x.ERR_NETWORK,K,c),{cause:X1.cause||X1});throw x.from(X1,X1&&X1.code,K,c)}}},jL=new Map,xQ=(Z)=>{let J=Z&&Z.env||{},{fetch:Y,Request:Q,Response:X}=J,G=[Q,X,Y],W=G.length,H=W,z,U,B=jL;while(H--)z=G[H],U=B.get(z),U===void 0&&B.set(z,U=H?new Map:fL(J)),B=U;return U};xQ();var N9={http:oK,xhr:PL,fetch:{get:xQ}};V.forEach(N9,(Z,J)=>{if(Z){try{Object.defineProperty(Z,"name",{value:J})}catch(Y){}Object.defineProperty(Z,"adapterName",{value:J})}});var HQ=(Z)=>`- ${Z}`,_L=(Z)=>V.isFunction(Z)||Z===null||Z===!1;function vL(Z,J){Z=V.isArray(Z)?Z:[Z];let{length:Y}=Z,Q,X,G={};for(let W=0;W<Y;W++){Q=Z[W];let H;if(X=Q,!_L(Q)){if(X=N9[(H=String(Q)).toLowerCase()],X===void 0)throw new x(`Unknown adapter '${H}'`)}if(X&&(V.isFunction(X)||(X=X.get(J))))break;G[H||"#"+W]=X}if(!X){let W=Object.entries(G).map(([z,U])=>`adapter ${z} `+(U===!1?"is not supported by the environment":"is not available in the build")),H=Y?W.length>1?`since :
12
12
  `+W.map(HQ).join(`
13
- `):" "+HQ(W[0]):"as no adapter specified";throw new x("There is no suitable adapter to dispatch the request "+H,"ERR_NOT_SUPPORT")}return X}var CQ={getAdapter:vL,adapters:N9};function K9(Z){if(Z.cancelToken)Z.cancelToken.throwIfRequested();if(Z.signal&&Z.signal.aborted)throw new t0(null,Z)}function zQ(Z){if(K9(Z),Z.headers=L1.from(Z.headers),Z.data=B9.call(Z,Z.transformRequest),["post","put","patch"].indexOf(Z.method)!==-1)Z.headers.setContentType("application/x-www-form-urlencoded",!1);return CQ.getAdapter(Z.adapter||D9.adapter,Z)(Z).then(function(Q){return K9(Z),Q.data=B9.call(Z,Z.transformResponse,Q),Q.headers=L1.from(Q.headers),Q},function(Q){if(!PQ(Q)){if(K9(Z),Q&&Q.response)Q.response.data=B9.call(Z,Z.transformResponse,Q.response),Q.response.headers=L1.from(Q.response.headers)}return Promise.reject(Q)})}var fQ="1.13.4",z6={};["object","boolean","number","function","string","symbol"].forEach((Z,J)=>{z6[Z]=function(Q){return typeof Q===Z||"a"+(J<1?"n ":" ")+Z}});var UQ={};z6.transitional=function(J,Y,Q){function X(G,W){return"[Axios v"+fQ+"] Transitional option '"+G+"'"+W+(Q?". "+Q:"")}return(G,W,H)=>{if(J===!1)throw new x(X(W," has been removed"+(Y?" in "+Y:"")),x.ERR_DEPRECATED);if(Y&&!UQ[W])UQ[W]=!0,console.warn(X(W," has been deprecated since v"+Y+" and will be removed in the near future"));return J?J(G,W,H):!0}};z6.spelling=function(J){return(Y,Q)=>{return console.warn(`${Q} is likely a misspelling of ${J}`),!0}};function kL(Z,J,Y){if(typeof Z!=="object")throw new x("options must be an object",x.ERR_BAD_OPTION_VALUE);let Q=Object.keys(Z),X=Q.length;while(X-- >0){let G=Q[X],W=J[G];if(W){let H=Z[G],z=H===void 0||W(H,G,Z);if(z!==!0)throw new x("option "+G+" must be "+z,x.ERR_BAD_OPTION_VALUE);continue}if(Y!==!0)throw new x("Unknown option "+G,x.ERR_BAD_OPTION)}}var J6={assertOptions:kL,validators:z6},I1=J6.validators;class n0{constructor(Z){this.defaults=Z||{},this.interceptors={request:new rY,response:new rY}}async request(Z,J){try{return await this._request(Z,J)}catch(Y){if(Y instanceof Error){let Q={};Error.captureStackTrace?Error.captureStackTrace(Q):Q=Error();let X=Q.stack?Q.stack.replace(/^.+\n/,""):"";try{if(!Y.stack)Y.stack=X;else if(X&&!String(Y.stack).endsWith(X.replace(/^.+\n.+\n/,"")))Y.stack+=`
14
- `+X}catch(G){}}throw Y}}_request(Z,J){if(typeof Z==="string")J=J||{},J.url=Z;else J=Z||{};J=Q0(this.defaults,J);let{transitional:Y,paramsSerializer:Q,headers:X}=J;if(Y!==void 0)J6.assertOptions(Y,{silentJSONParsing:I1.transitional(I1.boolean),forcedJSONParsing:I1.transitional(I1.boolean),clarifyTimeoutError:I1.transitional(I1.boolean)},!1);if(Q!=null)if(I.isFunction(Q))J.paramsSerializer={serialize:Q};else J6.assertOptions(Q,{encode:I1.function,serialize:I1.function},!0);if(J.allowAbsoluteUrls!==void 0);else if(this.defaults.allowAbsoluteUrls!==void 0)J.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls;else J.allowAbsoluteUrls=!0;J6.assertOptions(J,{baseUrl:I1.spelling("baseURL"),withXsrfToken:I1.spelling("withXSRFToken")},!0),J.method=(J.method||this.defaults.method||"get").toLowerCase();let G=X&&I.merge(X.common,X[J.method]);X&&I.forEach(["delete","get","head","post","put","patch","common"],(M)=>{delete X[M]}),J.headers=L1.concat(G,X);let W=[],H=!0;this.interceptors.request.forEach(function(K){if(typeof K.runWhen==="function"&&K.runWhen(J)===!1)return;H=H&&K.synchronous,W.unshift(K.fulfilled,K.rejected)});let z=[];this.interceptors.response.forEach(function(K){z.push(K.fulfilled,K.rejected)});let U,B=0,L;if(!H){let M=[zQ.bind(this),void 0];M.unshift(...W),M.push(...z),L=M.length,U=Promise.resolve(J);while(B<L)U=U.then(M[B++],M[B++]);return U}L=W.length;let V=J;while(B<L){let M=W[B++],K=W[B++];try{V=M(V)}catch(F){K.call(this,F);break}}try{U=zQ.call(this,V)}catch(M){return Promise.reject(M)}B=0,L=z.length;while(B<L)U=U.then(z[B++],z[B++]);return U}getUri(Z){Z=Q0(this.defaults,Z);let J=EQ(Z.baseURL,Z.url,Z.allowAbsoluteUrls);return DQ(J,Z.params,Z.paramsSerializer)}}I.forEach(["delete","get","head","options"],function(J){n0.prototype[J]=function(Y,Q){return this.request(Q0(Q||{},{method:J,url:Y,data:(Q||{}).data}))}});I.forEach(["post","put","patch"],function(J){function Y(Q){return function(G,W,H){return this.request(Q0(H||{},{method:J,headers:Q?{"Content-Type":"multipart/form-data"}:{},url:G,data:W}))}}n0.prototype[J]=Y(),n0.prototype[J+"Form"]=Y(!0)});var Y6=n0;class A9{constructor(Z){if(typeof Z!=="function")throw TypeError("executor must be a function.");let J;this.promise=new Promise(function(X){J=X});let Y=this;this.promise.then((Q)=>{if(!Y._listeners)return;let X=Y._listeners.length;while(X-- >0)Y._listeners[X](Q);Y._listeners=null}),this.promise.then=(Q)=>{let X,G=new Promise((W)=>{Y.subscribe(W),X=W}).then(Q);return G.cancel=function(){Y.unsubscribe(X)},G},Z(function(X,G,W){if(Y.reason)return;Y.reason=new t0(X,G,W),J(Y.reason)})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(Z){if(this.reason){Z(this.reason);return}if(this._listeners)this._listeners.push(Z);else this._listeners=[Z]}unsubscribe(Z){if(!this._listeners)return;let J=this._listeners.indexOf(Z);if(J!==-1)this._listeners.splice(J,1)}toAbortSignal(){let Z=new AbortController,J=(Y)=>{Z.abort(Y)};return this.subscribe(J),Z.signal.unsubscribe=()=>this.unsubscribe(J),Z.signal}static source(){let Z;return{token:new A9(function(Q){Z=Q}),cancel:Z}}}var hL=A9;function bL(Z){return function(Y){return Z.apply(null,Y)}}function gL(Z){return I.isObject(Z)&&Z.isAxiosError===!0}var $9={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries($9).forEach(([Z,J])=>{$9[J]=Z});var yL=$9;function jQ(Z){let J=new Y6(Z),Y=BQ(Y6.prototype.request,J);return I.extend(Y,Y6.prototype,J,{allOwnKeys:!0}),I.extend(Y,J,null,{allOwnKeys:!0}),Y.create=function(X){return jQ(Q0(Z,X))},Y}var b=jQ(D9);b.Axios=Y6;b.CanceledError=t0;b.CancelToken=hL;b.isCancel=PQ;b.VERSION=fQ;b.toFormData=H6;b.AxiosError=x;b.Cancel=b.CanceledError;b.all=function(J){return Promise.all(J)};b.spread=bL;b.isAxiosError=gL;b.mergeConfig=Q0;b.AxiosHeaders=L1;b.formToJSON=(Z)=>RQ(I.isHTMLForm(Z)?new FormData(Z):Z);b.getAdapter=CQ.getAdapter;b.HttpStatusCode=yL;b.default=b;_Q.exports=b});var P9=A((hQ)=>{Object.defineProperty(hQ,"__esModule",{value:!0});hQ.addAxiosDateTransformer=hQ.createAxiosDateTransformer=void 0;var mL=(nY(),CX(iY)),uL=mL.__importDefault(vQ()),dL=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(?:\.\d*)?(?:[-+]\d{2}:?\d{2}|Z)?)?$/,cL=(Z)=>{return dL.test(Z)},pL=(Z,J)=>{return!J||J.length===0||J.includes(Z)},lL=(Z,J,Y)=>{return typeof J==="string"&&cL(J)&&pL(Z,Y)},kQ=(Z,J)=>{if(typeof Z==="object"){for(let Y in Z)if(lL(Y,Z[Y],J))Z[Y]=new Date(Z[Y]);else if(typeof Z[Y]==="object")Z[Y]=kQ(Z[Y],J)}return Z},iL=(Z,J)=>{if(Z.data)Z.data=kQ(Z.data,J);return Z},nL=(Z={})=>{return hQ.addAxiosDateTransformer(uL.default.create(Z),Z)};hQ.createAxiosDateTransformer=nL;var oL=(Z,J)=>{let Y=J===null||J===void 0?void 0:J.allowlist;return Z.interceptors.response.use((Q)=>iL(Q,Y)),Z};hQ.addAxiosDateTransformer=oL});var x9=A((lQ)=>{Object.defineProperty(lQ,"__esModule",{value:!0});lQ.Doctype=lQ.CDATA=lQ.Tag=lQ.Style=lQ.Script=lQ.Comment=lQ.Directive=lQ.Text=lQ.Root=lQ.isTag=lQ.ElementType=void 0;var Q1;(function(Z){Z.Root="root",Z.Text="text",Z.Directive="directive",Z.Comment="comment",Z.Script="script",Z.Style="style",Z.Tag="tag",Z.CDATA="cdata",Z.Doctype="doctype"})(Q1=lQ.ElementType||(lQ.ElementType={}));function XM(Z){return Z.type===Q1.Tag||Z.type===Q1.Script||Z.type===Q1.Style}lQ.isTag=XM;lQ.Root=Q1.Root;lQ.Text=Q1.Text;lQ.Directive=Q1.Directive;lQ.Comment=Q1.Comment;lQ.Script=Q1.Script;lQ.Style=Q1.Style;lQ.Tag=Q1.Tag;lQ.CDATA=Q1.CDATA;lQ.Doctype=Q1.Doctype});var _9=A((E)=>{var p1=E&&E.__extends||function(){var Z=function(J,Y){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Q,X){Q.__proto__=X}||function(Q,X){for(var G in X)if(Object.prototype.hasOwnProperty.call(X,G))Q[G]=X[G]},Z(J,Y)};return function(J,Y){if(typeof Y!=="function"&&Y!==null)throw TypeError("Class extends value "+String(Y)+" is not a constructor or null");Z(J,Y);function Q(){this.constructor=J}J.prototype=Y===null?Object.create(Y):(Q.prototype=Y.prototype,new Q)}}(),e0=E&&E.__assign||function(){return e0=Object.assign||function(Z){for(var J,Y=1,Q=arguments.length;Y<Q;Y++){J=arguments[Y];for(var X in J)if(Object.prototype.hasOwnProperty.call(J,X))Z[X]=J[X]}return Z},e0.apply(this,arguments)};Object.defineProperty(E,"__esModule",{value:!0});E.cloneNode=E.hasChildren=E.isDocument=E.isDirective=E.isComment=E.isText=E.isCDATA=E.isTag=E.Element=E.Document=E.CDATA=E.NodeWithChildren=E.ProcessingInstruction=E.Comment=E.Text=E.DataNode=E.Node=void 0;var e=x9(),f9=function(){function Z(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(Z.prototype,"parentNode",{get:function(){return this.parent},set:function(J){this.parent=J},enumerable:!1,configurable:!0}),Object.defineProperty(Z.prototype,"previousSibling",{get:function(){return this.prev},set:function(J){this.prev=J},enumerable:!1,configurable:!0}),Object.defineProperty(Z.prototype,"nextSibling",{get:function(){return this.next},set:function(J){this.next=J},enumerable:!1,configurable:!0}),Z.prototype.cloneNode=function(J){if(J===void 0)J=!1;return j9(this,J)},Z}();E.Node=f9;var K6=function(Z){p1(J,Z);function J(Y){var Q=Z.call(this)||this;return Q.data=Y,Q}return Object.defineProperty(J.prototype,"nodeValue",{get:function(){return this.data},set:function(Y){this.data=Y},enumerable:!1,configurable:!0}),J}(f9);E.DataNode=K6;var nQ=function(Z){p1(J,Z);function J(){var Y=Z!==null&&Z.apply(this,arguments)||this;return Y.type=e.ElementType.Text,Y}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),J}(K6);E.Text=nQ;var oQ=function(Z){p1(J,Z);function J(){var Y=Z!==null&&Z.apply(this,arguments)||this;return Y.type=e.ElementType.Comment,Y}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),J}(K6);E.Comment=oQ;var aQ=function(Z){p1(J,Z);function J(Y,Q){var X=Z.call(this,Q)||this;return X.name=Y,X.type=e.ElementType.Directive,X}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),J}(K6);E.ProcessingInstruction=aQ;var L6=function(Z){p1(J,Z);function J(Y){var Q=Z.call(this)||this;return Q.children=Y,Q}return Object.defineProperty(J.prototype,"firstChild",{get:function(){var Y;return(Y=this.children[0])!==null&&Y!==void 0?Y:null},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"childNodes",{get:function(){return this.children},set:function(Y){this.children=Y},enumerable:!1,configurable:!0}),J}(f9);E.NodeWithChildren=L6;var sQ=function(Z){p1(J,Z);function J(){var Y=Z!==null&&Z.apply(this,arguments)||this;return Y.type=e.ElementType.CDATA,Y}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),J}(L6);E.CDATA=sQ;var rQ=function(Z){p1(J,Z);function J(){var Y=Z!==null&&Z.apply(this,arguments)||this;return Y.type=e.ElementType.Root,Y}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),J}(L6);E.Document=rQ;var tQ=function(Z){p1(J,Z);function J(Y,Q,X,G){if(X===void 0)X=[];if(G===void 0)G=Y==="script"?e.ElementType.Script:Y==="style"?e.ElementType.Style:e.ElementType.Tag;var W=Z.call(this,X)||this;return W.name=Y,W.attribs=Q,W.type=G,W}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"tagName",{get:function(){return this.name},set:function(Y){this.name=Y},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"attributes",{get:function(){var Y=this;return Object.keys(this.attribs).map(function(Q){var X,G;return{name:Q,value:Y.attribs[Q],namespace:(X=Y["x-attribsNamespace"])===null||X===void 0?void 0:X[Q],prefix:(G=Y["x-attribsPrefix"])===null||G===void 0?void 0:G[Q]}})},enumerable:!1,configurable:!0}),J}(L6);E.Element=tQ;function eQ(Z){return(0,e.isTag)(Z)}E.isTag=eQ;function Z3(Z){return Z.type===e.ElementType.CDATA}E.isCDATA=Z3;function J3(Z){return Z.type===e.ElementType.Text}E.isText=J3;function Y3(Z){return Z.type===e.ElementType.Comment}E.isComment=Y3;function Q3(Z){return Z.type===e.ElementType.Directive}E.isDirective=Q3;function X3(Z){return Z.type===e.ElementType.Root}E.isDocument=X3;function FM(Z){return Object.prototype.hasOwnProperty.call(Z,"children")}E.hasChildren=FM;function j9(Z,J){if(J===void 0)J=!1;var Y;if(J3(Z))Y=new nQ(Z.data);else if(Y3(Z))Y=new oQ(Z.data);else if(eQ(Z)){var Q=J?C9(Z.children):[],X=new tQ(Z.name,e0({},Z.attribs),Q);if(Q.forEach(function(z){return z.parent=X}),Z.namespace!=null)X.namespace=Z.namespace;if(Z["x-attribsNamespace"])X["x-attribsNamespace"]=e0({},Z["x-attribsNamespace"]);if(Z["x-attribsPrefix"])X["x-attribsPrefix"]=e0({},Z["x-attribsPrefix"]);Y=X}else if(Z3(Z)){var Q=J?C9(Z.children):[],G=new sQ(Q);Q.forEach(function(U){return U.parent=G}),Y=G}else if(X3(Z)){var Q=J?C9(Z.children):[],W=new rQ(Q);if(Q.forEach(function(U){return U.parent=W}),Z["x-mode"])W["x-mode"]=Z["x-mode"];Y=W}else if(Q3(Z)){var H=new aQ(Z.name,Z.data);if(Z["x-name"]!=null)H["x-name"]=Z["x-name"],H["x-publicId"]=Z["x-publicId"],H["x-systemId"]=Z["x-systemId"];Y=H}else throw Error("Not implemented yet: ".concat(Z.type));if(Y.startIndex=Z.startIndex,Y.endIndex=Z.endIndex,Z.sourceCodeLocation!=null)Y.sourceCodeLocation=Z.sourceCodeLocation;return Y}E.cloneNode=j9;function C9(Z){var J=Z.map(function(Q){return j9(Q,!0)});for(var Y=1;Y<J.length;Y++)J[Y].prev=J[Y-1],J[Y-1].next=J[Y];return J}});var k9=A((q1)=>{var $M=q1&&q1.__createBinding||(Object.create?function(Z,J,Y,Q){if(Q===void 0)Q=Y;var X=Object.getOwnPropertyDescriptor(J,Y);if(!X||("get"in X?!J.__esModule:X.writable||X.configurable))X={enumerable:!0,get:function(){return J[Y]}};Object.defineProperty(Z,Q,X)}:function(Z,J,Y,Q){if(Q===void 0)Q=Y;Z[Q]=J[Y]}),OM=q1&&q1.__exportStar||function(Z,J){for(var Y in Z)if(Y!=="default"&&!Object.prototype.hasOwnProperty.call(J,Y))$M(J,Z,Y)};Object.defineProperty(q1,"__esModule",{value:!0});q1.DomHandler=void 0;var v9=x9(),l1=_9();OM(_9(),q1);var G3={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},W3=function(){function Z(J,Y,Q){if(this.dom=[],this.root=new l1.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof Y==="function")Q=Y,Y=G3;if(typeof J==="object")Y=J,J=void 0;this.callback=J!==null&&J!==void 0?J:null,this.options=Y!==null&&Y!==void 0?Y:G3,this.elementCB=Q!==null&&Q!==void 0?Q:null}return Z.prototype.onparserinit=function(J){this.parser=J},Z.prototype.onreset=function(){this.dom=[],this.root=new l1.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},Z.prototype.onend=function(){if(this.done)return;this.done=!0,this.parser=null,this.handleCallback(null)},Z.prototype.onerror=function(J){this.handleCallback(J)},Z.prototype.onclosetag=function(){this.lastNode=null;var J=this.tagStack.pop();if(this.options.withEndIndices)J.endIndex=this.parser.endIndex;if(this.elementCB)this.elementCB(J)},Z.prototype.onopentag=function(J,Y){var Q=this.options.xmlMode?v9.ElementType.Tag:void 0,X=new l1.Element(J,Y,void 0,Q);this.addNode(X),this.tagStack.push(X)},Z.prototype.ontext=function(J){var Y=this.lastNode;if(Y&&Y.type===v9.ElementType.Text){if(Y.data+=J,this.options.withEndIndices)Y.endIndex=this.parser.endIndex}else{var Q=new l1.Text(J);this.addNode(Q),this.lastNode=Q}},Z.prototype.oncomment=function(J){if(this.lastNode&&this.lastNode.type===v9.ElementType.Comment){this.lastNode.data+=J;return}var Y=new l1.Comment(J);this.addNode(Y),this.lastNode=Y},Z.prototype.oncommentend=function(){this.lastNode=null},Z.prototype.oncdatastart=function(){var J=new l1.Text(""),Y=new l1.CDATA([J]);this.addNode(Y),J.parent=Y,this.lastNode=J},Z.prototype.oncdataend=function(){this.lastNode=null},Z.prototype.onprocessinginstruction=function(J,Y){var Q=new l1.ProcessingInstruction(J,Y);this.addNode(Q)},Z.prototype.handleCallback=function(J){if(typeof this.callback==="function")this.callback(J,this.dom);else if(J)throw J},Z.prototype.addNode=function(J){var Y=this.tagStack[this.tagStack.length-1],Q=Y.children[Y.children.length-1];if(this.options.withStartIndices)J.startIndex=this.parser.startIndex;if(this.options.withEndIndices)J.endIndex=this.parser.endIndex;if(Y.children.push(J),Q)J.prev=Q,Q.next=J;J.parent=Y,this.lastNode=null},Z}();q1.DomHandler=W3;q1.default=W3});var L3=A((H3)=>{Object.defineProperty(H3,"__esModule",{value:!0});H3.CARRIAGE_RETURN_PLACEHOLDER_REGEX=H3.CARRIAGE_RETURN_PLACEHOLDER=H3.CARRIAGE_RETURN_REGEX=H3.CARRIAGE_RETURN=H3.CASE_SENSITIVE_TAG_NAMES_MAP=H3.CASE_SENSITIVE_TAG_NAMES=void 0;H3.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"];H3.CASE_SENSITIVE_TAG_NAMES_MAP=H3.CASE_SENSITIVE_TAG_NAMES.reduce(function(Z,J){return Z[J.toLowerCase()]=J,Z},{});H3.CARRIAGE_RETURN="\r";H3.CARRIAGE_RETURN_REGEX=new RegExp(H3.CARRIAGE_RETURN,"g");H3.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now().toString(),"__");H3.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(H3.CARRIAGE_RETURN_PLACEHOLDER,"g")});var h9=A((O3)=>{Object.defineProperty(O3,"__esModule",{value:!0});O3.formatAttributes=M3;O3.escapeSpecialCharacters=NM;O3.revertEscapedCharacters=F3;O3.formatDOM=$3;var M6=k9(),Z5=L3();function qM(Z){return Z5.CASE_SENSITIVE_TAG_NAMES_MAP[Z]}function M3(Z){var J={},Y=0,Q=Z.length;for(;Y<Q;Y++){var X=Z[Y];J[X.name]=X.value}return J}function DM(Z){Z=Z.toLowerCase();var J=qM(Z);if(J)return J;return Z}function NM(Z){return Z.replace(Z5.CARRIAGE_RETURN_REGEX,Z5.CARRIAGE_RETURN_PLACEHOLDER)}function F3(Z){return Z.replace(Z5.CARRIAGE_RETURN_PLACEHOLDER_REGEX,Z5.CARRIAGE_RETURN)}function $3(Z,J,Y){var Q,X,G,W;if(J===void 0)J=null;var H=[],z,U=0,B=Z.length;for(;U<B;U++){var L=Z[U];switch(L.nodeType){case 1:{var V=DM(L.nodeName);z=new M6.Element(V,M3(L.attributes)),z.children=$3(V==="template"?L.content.childNodes:L.childNodes,z);break}case 3:z=new M6.Text(F3((Q=L.nodeValue)!==null&&Q!==void 0?Q:""));break;case 8:z=new M6.Comment((X=L.nodeValue)!==null&&X!==void 0?X:"");break;default:continue}var M=(G=H[U-1])!==null&&G!==void 0?G:null;if(M)M.next=z;z.parent=J,z.prev=M,z.next=null,H.push(z)}if(Y){if(z=new M6.ProcessingInstruction(Y.substring(0,Y.indexOf(" ")).toLowerCase(),Y),z.next=(W=H[0])!==null&&W!==void 0?W:null,z.parent=J,H.unshift(z),H[1])H[1].prev=H[0]}return H}});var P3=A((R3)=>{Object.defineProperty(R3,"__esModule",{value:!0});R3.default=SM;var wM=h9(),V3="html",I3="head",F6="body",EM=/<([a-zA-Z]+[0-9]?)/,q3=/<head[^]*>/i,D3=/<body[^]*>/i,O6=function(Z,J){throw Error("This browser does not support `document.implementation.createHTMLDocument`")},b9=function(Z,J){throw Error("This browser does not support `DOMParser.prototype.parseFromString`")},N3=typeof window==="object"&&window.DOMParser;if(typeof N3==="function")g9=new N3,y9="text/html",b9=function(Z,J){if(J)Z="<".concat(J,">").concat(Z,"</").concat(J,">");return g9.parseFromString(Z,y9)},O6=b9;var g9,y9;if(typeof document==="object"&&document.implementation)N0=document.implementation.createHTMLDocument(),O6=function(Z,J){if(J){var Y=N0.documentElement.querySelector(J);if(Y)Y.innerHTML=Z;return N0}return N0.documentElement.innerHTML=Z,N0};var N0,$6=typeof document==="object"&&document.createElement("template"),m9;if($6&&$6.content)m9=function(Z){return $6.innerHTML=Z,$6.content.childNodes};var A3=function(){return document.createDocumentFragment().childNodes};function SM(Z){var J,Y,Q,X,G,W;Z=(0,wM.escapeSpecialCharacters)(Z);var H=EM.exec(Z),z=(J=H===null||H===void 0?void 0:H[1])===null||J===void 0?void 0:J.toLowerCase();switch(z){case V3:{var U=b9(Z);if(!q3.test(Z)){var B=U.querySelector(I3);(Y=B===null||B===void 0?void 0:B.parentNode)===null||Y===void 0||Y.removeChild(B)}if(!D3.test(Z)){var B=U.querySelector(F6);(Q=B===null||B===void 0?void 0:B.parentNode)===null||Q===void 0||Q.removeChild(B)}return U.querySelectorAll(V3)}case I3:case F6:{var L=O6(Z).querySelectorAll(z);if(D3.test(Z)&&q3.test(Z))return(G=(X=L[0].parentNode)===null||X===void 0?void 0:X.childNodes)!==null&&G!==void 0?G:A3();return L}default:{if(m9)return m9(Z);var B=O6(Z,F6).querySelector(F6);return(W=B===null||B===void 0?void 0:B.childNodes)!==null&&W!==void 0?W:A3()}}}});var T3=A((J5)=>{var CM=J5&&J5.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(J5,"__esModule",{value:!0});J5.default=vM;var fM=CM(P3()),jM=h9(),_M=/<(![a-zA-Z\s]+)>/;function vM(Z){if(typeof Z!=="string")throw TypeError("First argument must be a string");if(!Z)return[];var J=_M.exec(Z),Y=J?J[1]:void 0;return(0,jM.formatDOM)((0,fM.default)(Z),null,Y)}});var w3=A((bM)=>{var kM=0;bM.SAME=kM;var hM=1;bM.CAMELCASE=hM;bM.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}});var S3=A((sM)=>{function uM(Z){return d.hasOwnProperty(Z)?d[Z]:null}function s(Z,J,Y,Q,X,G,W){this.acceptsBooleans=J===2||J===3||J===4,this.attributeName=Q,this.attributeNamespace=X,this.mustUseProperty=Y,this.propertyName=Z,this.type=J,this.sanitizeURL=G,this.removeEmptyString=W}var d={},dM=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];dM.forEach((Z)=>{d[Z]=new s(Z,0,!1,Z,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([Z,J])=>{d[Z]=new s(Z,1,!1,J,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach((Z)=>{d[Z]=new s(Z,2,!1,Z.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((Z)=>{d[Z]=new s(Z,2,!1,Z,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((Z)=>{d[Z]=new s(Z,3,!1,Z.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach((Z)=>{d[Z]=new s(Z,3,!0,Z,null,!1,!1)});["capture","download"].forEach((Z)=>{d[Z]=new s(Z,4,!1,Z,null,!1,!1)});["cols","rows","size","span"].forEach((Z)=>{d[Z]=new s(Z,6,!1,Z,null,!1,!1)});["rowSpan","start"].forEach((Z)=>{d[Z]=new s(Z,5,!1,Z.toLowerCase(),null,!1,!1)});var u9=/[\-\:]([a-z])/g,d9=(Z)=>Z[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((Z)=>{let J=Z.replace(u9,d9);d[J]=new s(J,1,!1,Z,null,!1,!1)});["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((Z)=>{let J=Z.replace(u9,d9);d[J]=new s(J,1,!1,Z,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach((Z)=>{let J=Z.replace(u9,d9);d[J]=new s(J,1,!1,Z,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach((Z)=>{d[Z]=new s(Z,1,!1,Z.toLowerCase(),null,!1,!1)});var cM="xlinkHref";d[cM]=new s("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach((Z)=>{d[Z]=new s(Z,1,!1,Z.toLowerCase(),null,!0,!0)});var{CAMELCASE:pM,SAME:lM,possibleStandardNames:E3}=w3(),iM=":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",nM=iM+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",oM=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+nM+"]*$")),aM=Object.keys(E3).reduce((Z,J)=>{let Y=E3[J];if(Y===lM)Z[J]=J;else if(Y===pM)Z[J.toLowerCase()]=J;else Z[J]=Y;return Z},{});sM.BOOLEAN=3;sM.BOOLEANISH_STRING=2;sM.NUMERIC=5;sM.OVERLOADED_BOOLEAN=4;sM.POSITIVE_NUMERIC=6;sM.RESERVED=0;sM.STRING=1;sM.getPropertyInfo=uM;sM.isCustomAttribute=oM;sM.possibleStandardNames=aM});var v3=A((DD,_3)=>{var x3=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,H2=/\n/g,z2=/^\s*/,U2=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,B2=/^:\s*/,K2=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,L2=/^[;\s]*/,M2=/^\s+|\s+$/g,F2=`
15
- `,C3="/",f3="*",X0="",$2="comment",O2="declaration";function V2(Z,J){if(typeof Z!=="string")throw TypeError("First argument must be a string");if(!Z)return[];J=J||{};var Y=1,Q=1;function X(K){var F=K.match(H2);if(F)Y+=F.length;var O=K.lastIndexOf(F2);Q=~O?K.length-O:Q+K.length}function G(){var K={line:Y,column:Q};return function(F){return F.position=new W(K),U(),F}}function W(K){this.start=K,this.end={line:Y,column:Q},this.source=J.source}W.prototype.content=Z;function H(K){var F=Error(J.source+":"+Y+":"+Q+": "+K);if(F.reason=K,F.filename=J.source,F.line=Y,F.column=Q,F.source=Z,J.silent);else throw F}function z(K){var F=K.exec(Z);if(!F)return;var O=F[0];return X(O),Z=Z.slice(O.length),F}function U(){z(z2)}function B(K){var F;K=K||[];while(F=L())if(F!==!1)K.push(F);return K}function L(){var K=G();if(C3!=Z.charAt(0)||f3!=Z.charAt(1))return;var F=2;while(X0!=Z.charAt(F)&&(f3!=Z.charAt(F)||C3!=Z.charAt(F+1)))++F;if(F+=2,X0===Z.charAt(F-1))return H("End of comment missing");var O=Z.slice(2,F-2);return Q+=2,X(O),Z=Z.slice(F),Q+=2,K({type:$2,comment:O})}function V(){var K=G(),F=z(U2);if(!F)return;if(L(),!z(B2))return H("property missing ':'");var O=z(K2),D=K({type:O2,property:j3(F[0].replace(x3,X0)),value:O?j3(O[0].replace(x3,X0)):X0});return z(L2),D}function M(){var K=[];B(K);var F;while(F=V())if(F!==!1)K.push(F),B(K);return K}return U(),M()}function j3(Z){return Z?Z.replace(M2,X0):X0}_3.exports=V2});var k3=A((Y5)=>{var I2=Y5&&Y5.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(Y5,"__esModule",{value:!0});Y5.default=D2;var q2=I2(v3());function D2(Z,J){let Y=null;if(!Z||typeof Z!=="string")return Y;let Q=(0,q2.default)(Z),X=typeof J==="function";return Q.forEach((G)=>{if(G.type!=="declaration")return;let{property:W,value:H}=G;if(X)J(W,H,G);else if(H)Y=Y||{},Y[W]=H}),Y}});var y3=A((b3)=>{Object.defineProperty(b3,"__esModule",{value:!0});b3.camelCase=void 0;var N2=/^--[a-zA-Z0-9_-]+$/,A2=/-([a-z])/g,R2=/^[^-]+$/,P2=/^-(webkit|moz|ms|o|khtml)-/,T2=/^-(ms)-/,w2=function(Z){return!Z||R2.test(Z)||N2.test(Z)},E2=function(Z,J){return J.toUpperCase()},h3=function(Z,J){return"".concat(J,"-")},S2=function(Z,J){if(J===void 0)J={};if(w2(Z))return Z;if(Z=Z.toLowerCase(),J.reactCompat)Z=Z.replace(T2,h3);else Z=Z.replace(P2,h3);return Z.replace(A2,E2)};b3.camelCase=S2});var u3=A((p9,m3)=>{var x2=p9&&p9.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}},C2=x2(k3()),f2=y3();function c9(Z,J){var Y={};if(!Z||typeof Z!=="string")return Y;return(0,C2.default)(Z,function(Q,X){if(Q&&X)Y[(0,f2.camelCase)(Q,J)]=X}),Y}c9.default=c9;m3.exports=c9});import*as d3 from"react";var l9=A((r)=>{var j2=r&&r.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(r,"__esModule",{value:!0});r.returnFirstArg=r.canTextBeChildOfNode=r.ELEMENTS_WITH_NO_TEXT_CHILDREN=r.PRESERVE_CUSTOM_ATTRIBUTES=void 0;r.isCustomComponent=k2;r.setStyleProp=b2;var _2=j2(u3()),v2=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function k2(Z,J){if(!Z.includes("-"))return Boolean(J&&typeof J.is==="string");if(v2.has(Z))return!1;return!0}var h2={reactCompat:!0};function b2(Z,J){if(typeof Z!=="string")return;if(!Z.trim()){J.style={};return}try{J.style=(0,_2.default)(Z,h2)}catch(Y){J.style={}}}r.PRESERVE_CUSTOM_ATTRIBUTES=Number(d3.version.split(".")[0])>=16;r.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var g2=function(Z){return!r.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(Z.name)};r.canTextBeChildOfNode=g2;var y2=function(Z){return Z};r.returnFirstArg=y2});var i9=A((l3)=>{Object.defineProperty(l3,"__esModule",{value:!0});l3.default=c2;var Q5=S3(),c3=l9(),m2=["checked","value"],u2=["input","select","textarea"],d2={reset:!0,submit:!0};function c2(Z,J){if(Z===void 0)Z={};var Y={},Q=Boolean(Z.type&&d2[Z.type]);for(var X in Z){var G=Z[X];if((0,Q5.isCustomAttribute)(X)){Y[X]=G;continue}var W=X.toLowerCase(),H=p3(W);if(H){var z=(0,Q5.getPropertyInfo)(H);if(m2.includes(H)&&u2.includes(J)&&!Q)H=p3("default"+W);switch(Y[H]=G,z===null||z===void 0?void 0:z.type){case Q5.BOOLEAN:Y[H]=!0;break;case Q5.OVERLOADED_BOOLEAN:if(G==="")Y[H]=!0;break}continue}if(c3.PRESERVE_CUSTOM_ATTRIBUTES)Y[X]=G}return(0,c3.setStyleProp)(Z.style,Y),Y}function p3(Z){return Q5.possibleStandardNames[Z]}});import*as A0 from"react";var n3=A((G5)=>{var l2=G5&&G5.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(G5,"__esModule",{value:!0});G5.default=i3;var i2=l2(i9()),X5=l9(),n2={cloneElement:A0.cloneElement,createElement:A0.createElement,isValidElement:A0.isValidElement};function i3(Z,J){var Y,Q,X,G,W;if(J===void 0)J={};var H=[],z=typeof J.replace==="function",U=(Y=J.transform)!==null&&Y!==void 0?Y:X5.returnFirstArg,B=(Q=J.library)!==null&&Q!==void 0?Q:n2,L=B.cloneElement,V=B.createElement,M=B.isValidElement,K=Z.length;for(var F=0;F<K;F++){var O=Z[F];if(z){var D=(X=J.replace)===null||X===void 0?void 0:X.call(J,O,F);if(M(D)){if(K>1)D=L(D,{key:(G=D.key)!==null&&G!==void 0?G:F});H.push(U(D,O,F));continue}}if(O.type==="text"){var P=!O.data.trim().length;if(P&&O.parent&&!(0,X5.canTextBeChildOfNode)(O.parent))continue;if(J.trim&&P)continue;H.push(U(O.data,O,F));continue}var N=O,q={};if(o2(N))(0,X5.setStyleProp)(N.attribs.style,N.attribs),q=N.attribs;else if(N.attribs)q=(0,i2.default)(N.attribs,N.name);var T=void 0;switch(O.type){case"script":case"style":if(O.children[0])q.dangerouslySetInnerHTML={__html:O.children[0].data};break;case"tag":if(O.name==="textarea"&&O.children[0])q.defaultValue=O.children[0].data;else if((W=O.children)===null||W===void 0?void 0:W.length)T=i3(O.children,J);break;default:continue}if(K>1)q.key=F;H.push(U(V(O.name,q,T),O,F))}return H.length===1?H[0]:H}function o2(Z){return X5.PRESERVE_CUSTOM_ATTRIBUTES&&Z.type==="tag"&&(0,X5.isCustomComponent)(Z.name,Z.attribs)}});var o9=A((y)=>{var n9=y&&y.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(y,"__esModule",{value:!0});y.htmlToDOM=y.domToReact=y.attributesToProps=y.Text=y.ProcessingInstruction=y.Element=y.Comment=void 0;y.default=r2;var o3=n9(T3());y.htmlToDOM=o3.default;var a2=n9(i9());y.attributesToProps=a2.default;var a3=n9(n3());y.domToReact=a3.default;var V6=k9();Object.defineProperty(y,"Comment",{enumerable:!0,get:function(){return V6.Comment}});Object.defineProperty(y,"Element",{enumerable:!0,get:function(){return V6.Element}});Object.defineProperty(y,"ProcessingInstruction",{enumerable:!0,get:function(){return V6.ProcessingInstruction}});Object.defineProperty(y,"Text",{enumerable:!0,get:function(){return V6.Text}});var s2={lowerCaseAttributeNames:!1};function r2(Z,J){var Y;if(typeof Z!=="string")throw TypeError("First argument must be a string");if(!Z)return[];return(0,a3.default)((0,o3.default)(Z,(Y=J===null||J===void 0?void 0:J.htmlparser2)!==null&&Y!==void 0?Y:s2),J)}});import{lazy as fX}from"react";var T6=new Map;function U7(Z,J){return fX(()=>{if(T6.has(J))return T6.get(J);let Y=Z().then((Q)=>Q);return T6.set(J,Y),Y})}var B7=new Map,jX=(Z)=>{if(!Z.name)throw Error("Component registration requires a name");if(!Z.component&&!Z.loader)throw Error(`Component "${Z.name}" requires component or loader`);let J={name:Z.name,component:Z.component,loader:Z.loader,metadata:Z.metadata,fallback:Z.fallback,isLazy:!1};if(!J.component&&J.loader)J.component=U7(J.loader,Z.name),J.loader=void 0,J.isLazy=!0;return J};function n1(Z){let J=jX(Z);return B7.set(J.name,J),J.component}var K7=(Z)=>{return B7.get(Z)};import{Suspense as cX,useContext as pX}from"react";import{createContext as _X}from"react";import{jsx as hX,Fragment as kX}from"react/jsx-runtime";var vX=_X(hX(kX,{})),_1=vX;import{createContext as bX,useContext as gX}from"react";var P0=bX(null),H0=()=>{let Z=gX(P0);if(!Z)throw Error("usePieConfig must be used within PieConfigProvider");return Z},yX=()=>{let{apiServer:Z}=H0();return Z},v1=yX,mX=()=>{let{centrifugeServer:Z}=H0();return Z},B5=mX,uX=()=>{let{enableRenderingLog:Z}=H0();return Z},k1=uX,dX=()=>{let{pageProcessor:Z}=H0();return Z},L7=dX;import{jsx as M7}from"react/jsx-runtime";function lX({uiConfig:Z,setUiAjaxConfiguration:J}){let Y=pX(_1),Q=k1();if(Q)console.log("[UI] Rendering component:",Z.card),console.log("[UI] Component data:",Z.data),console.log("[UI] Component content:",Z.content),console.log("[UI] Has setUiAjaxConfiguration:",!!J);let X=K7(Z.card);if(!X?.component){if(Q)console.warn(`[UI] Component not found in registry: ${Z.card}`),console.log("[UI] Returning fallback component");return Y}if(Q)console.log("[UI] Found component in registry:",{name:X.name,isLazy:X.isLazy,hasMetadata:!!X.metadata});let G=X.component,W=M7(G,{data:Z.data,content:Z.content,setUiAjaxConfiguration:J});if(X.isLazy){if(Q)console.log("[UI] Rendering lazy component with Suspense:",X.name);return M7(cX,{fallback:X.fallback??Y,children:W},`${X.name}`)}if(Q)console.log("[UI] Rendering component directly:",X.name);return W}var Z1=lX;import{useEffect as pF,useMemo as lF}from"react";import{QueryClient as iF,QueryClientProvider as nF,useQuery as oF}from"@tanstack/react-query";var w5=S(w6(),1),UJ=S(x6(),1);import zJ,{useState as SU,useContext as eZ,useRef as xU,useEffect as ZJ,forwardRef as CU}from"react";var VG={animationIterationCount:!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 T0(Z,J){var Y=!VG[Z]&&typeof J==="number"&&J!==0;return Y?J+"px":J}function w0(Z,J){return Object.keys(Z).reduce(function(Y,Q){return Y[Q]=J(Z[Q],Q),Y},{})}function C6(Z){return w0(Z,function(J,Y){return T0(Y,Z[Y])+" !important"})}var IG=/([a-z])?([A-Z])/g,qG=function(J,Y,Q){return(Y||"")+"-"+Q.toLowerCase()},f6=function(J){return J.replace(IG,qG)},DG=function(J){return Object.keys(J).reduce(function(Y,Q){var X=f6(Q);if(/^ms-/.test(X))X="-".concat(X);return Y[X]=J[Q],Y},{})},C7=DG;var jZ=S(m7(),1),_Z=S(t7(),1),vZ=S(p6(),1);var j4=S(J4(),1),_4=S(Q4(),1),v4=S(G4(),1),k4=S(H4(),1),h4=S(B4(),1),b4=S(M4(),1),g4=S(O4(),1),y4=S(q4(),1),m4=S(N4(),1),u4=S(R4(),1),d4=S(T4(),1),c4=S(f4(),1),R=["Webkit"],z8=["Moz"],k=["ms"],p=["Webkit","Moz"],u=["Webkit","ms"],E0=["Webkit","Moz","ms"],p4={plugins:[j4.default,_4.default,v4.default,k4.default,h4.default,b4.default,g4.default,y4.default,m4.default,u4.default,d4.default,c4.default],prefixMap:{transform:u,transformOrigin:u,transformOriginX:u,transformOriginY:u,backfaceVisibility:R,perspective:R,perspectiveOrigin:R,transformStyle:R,transformOriginZ:R,animation:R,animationDelay:R,animationDirection:R,animationFillMode:R,animationDuration:R,animationIterationCount:R,animationName:R,animationPlayState:R,animationTimingFunction:R,appearance:p,userSelect:E0,fontKerning:R,textEmphasisPosition:R,textEmphasis:R,textEmphasisStyle:R,textEmphasisColor:R,boxDecorationBreak:R,clipPath:R,maskImage:R,maskMode:R,maskRepeat:R,maskPosition:R,maskClip:R,maskOrigin:R,maskSize:R,maskComposite:R,mask:R,maskBorderSource:R,maskBorderMode:R,maskBorderSlice:R,maskBorderWidth:R,maskBorderOutset:R,maskBorderRepeat:R,maskBorder:R,maskType:R,textDecorationStyle:p,textDecorationSkip:p,textDecorationLine:p,textDecorationColor:p,filter:R,fontFeatureSettings:p,breakAfter:E0,breakBefore:E0,breakInside:E0,columnCount:p,columnFill:p,columnGap:p,columnRule:p,columnRuleColor:p,columnRuleStyle:p,columnRuleWidth:p,columns:p,columnSpan:p,columnWidth:p,writingMode:u,flex:u,flexBasis:R,flexDirection:u,flexGrow:R,flexFlow:u,flexShrink:R,flexWrap:u,alignContent:R,alignItems:R,alignSelf:R,justifyContent:R,order:R,transitionDelay:R,transitionDuration:R,transitionProperty:R,transitionTimingFunction:R,backdropFilter:R,scrollSnapType:u,scrollSnapPointsX:u,scrollSnapPointsY:u,scrollSnapDestination:u,scrollSnapCoordinate:u,shapeImageThreshold:R,shapeImageMargin:R,shapeImageOutside:R,hyphens:E0,flowInto:u,flowFrom:u,regionFragment:u,boxSizing:z8,textAlignLast:z8,tabSize:z8,wrapFlow:k,wrapThrough:k,wrapMargin:k,touchAction:k,gridTemplateColumns:k,gridTemplateRows:k,gridTemplateAreas:k,gridTemplate:k,gridAutoColumns:k,gridAutoRows:k,gridAutoFlow:k,grid:k,gridRowStart:k,gridColumnStart:k,gridRowEnd:k,gridRow:k,gridColumn:k,gridColumnEnd:k,gridColumnGap:k,gridRowGap:k,gridArea:k,gridGap:k,textSizeAdjust:u,borderImage:R,borderImageOutset:R,borderImageRepeat:R,borderImageSlice:R,borderImageSource:R,borderImageWidth:R}};var IZ=S(n4(),1),qZ=S(a4(),1),DZ=S(t4(),1),NZ=S(ZZ(),1),AZ=S(YZ(),1),RZ=S(XZ(),1),PZ=S(WZ(),1),TZ=S(UZ(),1),wZ=S(KZ(),1),EZ=S(MZ(),1),SZ=S($Z(),1),xZ=S(VZ(),1),CZ={plugins:[IZ.default,qZ.default,DZ.default,NZ.default,AZ.default,RZ.default,PZ.default,TZ.default,wZ.default,EZ.default,SZ.default,xZ.default],prefixMap:{chrome:{transform:35,transformOrigin:35,transformOriginX:35,transformOriginY:35,backfaceVisibility:35,perspective:35,perspectiveOrigin:35,transformStyle:35,transformOriginZ:35,animation:42,animationDelay:42,animationDirection:42,animationFillMode:42,animationDuration:42,animationIterationCount:42,animationName:42,animationPlayState:42,animationTimingFunction:42,appearance:66,userSelect:53,fontKerning:32,textEmphasisPosition:66,textEmphasis:66,textEmphasisStyle:66,textEmphasisColor:66,boxDecorationBreak:66,clipPath:54,maskImage:66,maskMode:66,maskRepeat:66,maskPosition:66,maskClip:66,maskOrigin:66,maskSize:66,maskComposite:66,mask:66,maskBorderSource:66,maskBorderMode:66,maskBorderSlice:66,maskBorderWidth:66,maskBorderOutset:66,maskBorderRepeat:66,maskBorder:66,maskType:66,textDecorationStyle:56,textDecorationSkip:56,textDecorationLine:56,textDecorationColor:56,filter:52,fontFeatureSettings:47,breakAfter:49,breakBefore:49,breakInside:49,columnCount:49,columnFill:49,columnGap:49,columnRule:49,columnRuleColor:49,columnRuleStyle:49,columnRuleWidth:49,columns:49,columnSpan:49,columnWidth:49,writingMode:47},safari:{flex:8,flexBasis:8,flexDirection:8,flexGrow:8,flexFlow:8,flexShrink:8,flexWrap:8,alignContent:8,alignItems:8,alignSelf:8,justifyContent:8,order:8,transition:6,transitionDelay:6,transitionDuration:6,transitionProperty:6,transitionTimingFunction:6,transform:8,transformOrigin:8,transformOriginX:8,transformOriginY:8,backfaceVisibility:8,perspective:8,perspectiveOrigin:8,transformStyle:8,transformOriginZ:8,animation:8,animationDelay:8,animationDirection:8,animationFillMode:8,animationDuration:8,animationIterationCount:8,animationName:8,animationPlayState:8,animationTimingFunction:8,appearance:11,userSelect:11,backdropFilter:11,fontKerning:9,scrollSnapType:10.1,scrollSnapPointsX:10.1,scrollSnapPointsY:10.1,scrollSnapDestination:10.1,scrollSnapCoordinate:10.1,textEmphasisPosition:7,textEmphasis:7,textEmphasisStyle:7,textEmphasisColor:7,boxDecorationBreak:11,clipPath:11,maskImage:11,maskMode:11,maskRepeat:11,maskPosition:11,maskClip:11,maskOrigin:11,maskSize:11,maskComposite:11,mask:11,maskBorderSource:11,maskBorderMode:11,maskBorderSlice:11,maskBorderWidth:11,maskBorderOutset:11,maskBorderRepeat:11,maskBorder:11,maskType:11,textDecorationStyle:11,textDecorationSkip:11,textDecorationLine:11,textDecorationColor:11,shapeImageThreshold:10,shapeImageMargin:10,shapeImageOutside:10,filter:9,hyphens:11,flowInto:11,flowFrom:11,breakBefore:8,breakAfter:8,breakInside:8,regionFragment:11,columnCount:8,columnFill:8,columnGap:8,columnRule:8,columnRuleColor:8,columnRuleStyle:8,columnRuleWidth:8,columns:8,columnSpan:8,columnWidth:8,writingMode:10.1},firefox:{appearance:60,userSelect:60,boxSizing:28,textAlignLast:48,textDecorationStyle:35,textDecorationSkip:35,textDecorationLine:35,textDecorationColor:35,tabSize:60,hyphens:42,fontFeatureSettings:33,breakAfter:51,breakBefore:51,breakInside:51,columnCount:51,columnFill:51,columnGap:51,columnRule:51,columnRuleColor:51,columnRuleStyle:51,columnRuleWidth:51,columns:51,columnSpan:51,columnWidth:51},opera:{flex:16,flexBasis:16,flexDirection:16,flexGrow:16,flexFlow:16,flexShrink:16,flexWrap:16,alignContent:16,alignItems:16,alignSelf:16,justifyContent:16,order:16,transform:22,transformOrigin:22,transformOriginX:22,transformOriginY:22,backfaceVisibility:22,perspective:22,perspectiveOrigin:22,transformStyle:22,transformOriginZ:22,animation:29,animationDelay:29,animationDirection:29,animationFillMode:29,animationDuration:29,animationIterationCount:29,animationName:29,animationPlayState:29,animationTimingFunction:29,appearance:50,userSelect:40,fontKerning:19,textEmphasisPosition:50,textEmphasis:50,textEmphasisStyle:50,textEmphasisColor:50,boxDecorationBreak:50,clipPath:41,maskImage:50,maskMode:50,maskRepeat:50,maskPosition:50,maskClip:50,maskOrigin:50,maskSize:50,maskComposite:50,mask:50,maskBorderSource:50,maskBorderMode:50,maskBorderSlice:50,maskBorderWidth:50,maskBorderOutset:50,maskBorderRepeat:50,maskBorder:50,maskType:50,textDecorationStyle:43,textDecorationSkip:43,textDecorationLine:43,textDecorationColor:43,filter:39,fontFeatureSettings:34,breakAfter:36,breakBefore:36,breakInside:36,columnCount:36,columnFill:36,columnGap:36,columnRule:36,columnRuleColor:36,columnRuleStyle:36,columnRuleWidth:36,columns:36,columnSpan:36,columnWidth:36,writingMode:34},ie:{flex:10,flexDirection:10,flexFlow:10,flexWrap:10,transform:9,transformOrigin:9,transformOriginX:9,transformOriginY:9,userSelect:11,wrapFlow:11,wrapThrough:11,wrapMargin:11,scrollSnapType:11,scrollSnapPointsX:11,scrollSnapPointsY:11,scrollSnapDestination:11,scrollSnapCoordinate:11,touchAction:10,hyphens:11,flowInto:11,flowFrom:11,breakBefore:11,breakAfter:11,breakInside:11,regionFragment:11,gridTemplateColumns:11,gridTemplateRows:11,gridTemplateAreas:11,gridTemplate:11,gridAutoColumns:11,gridAutoRows:11,gridAutoFlow:11,grid:11,gridRowStart:11,gridColumnStart:11,gridRowEnd:11,gridRow:11,gridColumn:11,gridColumnEnd:11,gridColumnGap:11,gridRowGap:11,gridArea:11,gridGap:11,textSizeAdjust:11,writingMode:11},edge:{userSelect:17,wrapFlow:17,wrapThrough:17,wrapMargin:17,scrollSnapType:17,scrollSnapPointsX:17,scrollSnapPointsY:17,scrollSnapDestination:17,scrollSnapCoordinate:17,hyphens:17,flowInto:17,flowFrom:17,breakBefore:17,breakAfter:17,breakInside:17,regionFragment:17,gridTemplateColumns:15,gridTemplateRows:15,gridTemplateAreas:15,gridTemplate:15,gridAutoColumns:15,gridAutoRows:15,gridAutoFlow:15,grid:15,gridRowStart:15,gridColumnStart:15,gridRowEnd:15,gridRow:15,gridColumn:15,gridColumnEnd:15,gridColumnGap:15,gridRowGap:15,gridArea:15,gridGap:15},ios_saf:{flex:8.1,flexBasis:8.1,flexDirection:8.1,flexGrow:8.1,flexFlow:8.1,flexShrink:8.1,flexWrap:8.1,alignContent:8.1,alignItems:8.1,alignSelf:8.1,justifyContent:8.1,order:8.1,transition:6,transitionDelay:6,transitionDuration:6,transitionProperty:6,transitionTimingFunction:6,transform:8.1,transformOrigin:8.1,transformOriginX:8.1,transformOriginY:8.1,backfaceVisibility:8.1,perspective:8.1,perspectiveOrigin:8.1,transformStyle:8.1,transformOriginZ:8.1,animation:8.1,animationDelay:8.1,animationDirection:8.1,animationFillMode:8.1,animationDuration:8.1,animationIterationCount:8.1,animationName:8.1,animationPlayState:8.1,animationTimingFunction:8.1,appearance:11,userSelect:11,backdropFilter:11,fontKerning:11,scrollSnapType:10.3,scrollSnapPointsX:10.3,scrollSnapPointsY:10.3,scrollSnapDestination:10.3,scrollSnapCoordinate:10.3,boxDecorationBreak:11,clipPath:11,maskImage:11,maskMode:11,maskRepeat:11,maskPosition:11,maskClip:11,maskOrigin:11,maskSize:11,maskComposite:11,mask:11,maskBorderSource:11,maskBorderMode:11,maskBorderSlice:11,maskBorderWidth:11,maskBorderOutset:11,maskBorderRepeat:11,maskBorder:11,maskType:11,textSizeAdjust:11,textDecorationStyle:11,textDecorationSkip:11,textDecorationLine:11,textDecorationColor:11,shapeImageThreshold:10,shapeImageMargin:10,shapeImageOutside:10,filter:9,hyphens:11,flowInto:11,flowFrom:11,breakBefore:8.1,breakAfter:8.1,breakInside:8.1,regionFragment:11,columnCount:8.1,columnFill:8.1,columnGap:8.1,columnRule:8.1,columnRuleColor:8.1,columnRuleStyle:8.1,columnRuleWidth:8.1,columns:8.1,columnSpan:8.1,columnWidth:8.1,writingMode:10.3},android:{borderImage:4.2,borderImageOutset:4.2,borderImageRepeat:4.2,borderImageSlice:4.2,borderImageSource:4.2,borderImageWidth:4.2,flex:4.2,flexBasis:4.2,flexDirection:4.2,flexGrow:4.2,flexFlow:4.2,flexShrink:4.2,flexWrap:4.2,alignContent:4.2,alignItems:4.2,alignSelf:4.2,justifyContent:4.2,order:4.2,transition:4.2,transitionDelay:4.2,transitionDuration:4.2,transitionProperty:4.2,transitionTimingFunction:4.2,transform:4.4,transformOrigin:4.4,transformOriginX:4.4,transformOriginY:4.4,backfaceVisibility:4.4,perspective:4.4,perspectiveOrigin:4.4,transformStyle:4.4,transformOriginZ:4.4,animation:4.4,animationDelay:4.4,animationDirection:4.4,animationFillMode:4.4,animationDuration:4.4,animationIterationCount:4.4,animationName:4.4,animationPlayState:4.4,animationTimingFunction:4.4,appearance:62,userSelect:4.4,fontKerning:4.4,textEmphasisPosition:62,textEmphasis:62,textEmphasisStyle:62,textEmphasisColor:62,boxDecorationBreak:62,clipPath:4.4,maskImage:62,maskMode:62,maskRepeat:62,maskPosition:62,maskClip:62,maskOrigin:62,maskSize:62,maskComposite:62,mask:62,maskBorderSource:62,maskBorderMode:62,maskBorderSlice:62,maskBorderWidth:62,maskBorderOutset:62,maskBorderRepeat:62,maskBorder:62,maskType:62,filter:4.4,fontFeatureSettings:4.4,breakAfter:4.4,breakBefore:4.4,breakInside:4.4,columnCount:4.4,columnFill:4.4,columnGap:4.4,columnRule:4.4,columnRuleColor:4.4,columnRuleStyle:4.4,columnRuleWidth:4.4,columns:4.4,columnSpan:4.4,columnWidth:4.4,writingMode:4.4},and_chr:{appearance:62,textEmphasisPosition:62,textEmphasis:62,textEmphasisStyle:62,textEmphasisColor:62,boxDecorationBreak:62,maskImage:62,maskMode:62,maskRepeat:62,maskPosition:62,maskClip:62,maskOrigin:62,maskSize:62,maskComposite:62,mask:62,maskBorderSource:62,maskBorderMode:62,maskBorderSlice:62,maskBorderWidth:62,maskBorderOutset:62,maskBorderRepeat:62,maskBorder:62,maskType:62},and_uc:{flex:11.4,flexBasis:11.4,flexDirection:11.4,flexGrow:11.4,flexFlow:11.4,flexShrink:11.4,flexWrap:11.4,alignContent:11.4,alignItems:11.4,alignSelf:11.4,justifyContent:11.4,order:11.4,transform:11.4,transformOrigin:11.4,transformOriginX:11.4,transformOriginY:11.4,backfaceVisibility:11.4,perspective:11.4,perspectiveOrigin:11.4,transformStyle:11.4,transformOriginZ:11.4,animation:11.4,animationDelay:11.4,animationDirection:11.4,animationFillMode:11.4,animationDuration:11.4,animationIterationCount:11.4,animationName:11.4,animationPlayState:11.4,animationTimingFunction:11.4,appearance:11.4,userSelect:11.4,textEmphasisPosition:11.4,textEmphasis:11.4,textEmphasisStyle:11.4,textEmphasisColor:11.4,clipPath:11.4,maskImage:11.4,maskMode:11.4,maskRepeat:11.4,maskPosition:11.4,maskClip:11.4,maskOrigin:11.4,maskSize:11.4,maskComposite:11.4,mask:11.4,maskBorderSource:11.4,maskBorderMode:11.4,maskBorderSlice:11.4,maskBorderWidth:11.4,maskBorderOutset:11.4,maskBorderRepeat:11.4,maskBorder:11.4,maskType:11.4,textSizeAdjust:11.4,filter:11.4,hyphens:11.4,fontFeatureSettings:11.4,breakAfter:11.4,breakBefore:11.4,breakInside:11.4,columnCount:11.4,columnFill:11.4,columnGap:11.4,columnRule:11.4,columnRuleColor:11.4,columnRuleStyle:11.4,columnRuleWidth:11.4,columns:11.4,columnSpan:11.4,columnWidth:11.4,writingMode:11.4},op_mini:{}}};function O5(Z){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")O5=function(Y){return typeof Y};else O5=function(Y){return Y&&typeof Symbol==="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y};return O5(Z)}var kZ=jZ.default(p4),cz=_Z.default(CZ,kZ);function pz(Z){return Object.keys(Z).reduce(function(J,Y){var Q=Z[Y];if(Array.isArray(Q))Q=Q.join(";"+Y+":");else if(Q&&O5(Q)==="object"&&typeof Q.toString==="function")Q=Q.toString();return J[Y]=Q,J},{})}function lz(Z){return Object.keys(Z).reduce(function(J,Y){var Q=Z[Y];if(Array.isArray(Q))if(vZ.default.canUseDOM)Q=Q[Q.length-1].toString();else Q=Q.join(";".concat(f6(Y),":"));return J[Y]=Q,J},{})}var fZ,$5;function hZ(Z){var J=Z||global&&global.navigator&&global.navigator.userAgent;if(!$5||J!==fZ){if(J==="all")$5={prefix:kZ,prefixedKeyframes:"keyframes"};else $5=new cz({userAgent:J});fZ=J}return $5}function bZ(Z){return hZ(Z).prefixedKeyframes||"keyframes"}function V5(Z,J){var Y=pz(Z),Q=hZ(J),X=Q.prefix(Y),G=lz(X);return G}function iz(Z){return Object.keys(Z).map(function(J){return J+": "+Z[J]+";"}).join(`
16
- `)}function h1(Z,J,Y){if(!J)return"";var Q=w0(J,function(H,z){return T0(z,H)}),X=V5(Q,Y),G=C7(X),W=iz(G);return Z+"{"+W+"}"}var nz=function(J){return J===null||typeof J>"u"?"main":J.toString()},I5=nz;var oz=function(J,Y,Q){var X=I5(Y);return!!J&&!!J._radiumStyleState&&!!J._radiumStyleState[X]&&J._radiumStyleState[X][Q]},q5=oz;var az=function(J){return typeof J.ref==="string"?J.ref:J.key},a1=az;var sz=function(J){return J._lastRadiumState||J.state&&J.state._radiumStyleState||{}},S0=sz;function x0(Z){if(!Z)return"";var J=5381,Y=Z.length-1;while(Y)J=J*33^Z.charCodeAt(Y),Y-=1;return(J>>>0).toString(16)}function D5(Z){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")D5=function(Y){return typeof Y};else D5=function(Y){return Y&&typeof Symbol==="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y};return D5(Z)}function N5(Z){return Z&&Z.constructor===Object&&Z.toString===Object.prototype.toString}function A5(Z){var J={};return Z.forEach(function(Y){if(!Y||D5(Y)!=="object")return;if(Array.isArray(Y))Y=A5(Y);Object.keys(Y).forEach(function(Q){if(!N5(Y[Q])||!N5(J[Q])){J[Q]=Y[Q];return}if(Q.indexOf("@media")===0){var X=Q;while(!0)if(X+=" ",!J[X]){J[X]=Y[Q];return}}J[Q]=A5([J[Q],Y[Q]])})}),J}var rz=function(){};var gZ=rz;function E8(Z){var{addCSS:J,config:Y,style:Q}=Z,X=function(H){var z=H,U=z.__process(Y.userAgent),B=U.animationName,L=U.css;return J(L),B},G=Object.keys(Q).reduce(function(W,H){var z=Q[H],U=Array.isArray(z);if(H==="animationName"&&z&&(z.__radiumKeyframes||U))if(U)z=z.map(X).join(", ");else z=X(z);return W[H]=z,W},{});return{style:G}}var tz=function(J){var{style:Y,mergeStyles:Q}=J,X=Array.isArray(Y)?Q(Y):Y;return{style:X}},yZ=tz;function S8(Z){var{config:J,style:Y}=Z,Q=V5(Y,J.userAgent);return{style:Q}}function x8(Z){var{isNestedStyle:J,style:Y}=Z,Q=Object.keys(Y).reduce(function(X,G){var W=Y[G];if(!J(W))X[G]=W;return X},{});return{style:Q}}var U0=[],R5=!1;function C8(){U0.forEach(function(Z){Z()})}var ez=function(J){if(U0.indexOf(J)===-1)U0.push(J);if(!R5)window.addEventListener("mouseup",C8),R5=!0;return{remove:function(){var Q=U0.indexOf(J);if(U0.splice(Q,1),U0.length===0&&R5)window.removeEventListener("mouseup",C8),R5=!1}}},mZ={subscribe:ez,__triggerForTests:C8};var uZ=function(J){return J===":hover"||J===":active"||J===":focus"},ZU=function(J){var{ExecutionEnvironment:Y,getComponentField:Q,getState:X,mergeStyles:G,props:W,setState:H,style:z}=J,U={},B={};if(z[":hover"]){var L=W.onMouseEnter;B.onMouseEnter=function(q){L&&L(q),H(":hover",!0)};var V=W.onMouseLeave;B.onMouseLeave=function(q){V&&V(q),H(":hover",!1)}}if(z[":active"]){var M=W.onMouseDown;B.onMouseDown=function(q){M&&M(q),U._lastMouseDown=Date.now(),H(":active","viamousedown")};var K=W.onKeyDown;B.onKeyDown=function(q){if(K&&K(q),q.key===" "||q.key==="Enter")H(":active","viakeydown")};var F=W.onKeyUp;B.onKeyUp=function(q){if(F&&F(q),q.key===" "||q.key==="Enter")H(":active",!1)}}if(z[":focus"]){var O=W.onFocus;B.onFocus=function(q){O&&O(q),H(":focus",!0)};var D=W.onBlur;B.onBlur=function(q){D&&D(q),H(":focus",!1)}}if(z[":active"]&&!Q("_radiumMouseUpListener")&&Y.canUseEventListeners)U._radiumMouseUpListener=mZ.subscribe(function(){Object.keys(Q("state")._radiumStyleState).forEach(function(q){if(X(":active",q)==="viamousedown")H(":active",!1,q)})});var P=W.disabled?[z[":disabled"]]:Object.keys(z).filter(function(q){return uZ(q)&&X(q)}).map(function(q){return z[q]}),N=G([z].concat(P));return N=Object.keys(N).reduce(function(q,T){if(!uZ(T)&&T!==":disabled")q[T]=N[T];return q},{}),{componentFields:U,props:B,style:N}},dZ=ZU;function JU(Z){for(var J=1;J<arguments.length;J++){var Y=arguments[J]!=null?arguments[J]:{},Q=Object.keys(Y);if(typeof Object.getOwnPropertySymbols==="function")Q=Q.concat(Object.getOwnPropertySymbols(Y).filter(function(X){return Object.getOwnPropertyDescriptor(Y,X).enumerable}));Q.forEach(function(X){YU(Z,X,Y[X])})}return Z}function YU(Z,J,Y){if(J in Z)Object.defineProperty(Z,J,{value:Y,enumerable:!0,configurable:!0,writable:!0});else Z[J]=Y;return Z}var f8;function QU(Z){if(f8===void 0)f8=!!Z.canUseDOM&&!!window&&!!window.matchMedia&&function(J){return window.matchMedia(J)}||null;return f8}function cZ(Z,J){return Object.keys(Z).filter(function(Y){return J(Z[Y],Y)}).reduce(function(Y,Q){return Y[Q]=Z[Q],Y},{})}function XU(Z){return Object.keys(Z).reduce(function(J,Y){if(Y.indexOf("@media")!==0)J[Y]=Z[Y];return J},{})}function GU(Z){var{addCSS:J,appendImportantToEachValue:Y,cssRuleSetToString:Q,hash:X,isNestedStyle:G,style:W,userAgent:H}=Z,z="";return Object.keys(W).filter(function(U){return U.indexOf("@media")===0}).map(function(U){var B=Y(cZ(W[U],function(K){return!G(K)}));if(!Object.keys(B).length)return;var L=Q("",B,H),V="rmq-"+X(U+L),M=U+"{ ."+V+L+"}";J(M),z+=(z?" ":"")+V}),z}function WU(Z){var{listener:J,listenersByQuery:Y,matchMedia:Q,mediaQueryListsByQuery:X,query:G}=Z;G=G.replace("@media ","");var W=X[G];if(!W&&Q)X[G]=W=Q(G);if(!Y||!Y[G])W.addListener(J),Y[G]={remove:function(){W.removeListener(J)}};return W}function j8(Z){var{ExecutionEnvironment:J,addCSS:Y,appendImportantToEachValue:Q,config:X,cssRuleSetToString:G,getComponentField:W,getGlobalState:H,hash:z,isNestedStyle:U,mergeStyles:B,props:L,setState:V,style:M}=Z,K=XU(M),F=GU({addCSS:Y,appendImportantToEachValue:Q,cssRuleSetToString:G,hash:z,isNestedStyle:U,style:M,userAgent:X.userAgent}),O=F?{className:F+(L.className?" "+L.className:"")}:null,D=X.matchMedia||QU(J);if(!D)return{props:O,style:K};var P=JU({},W("_radiumMediaQueryListenersByQuery")),N=H("mediaQueryListsByQuery")||{};return Object.keys(M).filter(function(q){return q.indexOf("@media")===0}).map(function(q){var T=cZ(M[q],U);if(!Object.keys(T).length)return;var C=WU({listener:function(){return V(q,C.matches,"_all")},listenersByQuery:P,matchMedia:D,mediaQueryListsByQuery:N,query:q});if(C.matches)K=B([K,T])}),{componentFields:{_radiumMediaQueryListenersByQuery:P},globalState:{mediaQueryListsByQuery:N},props:O,style:K}}function _8(Z){var{addCSS:J,appendImportantToEachValue:Y,config:Q,cssRuleSetToString:X,hash:G,props:W,style:H}=Z,z=W.className,U=Object.keys(H).reduce(function(B,L){var V=H[L];if(L===":visited"){V=Y(V);var M=X("",V,Q.userAgent),K="rad-"+G(M),F="."+K+":visited"+M;J(F),z=(z?z+" ":"")+K}else B[L]=V;return B},{});return{props:z===W.className?null:{className:z},style:U}}var W1={checkProps:gZ,keyframes:E8,mergeStyleArray:yZ,prefix:S8,removeNestedStyles:x8,resolveInteractionStyles:dZ,resolveMediaQueries:j8,visited:_8};var nZ=S(p6(),1);import b1 from"react";function HU(Z,J){if(!(Z instanceof J))throw TypeError("Cannot call a class as a function")}function pZ(Z,J){for(var Y=0;Y<J.length;Y++){var Q=J[Y];if(Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q)Q.writable=!0;Object.defineProperty(Z,Q.key,Q)}}function zU(Z,J,Y){if(J)pZ(Z.prototype,J);if(Y)pZ(Z,Y);return Z}var lZ=function(){function Z(J){HU(this,Z),this._userAgent=void 0,this._listeners=void 0,this._cssSet=void 0,this._userAgent=J,this._listeners=[],this._cssSet={}}return zU(Z,[{key:"subscribe",value:function(Y){var Q=this;if(this._listeners.indexOf(Y)===-1)this._listeners.push(Y);return{remove:function(){var G=Q._listeners.indexOf(Y);if(G>-1)Q._listeners.splice(G,1)}}}},{key:"addCSS",value:function(Y){var Q=this;if(!this._cssSet[Y])this._cssSet[Y]=!0,this._emitChange();return{remove:function(){delete Q._cssSet[Y],Q._emitChange()}}}},{key:"getCSS",value:function(){return Object.keys(this._cssSet).join(`
17
- `)}},{key:"_emitChange",value:function(){this._listeners.forEach(function(Y){return Y()})}}]),Z}();function B0(Z){for(var J=1;J<arguments.length;J++){var Y=arguments[J]!=null?arguments[J]:{},Q=Object.keys(Y);if(typeof Object.getOwnPropertySymbols==="function")Q=Q.concat(Object.getOwnPropertySymbols(Y).filter(function(X){return Object.getOwnPropertyDescriptor(Y,X).enumerable}));Q.forEach(function(X){UU(Z,X,Y[X])})}return Z}function UU(Z,J,Y){if(J in Z)Object.defineProperty(Z,J,{value:Y,enumerable:!0,configurable:!0,writable:!0});else Z[J]=Y;return Z}function P5(Z){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")P5=function(Y){return typeof Y};else P5=function(Y){return Y&&typeof Symbol==="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y};return P5(Z)}var oZ={plugins:[W1.mergeStyleArray,W1.checkProps,W1.resolveMediaQueries,W1.resolveInteractionStyles,W1.keyframes,W1.visited,W1.removeNestedStyles,W1.prefix,W1.checkProps]},iZ={},BU=!1,s1=null,KU=function(J){return J.type&&!J.type._isRadiumEnhanced},LU=function(J){var{children:Y,component:Q,config:X,existingKeyMap:G,extraStateKeyMap:W}=J;if(!Y)return Y;var H=P5(Y);if(H==="string"||H==="number")return Y;if(H==="function")return function(){var V=Y.apply(this,arguments);if(b1.isValidElement(V)){var M=a1(V);delete W[M];var K=s1(Q,V,X,G,!0,W),F=K.element;return F}return V};if(b1.Children.count(Y)===1&&Y.type){var z=b1.Children.only(Y),U=a1(z);delete W[U];var B=s1(Q,z,X,G,!0,W),L=B.element;return L}return b1.Children.map(Y,function(V){if(b1.isValidElement(V)){var M=a1(V);delete W[M];var K=s1(Q,V,X,G,!0,W),F=K.element;return F}return V})},MU=function(J){var{component:Y,config:Q,existingKeyMap:X,props:G,extraStateKeyMap:W}=J,H=G;return Object.keys(G).forEach(function(z){if(z==="children")return;var U=G[z];if(b1.isValidElement(U)){var B=a1(U);delete W[B],H=B0({},H);var L=s1(Y,U,Q,X,!0,W),V=L.element;H[z]=V}}),H},FU=function(J){var{componentName:Y,existingKeyMap:Q,renderedElement:X}=J,G=a1(X),W=I5(G),H=!1,z=function(){if(H)return W;if(H=!0,Q[W]){var B;if(typeof X.type==="string")B=X.type;else if(X.type.constructor)B=X.type.constructor.displayName||X.type.constructor.name;throw Error("Radium requires each element with interactive styles to have a unique key, set using either the ref or key prop. "+(G?'Key "'+G+'" is a duplicate.':"Multiple elements have no key specified.")+' Component: "'+Y+'". '+(B?'Element: "'+B+'".':""))}return Q[W]=!0,W};return z},$U=function(J,Y,Q,X){if(!J._radiumIsMounted)return;var G=S0(J),W={_radiumStyleState:B0({},G)};W._radiumStyleState[Y]=B0({},W._radiumStyleState[Y]),W._radiumStyleState[Y][Q]=X,J._lastRadiumState=W._radiumStyleState,J.setState(W)},OU=function(J){var{component:Y,config:Q,existingKeyMap:X,props:G,renderedElement:W}=J;if(!b1.isValidElement(W)||typeof W.type!=="string"||!G.style)return G;var H=G,z=Q.plugins||oZ.plugins,U=Y.constructor.displayName||Y.constructor.name,B=FU({renderedElement:W,existingKeyMap:X,componentName:U}),L=function(P){return Y[P]},V=function(P){return iZ[P]},M=function(P,N){return q5(Y.state,N||B(),P)},K=function(P,N,q){return $U(Y,q||B(),P,N)},F=function(P){var N=Y._radiumStyleKeeper;if(!N){if(BU)return{remove:function(){}};throw Error("To use plugins requiring `addCSS` (e.g. keyframes, media queries), please wrap your application in the StyleRoot component. Component name: `"+U+"`.")}return N.addCSS(P)},O=G.style;if(z.forEach(function(D){var P=D({ExecutionEnvironment:nZ.default,addCSS:F,appendImportantToEachValue:C6,componentName:U,config:Q,cssRuleSetToString:h1,getComponentField:L,getGlobalState:V,getState:M,hash:x0,mergeStyles:A5,props:H,setState:K,isNestedStyle:N5,style:O})||{};O=P.style||O,H=P.props&&Object.keys(P.props).length?B0({},H,P.props):H;var N=P.componentFields||{};Object.keys(N).forEach(function(T){Y[T]=N[T]});var q=P.globalState||{};Object.keys(q).forEach(function(T){iZ[T]=q[T]})}),O!==G.style)H=B0({},H,{style:O});return H},VU=function(J,Y,Q){if(typeof J.type==="string")Y=B0({},Y,{"data-radium":!0});return b1.cloneElement(J,Y,Q)};s1=function(J,Y){var Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:oZ,X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},G=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,W=arguments.length>5?arguments[5]:void 0;if(!W){var H=S0(J);W=Object.keys(H).reduce(function(M,K){if(K!=="main")M[K]=!0;return M},{})}if(Array.isArray(Y)&&!Y.props){var z=Y.map(function(M){if(W){var K=a1(M);delete W[K]}return s1(J,M,Q,X,G,W).element});return{extraStateKeyMap:W,element:z}}if(!Y||Y.props&&Y.props["data-radium"]||G&&!KU(Y))return{extraStateKeyMap:W,element:Y};var U=Y.props.children,B=LU({children:U,component:J,config:Q,existingKeyMap:X,extraStateKeyMap:W}),L=MU({component:J,config:Q,existingKeyMap:X,extraStateKeyMap:W,props:Y.props});if(L=OU({component:J,config:Q,existingKeyMap:X,props:L,renderedElement:Y}),B===U&&L===Y.props)return{extraStateKeyMap:W,element:Y};var V=VU(Y,L!==Y.props?L:{},B);return{extraStateKeyMap:W,element:V}};var aZ=s1;var rZ=S(x6(),1);import T5,{useContext as sZ}from"react";function v8(){return v8=Object.assign||function(Z){for(var J=1;J<arguments.length;J++){var Y=arguments[J];for(var Q in Y)if(Object.prototype.hasOwnProperty.call(Y,Q))Z[Q]=Y[Q]}return Z},v8.apply(this,arguments)}var C0=T5.createContext(void 0),K0=T5.createContext(void 0);function L0(Z){var J=T5.forwardRef(function(Y,Q){var X=sZ(K0),G=sZ(C0);return T5.createElement(Z,v8({ref:Q},Y,{radiumConfigContext:X,styleKeeperContext:G}))});return J.displayName="withRadiumContexts(".concat(Z.displayName||Z.name||"Component",")"),rZ.default(J,Z)}function r1(Z){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")r1=function(Y){return typeof Y};else r1=function(Y){return Y&&typeof Symbol==="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y};return r1(Z)}function QJ(Z,J){if(!(Z instanceof J))throw TypeError("Cannot call a class as a function")}function tZ(Z,J){for(var Y=0;Y<J.length;Y++){var Q=J[Y];if(Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q)Q.writable=!0;Object.defineProperty(Z,Q.key,Q)}}function IU(Z,J,Y){if(J)tZ(Z.prototype,J);if(Y)tZ(Z,Y);return Z}function XJ(Z,J){if(J&&(r1(J)==="object"||typeof J==="function"))return J;return GJ(Z)}function GJ(Z){if(Z===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return Z}function g1(Z,J,Y){if(typeof Reflect<"u"&&Reflect.get)g1=Reflect.get;else g1=function(X,G,W){var H=qU(X,G);if(!H)return;var z=Object.getOwnPropertyDescriptor(H,G);if(z.get)return z.get.call(W);return z.value};return g1(Z,J,Y||Z)}function qU(Z,J){while(!Object.prototype.hasOwnProperty.call(Z,J))if(Z=$1(Z),Z===null)break;return Z}function $1(Z){return $1=Object.setPrototypeOf?Object.getPrototypeOf:function(Y){return Y.__proto__||Object.getPrototypeOf(Y)},$1(Z)}function WJ(Z,J){if(typeof J!=="function"&&J!==null)throw TypeError("Super expression must either be null or a function");if(Z.prototype=Object.create(J&&J.prototype,{constructor:{value:Z,writable:!0,configurable:!0}}),J)k8(Z,J)}function k8(Z,J){return k8=Object.setPrototypeOf||function(Q,X){return Q.__proto__=X,Q},k8(Z,J)}function DU(Z,J){return RU(Z)||AU(Z,J)||NU()}function NU(){throw TypeError("Invalid attempt to destructure non-iterable instance")}function AU(Z,J){var Y=[],Q=!0,X=!1,G=void 0;try{for(var W=Z[Symbol.iterator](),H;!(Q=(H=W.next()).done);Q=!0)if(Y.push(H.value),J&&Y.length===J)break}catch(z){X=!0,G=z}finally{try{if(!Q&&W.return!=null)W.return()}finally{if(X)throw G}}return Y}function RU(Z){if(Array.isArray(Z))return Z}function h8(Z){for(var J=1;J<arguments.length;J++){var Y=arguments[J]!=null?arguments[J]:{},Q=Object.keys(Y);if(typeof Object.getOwnPropertySymbols==="function")Q=Q.concat(Object.getOwnPropertySymbols(Y).filter(function(X){return Object.getOwnPropertyDescriptor(Y,X).enumerable}));Q.forEach(function(X){PU(Z,X,Y[X])})}return Z}function PU(Z,J,Y){if(J in Z)Object.defineProperty(Z,J,{value:Y,enumerable:!0,configurable:!0,writable:!0});else Z[J]=Y;return Z}function HJ(Z,J){if(Z==null)return{};var Y=TU(Z,J),Q,X;if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(Z);for(X=0;X<G.length;X++){if(Q=G[X],J.indexOf(Q)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Z,Q))continue;Y[Q]=Z[Q]}}return Y}function TU(Z,J){if(Z==null)return{};var Y={},Q=Object.keys(Z),X,G;for(G=0;G<Q.length;G++){if(X=Q[G],J.indexOf(X)>=0)continue;Y[X]=Z[X]}return Y}function wU(Z){var J=EU(Z,"string");return r1(J)==="symbol"?J:String(J)}function EU(Z,J){if(r1(Z)!=="object"||Z===null)return Z;var Y=Z[Symbol.toPrimitive];if(Y!==void 0){var Q=Y.call(Z,J||"default");if(r1(Q)!=="object")return Q;throw TypeError("@@toPrimitive must return a primitive value.")}return(J==="string"?String:Number)(Z)}var fU=["arguments","callee","caller","length","name","prototype","type"],E5,BJ;function jU(Z,J){Object.getOwnPropertyNames(Z).forEach(function(Y){if(fU.indexOf(Y)<0&&!J.hasOwnProperty(Y)){var Q=Object.getOwnPropertyDescriptor(Z,Y);Q&&Object.defineProperty(J,Y,Q)}})}function _U(Z){var J=Z.prototype||{};return!Z.isReactComponent&&!J.isReactComponent&&!Z.render&&!J.render}function vU(Z){return typeof Z==="function"&&/^\s*class\s+/.test(Z.toString())}function kU(Z,J){BJ.forEach(function(Y){var Q=Object.getOwnPropertyDescriptor(Z,Y),X=(Q||{}).value;if(!X)return;var G=Object.getOwnPropertyDescriptor(E5,Y),W=(G||{}).value,H=J.prototype[Y];if(!H&&X!==W)Q&&Object.defineProperty(J.prototype,Y,Q),delete Z[Y]})}function KJ(Z){if(Z._extraRadiumStateKeys&&Z._extraRadiumStateKeys.length>0){var J=Z._extraRadiumStateKeys.reduce(function(Y,Q){var X=Y[Q],G=HJ(Y,[Q].map(wU));return G},S0(Z));Z._lastRadiumState=J,Z.setState({_radiumStyleState:J})}}function LJ(Z){var{_radiumMouseUpListener:J,_radiumMediaQueryListenersByQuery:Y}=Z;if(Z._radiumIsMounted=!1,J)J.remove();if(Y)Object.keys(Y).forEach(function(Q){Y[Q].remove()},Z)}function MJ(Z,J,Y){var Q=Z||J||Y;if(Y&&Q!==Y)Q=h8({},Y,Q);return Q}function FJ(Z,J,Y,Q){var X=aZ(Z,J,Y),G=X.extraStateKeyMap,W=X.element;if(Z._extraRadiumStateKeys=Object.keys(G),Q)return zJ.createElement(K0.Provider,{value:Q},W);return W}function JJ(Z,J){var Y=zJ.forwardRef(function(Q,X){var G=Q.radiumConfig,W=HJ(Q,["radiumConfig"]),H=eZ(K0),z=eZ(C0),U=SU({_radiumStyleState:{}}),B=DU(U,2),L=B[0],V=B[1],M=xU({state:L,setState:V,_radiumMediaQueryListenersByQuery:void 0,_radiumMouseUpListener:void 0,_radiumIsMounted:!0,_lastRadiumState:void 0,_extraRadiumStateKeys:void 0,_radiumStyleKeeper:z}).current;M.state=L,ZJ(function(){return function(){LJ(M)}},[M]);var K=M._extraRadiumStateKeys&&M._extraRadiumStateKeys.length>0;ZJ(function(){KJ(M)},[K,M]);var F=Z(W,X),O=MJ(G,H,J);return FJ(M,F,O,G)});return Y._isRadiumEnhanced=!0,Y.defaultProps=Z.defaultProps,UJ.default(Y,Z)}function hU(Z,J,Y){var Q=function(X){WJ(G,X);function G(){var W;QJ(this,G),W=XJ(this,$1(G).apply(this,arguments)),W.state=W.state||{},W._radiumStyleKeeper=W.props.styleKeeperContext,W._radiumMediaQueryListenersByQuery=W._radiumMediaQueryListenersByQuery,W._radiumMouseUpListener=W._radiumMouseUpListener,W._radiumIsMounted=!0,W._lastRadiumState=void 0,W._extraRadiumStateKeys=void 0,W.state._radiumStyleState={};var H=GJ(W);return kU(H,J),W}return IU(G,[{key:"componentDidUpdate",value:function(H,z,U){if(g1($1(G.prototype),"componentDidUpdate",this))g1($1(G.prototype),"componentDidUpdate",this).call(this,H,z,U);KJ(this)}},{key:"componentWillUnmount",value:function(){if(g1($1(G.prototype),"componentWillUnmount",this))g1($1(G.prototype),"componentWillUnmount",this).call(this);LJ(this)}},{key:"render",value:function(){var H=g1($1(G.prototype),"render",this).call(this),z=MJ(this.props.radiumConfig,this.props.radiumConfigContext,Y);return FJ(this,H,z,this.props.radiumConfig)}}]),G}(J);if(Q._isRadiumEnhanced=!0,E5=Q.prototype,BJ=Object.getOwnPropertyNames(E5).filter(function(X){return X!=="constructor"&&typeof E5[X]==="function"}),jU(Z,Q),Q.propTypes&&Q.propTypes.style)Q.propTypes=h8({},Q.propTypes,{style:w5.default.oneOfType([w5.default.array,w5.default.object])});return Q.displayName=Z.displayName||Z.name||"Component",L0(Q)}function bU(Z){return Z=function(J){function Y(){var Q=Reflect.construct(J,arguments,this.constructor);return Q}return Reflect.setPrototypeOf(Y.prototype,J.prototype),Reflect.setPrototypeOf(Y,J),Y}(Z),Z}var YJ=CU(function(){return null}).$$typeof;function M0(Z){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(YJ&&Z.$$typeof===YJ)return JJ(Z.render,J);if(typeof Z!=="function")return gU(J,Z);var Y=Z;if(_U(Y))return JJ(Y,J);var Q=Y;if(vU(Q))Q=bU(Q);if(Q===Y)Q=function(X){WJ(G,X);function G(){return QJ(this,G),XJ(this,$1(G).apply(this,arguments))}return G}(Q);return hU(Y,Q,J)}function gU(Z,J){var Y=h8({},Z,J);return function(Q){return M0(Q,Y)}}var S5=S(w6(),1);import pU,{PureComponent as lU}from"react";function F0(Z){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")F0=function(Y){return typeof Y};else F0=function(Y){return Y&&typeof Symbol==="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y};return F0(Z)}function yU(Z,J){if(!(Z instanceof J))throw TypeError("Cannot call a class as a function")}function $J(Z,J){for(var Y=0;Y<J.length;Y++){var Q=J[Y];if(Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q)Q.writable=!0;Object.defineProperty(Z,Q.key,Q)}}function mU(Z,J,Y){if(J)$J(Z.prototype,J);if(Y)$J(Z,Y);return Z}function uU(Z,J){if(J&&(F0(J)==="object"||typeof J==="function"))return J;return dU(Z)}function dU(Z){if(Z===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return Z}function b8(Z){return b8=Object.setPrototypeOf?Object.getPrototypeOf:function(Y){return Y.__proto__||Object.getPrototypeOf(Y)},b8(Z)}function cU(Z,J){if(typeof J!=="function"&&J!==null)throw TypeError("Super expression must either be null or a function");if(Z.prototype=Object.create(J&&J.prototype,{constructor:{value:Z,writable:!0,configurable:!0}}),J)g8(Z,J)}function g8(Z,J){return g8=Object.setPrototypeOf||function(Q,X){return Q.__proto__=X,Q},g8(Z,J)}var y8=function(Z){cU(J,Z);function J(){return yU(this,J),uU(this,b8(J).apply(this,arguments))}return mU(J,[{key:"_buildStyles",value:function(Q){var X=this,G=this.props.radiumConfig&&this.props.radiumConfig.userAgent||this.props.radiumConfigContext&&this.props.radiumConfigContext.userAgent,W=this.props.scopeSelector,H=Object.keys(Q).reduce(function(U,B){if(F0(Q[B])!=="object")U[B]=Q[B];return U},{}),z=Object.keys(H).length?h1(W||"",H,G):"";return z+Object.keys(Q).reduce(function(U,B){var L=Q[B];if(B==="mediaQueries")U+=X._buildMediaQueryString(L);else if(F0(Q[B])==="object"){var V=W?B.split(",").map(function(M){return W+" "+M.trim()}).join(","):B;U+=h1(V,L,G)}return U},"")}},{key:"_buildMediaQueryString",value:function(Q){var X=this,G="";return Object.keys(Q).forEach(function(W){G+="@media "+W+"{"+X._buildStyles(Q[W])+"}"}),G}},{key:"render",value:function(){if(!this.props.rules)return null;var Q=this._buildStyles(this.props.rules);return pU.createElement("style",{dangerouslySetInnerHTML:{__html:Q}})}}]),J}(lU);y8.propTypes={radiumConfig:S5.default.object,rules:S5.default.object,scopeSelector:S5.default.string};y8.defaultProps={scopeSelector:""};var OJ=L0(y8);import C5,{useContext as YB,useRef as QB}from"react";import rU,{Component as tU}from"react";function x5(Z){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")x5=function(Y){return typeof Y};else x5=function(Y){return Y&&typeof Symbol==="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y};return x5(Z)}function iU(Z,J){if(!(Z instanceof J))throw TypeError("Cannot call a class as a function")}function VJ(Z,J){for(var Y=0;Y<J.length;Y++){var Q=J[Y];if(Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q)Q.writable=!0;Object.defineProperty(Z,Q.key,Q)}}function nU(Z,J,Y){if(J)VJ(Z.prototype,J);if(Y)VJ(Z,Y);return Z}function oU(Z,J){if(J&&(x5(J)==="object"||typeof J==="function"))return J;return aU(Z)}function aU(Z){if(Z===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return Z}function m8(Z){return m8=Object.setPrototypeOf?Object.getPrototypeOf:function(Y){return Y.__proto__||Object.getPrototypeOf(Y)},m8(Z)}function sU(Z,J){if(typeof J!=="function"&&J!==null)throw TypeError("Super expression must either be null or a function");if(Z.prototype=Object.create(J&&J.prototype,{constructor:{value:Z,writable:!0,configurable:!0}}),J)u8(Z,J)}function u8(Z,J){return u8=Object.setPrototypeOf||function(Q,X){return Q.__proto__=X,Q},u8(Z,J)}var eU=function(Z){sU(J,Z);function J(){var Y;if(iU(this,J),Y=oU(this,m8(J).apply(this,arguments)),Y.styleKeeper=void 0,Y._subscription=void 0,Y._root=void 0,Y._css=void 0,Y._onChange=function(){var Q=Y.styleKeeper.getCSS();if(Q!==Y._css){if(Y._root)Y._root.innerHTML=Q;else throw Error("No root style object found, even after StyleSheet mount.");Y._css=Q}},!Y.props.styleKeeperContext)throw Error("StyleRoot is required to use StyleSheet");return Y.styleKeeper=Y.props.styleKeeperContext,Y._css=Y.styleKeeper.getCSS(),Y}return nU(J,[{key:"componentDidMount",value:function(){this._subscription=this.styleKeeper.subscribe(this._onChange),this._onChange()}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"componentWillUnmount",value:function(){if(this._subscription)this._subscription.remove()}},{key:"render",value:function(){var Q=this;return rU.createElement("style",{dangerouslySetInnerHTML:{__html:this._css},ref:function(G){Q._root=G}})}}]),J}(tU),IJ=L0(eU);function ZB(Z,J){if(Z==null)return{};var Y=JB(Z,J),Q,X;if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(Z);for(X=0;X<G.length;X++){if(Q=G[X],J.indexOf(Q)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Z,Q))continue;Y[Q]=Z[Q]}}return Y}function JB(Z,J){if(Z==null)return{};var Y={},Q=Object.keys(Z),X,G;for(G=0;G<Q.length;G++){if(X=Q[G],J.indexOf(X)>=0)continue;Y[X]=Z[X]}return Y}function XB(Z,J){var Y=Z&&Z.userAgent||J&&J.userAgent;return new lZ(Y)}var GB=M0(function(Z){var J=Z.children,Y=ZB(Z,["children"]);return C5.createElement("div",Y,J,C5.createElement(IJ,null))}),WB=function(J){var Y=J.radiumConfig,Q=YB(K0),X=QB(XB(Y,Q));return C5.createElement(C0.Provider,{value:X.current},C5.createElement(GB,J))},qJ=WB;function d8(Z,J){return{__radiumKeyframes:!0,__process:function(Q){var X=bZ(Q),G=Object.keys(Z).map(function(z){return h1(z,Z[z],Q)}).join(`
13
+ `):" "+HQ(W[0]):"as no adapter specified";throw new x("There is no suitable adapter to dispatch the request "+H,"ERR_NOT_SUPPORT")}return X}var CQ={getAdapter:vL,adapters:N9};function K9(Z){if(Z.cancelToken)Z.cancelToken.throwIfRequested();if(Z.signal&&Z.signal.aborted)throw new t0(null,Z)}function zQ(Z){if(K9(Z),Z.headers=L1.from(Z.headers),Z.data=B9.call(Z,Z.transformRequest),["post","put","patch"].indexOf(Z.method)!==-1)Z.headers.setContentType("application/x-www-form-urlencoded",!1);return CQ.getAdapter(Z.adapter||D9.adapter,Z)(Z).then(function(Q){return K9(Z),Q.data=B9.call(Z,Z.transformResponse,Q),Q.headers=L1.from(Q.headers),Q},function(Q){if(!PQ(Q)){if(K9(Z),Q&&Q.response)Q.response.data=B9.call(Z,Z.transformResponse,Q.response),Q.response.headers=L1.from(Q.response.headers)}return Promise.reject(Q)})}var fQ="1.13.4",U6={};["object","boolean","number","function","string","symbol"].forEach((Z,J)=>{U6[Z]=function(Q){return typeof Q===Z||"a"+(J<1?"n ":" ")+Z}});var UQ={};U6.transitional=function(J,Y,Q){function X(G,W){return"[Axios v"+fQ+"] Transitional option '"+G+"'"+W+(Q?". "+Q:"")}return(G,W,H)=>{if(J===!1)throw new x(X(W," has been removed"+(Y?" in "+Y:"")),x.ERR_DEPRECATED);if(Y&&!UQ[W])UQ[W]=!0,console.warn(X(W," has been deprecated since v"+Y+" and will be removed in the near future"));return J?J(G,W,H):!0}};U6.spelling=function(J){return(Y,Q)=>{return console.warn(`${Q} is likely a misspelling of ${J}`),!0}};function kL(Z,J,Y){if(typeof Z!=="object")throw new x("options must be an object",x.ERR_BAD_OPTION_VALUE);let Q=Object.keys(Z),X=Q.length;while(X-- >0){let G=Q[X],W=J[G];if(W){let H=Z[G],z=H===void 0||W(H,G,Z);if(z!==!0)throw new x("option "+G+" must be "+z,x.ERR_BAD_OPTION_VALUE);continue}if(Y!==!0)throw new x("Unknown option "+G,x.ERR_BAD_OPTION)}}var Y6={assertOptions:kL,validators:U6},V1=Y6.validators;class n0{constructor(Z){this.defaults=Z||{},this.interceptors={request:new rY,response:new rY}}async request(Z,J){try{return await this._request(Z,J)}catch(Y){if(Y instanceof Error){let Q={};Error.captureStackTrace?Error.captureStackTrace(Q):Q=Error();let X=Q.stack?Q.stack.replace(/^.+\n/,""):"";try{if(!Y.stack)Y.stack=X;else if(X&&!String(Y.stack).endsWith(X.replace(/^.+\n.+\n/,"")))Y.stack+=`
14
+ `+X}catch(G){}}throw Y}}_request(Z,J){if(typeof Z==="string")J=J||{},J.url=Z;else J=Z||{};J=Q0(this.defaults,J);let{transitional:Y,paramsSerializer:Q,headers:X}=J;if(Y!==void 0)Y6.assertOptions(Y,{silentJSONParsing:V1.transitional(V1.boolean),forcedJSONParsing:V1.transitional(V1.boolean),clarifyTimeoutError:V1.transitional(V1.boolean)},!1);if(Q!=null)if(V.isFunction(Q))J.paramsSerializer={serialize:Q};else Y6.assertOptions(Q,{encode:V1.function,serialize:V1.function},!0);if(J.allowAbsoluteUrls!==void 0);else if(this.defaults.allowAbsoluteUrls!==void 0)J.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls;else J.allowAbsoluteUrls=!0;Y6.assertOptions(J,{baseUrl:V1.spelling("baseURL"),withXsrfToken:V1.spelling("withXSRFToken")},!0),J.method=(J.method||this.defaults.method||"get").toLowerCase();let G=X&&V.merge(X.common,X[J.method]);X&&V.forEach(["delete","get","head","post","put","patch","common"],(M)=>{delete X[M]}),J.headers=L1.concat(G,X);let W=[],H=!0;this.interceptors.request.forEach(function(K){if(typeof K.runWhen==="function"&&K.runWhen(J)===!1)return;H=H&&K.synchronous,W.unshift(K.fulfilled,K.rejected)});let z=[];this.interceptors.response.forEach(function(K){z.push(K.fulfilled,K.rejected)});let U,B=0,L;if(!H){let M=[zQ.bind(this),void 0];M.unshift(...W),M.push(...z),L=M.length,U=Promise.resolve(J);while(B<L)U=U.then(M[B++],M[B++]);return U}L=W.length;let I=J;while(B<L){let M=W[B++],K=W[B++];try{I=M(I)}catch(F){K.call(this,F);break}}try{U=zQ.call(this,I)}catch(M){return Promise.reject(M)}B=0,L=z.length;while(B<L)U=U.then(z[B++],z[B++]);return U}getUri(Z){Z=Q0(this.defaults,Z);let J=EQ(Z.baseURL,Z.url,Z.allowAbsoluteUrls);return DQ(J,Z.params,Z.paramsSerializer)}}V.forEach(["delete","get","head","options"],function(J){n0.prototype[J]=function(Y,Q){return this.request(Q0(Q||{},{method:J,url:Y,data:(Q||{}).data}))}});V.forEach(["post","put","patch"],function(J){function Y(Q){return function(G,W,H){return this.request(Q0(H||{},{method:J,headers:Q?{"Content-Type":"multipart/form-data"}:{},url:G,data:W}))}}n0.prototype[J]=Y(),n0.prototype[J+"Form"]=Y(!0)});var Q6=n0;class A9{constructor(Z){if(typeof Z!=="function")throw TypeError("executor must be a function.");let J;this.promise=new Promise(function(X){J=X});let Y=this;this.promise.then((Q)=>{if(!Y._listeners)return;let X=Y._listeners.length;while(X-- >0)Y._listeners[X](Q);Y._listeners=null}),this.promise.then=(Q)=>{let X,G=new Promise((W)=>{Y.subscribe(W),X=W}).then(Q);return G.cancel=function(){Y.unsubscribe(X)},G},Z(function(X,G,W){if(Y.reason)return;Y.reason=new t0(X,G,W),J(Y.reason)})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(Z){if(this.reason){Z(this.reason);return}if(this._listeners)this._listeners.push(Z);else this._listeners=[Z]}unsubscribe(Z){if(!this._listeners)return;let J=this._listeners.indexOf(Z);if(J!==-1)this._listeners.splice(J,1)}toAbortSignal(){let Z=new AbortController,J=(Y)=>{Z.abort(Y)};return this.subscribe(J),Z.signal.unsubscribe=()=>this.unsubscribe(J),Z.signal}static source(){let Z;return{token:new A9(function(Q){Z=Q}),cancel:Z}}}var hL=A9;function bL(Z){return function(Y){return Z.apply(null,Y)}}function gL(Z){return V.isObject(Z)&&Z.isAxiosError===!0}var $9={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries($9).forEach(([Z,J])=>{$9[J]=Z});var yL=$9;function jQ(Z){let J=new Q6(Z),Y=BQ(Q6.prototype.request,J);return V.extend(Y,Q6.prototype,J,{allOwnKeys:!0}),V.extend(Y,J,null,{allOwnKeys:!0}),Y.create=function(X){return jQ(Q0(Z,X))},Y}var b=jQ(D9);b.Axios=Q6;b.CanceledError=t0;b.CancelToken=hL;b.isCancel=PQ;b.VERSION=fQ;b.toFormData=z6;b.AxiosError=x;b.Cancel=b.CanceledError;b.all=function(J){return Promise.all(J)};b.spread=bL;b.isAxiosError=gL;b.mergeConfig=Q0;b.AxiosHeaders=L1;b.formToJSON=(Z)=>RQ(V.isHTMLForm(Z)?new FormData(Z):Z);b.getAdapter=CQ.getAdapter;b.HttpStatusCode=yL;b.default=b;_Q.exports=b});var P9=A((hQ)=>{Object.defineProperty(hQ,"__esModule",{value:!0});hQ.addAxiosDateTransformer=hQ.createAxiosDateTransformer=void 0;var mL=(nY(),CX(iY)),uL=mL.__importDefault(vQ()),dL=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(?:\.\d*)?(?:[-+]\d{2}:?\d{2}|Z)?)?$/,cL=(Z)=>{return dL.test(Z)},pL=(Z,J)=>{return!J||J.length===0||J.includes(Z)},lL=(Z,J,Y)=>{return typeof J==="string"&&cL(J)&&pL(Z,Y)},kQ=(Z,J)=>{if(typeof Z==="object"){for(let Y in Z)if(lL(Y,Z[Y],J))Z[Y]=new Date(Z[Y]);else if(typeof Z[Y]==="object")Z[Y]=kQ(Z[Y],J)}return Z},iL=(Z,J)=>{if(Z.data)Z.data=kQ(Z.data,J);return Z},nL=(Z={})=>{return hQ.addAxiosDateTransformer(uL.default.create(Z),Z)};hQ.createAxiosDateTransformer=nL;var oL=(Z,J)=>{let Y=J===null||J===void 0?void 0:J.allowlist;return Z.interceptors.response.use((Q)=>iL(Q,Y)),Z};hQ.addAxiosDateTransformer=oL});var x9=A((lQ)=>{Object.defineProperty(lQ,"__esModule",{value:!0});lQ.Doctype=lQ.CDATA=lQ.Tag=lQ.Style=lQ.Script=lQ.Comment=lQ.Directive=lQ.Text=lQ.Root=lQ.isTag=lQ.ElementType=void 0;var Q1;(function(Z){Z.Root="root",Z.Text="text",Z.Directive="directive",Z.Comment="comment",Z.Script="script",Z.Style="style",Z.Tag="tag",Z.CDATA="cdata",Z.Doctype="doctype"})(Q1=lQ.ElementType||(lQ.ElementType={}));function XM(Z){return Z.type===Q1.Tag||Z.type===Q1.Script||Z.type===Q1.Style}lQ.isTag=XM;lQ.Root=Q1.Root;lQ.Text=Q1.Text;lQ.Directive=Q1.Directive;lQ.Comment=Q1.Comment;lQ.Script=Q1.Script;lQ.Style=Q1.Style;lQ.Tag=Q1.Tag;lQ.CDATA=Q1.CDATA;lQ.Doctype=Q1.Doctype});var _9=A((E)=>{var p1=E&&E.__extends||function(){var Z=function(J,Y){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Q,X){Q.__proto__=X}||function(Q,X){for(var G in X)if(Object.prototype.hasOwnProperty.call(X,G))Q[G]=X[G]},Z(J,Y)};return function(J,Y){if(typeof Y!=="function"&&Y!==null)throw TypeError("Class extends value "+String(Y)+" is not a constructor or null");Z(J,Y);function Q(){this.constructor=J}J.prototype=Y===null?Object.create(Y):(Q.prototype=Y.prototype,new Q)}}(),Z5=E&&E.__assign||function(){return Z5=Object.assign||function(Z){for(var J,Y=1,Q=arguments.length;Y<Q;Y++){J=arguments[Y];for(var X in J)if(Object.prototype.hasOwnProperty.call(J,X))Z[X]=J[X]}return Z},Z5.apply(this,arguments)};Object.defineProperty(E,"__esModule",{value:!0});E.cloneNode=E.hasChildren=E.isDocument=E.isDirective=E.isComment=E.isText=E.isCDATA=E.isTag=E.Element=E.Document=E.CDATA=E.NodeWithChildren=E.ProcessingInstruction=E.Comment=E.Text=E.DataNode=E.Node=void 0;var e=x9(),f9=function(){function Z(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(Z.prototype,"parentNode",{get:function(){return this.parent},set:function(J){this.parent=J},enumerable:!1,configurable:!0}),Object.defineProperty(Z.prototype,"previousSibling",{get:function(){return this.prev},set:function(J){this.prev=J},enumerable:!1,configurable:!0}),Object.defineProperty(Z.prototype,"nextSibling",{get:function(){return this.next},set:function(J){this.next=J},enumerable:!1,configurable:!0}),Z.prototype.cloneNode=function(J){if(J===void 0)J=!1;return j9(this,J)},Z}();E.Node=f9;var K6=function(Z){p1(J,Z);function J(Y){var Q=Z.call(this)||this;return Q.data=Y,Q}return Object.defineProperty(J.prototype,"nodeValue",{get:function(){return this.data},set:function(Y){this.data=Y},enumerable:!1,configurable:!0}),J}(f9);E.DataNode=K6;var nQ=function(Z){p1(J,Z);function J(){var Y=Z!==null&&Z.apply(this,arguments)||this;return Y.type=e.ElementType.Text,Y}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),J}(K6);E.Text=nQ;var oQ=function(Z){p1(J,Z);function J(){var Y=Z!==null&&Z.apply(this,arguments)||this;return Y.type=e.ElementType.Comment,Y}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),J}(K6);E.Comment=oQ;var aQ=function(Z){p1(J,Z);function J(Y,Q){var X=Z.call(this,Q)||this;return X.name=Y,X.type=e.ElementType.Directive,X}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),J}(K6);E.ProcessingInstruction=aQ;var L6=function(Z){p1(J,Z);function J(Y){var Q=Z.call(this)||this;return Q.children=Y,Q}return Object.defineProperty(J.prototype,"firstChild",{get:function(){var Y;return(Y=this.children[0])!==null&&Y!==void 0?Y:null},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"childNodes",{get:function(){return this.children},set:function(Y){this.children=Y},enumerable:!1,configurable:!0}),J}(f9);E.NodeWithChildren=L6;var sQ=function(Z){p1(J,Z);function J(){var Y=Z!==null&&Z.apply(this,arguments)||this;return Y.type=e.ElementType.CDATA,Y}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),J}(L6);E.CDATA=sQ;var rQ=function(Z){p1(J,Z);function J(){var Y=Z!==null&&Z.apply(this,arguments)||this;return Y.type=e.ElementType.Root,Y}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),J}(L6);E.Document=rQ;var tQ=function(Z){p1(J,Z);function J(Y,Q,X,G){if(X===void 0)X=[];if(G===void 0)G=Y==="script"?e.ElementType.Script:Y==="style"?e.ElementType.Style:e.ElementType.Tag;var W=Z.call(this,X)||this;return W.name=Y,W.attribs=Q,W.type=G,W}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"tagName",{get:function(){return this.name},set:function(Y){this.name=Y},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"attributes",{get:function(){var Y=this;return Object.keys(this.attribs).map(function(Q){var X,G;return{name:Q,value:Y.attribs[Q],namespace:(X=Y["x-attribsNamespace"])===null||X===void 0?void 0:X[Q],prefix:(G=Y["x-attribsPrefix"])===null||G===void 0?void 0:G[Q]}})},enumerable:!1,configurable:!0}),J}(L6);E.Element=tQ;function eQ(Z){return(0,e.isTag)(Z)}E.isTag=eQ;function Z3(Z){return Z.type===e.ElementType.CDATA}E.isCDATA=Z3;function J3(Z){return Z.type===e.ElementType.Text}E.isText=J3;function Y3(Z){return Z.type===e.ElementType.Comment}E.isComment=Y3;function Q3(Z){return Z.type===e.ElementType.Directive}E.isDirective=Q3;function X3(Z){return Z.type===e.ElementType.Root}E.isDocument=X3;function FM(Z){return Object.prototype.hasOwnProperty.call(Z,"children")}E.hasChildren=FM;function j9(Z,J){if(J===void 0)J=!1;var Y;if(J3(Z))Y=new nQ(Z.data);else if(Y3(Z))Y=new oQ(Z.data);else if(eQ(Z)){var Q=J?C9(Z.children):[],X=new tQ(Z.name,Z5({},Z.attribs),Q);if(Q.forEach(function(z){return z.parent=X}),Z.namespace!=null)X.namespace=Z.namespace;if(Z["x-attribsNamespace"])X["x-attribsNamespace"]=Z5({},Z["x-attribsNamespace"]);if(Z["x-attribsPrefix"])X["x-attribsPrefix"]=Z5({},Z["x-attribsPrefix"]);Y=X}else if(Z3(Z)){var Q=J?C9(Z.children):[],G=new sQ(Q);Q.forEach(function(U){return U.parent=G}),Y=G}else if(X3(Z)){var Q=J?C9(Z.children):[],W=new rQ(Q);if(Q.forEach(function(U){return U.parent=W}),Z["x-mode"])W["x-mode"]=Z["x-mode"];Y=W}else if(Q3(Z)){var H=new aQ(Z.name,Z.data);if(Z["x-name"]!=null)H["x-name"]=Z["x-name"],H["x-publicId"]=Z["x-publicId"],H["x-systemId"]=Z["x-systemId"];Y=H}else throw Error("Not implemented yet: ".concat(Z.type));if(Y.startIndex=Z.startIndex,Y.endIndex=Z.endIndex,Z.sourceCodeLocation!=null)Y.sourceCodeLocation=Z.sourceCodeLocation;return Y}E.cloneNode=j9;function C9(Z){var J=Z.map(function(Q){return j9(Q,!0)});for(var Y=1;Y<J.length;Y++)J[Y].prev=J[Y-1],J[Y-1].next=J[Y];return J}});var k9=A((q1)=>{var $M=q1&&q1.__createBinding||(Object.create?function(Z,J,Y,Q){if(Q===void 0)Q=Y;var X=Object.getOwnPropertyDescriptor(J,Y);if(!X||("get"in X?!J.__esModule:X.writable||X.configurable))X={enumerable:!0,get:function(){return J[Y]}};Object.defineProperty(Z,Q,X)}:function(Z,J,Y,Q){if(Q===void 0)Q=Y;Z[Q]=J[Y]}),OM=q1&&q1.__exportStar||function(Z,J){for(var Y in Z)if(Y!=="default"&&!Object.prototype.hasOwnProperty.call(J,Y))$M(J,Z,Y)};Object.defineProperty(q1,"__esModule",{value:!0});q1.DomHandler=void 0;var v9=x9(),l1=_9();OM(_9(),q1);var G3={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},W3=function(){function Z(J,Y,Q){if(this.dom=[],this.root=new l1.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof Y==="function")Q=Y,Y=G3;if(typeof J==="object")Y=J,J=void 0;this.callback=J!==null&&J!==void 0?J:null,this.options=Y!==null&&Y!==void 0?Y:G3,this.elementCB=Q!==null&&Q!==void 0?Q:null}return Z.prototype.onparserinit=function(J){this.parser=J},Z.prototype.onreset=function(){this.dom=[],this.root=new l1.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},Z.prototype.onend=function(){if(this.done)return;this.done=!0,this.parser=null,this.handleCallback(null)},Z.prototype.onerror=function(J){this.handleCallback(J)},Z.prototype.onclosetag=function(){this.lastNode=null;var J=this.tagStack.pop();if(this.options.withEndIndices)J.endIndex=this.parser.endIndex;if(this.elementCB)this.elementCB(J)},Z.prototype.onopentag=function(J,Y){var Q=this.options.xmlMode?v9.ElementType.Tag:void 0,X=new l1.Element(J,Y,void 0,Q);this.addNode(X),this.tagStack.push(X)},Z.prototype.ontext=function(J){var Y=this.lastNode;if(Y&&Y.type===v9.ElementType.Text){if(Y.data+=J,this.options.withEndIndices)Y.endIndex=this.parser.endIndex}else{var Q=new l1.Text(J);this.addNode(Q),this.lastNode=Q}},Z.prototype.oncomment=function(J){if(this.lastNode&&this.lastNode.type===v9.ElementType.Comment){this.lastNode.data+=J;return}var Y=new l1.Comment(J);this.addNode(Y),this.lastNode=Y},Z.prototype.oncommentend=function(){this.lastNode=null},Z.prototype.oncdatastart=function(){var J=new l1.Text(""),Y=new l1.CDATA([J]);this.addNode(Y),J.parent=Y,this.lastNode=J},Z.prototype.oncdataend=function(){this.lastNode=null},Z.prototype.onprocessinginstruction=function(J,Y){var Q=new l1.ProcessingInstruction(J,Y);this.addNode(Q)},Z.prototype.handleCallback=function(J){if(typeof this.callback==="function")this.callback(J,this.dom);else if(J)throw J},Z.prototype.addNode=function(J){var Y=this.tagStack[this.tagStack.length-1],Q=Y.children[Y.children.length-1];if(this.options.withStartIndices)J.startIndex=this.parser.startIndex;if(this.options.withEndIndices)J.endIndex=this.parser.endIndex;if(Y.children.push(J),Q)J.prev=Q,Q.next=J;J.parent=Y,this.lastNode=null},Z}();q1.DomHandler=W3;q1.default=W3});var L3=A((H3)=>{Object.defineProperty(H3,"__esModule",{value:!0});H3.CARRIAGE_RETURN_PLACEHOLDER_REGEX=H3.CARRIAGE_RETURN_PLACEHOLDER=H3.CARRIAGE_RETURN_REGEX=H3.CARRIAGE_RETURN=H3.CASE_SENSITIVE_TAG_NAMES_MAP=H3.CASE_SENSITIVE_TAG_NAMES=void 0;H3.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"];H3.CASE_SENSITIVE_TAG_NAMES_MAP=H3.CASE_SENSITIVE_TAG_NAMES.reduce(function(Z,J){return Z[J.toLowerCase()]=J,Z},{});H3.CARRIAGE_RETURN="\r";H3.CARRIAGE_RETURN_REGEX=new RegExp(H3.CARRIAGE_RETURN,"g");H3.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now().toString(),"__");H3.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(H3.CARRIAGE_RETURN_PLACEHOLDER,"g")});var h9=A((O3)=>{Object.defineProperty(O3,"__esModule",{value:!0});O3.formatAttributes=M3;O3.escapeSpecialCharacters=NM;O3.revertEscapedCharacters=F3;O3.formatDOM=$3;var M6=k9(),J5=L3();function qM(Z){return J5.CASE_SENSITIVE_TAG_NAMES_MAP[Z]}function M3(Z){var J={},Y=0,Q=Z.length;for(;Y<Q;Y++){var X=Z[Y];J[X.name]=X.value}return J}function DM(Z){Z=Z.toLowerCase();var J=qM(Z);if(J)return J;return Z}function NM(Z){return Z.replace(J5.CARRIAGE_RETURN_REGEX,J5.CARRIAGE_RETURN_PLACEHOLDER)}function F3(Z){return Z.replace(J5.CARRIAGE_RETURN_PLACEHOLDER_REGEX,J5.CARRIAGE_RETURN)}function $3(Z,J,Y){var Q,X,G,W;if(J===void 0)J=null;var H=[],z,U=0,B=Z.length;for(;U<B;U++){var L=Z[U];switch(L.nodeType){case 1:{var I=DM(L.nodeName);z=new M6.Element(I,M3(L.attributes)),z.children=$3(I==="template"?L.content.childNodes:L.childNodes,z);break}case 3:z=new M6.Text(F3((Q=L.nodeValue)!==null&&Q!==void 0?Q:""));break;case 8:z=new M6.Comment((X=L.nodeValue)!==null&&X!==void 0?X:"");break;default:continue}var M=(G=H[U-1])!==null&&G!==void 0?G:null;if(M)M.next=z;z.parent=J,z.prev=M,z.next=null,H.push(z)}if(Y){if(z=new M6.ProcessingInstruction(Y.substring(0,Y.indexOf(" ")).toLowerCase(),Y),z.next=(W=H[0])!==null&&W!==void 0?W:null,z.parent=J,H.unshift(z),H[1])H[1].prev=H[0]}return H}});var P3=A((R3)=>{Object.defineProperty(R3,"__esModule",{value:!0});R3.default=SM;var wM=h9(),I3="html",V3="head",F6="body",EM=/<([a-zA-Z]+[0-9]?)/,q3=/<head[^]*>/i,D3=/<body[^]*>/i,O6=function(Z,J){throw Error("This browser does not support `document.implementation.createHTMLDocument`")},b9=function(Z,J){throw Error("This browser does not support `DOMParser.prototype.parseFromString`")},N3=typeof window==="object"&&window.DOMParser;if(typeof N3==="function")g9=new N3,y9="text/html",b9=function(Z,J){if(J)Z="<".concat(J,">").concat(Z,"</").concat(J,">");return g9.parseFromString(Z,y9)},O6=b9;var g9,y9;if(typeof document==="object"&&document.implementation)N0=document.implementation.createHTMLDocument(),O6=function(Z,J){if(J){var Y=N0.documentElement.querySelector(J);if(Y)Y.innerHTML=Z;return N0}return N0.documentElement.innerHTML=Z,N0};var N0,$6=typeof document==="object"&&document.createElement("template"),m9;if($6&&$6.content)m9=function(Z){return $6.innerHTML=Z,$6.content.childNodes};var A3=function(){return document.createDocumentFragment().childNodes};function SM(Z){var J,Y,Q,X,G,W;Z=(0,wM.escapeSpecialCharacters)(Z);var H=EM.exec(Z),z=(J=H===null||H===void 0?void 0:H[1])===null||J===void 0?void 0:J.toLowerCase();switch(z){case I3:{var U=b9(Z);if(!q3.test(Z)){var B=U.querySelector(V3);(Y=B===null||B===void 0?void 0:B.parentNode)===null||Y===void 0||Y.removeChild(B)}if(!D3.test(Z)){var B=U.querySelector(F6);(Q=B===null||B===void 0?void 0:B.parentNode)===null||Q===void 0||Q.removeChild(B)}return U.querySelectorAll(I3)}case V3:case F6:{var L=O6(Z).querySelectorAll(z);if(D3.test(Z)&&q3.test(Z))return(G=(X=L[0].parentNode)===null||X===void 0?void 0:X.childNodes)!==null&&G!==void 0?G:A3();return L}default:{if(m9)return m9(Z);var B=O6(Z,F6).querySelector(F6);return(W=B===null||B===void 0?void 0:B.childNodes)!==null&&W!==void 0?W:A3()}}}});var T3=A((Y5)=>{var CM=Y5&&Y5.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(Y5,"__esModule",{value:!0});Y5.default=vM;var fM=CM(P3()),jM=h9(),_M=/<(![a-zA-Z\s]+)>/;function vM(Z){if(typeof Z!=="string")throw TypeError("First argument must be a string");if(!Z)return[];var J=_M.exec(Z),Y=J?J[1]:void 0;return(0,jM.formatDOM)((0,fM.default)(Z),null,Y)}});var w3=A((bM)=>{var kM=0;bM.SAME=kM;var hM=1;bM.CAMELCASE=hM;bM.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}});var S3=A((sM)=>{function uM(Z){return d.hasOwnProperty(Z)?d[Z]:null}function s(Z,J,Y,Q,X,G,W){this.acceptsBooleans=J===2||J===3||J===4,this.attributeName=Q,this.attributeNamespace=X,this.mustUseProperty=Y,this.propertyName=Z,this.type=J,this.sanitizeURL=G,this.removeEmptyString=W}var d={},dM=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];dM.forEach((Z)=>{d[Z]=new s(Z,0,!1,Z,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([Z,J])=>{d[Z]=new s(Z,1,!1,J,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach((Z)=>{d[Z]=new s(Z,2,!1,Z.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((Z)=>{d[Z]=new s(Z,2,!1,Z,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((Z)=>{d[Z]=new s(Z,3,!1,Z.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach((Z)=>{d[Z]=new s(Z,3,!0,Z,null,!1,!1)});["capture","download"].forEach((Z)=>{d[Z]=new s(Z,4,!1,Z,null,!1,!1)});["cols","rows","size","span"].forEach((Z)=>{d[Z]=new s(Z,6,!1,Z,null,!1,!1)});["rowSpan","start"].forEach((Z)=>{d[Z]=new s(Z,5,!1,Z.toLowerCase(),null,!1,!1)});var u9=/[\-\:]([a-z])/g,d9=(Z)=>Z[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((Z)=>{let J=Z.replace(u9,d9);d[J]=new s(J,1,!1,Z,null,!1,!1)});["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((Z)=>{let J=Z.replace(u9,d9);d[J]=new s(J,1,!1,Z,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach((Z)=>{let J=Z.replace(u9,d9);d[J]=new s(J,1,!1,Z,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach((Z)=>{d[Z]=new s(Z,1,!1,Z.toLowerCase(),null,!1,!1)});var cM="xlinkHref";d[cM]=new s("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach((Z)=>{d[Z]=new s(Z,1,!1,Z.toLowerCase(),null,!0,!0)});var{CAMELCASE:pM,SAME:lM,possibleStandardNames:E3}=w3(),iM=":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",nM=iM+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",oM=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+nM+"]*$")),aM=Object.keys(E3).reduce((Z,J)=>{let Y=E3[J];if(Y===lM)Z[J]=J;else if(Y===pM)Z[J.toLowerCase()]=J;else Z[J]=Y;return Z},{});sM.BOOLEAN=3;sM.BOOLEANISH_STRING=2;sM.NUMERIC=5;sM.OVERLOADED_BOOLEAN=4;sM.POSITIVE_NUMERIC=6;sM.RESERVED=0;sM.STRING=1;sM.getPropertyInfo=uM;sM.isCustomAttribute=oM;sM.possibleStandardNames=aM});var v3=A((DD,_3)=>{var x3=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,H2=/\n/g,z2=/^\s*/,U2=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,B2=/^:\s*/,K2=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,L2=/^[;\s]*/,M2=/^\s+|\s+$/g,F2=`
15
+ `,C3="/",f3="*",X0="",$2="comment",O2="declaration";function I2(Z,J){if(typeof Z!=="string")throw TypeError("First argument must be a string");if(!Z)return[];J=J||{};var Y=1,Q=1;function X(K){var F=K.match(H2);if(F)Y+=F.length;var O=K.lastIndexOf(F2);Q=~O?K.length-O:Q+K.length}function G(){var K={line:Y,column:Q};return function(F){return F.position=new W(K),U(),F}}function W(K){this.start=K,this.end={line:Y,column:Q},this.source=J.source}W.prototype.content=Z;function H(K){var F=Error(J.source+":"+Y+":"+Q+": "+K);if(F.reason=K,F.filename=J.source,F.line=Y,F.column=Q,F.source=Z,J.silent);else throw F}function z(K){var F=K.exec(Z);if(!F)return;var O=F[0];return X(O),Z=Z.slice(O.length),F}function U(){z(z2)}function B(K){var F;K=K||[];while(F=L())if(F!==!1)K.push(F);return K}function L(){var K=G();if(C3!=Z.charAt(0)||f3!=Z.charAt(1))return;var F=2;while(X0!=Z.charAt(F)&&(f3!=Z.charAt(F)||C3!=Z.charAt(F+1)))++F;if(F+=2,X0===Z.charAt(F-1))return H("End of comment missing");var O=Z.slice(2,F-2);return Q+=2,X(O),Z=Z.slice(F),Q+=2,K({type:$2,comment:O})}function I(){var K=G(),F=z(U2);if(!F)return;if(L(),!z(B2))return H("property missing ':'");var O=z(K2),D=K({type:O2,property:j3(F[0].replace(x3,X0)),value:O?j3(O[0].replace(x3,X0)):X0});return z(L2),D}function M(){var K=[];B(K);var F;while(F=I())if(F!==!1)K.push(F),B(K);return K}return U(),M()}function j3(Z){return Z?Z.replace(M2,X0):X0}_3.exports=I2});var k3=A((Q5)=>{var V2=Q5&&Q5.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(Q5,"__esModule",{value:!0});Q5.default=D2;var q2=V2(v3());function D2(Z,J){let Y=null;if(!Z||typeof Z!=="string")return Y;let Q=(0,q2.default)(Z),X=typeof J==="function";return Q.forEach((G)=>{if(G.type!=="declaration")return;let{property:W,value:H}=G;if(X)J(W,H,G);else if(H)Y=Y||{},Y[W]=H}),Y}});var y3=A((b3)=>{Object.defineProperty(b3,"__esModule",{value:!0});b3.camelCase=void 0;var N2=/^--[a-zA-Z0-9_-]+$/,A2=/-([a-z])/g,R2=/^[^-]+$/,P2=/^-(webkit|moz|ms|o|khtml)-/,T2=/^-(ms)-/,w2=function(Z){return!Z||R2.test(Z)||N2.test(Z)},E2=function(Z,J){return J.toUpperCase()},h3=function(Z,J){return"".concat(J,"-")},S2=function(Z,J){if(J===void 0)J={};if(w2(Z))return Z;if(Z=Z.toLowerCase(),J.reactCompat)Z=Z.replace(T2,h3);else Z=Z.replace(P2,h3);return Z.replace(A2,E2)};b3.camelCase=S2});var u3=A((p9,m3)=>{var x2=p9&&p9.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}},C2=x2(k3()),f2=y3();function c9(Z,J){var Y={};if(!Z||typeof Z!=="string")return Y;return(0,C2.default)(Z,function(Q,X){if(Q&&X)Y[(0,f2.camelCase)(Q,J)]=X}),Y}c9.default=c9;m3.exports=c9});import*as d3 from"react";var l9=A((r)=>{var j2=r&&r.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(r,"__esModule",{value:!0});r.returnFirstArg=r.canTextBeChildOfNode=r.ELEMENTS_WITH_NO_TEXT_CHILDREN=r.PRESERVE_CUSTOM_ATTRIBUTES=void 0;r.isCustomComponent=k2;r.setStyleProp=b2;var _2=j2(u3()),v2=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function k2(Z,J){if(!Z.includes("-"))return Boolean(J&&typeof J.is==="string");if(v2.has(Z))return!1;return!0}var h2={reactCompat:!0};function b2(Z,J){if(typeof Z!=="string")return;if(!Z.trim()){J.style={};return}try{J.style=(0,_2.default)(Z,h2)}catch(Y){J.style={}}}r.PRESERVE_CUSTOM_ATTRIBUTES=Number(d3.version.split(".")[0])>=16;r.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var g2=function(Z){return!r.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(Z.name)};r.canTextBeChildOfNode=g2;var y2=function(Z){return Z};r.returnFirstArg=y2});var i9=A((l3)=>{Object.defineProperty(l3,"__esModule",{value:!0});l3.default=c2;var X5=S3(),c3=l9(),m2=["checked","value"],u2=["input","select","textarea"],d2={reset:!0,submit:!0};function c2(Z,J){if(Z===void 0)Z={};var Y={},Q=Boolean(Z.type&&d2[Z.type]);for(var X in Z){var G=Z[X];if((0,X5.isCustomAttribute)(X)){Y[X]=G;continue}var W=X.toLowerCase(),H=p3(W);if(H){var z=(0,X5.getPropertyInfo)(H);if(m2.includes(H)&&u2.includes(J)&&!Q)H=p3("default"+W);switch(Y[H]=G,z===null||z===void 0?void 0:z.type){case X5.BOOLEAN:Y[H]=!0;break;case X5.OVERLOADED_BOOLEAN:if(G==="")Y[H]=!0;break}continue}if(c3.PRESERVE_CUSTOM_ATTRIBUTES)Y[X]=G}return(0,c3.setStyleProp)(Z.style,Y),Y}function p3(Z){return X5.possibleStandardNames[Z]}});import*as A0 from"react";var n3=A((W5)=>{var l2=W5&&W5.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(W5,"__esModule",{value:!0});W5.default=i3;var i2=l2(i9()),G5=l9(),n2={cloneElement:A0.cloneElement,createElement:A0.createElement,isValidElement:A0.isValidElement};function i3(Z,J){var Y,Q,X,G,W;if(J===void 0)J={};var H=[],z=typeof J.replace==="function",U=(Y=J.transform)!==null&&Y!==void 0?Y:G5.returnFirstArg,B=(Q=J.library)!==null&&Q!==void 0?Q:n2,L=B.cloneElement,I=B.createElement,M=B.isValidElement,K=Z.length;for(var F=0;F<K;F++){var O=Z[F];if(z){var D=(X=J.replace)===null||X===void 0?void 0:X.call(J,O,F);if(M(D)){if(K>1)D=L(D,{key:(G=D.key)!==null&&G!==void 0?G:F});H.push(U(D,O,F));continue}}if(O.type==="text"){var P=!O.data.trim().length;if(P&&O.parent&&!(0,G5.canTextBeChildOfNode)(O.parent))continue;if(J.trim&&P)continue;H.push(U(O.data,O,F));continue}var N=O,q={};if(o2(N))(0,G5.setStyleProp)(N.attribs.style,N.attribs),q=N.attribs;else if(N.attribs)q=(0,i2.default)(N.attribs,N.name);var T=void 0;switch(O.type){case"script":case"style":if(O.children[0])q.dangerouslySetInnerHTML={__html:O.children[0].data};break;case"tag":if(O.name==="textarea"&&O.children[0])q.defaultValue=O.children[0].data;else if((W=O.children)===null||W===void 0?void 0:W.length)T=i3(O.children,J);break;default:continue}if(K>1)q.key=F;H.push(U(I(O.name,q,T),O,F))}return H.length===1?H[0]:H}function o2(Z){return G5.PRESERVE_CUSTOM_ATTRIBUTES&&Z.type==="tag"&&(0,G5.isCustomComponent)(Z.name,Z.attribs)}});var o9=A((y)=>{var n9=y&&y.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(y,"__esModule",{value:!0});y.htmlToDOM=y.domToReact=y.attributesToProps=y.Text=y.ProcessingInstruction=y.Element=y.Comment=void 0;y.default=r2;var o3=n9(T3());y.htmlToDOM=o3.default;var a2=n9(i9());y.attributesToProps=a2.default;var a3=n9(n3());y.domToReact=a3.default;var I6=k9();Object.defineProperty(y,"Comment",{enumerable:!0,get:function(){return I6.Comment}});Object.defineProperty(y,"Element",{enumerable:!0,get:function(){return I6.Element}});Object.defineProperty(y,"ProcessingInstruction",{enumerable:!0,get:function(){return I6.ProcessingInstruction}});Object.defineProperty(y,"Text",{enumerable:!0,get:function(){return I6.Text}});var s2={lowerCaseAttributeNames:!1};function r2(Z,J){var Y;if(typeof Z!=="string")throw TypeError("First argument must be a string");if(!Z)return[];return(0,a3.default)((0,o3.default)(Z,(Y=J===null||J===void 0?void 0:J.htmlparser2)!==null&&Y!==void 0?Y:s2),J)}});import{lazy as fX}from"react";var T6=new Map;function U7(Z,J){return fX(()=>{if(T6.has(J))return T6.get(J);let Y=Z().then((Q)=>Q);return T6.set(J,Y),Y})}var B7=new Map,jX=(Z)=>{if(!Z.name)throw Error("Component registration requires a name");if(!Z.component&&!Z.loader)throw Error(`Component "${Z.name}" requires component or loader`);let J={name:Z.name,component:Z.component,loader:Z.loader,metadata:Z.metadata,fallback:Z.fallback,isLazy:!1};if(!J.component&&J.loader)J.component=U7(J.loader,Z.name),J.loader=void 0,J.isLazy=!0;return J};function n1(Z){let J=jX(Z);return B7.set(J.name,J),J.component}var K7=(Z)=>{return B7.get(Z)};import{Suspense as cX,useContext as pX}from"react";import{createContext as _X}from"react";import{jsx as hX,Fragment as kX}from"react/jsx-runtime";var vX=_X(hX(kX,{})),_1=vX;import{createContext as bX,useContext as gX}from"react";var P0=bX(null),H0=()=>{let Z=gX(P0);if(!Z)throw Error("usePieConfig must be used within PieConfigProvider");return Z},yX=()=>{let{apiServer:Z}=H0();return Z},v1=yX,mX=()=>{let{centrifugeServer:Z}=H0();return Z},K5=mX,uX=()=>{let{enableRenderingLog:Z}=H0();return Z},k1=uX,dX=()=>{let{pageProcessor:Z}=H0();return Z},L7=dX;import{jsx as M7}from"react/jsx-runtime";function lX({uiConfig:Z,setUiAjaxConfiguration:J}){let Y=pX(_1),Q=k1();if(Q)console.log("[UI] Rendering component:",Z.card),console.log("[UI] Component data:",Z.data),console.log("[UI] Component content:",Z.content),console.log("[UI] Has setUiAjaxConfiguration:",!!J);let X=K7(Z.card);if(!X?.component){if(Q)console.warn(`[UI] Component not found in registry: ${Z.card}`),console.log("[UI] Returning fallback component");return Y}if(Q)console.log("[UI] Found component in registry:",{name:X.name,isLazy:X.isLazy,hasMetadata:!!X.metadata});let G=X.component,W=M7(G,{data:Z.data,content:Z.content,setUiAjaxConfiguration:J});if(X.isLazy){if(Q)console.log("[UI] Rendering lazy component with Suspense:",X.name);return M7(cX,{fallback:X.fallback??Y,children:W},`${X.name}`)}if(Q)console.log("[UI] Rendering component directly:",X.name);return W}var Z1=lX;import{useEffect as pF,useMemo as lF}from"react";import{QueryClient as iF,QueryClientProvider as nF,useQuery as oF}from"@tanstack/react-query";var E5=S(w6(),1),UJ=S(x6(),1);import zJ,{useState as SU,useContext as eZ,useRef as xU,useEffect as ZJ,forwardRef as CU}from"react";var IG={animationIterationCount:!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 T0(Z,J){var Y=!IG[Z]&&typeof J==="number"&&J!==0;return Y?J+"px":J}function w0(Z,J){return Object.keys(Z).reduce(function(Y,Q){return Y[Q]=J(Z[Q],Q),Y},{})}function C6(Z){return w0(Z,function(J,Y){return T0(Y,Z[Y])+" !important"})}var VG=/([a-z])?([A-Z])/g,qG=function(J,Y,Q){return(Y||"")+"-"+Q.toLowerCase()},f6=function(J){return J.replace(VG,qG)},DG=function(J){return Object.keys(J).reduce(function(Y,Q){var X=f6(Q);if(/^ms-/.test(X))X="-".concat(X);return Y[X]=J[Q],Y},{})},C7=DG;var jZ=S(m7(),1),_Z=S(t7(),1),vZ=S(p6(),1);var j4=S(J4(),1),_4=S(Q4(),1),v4=S(G4(),1),k4=S(H4(),1),h4=S(B4(),1),b4=S(M4(),1),g4=S(O4(),1),y4=S(q4(),1),m4=S(N4(),1),u4=S(R4(),1),d4=S(T4(),1),c4=S(f4(),1),R=["Webkit"],z8=["Moz"],k=["ms"],p=["Webkit","Moz"],u=["Webkit","ms"],E0=["Webkit","Moz","ms"],p4={plugins:[j4.default,_4.default,v4.default,k4.default,h4.default,b4.default,g4.default,y4.default,m4.default,u4.default,d4.default,c4.default],prefixMap:{transform:u,transformOrigin:u,transformOriginX:u,transformOriginY:u,backfaceVisibility:R,perspective:R,perspectiveOrigin:R,transformStyle:R,transformOriginZ:R,animation:R,animationDelay:R,animationDirection:R,animationFillMode:R,animationDuration:R,animationIterationCount:R,animationName:R,animationPlayState:R,animationTimingFunction:R,appearance:p,userSelect:E0,fontKerning:R,textEmphasisPosition:R,textEmphasis:R,textEmphasisStyle:R,textEmphasisColor:R,boxDecorationBreak:R,clipPath:R,maskImage:R,maskMode:R,maskRepeat:R,maskPosition:R,maskClip:R,maskOrigin:R,maskSize:R,maskComposite:R,mask:R,maskBorderSource:R,maskBorderMode:R,maskBorderSlice:R,maskBorderWidth:R,maskBorderOutset:R,maskBorderRepeat:R,maskBorder:R,maskType:R,textDecorationStyle:p,textDecorationSkip:p,textDecorationLine:p,textDecorationColor:p,filter:R,fontFeatureSettings:p,breakAfter:E0,breakBefore:E0,breakInside:E0,columnCount:p,columnFill:p,columnGap:p,columnRule:p,columnRuleColor:p,columnRuleStyle:p,columnRuleWidth:p,columns:p,columnSpan:p,columnWidth:p,writingMode:u,flex:u,flexBasis:R,flexDirection:u,flexGrow:R,flexFlow:u,flexShrink:R,flexWrap:u,alignContent:R,alignItems:R,alignSelf:R,justifyContent:R,order:R,transitionDelay:R,transitionDuration:R,transitionProperty:R,transitionTimingFunction:R,backdropFilter:R,scrollSnapType:u,scrollSnapPointsX:u,scrollSnapPointsY:u,scrollSnapDestination:u,scrollSnapCoordinate:u,shapeImageThreshold:R,shapeImageMargin:R,shapeImageOutside:R,hyphens:E0,flowInto:u,flowFrom:u,regionFragment:u,boxSizing:z8,textAlignLast:z8,tabSize:z8,wrapFlow:k,wrapThrough:k,wrapMargin:k,touchAction:k,gridTemplateColumns:k,gridTemplateRows:k,gridTemplateAreas:k,gridTemplate:k,gridAutoColumns:k,gridAutoRows:k,gridAutoFlow:k,grid:k,gridRowStart:k,gridColumnStart:k,gridRowEnd:k,gridRow:k,gridColumn:k,gridColumnEnd:k,gridColumnGap:k,gridRowGap:k,gridArea:k,gridGap:k,textSizeAdjust:u,borderImage:R,borderImageOutset:R,borderImageRepeat:R,borderImageSlice:R,borderImageSource:R,borderImageWidth:R}};var VZ=S(n4(),1),qZ=S(a4(),1),DZ=S(t4(),1),NZ=S(ZZ(),1),AZ=S(YZ(),1),RZ=S(XZ(),1),PZ=S(WZ(),1),TZ=S(UZ(),1),wZ=S(KZ(),1),EZ=S(MZ(),1),SZ=S($Z(),1),xZ=S(IZ(),1),CZ={plugins:[VZ.default,qZ.default,DZ.default,NZ.default,AZ.default,RZ.default,PZ.default,TZ.default,wZ.default,EZ.default,SZ.default,xZ.default],prefixMap:{chrome:{transform:35,transformOrigin:35,transformOriginX:35,transformOriginY:35,backfaceVisibility:35,perspective:35,perspectiveOrigin:35,transformStyle:35,transformOriginZ:35,animation:42,animationDelay:42,animationDirection:42,animationFillMode:42,animationDuration:42,animationIterationCount:42,animationName:42,animationPlayState:42,animationTimingFunction:42,appearance:66,userSelect:53,fontKerning:32,textEmphasisPosition:66,textEmphasis:66,textEmphasisStyle:66,textEmphasisColor:66,boxDecorationBreak:66,clipPath:54,maskImage:66,maskMode:66,maskRepeat:66,maskPosition:66,maskClip:66,maskOrigin:66,maskSize:66,maskComposite:66,mask:66,maskBorderSource:66,maskBorderMode:66,maskBorderSlice:66,maskBorderWidth:66,maskBorderOutset:66,maskBorderRepeat:66,maskBorder:66,maskType:66,textDecorationStyle:56,textDecorationSkip:56,textDecorationLine:56,textDecorationColor:56,filter:52,fontFeatureSettings:47,breakAfter:49,breakBefore:49,breakInside:49,columnCount:49,columnFill:49,columnGap:49,columnRule:49,columnRuleColor:49,columnRuleStyle:49,columnRuleWidth:49,columns:49,columnSpan:49,columnWidth:49,writingMode:47},safari:{flex:8,flexBasis:8,flexDirection:8,flexGrow:8,flexFlow:8,flexShrink:8,flexWrap:8,alignContent:8,alignItems:8,alignSelf:8,justifyContent:8,order:8,transition:6,transitionDelay:6,transitionDuration:6,transitionProperty:6,transitionTimingFunction:6,transform:8,transformOrigin:8,transformOriginX:8,transformOriginY:8,backfaceVisibility:8,perspective:8,perspectiveOrigin:8,transformStyle:8,transformOriginZ:8,animation:8,animationDelay:8,animationDirection:8,animationFillMode:8,animationDuration:8,animationIterationCount:8,animationName:8,animationPlayState:8,animationTimingFunction:8,appearance:11,userSelect:11,backdropFilter:11,fontKerning:9,scrollSnapType:10.1,scrollSnapPointsX:10.1,scrollSnapPointsY:10.1,scrollSnapDestination:10.1,scrollSnapCoordinate:10.1,textEmphasisPosition:7,textEmphasis:7,textEmphasisStyle:7,textEmphasisColor:7,boxDecorationBreak:11,clipPath:11,maskImage:11,maskMode:11,maskRepeat:11,maskPosition:11,maskClip:11,maskOrigin:11,maskSize:11,maskComposite:11,mask:11,maskBorderSource:11,maskBorderMode:11,maskBorderSlice:11,maskBorderWidth:11,maskBorderOutset:11,maskBorderRepeat:11,maskBorder:11,maskType:11,textDecorationStyle:11,textDecorationSkip:11,textDecorationLine:11,textDecorationColor:11,shapeImageThreshold:10,shapeImageMargin:10,shapeImageOutside:10,filter:9,hyphens:11,flowInto:11,flowFrom:11,breakBefore:8,breakAfter:8,breakInside:8,regionFragment:11,columnCount:8,columnFill:8,columnGap:8,columnRule:8,columnRuleColor:8,columnRuleStyle:8,columnRuleWidth:8,columns:8,columnSpan:8,columnWidth:8,writingMode:10.1},firefox:{appearance:60,userSelect:60,boxSizing:28,textAlignLast:48,textDecorationStyle:35,textDecorationSkip:35,textDecorationLine:35,textDecorationColor:35,tabSize:60,hyphens:42,fontFeatureSettings:33,breakAfter:51,breakBefore:51,breakInside:51,columnCount:51,columnFill:51,columnGap:51,columnRule:51,columnRuleColor:51,columnRuleStyle:51,columnRuleWidth:51,columns:51,columnSpan:51,columnWidth:51},opera:{flex:16,flexBasis:16,flexDirection:16,flexGrow:16,flexFlow:16,flexShrink:16,flexWrap:16,alignContent:16,alignItems:16,alignSelf:16,justifyContent:16,order:16,transform:22,transformOrigin:22,transformOriginX:22,transformOriginY:22,backfaceVisibility:22,perspective:22,perspectiveOrigin:22,transformStyle:22,transformOriginZ:22,animation:29,animationDelay:29,animationDirection:29,animationFillMode:29,animationDuration:29,animationIterationCount:29,animationName:29,animationPlayState:29,animationTimingFunction:29,appearance:50,userSelect:40,fontKerning:19,textEmphasisPosition:50,textEmphasis:50,textEmphasisStyle:50,textEmphasisColor:50,boxDecorationBreak:50,clipPath:41,maskImage:50,maskMode:50,maskRepeat:50,maskPosition:50,maskClip:50,maskOrigin:50,maskSize:50,maskComposite:50,mask:50,maskBorderSource:50,maskBorderMode:50,maskBorderSlice:50,maskBorderWidth:50,maskBorderOutset:50,maskBorderRepeat:50,maskBorder:50,maskType:50,textDecorationStyle:43,textDecorationSkip:43,textDecorationLine:43,textDecorationColor:43,filter:39,fontFeatureSettings:34,breakAfter:36,breakBefore:36,breakInside:36,columnCount:36,columnFill:36,columnGap:36,columnRule:36,columnRuleColor:36,columnRuleStyle:36,columnRuleWidth:36,columns:36,columnSpan:36,columnWidth:36,writingMode:34},ie:{flex:10,flexDirection:10,flexFlow:10,flexWrap:10,transform:9,transformOrigin:9,transformOriginX:9,transformOriginY:9,userSelect:11,wrapFlow:11,wrapThrough:11,wrapMargin:11,scrollSnapType:11,scrollSnapPointsX:11,scrollSnapPointsY:11,scrollSnapDestination:11,scrollSnapCoordinate:11,touchAction:10,hyphens:11,flowInto:11,flowFrom:11,breakBefore:11,breakAfter:11,breakInside:11,regionFragment:11,gridTemplateColumns:11,gridTemplateRows:11,gridTemplateAreas:11,gridTemplate:11,gridAutoColumns:11,gridAutoRows:11,gridAutoFlow:11,grid:11,gridRowStart:11,gridColumnStart:11,gridRowEnd:11,gridRow:11,gridColumn:11,gridColumnEnd:11,gridColumnGap:11,gridRowGap:11,gridArea:11,gridGap:11,textSizeAdjust:11,writingMode:11},edge:{userSelect:17,wrapFlow:17,wrapThrough:17,wrapMargin:17,scrollSnapType:17,scrollSnapPointsX:17,scrollSnapPointsY:17,scrollSnapDestination:17,scrollSnapCoordinate:17,hyphens:17,flowInto:17,flowFrom:17,breakBefore:17,breakAfter:17,breakInside:17,regionFragment:17,gridTemplateColumns:15,gridTemplateRows:15,gridTemplateAreas:15,gridTemplate:15,gridAutoColumns:15,gridAutoRows:15,gridAutoFlow:15,grid:15,gridRowStart:15,gridColumnStart:15,gridRowEnd:15,gridRow:15,gridColumn:15,gridColumnEnd:15,gridColumnGap:15,gridRowGap:15,gridArea:15,gridGap:15},ios_saf:{flex:8.1,flexBasis:8.1,flexDirection:8.1,flexGrow:8.1,flexFlow:8.1,flexShrink:8.1,flexWrap:8.1,alignContent:8.1,alignItems:8.1,alignSelf:8.1,justifyContent:8.1,order:8.1,transition:6,transitionDelay:6,transitionDuration:6,transitionProperty:6,transitionTimingFunction:6,transform:8.1,transformOrigin:8.1,transformOriginX:8.1,transformOriginY:8.1,backfaceVisibility:8.1,perspective:8.1,perspectiveOrigin:8.1,transformStyle:8.1,transformOriginZ:8.1,animation:8.1,animationDelay:8.1,animationDirection:8.1,animationFillMode:8.1,animationDuration:8.1,animationIterationCount:8.1,animationName:8.1,animationPlayState:8.1,animationTimingFunction:8.1,appearance:11,userSelect:11,backdropFilter:11,fontKerning:11,scrollSnapType:10.3,scrollSnapPointsX:10.3,scrollSnapPointsY:10.3,scrollSnapDestination:10.3,scrollSnapCoordinate:10.3,boxDecorationBreak:11,clipPath:11,maskImage:11,maskMode:11,maskRepeat:11,maskPosition:11,maskClip:11,maskOrigin:11,maskSize:11,maskComposite:11,mask:11,maskBorderSource:11,maskBorderMode:11,maskBorderSlice:11,maskBorderWidth:11,maskBorderOutset:11,maskBorderRepeat:11,maskBorder:11,maskType:11,textSizeAdjust:11,textDecorationStyle:11,textDecorationSkip:11,textDecorationLine:11,textDecorationColor:11,shapeImageThreshold:10,shapeImageMargin:10,shapeImageOutside:10,filter:9,hyphens:11,flowInto:11,flowFrom:11,breakBefore:8.1,breakAfter:8.1,breakInside:8.1,regionFragment:11,columnCount:8.1,columnFill:8.1,columnGap:8.1,columnRule:8.1,columnRuleColor:8.1,columnRuleStyle:8.1,columnRuleWidth:8.1,columns:8.1,columnSpan:8.1,columnWidth:8.1,writingMode:10.3},android:{borderImage:4.2,borderImageOutset:4.2,borderImageRepeat:4.2,borderImageSlice:4.2,borderImageSource:4.2,borderImageWidth:4.2,flex:4.2,flexBasis:4.2,flexDirection:4.2,flexGrow:4.2,flexFlow:4.2,flexShrink:4.2,flexWrap:4.2,alignContent:4.2,alignItems:4.2,alignSelf:4.2,justifyContent:4.2,order:4.2,transition:4.2,transitionDelay:4.2,transitionDuration:4.2,transitionProperty:4.2,transitionTimingFunction:4.2,transform:4.4,transformOrigin:4.4,transformOriginX:4.4,transformOriginY:4.4,backfaceVisibility:4.4,perspective:4.4,perspectiveOrigin:4.4,transformStyle:4.4,transformOriginZ:4.4,animation:4.4,animationDelay:4.4,animationDirection:4.4,animationFillMode:4.4,animationDuration:4.4,animationIterationCount:4.4,animationName:4.4,animationPlayState:4.4,animationTimingFunction:4.4,appearance:62,userSelect:4.4,fontKerning:4.4,textEmphasisPosition:62,textEmphasis:62,textEmphasisStyle:62,textEmphasisColor:62,boxDecorationBreak:62,clipPath:4.4,maskImage:62,maskMode:62,maskRepeat:62,maskPosition:62,maskClip:62,maskOrigin:62,maskSize:62,maskComposite:62,mask:62,maskBorderSource:62,maskBorderMode:62,maskBorderSlice:62,maskBorderWidth:62,maskBorderOutset:62,maskBorderRepeat:62,maskBorder:62,maskType:62,filter:4.4,fontFeatureSettings:4.4,breakAfter:4.4,breakBefore:4.4,breakInside:4.4,columnCount:4.4,columnFill:4.4,columnGap:4.4,columnRule:4.4,columnRuleColor:4.4,columnRuleStyle:4.4,columnRuleWidth:4.4,columns:4.4,columnSpan:4.4,columnWidth:4.4,writingMode:4.4},and_chr:{appearance:62,textEmphasisPosition:62,textEmphasis:62,textEmphasisStyle:62,textEmphasisColor:62,boxDecorationBreak:62,maskImage:62,maskMode:62,maskRepeat:62,maskPosition:62,maskClip:62,maskOrigin:62,maskSize:62,maskComposite:62,mask:62,maskBorderSource:62,maskBorderMode:62,maskBorderSlice:62,maskBorderWidth:62,maskBorderOutset:62,maskBorderRepeat:62,maskBorder:62,maskType:62},and_uc:{flex:11.4,flexBasis:11.4,flexDirection:11.4,flexGrow:11.4,flexFlow:11.4,flexShrink:11.4,flexWrap:11.4,alignContent:11.4,alignItems:11.4,alignSelf:11.4,justifyContent:11.4,order:11.4,transform:11.4,transformOrigin:11.4,transformOriginX:11.4,transformOriginY:11.4,backfaceVisibility:11.4,perspective:11.4,perspectiveOrigin:11.4,transformStyle:11.4,transformOriginZ:11.4,animation:11.4,animationDelay:11.4,animationDirection:11.4,animationFillMode:11.4,animationDuration:11.4,animationIterationCount:11.4,animationName:11.4,animationPlayState:11.4,animationTimingFunction:11.4,appearance:11.4,userSelect:11.4,textEmphasisPosition:11.4,textEmphasis:11.4,textEmphasisStyle:11.4,textEmphasisColor:11.4,clipPath:11.4,maskImage:11.4,maskMode:11.4,maskRepeat:11.4,maskPosition:11.4,maskClip:11.4,maskOrigin:11.4,maskSize:11.4,maskComposite:11.4,mask:11.4,maskBorderSource:11.4,maskBorderMode:11.4,maskBorderSlice:11.4,maskBorderWidth:11.4,maskBorderOutset:11.4,maskBorderRepeat:11.4,maskBorder:11.4,maskType:11.4,textSizeAdjust:11.4,filter:11.4,hyphens:11.4,fontFeatureSettings:11.4,breakAfter:11.4,breakBefore:11.4,breakInside:11.4,columnCount:11.4,columnFill:11.4,columnGap:11.4,columnRule:11.4,columnRuleColor:11.4,columnRuleStyle:11.4,columnRuleWidth:11.4,columns:11.4,columnSpan:11.4,columnWidth:11.4,writingMode:11.4},op_mini:{}}};function I5(Z){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")I5=function(Y){return typeof Y};else I5=function(Y){return Y&&typeof Symbol==="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y};return I5(Z)}var kZ=jZ.default(p4),cz=_Z.default(CZ,kZ);function pz(Z){return Object.keys(Z).reduce(function(J,Y){var Q=Z[Y];if(Array.isArray(Q))Q=Q.join(";"+Y+":");else if(Q&&I5(Q)==="object"&&typeof Q.toString==="function")Q=Q.toString();return J[Y]=Q,J},{})}function lz(Z){return Object.keys(Z).reduce(function(J,Y){var Q=Z[Y];if(Array.isArray(Q))if(vZ.default.canUseDOM)Q=Q[Q.length-1].toString();else Q=Q.join(";".concat(f6(Y),":"));return J[Y]=Q,J},{})}var fZ,O5;function hZ(Z){var J=Z||global&&global.navigator&&global.navigator.userAgent;if(!O5||J!==fZ){if(J==="all")O5={prefix:kZ,prefixedKeyframes:"keyframes"};else O5=new cz({userAgent:J});fZ=J}return O5}function bZ(Z){return hZ(Z).prefixedKeyframes||"keyframes"}function V5(Z,J){var Y=pz(Z),Q=hZ(J),X=Q.prefix(Y),G=lz(X);return G}function iz(Z){return Object.keys(Z).map(function(J){return J+": "+Z[J]+";"}).join(`
16
+ `)}function h1(Z,J,Y){if(!J)return"";var Q=w0(J,function(H,z){return T0(z,H)}),X=V5(Q,Y),G=C7(X),W=iz(G);return Z+"{"+W+"}"}var nz=function(J){return J===null||typeof J>"u"?"main":J.toString()},q5=nz;var oz=function(J,Y,Q){var X=q5(Y);return!!J&&!!J._radiumStyleState&&!!J._radiumStyleState[X]&&J._radiumStyleState[X][Q]},D5=oz;var az=function(J){return typeof J.ref==="string"?J.ref:J.key},a1=az;var sz=function(J){return J._lastRadiumState||J.state&&J.state._radiumStyleState||{}},S0=sz;function x0(Z){if(!Z)return"";var J=5381,Y=Z.length-1;while(Y)J=J*33^Z.charCodeAt(Y),Y-=1;return(J>>>0).toString(16)}function N5(Z){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")N5=function(Y){return typeof Y};else N5=function(Y){return Y&&typeof Symbol==="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y};return N5(Z)}function A5(Z){return Z&&Z.constructor===Object&&Z.toString===Object.prototype.toString}function R5(Z){var J={};return Z.forEach(function(Y){if(!Y||N5(Y)!=="object")return;if(Array.isArray(Y))Y=R5(Y);Object.keys(Y).forEach(function(Q){if(!A5(Y[Q])||!A5(J[Q])){J[Q]=Y[Q];return}if(Q.indexOf("@media")===0){var X=Q;while(!0)if(X+=" ",!J[X]){J[X]=Y[Q];return}}J[Q]=R5([J[Q],Y[Q]])})}),J}var rz=function(){};var gZ=rz;function E8(Z){var{addCSS:J,config:Y,style:Q}=Z,X=function(H){var z=H,U=z.__process(Y.userAgent),B=U.animationName,L=U.css;return J(L),B},G=Object.keys(Q).reduce(function(W,H){var z=Q[H],U=Array.isArray(z);if(H==="animationName"&&z&&(z.__radiumKeyframes||U))if(U)z=z.map(X).join(", ");else z=X(z);return W[H]=z,W},{});return{style:G}}var tz=function(J){var{style:Y,mergeStyles:Q}=J,X=Array.isArray(Y)?Q(Y):Y;return{style:X}},yZ=tz;function S8(Z){var{config:J,style:Y}=Z,Q=V5(Y,J.userAgent);return{style:Q}}function x8(Z){var{isNestedStyle:J,style:Y}=Z,Q=Object.keys(Y).reduce(function(X,G){var W=Y[G];if(!J(W))X[G]=W;return X},{});return{style:Q}}var U0=[],P5=!1;function C8(){U0.forEach(function(Z){Z()})}var ez=function(J){if(U0.indexOf(J)===-1)U0.push(J);if(!P5)window.addEventListener("mouseup",C8),P5=!0;return{remove:function(){var Q=U0.indexOf(J);if(U0.splice(Q,1),U0.length===0&&P5)window.removeEventListener("mouseup",C8),P5=!1}}},mZ={subscribe:ez,__triggerForTests:C8};var uZ=function(J){return J===":hover"||J===":active"||J===":focus"},ZU=function(J){var{ExecutionEnvironment:Y,getComponentField:Q,getState:X,mergeStyles:G,props:W,setState:H,style:z}=J,U={},B={};if(z[":hover"]){var L=W.onMouseEnter;B.onMouseEnter=function(q){L&&L(q),H(":hover",!0)};var I=W.onMouseLeave;B.onMouseLeave=function(q){I&&I(q),H(":hover",!1)}}if(z[":active"]){var M=W.onMouseDown;B.onMouseDown=function(q){M&&M(q),U._lastMouseDown=Date.now(),H(":active","viamousedown")};var K=W.onKeyDown;B.onKeyDown=function(q){if(K&&K(q),q.key===" "||q.key==="Enter")H(":active","viakeydown")};var F=W.onKeyUp;B.onKeyUp=function(q){if(F&&F(q),q.key===" "||q.key==="Enter")H(":active",!1)}}if(z[":focus"]){var O=W.onFocus;B.onFocus=function(q){O&&O(q),H(":focus",!0)};var D=W.onBlur;B.onBlur=function(q){D&&D(q),H(":focus",!1)}}if(z[":active"]&&!Q("_radiumMouseUpListener")&&Y.canUseEventListeners)U._radiumMouseUpListener=mZ.subscribe(function(){Object.keys(Q("state")._radiumStyleState).forEach(function(q){if(X(":active",q)==="viamousedown")H(":active",!1,q)})});var P=W.disabled?[z[":disabled"]]:Object.keys(z).filter(function(q){return uZ(q)&&X(q)}).map(function(q){return z[q]}),N=G([z].concat(P));return N=Object.keys(N).reduce(function(q,T){if(!uZ(T)&&T!==":disabled")q[T]=N[T];return q},{}),{componentFields:U,props:B,style:N}},dZ=ZU;function JU(Z){for(var J=1;J<arguments.length;J++){var Y=arguments[J]!=null?arguments[J]:{},Q=Object.keys(Y);if(typeof Object.getOwnPropertySymbols==="function")Q=Q.concat(Object.getOwnPropertySymbols(Y).filter(function(X){return Object.getOwnPropertyDescriptor(Y,X).enumerable}));Q.forEach(function(X){YU(Z,X,Y[X])})}return Z}function YU(Z,J,Y){if(J in Z)Object.defineProperty(Z,J,{value:Y,enumerable:!0,configurable:!0,writable:!0});else Z[J]=Y;return Z}var f8;function QU(Z){if(f8===void 0)f8=!!Z.canUseDOM&&!!window&&!!window.matchMedia&&function(J){return window.matchMedia(J)}||null;return f8}function cZ(Z,J){return Object.keys(Z).filter(function(Y){return J(Z[Y],Y)}).reduce(function(Y,Q){return Y[Q]=Z[Q],Y},{})}function XU(Z){return Object.keys(Z).reduce(function(J,Y){if(Y.indexOf("@media")!==0)J[Y]=Z[Y];return J},{})}function GU(Z){var{addCSS:J,appendImportantToEachValue:Y,cssRuleSetToString:Q,hash:X,isNestedStyle:G,style:W,userAgent:H}=Z,z="";return Object.keys(W).filter(function(U){return U.indexOf("@media")===0}).map(function(U){var B=Y(cZ(W[U],function(K){return!G(K)}));if(!Object.keys(B).length)return;var L=Q("",B,H),I="rmq-"+X(U+L),M=U+"{ ."+I+L+"}";J(M),z+=(z?" ":"")+I}),z}function WU(Z){var{listener:J,listenersByQuery:Y,matchMedia:Q,mediaQueryListsByQuery:X,query:G}=Z;G=G.replace("@media ","");var W=X[G];if(!W&&Q)X[G]=W=Q(G);if(!Y||!Y[G])W.addListener(J),Y[G]={remove:function(){W.removeListener(J)}};return W}function j8(Z){var{ExecutionEnvironment:J,addCSS:Y,appendImportantToEachValue:Q,config:X,cssRuleSetToString:G,getComponentField:W,getGlobalState:H,hash:z,isNestedStyle:U,mergeStyles:B,props:L,setState:I,style:M}=Z,K=XU(M),F=GU({addCSS:Y,appendImportantToEachValue:Q,cssRuleSetToString:G,hash:z,isNestedStyle:U,style:M,userAgent:X.userAgent}),O=F?{className:F+(L.className?" "+L.className:"")}:null,D=X.matchMedia||QU(J);if(!D)return{props:O,style:K};var P=JU({},W("_radiumMediaQueryListenersByQuery")),N=H("mediaQueryListsByQuery")||{};return Object.keys(M).filter(function(q){return q.indexOf("@media")===0}).map(function(q){var T=cZ(M[q],U);if(!Object.keys(T).length)return;var C=WU({listener:function(){return I(q,C.matches,"_all")},listenersByQuery:P,matchMedia:D,mediaQueryListsByQuery:N,query:q});if(C.matches)K=B([K,T])}),{componentFields:{_radiumMediaQueryListenersByQuery:P},globalState:{mediaQueryListsByQuery:N},props:O,style:K}}function _8(Z){var{addCSS:J,appendImportantToEachValue:Y,config:Q,cssRuleSetToString:X,hash:G,props:W,style:H}=Z,z=W.className,U=Object.keys(H).reduce(function(B,L){var I=H[L];if(L===":visited"){I=Y(I);var M=X("",I,Q.userAgent),K="rad-"+G(M),F="."+K+":visited"+M;J(F),z=(z?z+" ":"")+K}else B[L]=I;return B},{});return{props:z===W.className?null:{className:z},style:U}}var W1={checkProps:gZ,keyframes:E8,mergeStyleArray:yZ,prefix:S8,removeNestedStyles:x8,resolveInteractionStyles:dZ,resolveMediaQueries:j8,visited:_8};var nZ=S(p6(),1);import b1 from"react";function HU(Z,J){if(!(Z instanceof J))throw TypeError("Cannot call a class as a function")}function pZ(Z,J){for(var Y=0;Y<J.length;Y++){var Q=J[Y];if(Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q)Q.writable=!0;Object.defineProperty(Z,Q.key,Q)}}function zU(Z,J,Y){if(J)pZ(Z.prototype,J);if(Y)pZ(Z,Y);return Z}var lZ=function(){function Z(J){HU(this,Z),this._userAgent=void 0,this._listeners=void 0,this._cssSet=void 0,this._userAgent=J,this._listeners=[],this._cssSet={}}return zU(Z,[{key:"subscribe",value:function(Y){var Q=this;if(this._listeners.indexOf(Y)===-1)this._listeners.push(Y);return{remove:function(){var G=Q._listeners.indexOf(Y);if(G>-1)Q._listeners.splice(G,1)}}}},{key:"addCSS",value:function(Y){var Q=this;if(!this._cssSet[Y])this._cssSet[Y]=!0,this._emitChange();return{remove:function(){delete Q._cssSet[Y],Q._emitChange()}}}},{key:"getCSS",value:function(){return Object.keys(this._cssSet).join(`
17
+ `)}},{key:"_emitChange",value:function(){this._listeners.forEach(function(Y){return Y()})}}]),Z}();function B0(Z){for(var J=1;J<arguments.length;J++){var Y=arguments[J]!=null?arguments[J]:{},Q=Object.keys(Y);if(typeof Object.getOwnPropertySymbols==="function")Q=Q.concat(Object.getOwnPropertySymbols(Y).filter(function(X){return Object.getOwnPropertyDescriptor(Y,X).enumerable}));Q.forEach(function(X){UU(Z,X,Y[X])})}return Z}function UU(Z,J,Y){if(J in Z)Object.defineProperty(Z,J,{value:Y,enumerable:!0,configurable:!0,writable:!0});else Z[J]=Y;return Z}function T5(Z){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")T5=function(Y){return typeof Y};else T5=function(Y){return Y&&typeof Symbol==="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y};return T5(Z)}var oZ={plugins:[W1.mergeStyleArray,W1.checkProps,W1.resolveMediaQueries,W1.resolveInteractionStyles,W1.keyframes,W1.visited,W1.removeNestedStyles,W1.prefix,W1.checkProps]},iZ={},BU=!1,s1=null,KU=function(J){return J.type&&!J.type._isRadiumEnhanced},LU=function(J){var{children:Y,component:Q,config:X,existingKeyMap:G,extraStateKeyMap:W}=J;if(!Y)return Y;var H=T5(Y);if(H==="string"||H==="number")return Y;if(H==="function")return function(){var I=Y.apply(this,arguments);if(b1.isValidElement(I)){var M=a1(I);delete W[M];var K=s1(Q,I,X,G,!0,W),F=K.element;return F}return I};if(b1.Children.count(Y)===1&&Y.type){var z=b1.Children.only(Y),U=a1(z);delete W[U];var B=s1(Q,z,X,G,!0,W),L=B.element;return L}return b1.Children.map(Y,function(I){if(b1.isValidElement(I)){var M=a1(I);delete W[M];var K=s1(Q,I,X,G,!0,W),F=K.element;return F}return I})},MU=function(J){var{component:Y,config:Q,existingKeyMap:X,props:G,extraStateKeyMap:W}=J,H=G;return Object.keys(G).forEach(function(z){if(z==="children")return;var U=G[z];if(b1.isValidElement(U)){var B=a1(U);delete W[B],H=B0({},H);var L=s1(Y,U,Q,X,!0,W),I=L.element;H[z]=I}}),H},FU=function(J){var{componentName:Y,existingKeyMap:Q,renderedElement:X}=J,G=a1(X),W=q5(G),H=!1,z=function(){if(H)return W;if(H=!0,Q[W]){var B;if(typeof X.type==="string")B=X.type;else if(X.type.constructor)B=X.type.constructor.displayName||X.type.constructor.name;throw Error("Radium requires each element with interactive styles to have a unique key, set using either the ref or key prop. "+(G?'Key "'+G+'" is a duplicate.':"Multiple elements have no key specified.")+' Component: "'+Y+'". '+(B?'Element: "'+B+'".':""))}return Q[W]=!0,W};return z},$U=function(J,Y,Q,X){if(!J._radiumIsMounted)return;var G=S0(J),W={_radiumStyleState:B0({},G)};W._radiumStyleState[Y]=B0({},W._radiumStyleState[Y]),W._radiumStyleState[Y][Q]=X,J._lastRadiumState=W._radiumStyleState,J.setState(W)},OU=function(J){var{component:Y,config:Q,existingKeyMap:X,props:G,renderedElement:W}=J;if(!b1.isValidElement(W)||typeof W.type!=="string"||!G.style)return G;var H=G,z=Q.plugins||oZ.plugins,U=Y.constructor.displayName||Y.constructor.name,B=FU({renderedElement:W,existingKeyMap:X,componentName:U}),L=function(P){return Y[P]},I=function(P){return iZ[P]},M=function(P,N){return D5(Y.state,N||B(),P)},K=function(P,N,q){return $U(Y,q||B(),P,N)},F=function(P){var N=Y._radiumStyleKeeper;if(!N){if(BU)return{remove:function(){}};throw Error("To use plugins requiring `addCSS` (e.g. keyframes, media queries), please wrap your application in the StyleRoot component. Component name: `"+U+"`.")}return N.addCSS(P)},O=G.style;if(z.forEach(function(D){var P=D({ExecutionEnvironment:nZ.default,addCSS:F,appendImportantToEachValue:C6,componentName:U,config:Q,cssRuleSetToString:h1,getComponentField:L,getGlobalState:I,getState:M,hash:x0,mergeStyles:R5,props:H,setState:K,isNestedStyle:A5,style:O})||{};O=P.style||O,H=P.props&&Object.keys(P.props).length?B0({},H,P.props):H;var N=P.componentFields||{};Object.keys(N).forEach(function(T){Y[T]=N[T]});var q=P.globalState||{};Object.keys(q).forEach(function(T){iZ[T]=q[T]})}),O!==G.style)H=B0({},H,{style:O});return H},IU=function(J,Y,Q){if(typeof J.type==="string")Y=B0({},Y,{"data-radium":!0});return b1.cloneElement(J,Y,Q)};s1=function(J,Y){var Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:oZ,X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},G=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,W=arguments.length>5?arguments[5]:void 0;if(!W){var H=S0(J);W=Object.keys(H).reduce(function(M,K){if(K!=="main")M[K]=!0;return M},{})}if(Array.isArray(Y)&&!Y.props){var z=Y.map(function(M){if(W){var K=a1(M);delete W[K]}return s1(J,M,Q,X,G,W).element});return{extraStateKeyMap:W,element:z}}if(!Y||Y.props&&Y.props["data-radium"]||G&&!KU(Y))return{extraStateKeyMap:W,element:Y};var U=Y.props.children,B=LU({children:U,component:J,config:Q,existingKeyMap:X,extraStateKeyMap:W}),L=MU({component:J,config:Q,existingKeyMap:X,extraStateKeyMap:W,props:Y.props});if(L=OU({component:J,config:Q,existingKeyMap:X,props:L,renderedElement:Y}),B===U&&L===Y.props)return{extraStateKeyMap:W,element:Y};var I=IU(Y,L!==Y.props?L:{},B);return{extraStateKeyMap:W,element:I}};var aZ=s1;var rZ=S(x6(),1);import w5,{useContext as sZ}from"react";function v8(){return v8=Object.assign||function(Z){for(var J=1;J<arguments.length;J++){var Y=arguments[J];for(var Q in Y)if(Object.prototype.hasOwnProperty.call(Y,Q))Z[Q]=Y[Q]}return Z},v8.apply(this,arguments)}var C0=w5.createContext(void 0),K0=w5.createContext(void 0);function L0(Z){var J=w5.forwardRef(function(Y,Q){var X=sZ(K0),G=sZ(C0);return w5.createElement(Z,v8({ref:Q},Y,{radiumConfigContext:X,styleKeeperContext:G}))});return J.displayName="withRadiumContexts(".concat(Z.displayName||Z.name||"Component",")"),rZ.default(J,Z)}function r1(Z){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")r1=function(Y){return typeof Y};else r1=function(Y){return Y&&typeof Symbol==="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y};return r1(Z)}function QJ(Z,J){if(!(Z instanceof J))throw TypeError("Cannot call a class as a function")}function tZ(Z,J){for(var Y=0;Y<J.length;Y++){var Q=J[Y];if(Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q)Q.writable=!0;Object.defineProperty(Z,Q.key,Q)}}function VU(Z,J,Y){if(J)tZ(Z.prototype,J);if(Y)tZ(Z,Y);return Z}function XJ(Z,J){if(J&&(r1(J)==="object"||typeof J==="function"))return J;return GJ(Z)}function GJ(Z){if(Z===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return Z}function g1(Z,J,Y){if(typeof Reflect<"u"&&Reflect.get)g1=Reflect.get;else g1=function(X,G,W){var H=qU(X,G);if(!H)return;var z=Object.getOwnPropertyDescriptor(H,G);if(z.get)return z.get.call(W);return z.value};return g1(Z,J,Y||Z)}function qU(Z,J){while(!Object.prototype.hasOwnProperty.call(Z,J))if(Z=$1(Z),Z===null)break;return Z}function $1(Z){return $1=Object.setPrototypeOf?Object.getPrototypeOf:function(Y){return Y.__proto__||Object.getPrototypeOf(Y)},$1(Z)}function WJ(Z,J){if(typeof J!=="function"&&J!==null)throw TypeError("Super expression must either be null or a function");if(Z.prototype=Object.create(J&&J.prototype,{constructor:{value:Z,writable:!0,configurable:!0}}),J)k8(Z,J)}function k8(Z,J){return k8=Object.setPrototypeOf||function(Q,X){return Q.__proto__=X,Q},k8(Z,J)}function DU(Z,J){return RU(Z)||AU(Z,J)||NU()}function NU(){throw TypeError("Invalid attempt to destructure non-iterable instance")}function AU(Z,J){var Y=[],Q=!0,X=!1,G=void 0;try{for(var W=Z[Symbol.iterator](),H;!(Q=(H=W.next()).done);Q=!0)if(Y.push(H.value),J&&Y.length===J)break}catch(z){X=!0,G=z}finally{try{if(!Q&&W.return!=null)W.return()}finally{if(X)throw G}}return Y}function RU(Z){if(Array.isArray(Z))return Z}function h8(Z){for(var J=1;J<arguments.length;J++){var Y=arguments[J]!=null?arguments[J]:{},Q=Object.keys(Y);if(typeof Object.getOwnPropertySymbols==="function")Q=Q.concat(Object.getOwnPropertySymbols(Y).filter(function(X){return Object.getOwnPropertyDescriptor(Y,X).enumerable}));Q.forEach(function(X){PU(Z,X,Y[X])})}return Z}function PU(Z,J,Y){if(J in Z)Object.defineProperty(Z,J,{value:Y,enumerable:!0,configurable:!0,writable:!0});else Z[J]=Y;return Z}function HJ(Z,J){if(Z==null)return{};var Y=TU(Z,J),Q,X;if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(Z);for(X=0;X<G.length;X++){if(Q=G[X],J.indexOf(Q)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Z,Q))continue;Y[Q]=Z[Q]}}return Y}function TU(Z,J){if(Z==null)return{};var Y={},Q=Object.keys(Z),X,G;for(G=0;G<Q.length;G++){if(X=Q[G],J.indexOf(X)>=0)continue;Y[X]=Z[X]}return Y}function wU(Z){var J=EU(Z,"string");return r1(J)==="symbol"?J:String(J)}function EU(Z,J){if(r1(Z)!=="object"||Z===null)return Z;var Y=Z[Symbol.toPrimitive];if(Y!==void 0){var Q=Y.call(Z,J||"default");if(r1(Q)!=="object")return Q;throw TypeError("@@toPrimitive must return a primitive value.")}return(J==="string"?String:Number)(Z)}var fU=["arguments","callee","caller","length","name","prototype","type"],S5,BJ;function jU(Z,J){Object.getOwnPropertyNames(Z).forEach(function(Y){if(fU.indexOf(Y)<0&&!J.hasOwnProperty(Y)){var Q=Object.getOwnPropertyDescriptor(Z,Y);Q&&Object.defineProperty(J,Y,Q)}})}function _U(Z){var J=Z.prototype||{};return!Z.isReactComponent&&!J.isReactComponent&&!Z.render&&!J.render}function vU(Z){return typeof Z==="function"&&/^\s*class\s+/.test(Z.toString())}function kU(Z,J){BJ.forEach(function(Y){var Q=Object.getOwnPropertyDescriptor(Z,Y),X=(Q||{}).value;if(!X)return;var G=Object.getOwnPropertyDescriptor(S5,Y),W=(G||{}).value,H=J.prototype[Y];if(!H&&X!==W)Q&&Object.defineProperty(J.prototype,Y,Q),delete Z[Y]})}function KJ(Z){if(Z._extraRadiumStateKeys&&Z._extraRadiumStateKeys.length>0){var J=Z._extraRadiumStateKeys.reduce(function(Y,Q){var X=Y[Q],G=HJ(Y,[Q].map(wU));return G},S0(Z));Z._lastRadiumState=J,Z.setState({_radiumStyleState:J})}}function LJ(Z){var{_radiumMouseUpListener:J,_radiumMediaQueryListenersByQuery:Y}=Z;if(Z._radiumIsMounted=!1,J)J.remove();if(Y)Object.keys(Y).forEach(function(Q){Y[Q].remove()},Z)}function MJ(Z,J,Y){var Q=Z||J||Y;if(Y&&Q!==Y)Q=h8({},Y,Q);return Q}function FJ(Z,J,Y,Q){var X=aZ(Z,J,Y),G=X.extraStateKeyMap,W=X.element;if(Z._extraRadiumStateKeys=Object.keys(G),Q)return zJ.createElement(K0.Provider,{value:Q},W);return W}function JJ(Z,J){var Y=zJ.forwardRef(function(Q,X){var G=Q.radiumConfig,W=HJ(Q,["radiumConfig"]),H=eZ(K0),z=eZ(C0),U=SU({_radiumStyleState:{}}),B=DU(U,2),L=B[0],I=B[1],M=xU({state:L,setState:I,_radiumMediaQueryListenersByQuery:void 0,_radiumMouseUpListener:void 0,_radiumIsMounted:!0,_lastRadiumState:void 0,_extraRadiumStateKeys:void 0,_radiumStyleKeeper:z}).current;M.state=L,ZJ(function(){return function(){LJ(M)}},[M]);var K=M._extraRadiumStateKeys&&M._extraRadiumStateKeys.length>0;ZJ(function(){KJ(M)},[K,M]);var F=Z(W,X),O=MJ(G,H,J);return FJ(M,F,O,G)});return Y._isRadiumEnhanced=!0,Y.defaultProps=Z.defaultProps,UJ.default(Y,Z)}function hU(Z,J,Y){var Q=function(X){WJ(G,X);function G(){var W;QJ(this,G),W=XJ(this,$1(G).apply(this,arguments)),W.state=W.state||{},W._radiumStyleKeeper=W.props.styleKeeperContext,W._radiumMediaQueryListenersByQuery=W._radiumMediaQueryListenersByQuery,W._radiumMouseUpListener=W._radiumMouseUpListener,W._radiumIsMounted=!0,W._lastRadiumState=void 0,W._extraRadiumStateKeys=void 0,W.state._radiumStyleState={};var H=GJ(W);return kU(H,J),W}return VU(G,[{key:"componentDidUpdate",value:function(H,z,U){if(g1($1(G.prototype),"componentDidUpdate",this))g1($1(G.prototype),"componentDidUpdate",this).call(this,H,z,U);KJ(this)}},{key:"componentWillUnmount",value:function(){if(g1($1(G.prototype),"componentWillUnmount",this))g1($1(G.prototype),"componentWillUnmount",this).call(this);LJ(this)}},{key:"render",value:function(){var H=g1($1(G.prototype),"render",this).call(this),z=MJ(this.props.radiumConfig,this.props.radiumConfigContext,Y);return FJ(this,H,z,this.props.radiumConfig)}}]),G}(J);if(Q._isRadiumEnhanced=!0,S5=Q.prototype,BJ=Object.getOwnPropertyNames(S5).filter(function(X){return X!=="constructor"&&typeof S5[X]==="function"}),jU(Z,Q),Q.propTypes&&Q.propTypes.style)Q.propTypes=h8({},Q.propTypes,{style:E5.default.oneOfType([E5.default.array,E5.default.object])});return Q.displayName=Z.displayName||Z.name||"Component",L0(Q)}function bU(Z){return Z=function(J){function Y(){var Q=Reflect.construct(J,arguments,this.constructor);return Q}return Reflect.setPrototypeOf(Y.prototype,J.prototype),Reflect.setPrototypeOf(Y,J),Y}(Z),Z}var YJ=CU(function(){return null}).$$typeof;function M0(Z){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(YJ&&Z.$$typeof===YJ)return JJ(Z.render,J);if(typeof Z!=="function")return gU(J,Z);var Y=Z;if(_U(Y))return JJ(Y,J);var Q=Y;if(vU(Q))Q=bU(Q);if(Q===Y)Q=function(X){WJ(G,X);function G(){return QJ(this,G),XJ(this,$1(G).apply(this,arguments))}return G}(Q);return hU(Y,Q,J)}function gU(Z,J){var Y=h8({},Z,J);return function(Q){return M0(Q,Y)}}var x5=S(w6(),1);import pU,{PureComponent as lU}from"react";function F0(Z){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")F0=function(Y){return typeof Y};else F0=function(Y){return Y&&typeof Symbol==="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y};return F0(Z)}function yU(Z,J){if(!(Z instanceof J))throw TypeError("Cannot call a class as a function")}function $J(Z,J){for(var Y=0;Y<J.length;Y++){var Q=J[Y];if(Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q)Q.writable=!0;Object.defineProperty(Z,Q.key,Q)}}function mU(Z,J,Y){if(J)$J(Z.prototype,J);if(Y)$J(Z,Y);return Z}function uU(Z,J){if(J&&(F0(J)==="object"||typeof J==="function"))return J;return dU(Z)}function dU(Z){if(Z===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return Z}function b8(Z){return b8=Object.setPrototypeOf?Object.getPrototypeOf:function(Y){return Y.__proto__||Object.getPrototypeOf(Y)},b8(Z)}function cU(Z,J){if(typeof J!=="function"&&J!==null)throw TypeError("Super expression must either be null or a function");if(Z.prototype=Object.create(J&&J.prototype,{constructor:{value:Z,writable:!0,configurable:!0}}),J)g8(Z,J)}function g8(Z,J){return g8=Object.setPrototypeOf||function(Q,X){return Q.__proto__=X,Q},g8(Z,J)}var y8=function(Z){cU(J,Z);function J(){return yU(this,J),uU(this,b8(J).apply(this,arguments))}return mU(J,[{key:"_buildStyles",value:function(Q){var X=this,G=this.props.radiumConfig&&this.props.radiumConfig.userAgent||this.props.radiumConfigContext&&this.props.radiumConfigContext.userAgent,W=this.props.scopeSelector,H=Object.keys(Q).reduce(function(U,B){if(F0(Q[B])!=="object")U[B]=Q[B];return U},{}),z=Object.keys(H).length?h1(W||"",H,G):"";return z+Object.keys(Q).reduce(function(U,B){var L=Q[B];if(B==="mediaQueries")U+=X._buildMediaQueryString(L);else if(F0(Q[B])==="object"){var I=W?B.split(",").map(function(M){return W+" "+M.trim()}).join(","):B;U+=h1(I,L,G)}return U},"")}},{key:"_buildMediaQueryString",value:function(Q){var X=this,G="";return Object.keys(Q).forEach(function(W){G+="@media "+W+"{"+X._buildStyles(Q[W])+"}"}),G}},{key:"render",value:function(){if(!this.props.rules)return null;var Q=this._buildStyles(this.props.rules);return pU.createElement("style",{dangerouslySetInnerHTML:{__html:Q}})}}]),J}(lU);y8.propTypes={radiumConfig:x5.default.object,rules:x5.default.object,scopeSelector:x5.default.string};y8.defaultProps={scopeSelector:""};var OJ=L0(y8);import f5,{useContext as YB,useRef as QB}from"react";import rU,{Component as tU}from"react";function C5(Z){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")C5=function(Y){return typeof Y};else C5=function(Y){return Y&&typeof Symbol==="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y};return C5(Z)}function iU(Z,J){if(!(Z instanceof J))throw TypeError("Cannot call a class as a function")}function IJ(Z,J){for(var Y=0;Y<J.length;Y++){var Q=J[Y];if(Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q)Q.writable=!0;Object.defineProperty(Z,Q.key,Q)}}function nU(Z,J,Y){if(J)IJ(Z.prototype,J);if(Y)IJ(Z,Y);return Z}function oU(Z,J){if(J&&(C5(J)==="object"||typeof J==="function"))return J;return aU(Z)}function aU(Z){if(Z===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return Z}function m8(Z){return m8=Object.setPrototypeOf?Object.getPrototypeOf:function(Y){return Y.__proto__||Object.getPrototypeOf(Y)},m8(Z)}function sU(Z,J){if(typeof J!=="function"&&J!==null)throw TypeError("Super expression must either be null or a function");if(Z.prototype=Object.create(J&&J.prototype,{constructor:{value:Z,writable:!0,configurable:!0}}),J)u8(Z,J)}function u8(Z,J){return u8=Object.setPrototypeOf||function(Q,X){return Q.__proto__=X,Q},u8(Z,J)}var eU=function(Z){sU(J,Z);function J(){var Y;if(iU(this,J),Y=oU(this,m8(J).apply(this,arguments)),Y.styleKeeper=void 0,Y._subscription=void 0,Y._root=void 0,Y._css=void 0,Y._onChange=function(){var Q=Y.styleKeeper.getCSS();if(Q!==Y._css){if(Y._root)Y._root.innerHTML=Q;else throw Error("No root style object found, even after StyleSheet mount.");Y._css=Q}},!Y.props.styleKeeperContext)throw Error("StyleRoot is required to use StyleSheet");return Y.styleKeeper=Y.props.styleKeeperContext,Y._css=Y.styleKeeper.getCSS(),Y}return nU(J,[{key:"componentDidMount",value:function(){this._subscription=this.styleKeeper.subscribe(this._onChange),this._onChange()}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"componentWillUnmount",value:function(){if(this._subscription)this._subscription.remove()}},{key:"render",value:function(){var Q=this;return rU.createElement("style",{dangerouslySetInnerHTML:{__html:this._css},ref:function(G){Q._root=G}})}}]),J}(tU),VJ=L0(eU);function ZB(Z,J){if(Z==null)return{};var Y=JB(Z,J),Q,X;if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(Z);for(X=0;X<G.length;X++){if(Q=G[X],J.indexOf(Q)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Z,Q))continue;Y[Q]=Z[Q]}}return Y}function JB(Z,J){if(Z==null)return{};var Y={},Q=Object.keys(Z),X,G;for(G=0;G<Q.length;G++){if(X=Q[G],J.indexOf(X)>=0)continue;Y[X]=Z[X]}return Y}function XB(Z,J){var Y=Z&&Z.userAgent||J&&J.userAgent;return new lZ(Y)}var GB=M0(function(Z){var J=Z.children,Y=ZB(Z,["children"]);return f5.createElement("div",Y,J,f5.createElement(VJ,null))}),WB=function(J){var Y=J.radiumConfig,Q=YB(K0),X=QB(XB(Y,Q));return f5.createElement(C0.Provider,{value:X.current},f5.createElement(GB,J))},qJ=WB;function d8(Z,J){return{__radiumKeyframes:!0,__process:function(Q){var X=bZ(Q),G=Object.keys(Z).map(function(z){return h1(z,Z[z],Q)}).join(`
18
18
  `),W=(J?J+"-":"")+"radium-animation-"+x0(G),H="@"+X+" "+W+` {
19
19
  `+G+`
20
20
  }
21
- `;return{css:H,animationName:W}}}}function $0(Z){return M0(Z)}$0.Plugins=W1;$0.Style=OJ;$0.StyleRoot=qJ;$0.getState=q5;$0.keyframes=d8;var H1=$0;function c8(Z){return{all:Z=Z||new Map,on:function(J,Y){var Q=Z.get(J);Q?Q.push(Y):Z.set(J,[Y])},off:function(J,Y){var Q=Z.get(J);Q&&(Y?Q.splice(Q.indexOf(Y)>>>0,1):Z.set(J,[]))},emit:function(J,Y){var Q=Z.get(J);Q&&Q.slice().map(function(X){X(Y)}),(Q=Z.get("*"))&&Q.slice().map(function(X){X(J,Y)})}}}import{createContext as HB}from"react";var f0=c8(),zB=HB(f0),y1=zB;var K1=Object.create(null);K1.open="0";K1.close="1";K1.ping="2";K1.pong="3";K1.message="4";K1.upgrade="5";K1.noop="6";var j0=Object.create(null);Object.keys(K1).forEach((Z)=>{j0[K1[Z]]=Z});var _0={type:"error",data:"parser error"};var AJ=typeof Blob==="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",RJ=typeof ArrayBuffer==="function",PJ=(Z)=>{return typeof ArrayBuffer.isView==="function"?ArrayBuffer.isView(Z):Z&&Z.buffer instanceof ArrayBuffer},v0=({type:Z,data:J},Y,Q)=>{if(AJ&&J instanceof Blob)if(Y)return Q(J);else return DJ(J,Q);else if(RJ&&(J instanceof ArrayBuffer||PJ(J)))if(Y)return Q(J);else return DJ(new Blob([J]),Q);return Q(K1[Z]+(J||""))},DJ=(Z,J)=>{let Y=new FileReader;return Y.onload=function(){let Q=Y.result.split(",")[1];J("b"+(Q||""))},Y.readAsDataURL(Z)};function NJ(Z){if(Z instanceof Uint8Array)return Z;else if(Z instanceof ArrayBuffer)return new Uint8Array(Z);else return new Uint8Array(Z.buffer,Z.byteOffset,Z.byteLength)}var p8;function TJ(Z,J){if(AJ&&Z.data instanceof Blob)return Z.data.arrayBuffer().then(NJ).then(J);else if(RJ&&(Z.data instanceof ArrayBuffer||PJ(Z.data)))return J(NJ(Z.data));v0(Z,!1,(Y)=>{if(!p8)p8=new TextEncoder;J(p8.encode(Y))})}var k0=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let Z=0;Z<64;Z++)k0["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(Z)]=Z;var wJ=(Z)=>{let J=Z.length*0.75,Y=Z.length,Q,X=0,G,W,H,z;if(Z[Z.length-1]==="="){if(J--,Z[Z.length-2]==="=")J--}let U=new ArrayBuffer(J),B=new Uint8Array(U);for(Q=0;Q<Y;Q+=4)G=k0[Z.charCodeAt(Q)],W=k0[Z.charCodeAt(Q+1)],H=k0[Z.charCodeAt(Q+2)],z=k0[Z.charCodeAt(Q+3)],B[X++]=G<<2|W>>4,B[X++]=(W&15)<<4|H>>2,B[X++]=(H&3)<<6|z&63;return U};var UB=typeof ArrayBuffer==="function",h0=(Z,J)=>{if(typeof Z!=="string")return{type:"message",data:EJ(Z,J)};let Y=Z.charAt(0);if(Y==="b")return{type:"message",data:BB(Z.substring(1),J)};if(!j0[Y])return _0;return Z.length>1?{type:j0[Y],data:Z.substring(1)}:{type:j0[Y]}},BB=(Z,J)=>{if(UB){let Y=wJ(Z);return EJ(Y,J)}else return{base64:!0,data:Z}},EJ=(Z,J)=>{switch(J){case"blob":if(Z instanceof Blob)return Z;else return new Blob([Z]);case"arraybuffer":default:if(Z instanceof ArrayBuffer)return Z;else return Z.buffer}};var SJ=String.fromCharCode(30),xJ=(Z,J)=>{let Y=Z.length,Q=Array(Y),X=0;Z.forEach((G,W)=>{v0(G,!1,(H)=>{if(Q[W]=H,++X===Y)J(Q.join(SJ))})})},CJ=(Z,J)=>{let Y=Z.split(SJ),Q=[];for(let X=0;X<Y.length;X++){let G=h0(Y[X],J);if(Q.push(G),G.type==="error")break}return Q};function fJ(){return new TransformStream({transform(Z,J){TJ(Z,(Y)=>{let Q=Y.length,X;if(Q<126)X=new Uint8Array(1),new DataView(X.buffer).setUint8(0,Q);else if(Q<65536){X=new Uint8Array(3);let G=new DataView(X.buffer);G.setUint8(0,126),G.setUint16(1,Q)}else{X=new Uint8Array(9);let G=new DataView(X.buffer);G.setUint8(0,127),G.setBigUint64(1,BigInt(Q))}if(Z.data&&typeof Z.data!=="string")X[0]|=128;J.enqueue(X),J.enqueue(Y)})}})}var l8;function f5(Z){return Z.reduce((J,Y)=>J+Y.length,0)}function j5(Z,J){if(Z[0].length===J)return Z.shift();let Y=new Uint8Array(J),Q=0;for(let X=0;X<J;X++)if(Y[X]=Z[0][Q++],Q===Z[0].length)Z.shift(),Q=0;if(Z.length&&Q<Z[0].length)Z[0]=Z[0].slice(Q);return Y}function jJ(Z,J){if(!l8)l8=new TextDecoder;let Y=[],Q=0,X=-1,G=!1;return new TransformStream({transform(W,H){Y.push(W);while(!0){if(Q===0){if(f5(Y)<1)break;let z=j5(Y,1);if(G=(z[0]&128)===128,X=z[0]&127,X<126)Q=3;else if(X===126)Q=1;else Q=2}else if(Q===1){if(f5(Y)<2)break;let z=j5(Y,2);X=new DataView(z.buffer,z.byteOffset,z.length).getUint16(0),Q=3}else if(Q===2){if(f5(Y)<8)break;let z=j5(Y,8),U=new DataView(z.buffer,z.byteOffset,z.length),B=U.getUint32(0);if(B>Math.pow(2,21)-1){H.enqueue(_0);break}X=B*Math.pow(2,32)+U.getUint32(4),Q=3}else{if(f5(Y)<X)break;let z=j5(Y,X);H.enqueue(h0(G?z:l8.decode(z),J)),Q=0}if(X===0||X>Z){H.enqueue(_0);break}}}})}var i8=4;function j(Z){if(Z)return KB(Z)}function KB(Z){for(var J in j.prototype)Z[J]=j.prototype[J];return Z}j.prototype.on=j.prototype.addEventListener=function(Z,J){return this._callbacks=this._callbacks||{},(this._callbacks["$"+Z]=this._callbacks["$"+Z]||[]).push(J),this};j.prototype.once=function(Z,J){function Y(){this.off(Z,Y),J.apply(this,arguments)}return Y.fn=J,this.on(Z,Y),this};j.prototype.off=j.prototype.removeListener=j.prototype.removeAllListeners=j.prototype.removeEventListener=function(Z,J){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var Y=this._callbacks["$"+Z];if(!Y)return this;if(arguments.length==1)return delete this._callbacks["$"+Z],this;var Q;for(var X=0;X<Y.length;X++)if(Q=Y[X],Q===J||Q.fn===J){Y.splice(X,1);break}if(Y.length===0)delete this._callbacks["$"+Z];return this};j.prototype.emit=function(Z){this._callbacks=this._callbacks||{};var J=Array(arguments.length-1),Y=this._callbacks["$"+Z];for(var Q=1;Q<arguments.length;Q++)J[Q-1]=arguments[Q];if(Y){Y=Y.slice(0);for(var Q=0,X=Y.length;Q<X;++Q)Y[Q].apply(this,J)}return this};j.prototype.emitReserved=j.prototype.emit;j.prototype.listeners=function(Z){return this._callbacks=this._callbacks||{},this._callbacks["$"+Z]||[]};j.prototype.hasListeners=function(Z){return!!this.listeners(Z).length};var P1=(()=>{if(typeof Promise==="function"&&typeof Promise.resolve==="function")return(J)=>Promise.resolve().then(J);else return(J,Y)=>Y(J,0)})(),n=(()=>{if(typeof self<"u")return self;else if(typeof window<"u")return window;else return Function("return this")()})(),_J="arraybuffer";function vJ(){}function _5(Z,...J){return J.reduce((Y,Q)=>{if(Z.hasOwnProperty(Q))Y[Q]=Z[Q];return Y},{})}var LB=n.setTimeout,MB=n.clearTimeout;function T1(Z,J){if(J.useNativeTimers)Z.setTimeoutFn=LB.bind(n),Z.clearTimeoutFn=MB.bind(n);else Z.setTimeoutFn=n.setTimeout.bind(n),Z.clearTimeoutFn=n.clearTimeout.bind(n)}var FB=1.33;function kJ(Z){if(typeof Z==="string")return $B(Z);return Math.ceil((Z.byteLength||Z.size)*FB)}function $B(Z){let J=0,Y=0;for(let Q=0,X=Z.length;Q<X;Q++)if(J=Z.charCodeAt(Q),J<128)Y+=1;else if(J<2048)Y+=2;else if(J<55296||J>=57344)Y+=3;else Q++,Y+=4;return Y}function v5(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function hJ(Z){let J="";for(let Y in Z)if(Z.hasOwnProperty(Y)){if(J.length)J+="&";J+=encodeURIComponent(Y)+"="+encodeURIComponent(Z[Y])}return J}function bJ(Z){let J={},Y=Z.split("&");for(let Q=0,X=Y.length;Q<X;Q++){let G=Y[Q].split("=");J[decodeURIComponent(G[0])]=decodeURIComponent(G[1])}return J}class n8 extends Error{constructor(Z,J,Y){super(Z);this.description=J,this.context=Y,this.type="TransportError"}}class m1 extends j{constructor(Z){super();this.writable=!1,T1(this,Z),this.opts=Z,this.query=Z.query,this.socket=Z.socket,this.supportsBinary=!Z.forceBase64}onError(Z,J,Y){return super.emitReserved("error",new n8(Z,J,Y)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){if(this.readyState==="opening"||this.readyState==="open")this.doClose(),this.onClose();return this}send(Z){if(this.readyState==="open")this.write(Z)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(Z){let J=h0(Z,this.socket.binaryType);this.onPacket(J)}onPacket(Z){super.emitReserved("packet",Z)}onClose(Z){this.readyState="closed",super.emitReserved("close",Z)}pause(Z){}createUri(Z,J={}){return Z+"://"+this._hostname()+this._port()+this.opts.path+this._query(J)}_hostname(){let Z=this.opts.hostname;return Z.indexOf(":")===-1?Z:"["+Z+"]"}_port(){if(this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80))return":"+this.opts.port;else return""}_query(Z){let J=hJ(Z);return J.length?"?"+J:""}}class k5 extends m1{constructor(){super(...arguments);this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(Z){this.readyState="pausing";let J=()=>{this.readyState="paused",Z()};if(this._polling||!this.writable){let Y=0;if(this._polling)Y++,this.once("pollComplete",function(){--Y||J()});if(!this.writable)Y++,this.once("drain",function(){--Y||J()})}else J()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(Z){let J=(Y)=>{if(this.readyState==="opening"&&Y.type==="open")this.onOpen();if(Y.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(Y)};if(CJ(Z,this.socket.binaryType).forEach(J),this.readyState!=="closed"){if(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open")this._poll()}}doClose(){let Z=()=>{this.write([{type:"close"}])};if(this.readyState==="open")Z();else this.once("open",Z)}write(Z){this.writable=!1,xJ(Z,(J)=>{this.doWrite(J,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let Z=this.opts.secure?"https":"http",J=this.query||{};if(this.opts.timestampRequests!==!1)J[this.opts.timestampParam]=v5();if(!this.supportsBinary&&!J.sid)J.b64=1;return this.createUri(Z,J)}}var gJ=!1;try{gJ=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch(Z){}var yJ=gJ;function OB(){}class uJ extends k5{constructor(Z){super(Z);if(typeof location<"u"){let J=location.protocol==="https:",Y=location.port;if(!Y)Y=J?"443":"80";this.xd=typeof location<"u"&&Z.hostname!==location.hostname||Y!==Z.port}}doWrite(Z,J){let Y=this.request({method:"POST",data:Z});Y.on("success",J),Y.on("error",(Q,X)=>{this.onError("xhr post error",Q,X)})}doPoll(){let Z=this.request();Z.on("data",this.onData.bind(this)),Z.on("error",(J,Y)=>{this.onError("xhr poll error",J,Y)}),this.pollXhr=Z}}class O1 extends j{constructor(Z,J,Y){super();this.createRequest=Z,T1(this,Y),this._opts=Y,this._method=Y.method||"GET",this._uri=J,this._data=Y.data!==void 0?Y.data:null,this._create()}_create(){var Z;let J=_5(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");J.xdomain=!!this._opts.xd;let Y=this._xhr=this.createRequest(J);try{Y.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){Y.setDisableHeaderCheck&&Y.setDisableHeaderCheck(!0);for(let Q in this._opts.extraHeaders)if(this._opts.extraHeaders.hasOwnProperty(Q))Y.setRequestHeader(Q,this._opts.extraHeaders[Q])}}catch(Q){}if(this._method==="POST")try{Y.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(Q){}try{Y.setRequestHeader("Accept","*/*")}catch(Q){}if((Z=this._opts.cookieJar)===null||Z===void 0||Z.addCookies(Y),"withCredentials"in Y)Y.withCredentials=this._opts.withCredentials;if(this._opts.requestTimeout)Y.timeout=this._opts.requestTimeout;Y.onreadystatechange=()=>{var Q;if(Y.readyState===3)(Q=this._opts.cookieJar)===null||Q===void 0||Q.parseCookies(Y.getResponseHeader("set-cookie"));if(Y.readyState!==4)return;if(Y.status===200||Y.status===1223)this._onLoad();else this.setTimeoutFn(()=>{this._onError(typeof Y.status==="number"?Y.status:0)},0)},Y.send(this._data)}catch(Q){this.setTimeoutFn(()=>{this._onError(Q)},0);return}if(typeof document<"u")this._index=O1.requestsCount++,O1.requests[this._index]=this}_onError(Z){this.emitReserved("error",Z,this._xhr),this._cleanup(!0)}_cleanup(Z){if(typeof this._xhr>"u"||this._xhr===null)return;if(this._xhr.onreadystatechange=OB,Z)try{this._xhr.abort()}catch(J){}if(typeof document<"u")delete O1.requests[this._index];this._xhr=null}_onLoad(){let Z=this._xhr.responseText;if(Z!==null)this.emitReserved("data",Z),this.emitReserved("success"),this._cleanup()}abort(){this._cleanup()}}O1.requestsCount=0;O1.requests={};if(typeof document<"u"){if(typeof attachEvent==="function")attachEvent("onunload",mJ);else if(typeof addEventListener==="function"){let Z="onpagehide"in n?"pagehide":"unload";addEventListener(Z,mJ,!1)}}function mJ(){for(let Z in O1.requests)if(O1.requests.hasOwnProperty(Z))O1.requests[Z].abort()}var VB=function(){let Z=dJ({xdomain:!1});return Z&&Z.responseType!==null}();class t1 extends uJ{constructor(Z){super(Z);let J=Z&&Z.forceBase64;this.supportsBinary=VB&&!J}request(Z={}){return Object.assign(Z,{xd:this.xd},this.opts),new O1(dJ,this.uri(),Z)}}function dJ(Z){let J=Z.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!J||yJ))return new XMLHttpRequest}catch(Y){}if(!J)try{return new n[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(Y){}}var cJ=typeof navigator<"u"&&typeof navigator.product==="string"&&navigator.product.toLowerCase()==="reactnative";class pJ extends m1{get name(){return"websocket"}doOpen(){let Z=this.uri(),J=this.opts.protocols,Y=cJ?{}:_5(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");if(this.opts.extraHeaders)Y.headers=this.opts.extraHeaders;try{this.ws=this.createSocket(Z,J,Y)}catch(Q){return this.emitReserved("error",Q)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{if(this.opts.autoUnref)this.ws._socket.unref();this.onOpen()},this.ws.onclose=(Z)=>this.onClose({description:"websocket connection closed",context:Z}),this.ws.onmessage=(Z)=>this.onData(Z.data),this.ws.onerror=(Z)=>this.onError("websocket error",Z)}write(Z){this.writable=!1;for(let J=0;J<Z.length;J++){let Y=Z[J],Q=J===Z.length-1;v0(Y,this.supportsBinary,(X)=>{try{this.doWrite(Y,X)}catch(G){}if(Q)P1(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){if(typeof this.ws<"u")this.ws.onerror=()=>{},this.ws.close(),this.ws=null}uri(){let Z=this.opts.secure?"wss":"ws",J=this.query||{};if(this.opts.timestampRequests)J[this.opts.timestampParam]=v5();if(!this.supportsBinary)J.b64=1;return this.createUri(Z,J)}}var o8=n.WebSocket||n.MozWebSocket;class e1 extends pJ{createSocket(Z,J,Y){return!cJ?J?new o8(Z,J):new o8(Z):new o8(Z,J,Y)}doWrite(Z,J){this.ws.send(J)}}class b0 extends m1{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(Z){return this.emitReserved("error",Z)}this._transport.closed.then(()=>{this.onClose()}).catch((Z)=>{this.onError("webtransport error",Z)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then((Z)=>{let J=jJ(Number.MAX_SAFE_INTEGER,this.socket.binaryType),Y=Z.readable.pipeThrough(J).getReader(),Q=fJ();Q.readable.pipeTo(Z.writable),this._writer=Q.writable.getWriter();let X=()=>{Y.read().then(({done:W,value:H})=>{if(W)return;this.onPacket(H),X()}).catch((W)=>{})};X();let G={type:"open"};if(this.query.sid)G.data=`{"sid":"${this.query.sid}"}`;this._writer.write(G).then(()=>this.onOpen())})})}write(Z){this.writable=!1;for(let J=0;J<Z.length;J++){let Y=Z[J],Q=J===Z.length-1;this._writer.write(Y).then(()=>{if(Q)P1(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var Z;(Z=this._transport)===null||Z===void 0||Z.close()}}var a8={websocket:e1,webtransport:b0,polling:t1};var IB=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,qB=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function O0(Z){if(Z.length>8000)throw"URI too long";let J=Z,Y=Z.indexOf("["),Q=Z.indexOf("]");if(Y!=-1&&Q!=-1)Z=Z.substring(0,Y)+Z.substring(Y,Q).replace(/:/g,";")+Z.substring(Q,Z.length);let X=IB.exec(Z||""),G={},W=14;while(W--)G[qB[W]]=X[W]||"";if(Y!=-1&&Q!=-1)G.source=J,G.host=G.host.substring(1,G.host.length-1).replace(/;/g,":"),G.authority=G.authority.replace("[","").replace("]","").replace(/;/g,":"),G.ipv6uri=!0;return G.pathNames=DB(G,G.path),G.queryKey=NB(G,G.query),G}function DB(Z,J){let Y=/\/{2,9}/g,Q=J.replace(Y,"/").split("/");if(J.slice(0,1)=="/"||J.length===0)Q.splice(0,1);if(J.slice(-1)=="/")Q.splice(Q.length-1,1);return Q}function NB(Z,J){let Y={};return J.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(Q,X,G){if(X)Y[X]=G}),Y}var s8=typeof addEventListener==="function"&&typeof removeEventListener==="function",h5=[];if(s8)addEventListener("offline",()=>{h5.forEach((Z)=>Z())},!1);class w1 extends j{constructor(Z,J){super();if(this.binaryType=_J,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,Z&&typeof Z==="object")J=Z,Z=null;if(Z){let Y=O0(Z);if(J.hostname=Y.host,J.secure=Y.protocol==="https"||Y.protocol==="wss",J.port=Y.port,Y.query)J.query=Y.query}else if(J.host)J.hostname=O0(J.host).host;if(T1(this,J),this.secure=J.secure!=null?J.secure:typeof location<"u"&&location.protocol==="https:",J.hostname&&!J.port)J.port=this.secure?"443":"80";if(this.hostname=J.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=J.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},J.transports.forEach((Y)=>{let Q=Y.prototype.name;this.transports.push(Q),this._transportsByName[Q]=Y}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},J),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query==="string")this.opts.query=bJ(this.opts.query);if(s8){if(this.opts.closeOnBeforeunload)this._beforeunloadEventListener=()=>{if(this.transport)this.transport.removeAllListeners(),this.transport.close()},addEventListener("beforeunload",this._beforeunloadEventListener,!1);if(this.hostname!=="localhost")this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},h5.push(this._offlineEventListener)}if(this.opts.withCredentials)this._cookieJar=vJ();this._open()}createTransport(Z){let J=Object.assign({},this.opts.query);if(J.EIO=i8,J.transport=Z,this.id)J.sid=this.id;let Y=Object.assign({},this.opts,{query:J,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[Z]);return new this._transportsByName[Z](Y)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let Z=this.opts.rememberUpgrade&&w1.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let J=this.createTransport(Z);J.open(),this.setTransport(J)}setTransport(Z){if(this.transport)this.transport.removeAllListeners();this.transport=Z,Z.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",(J)=>this._onClose("transport close",J))}onOpen(){this.readyState="open",w1.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(Z){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",Z),this.emitReserved("heartbeat"),Z.type){case"open":this.onHandshake(JSON.parse(Z.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let J=Error("server error");J.code=Z.data,this._onError(J);break;case"message":this.emitReserved("data",Z.data),this.emitReserved("message",Z.data);break}}onHandshake(Z){if(this.emitReserved("handshake",Z),this.id=Z.sid,this.transport.query.sid=Z.sid,this._pingInterval=Z.pingInterval,this._pingTimeout=Z.pingTimeout,this._maxPayload=Z.maxPayload,this.onOpen(),this.readyState==="closed")return;this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let Z=this._pingInterval+this._pingTimeout;if(this._pingTimeoutTime=Date.now()+Z,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},Z),this.opts.autoUnref)this._pingTimeoutTimer.unref()}_onDrain(){if(this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0)this.emitReserved("drain");else this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let Z=this._getWritablePackets();this.transport.send(Z),this._prevBufferLen=Z.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let J=1;for(let Y=0;Y<this.writeBuffer.length;Y++){let Q=this.writeBuffer[Y].data;if(Q)J+=kJ(Q);if(Y>0&&J>this._maxPayload)return this.writeBuffer.slice(0,Y);J+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let Z=Date.now()>this._pingTimeoutTime;if(Z)this._pingTimeoutTime=0,P1(()=>{this._onClose("ping timeout")},this.setTimeoutFn);return Z}write(Z,J,Y){return this._sendPacket("message",Z,J,Y),this}send(Z,J,Y){return this._sendPacket("message",Z,J,Y),this}_sendPacket(Z,J,Y,Q){if(typeof J==="function")Q=J,J=void 0;if(typeof Y==="function")Q=Y,Y=null;if(this.readyState==="closing"||this.readyState==="closed")return;Y=Y||{},Y.compress=Y.compress!==!1;let X={type:Z,data:J,options:Y};if(this.emitReserved("packetCreate",X),this.writeBuffer.push(X),Q)this.once("flush",Q);this.flush()}close(){let Z=()=>{this._onClose("forced close"),this.transport.close()},J=()=>{this.off("upgrade",J),this.off("upgradeError",J),Z()},Y=()=>{this.once("upgrade",J),this.once("upgradeError",J)};if(this.readyState==="opening"||this.readyState==="open")if(this.readyState="closing",this.writeBuffer.length)this.once("drain",()=>{if(this.upgrading)Y();else Z()});else if(this.upgrading)Y();else Z();return this}_onError(Z){if(w1.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",Z),this._onClose("transport error",Z)}_onClose(Z,J){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),s8){if(this._beforeunloadEventListener)removeEventListener("beforeunload",this._beforeunloadEventListener,!1);if(this._offlineEventListener){let Y=h5.indexOf(this._offlineEventListener);if(Y!==-1)h5.splice(Y,1)}}this.readyState="closed",this.id=null,this.emitReserved("close",Z,J),this.writeBuffer=[],this._prevBufferLen=0}}}w1.protocol=i8;class r8 extends w1{constructor(){super(...arguments);this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let Z=0;Z<this._upgrades.length;Z++)this._probe(this._upgrades[Z])}_probe(Z){let J=this.createTransport(Z),Y=!1;w1.priorWebsocketSuccess=!1;let Q=()=>{if(Y)return;J.send([{type:"ping",data:"probe"}]),J.once("packet",(B)=>{if(Y)return;if(B.type==="pong"&&B.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",J),!J)return;w1.priorWebsocketSuccess=J.name==="websocket",this.transport.pause(()=>{if(Y)return;if(this.readyState==="closed")return;U(),this.setTransport(J),J.send([{type:"upgrade"}]),this.emitReserved("upgrade",J),J=null,this.upgrading=!1,this.flush()})}else{let L=Error("probe error");L.transport=J.name,this.emitReserved("upgradeError",L)}})};function X(){if(Y)return;Y=!0,U(),J.close(),J=null}let G=(B)=>{let L=Error("probe error: "+B);L.transport=J.name,X(),this.emitReserved("upgradeError",L)};function W(){G("transport closed")}function H(){G("socket closed")}function z(B){if(J&&B.name!==J.name)X()}let U=()=>{J.removeListener("open",Q),J.removeListener("error",G),J.removeListener("close",W),this.off("close",H),this.off("upgrading",z)};if(J.once("open",Q),J.once("error",G),J.once("close",W),this.once("close",H),this.once("upgrading",z),this._upgrades.indexOf("webtransport")!==-1&&Z!=="webtransport")this.setTimeoutFn(()=>{if(!Y)J.open()},200);else J.open()}onHandshake(Z){this._upgrades=this._filterUpgrades(Z.upgrades),super.onHandshake(Z)}_filterUpgrades(Z){let J=[];for(let Y=0;Y<Z.length;Y++)if(~this.transports.indexOf(Z[Y]))J.push(Z[Y]);return J}}class g0 extends r8{constructor(Z,J={}){let Y=typeof Z==="object"?Z:J;if(!Y.transports||Y.transports&&typeof Y.transports[0]==="string")Y.transports=(Y.transports||["polling","websocket","webtransport"]).map((Q)=>a8[Q]).filter((Q)=>!!Q);super(Z,Y)}}var RI=g0.protocol;function lJ(Z,J="",Y){let Q=Z;if(Y=Y||typeof location<"u"&&location,Z==null)Z=Y.protocol+"//"+Y.host;if(typeof Z==="string"){if(Z.charAt(0)==="/")if(Z.charAt(1)==="/")Z=Y.protocol+Z;else Z=Y.host+Z;if(!/^(https?|wss?):\/\//.test(Z))if(typeof Y<"u")Z=Y.protocol+"//"+Z;else Z="https://"+Z;Q=O0(Z)}if(!Q.port){if(/^(http|ws)$/.test(Q.protocol))Q.port="80";else if(/^(http|ws)s$/.test(Q.protocol))Q.port="443"}Q.path=Q.path||"/";let G=Q.host.indexOf(":")!==-1?"["+Q.host+"]":Q.host;return Q.id=Q.protocol+"://"+G+":"+Q.port+J,Q.href=Q.protocol+"://"+G+(Y&&Y.port===Q.port?"":":"+Q.port),Q}var J9={};H7(J9,{protocol:()=>sJ,isPacketValid:()=>fB,PacketType:()=>w,Encoder:()=>rJ,Decoder:()=>Z9});var RB=typeof ArrayBuffer==="function",PB=(Z)=>{return typeof ArrayBuffer.isView==="function"?ArrayBuffer.isView(Z):Z.buffer instanceof ArrayBuffer},iJ=Object.prototype.toString,TB=typeof Blob==="function"||typeof Blob<"u"&&iJ.call(Blob)==="[object BlobConstructor]",wB=typeof File==="function"||typeof File<"u"&&iJ.call(File)==="[object FileConstructor]";function m0(Z){return RB&&(Z instanceof ArrayBuffer||PB(Z))||TB&&Z instanceof Blob||wB&&Z instanceof File}function y0(Z,J){if(!Z||typeof Z!=="object")return!1;if(Array.isArray(Z)){for(let Y=0,Q=Z.length;Y<Q;Y++)if(y0(Z[Y]))return!0;return!1}if(m0(Z))return!0;if(Z.toJSON&&typeof Z.toJSON==="function"&&arguments.length===1)return y0(Z.toJSON(),!0);for(let Y in Z)if(Object.prototype.hasOwnProperty.call(Z,Y)&&y0(Z[Y]))return!0;return!1}function nJ(Z){let J=[],Y=Z.data,Q=Z;return Q.data=t8(Y,J),Q.attachments=J.length,{packet:Q,buffers:J}}function t8(Z,J){if(!Z)return Z;if(m0(Z)){let Y={_placeholder:!0,num:J.length};return J.push(Z),Y}else if(Array.isArray(Z)){let Y=Array(Z.length);for(let Q=0;Q<Z.length;Q++)Y[Q]=t8(Z[Q],J);return Y}else if(typeof Z==="object"&&!(Z instanceof Date)){let Y={};for(let Q in Z)if(Object.prototype.hasOwnProperty.call(Z,Q))Y[Q]=t8(Z[Q],J);return Y}return Z}function oJ(Z,J){return Z.data=e8(Z.data,J),delete Z.attachments,Z}function e8(Z,J){if(!Z)return Z;if(Z&&Z._placeholder===!0)if(typeof Z.num==="number"&&Z.num>=0&&Z.num<J.length)return J[Z.num];else throw Error("illegal attachments");else if(Array.isArray(Z))for(let Y=0;Y<Z.length;Y++)Z[Y]=e8(Z[Y],J);else if(typeof Z==="object"){for(let Y in Z)if(Object.prototype.hasOwnProperty.call(Z,Y))Z[Y]=e8(Z[Y],J)}return Z}var aJ=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],sJ=5,w;(function(Z){Z[Z.CONNECT=0]="CONNECT",Z[Z.DISCONNECT=1]="DISCONNECT",Z[Z.EVENT=2]="EVENT",Z[Z.ACK=3]="ACK",Z[Z.CONNECT_ERROR=4]="CONNECT_ERROR",Z[Z.BINARY_EVENT=5]="BINARY_EVENT",Z[Z.BINARY_ACK=6]="BINARY_ACK"})(w||(w={}));class rJ{constructor(Z){this.replacer=Z}encode(Z){if(Z.type===w.EVENT||Z.type===w.ACK){if(y0(Z))return this.encodeAsBinary({type:Z.type===w.EVENT?w.BINARY_EVENT:w.BINARY_ACK,nsp:Z.nsp,data:Z.data,id:Z.id})}return[this.encodeAsString(Z)]}encodeAsString(Z){let J=""+Z.type;if(Z.type===w.BINARY_EVENT||Z.type===w.BINARY_ACK)J+=Z.attachments+"-";if(Z.nsp&&Z.nsp!=="/")J+=Z.nsp+",";if(Z.id!=null)J+=Z.id;if(Z.data!=null)J+=JSON.stringify(Z.data,this.replacer);return J}encodeAsBinary(Z){let J=nJ(Z),Y=this.encodeAsString(J.packet),Q=J.buffers;return Q.unshift(Y),Q}}class Z9 extends j{constructor(Z){super();this.reviver=Z}add(Z){let J;if(typeof Z==="string"){if(this.reconstructor)throw Error("got plaintext data when reconstructing a packet");J=this.decodeString(Z);let Y=J.type===w.BINARY_EVENT;if(Y||J.type===w.BINARY_ACK){if(J.type=Y?w.EVENT:w.ACK,this.reconstructor=new tJ(J),J.attachments===0)super.emitReserved("decoded",J)}else super.emitReserved("decoded",J)}else if(m0(Z)||Z.base64){if(!this.reconstructor)throw Error("got binary data when not reconstructing a packet");else if(J=this.reconstructor.takeBinaryData(Z),J)this.reconstructor=null,super.emitReserved("decoded",J)}else throw Error("Unknown type: "+Z)}decodeString(Z){let J=0,Y={type:Number(Z.charAt(0))};if(w[Y.type]===void 0)throw Error("unknown packet type "+Y.type);if(Y.type===w.BINARY_EVENT||Y.type===w.BINARY_ACK){let X=J+1;while(Z.charAt(++J)!=="-"&&J!=Z.length);let G=Z.substring(X,J);if(G!=Number(G)||Z.charAt(J)!=="-")throw Error("Illegal attachments");Y.attachments=Number(G)}if(Z.charAt(J+1)==="/"){let X=J+1;while(++J){if(Z.charAt(J)===",")break;if(J===Z.length)break}Y.nsp=Z.substring(X,J)}else Y.nsp="/";let Q=Z.charAt(J+1);if(Q!==""&&Number(Q)==Q){let X=J+1;while(++J){let G=Z.charAt(J);if(G==null||Number(G)!=G){--J;break}if(J===Z.length)break}Y.id=Number(Z.substring(X,J+1))}if(Z.charAt(++J)){let X=this.tryParse(Z.substr(J));if(Z9.isPayloadValid(Y.type,X))Y.data=X;else throw Error("invalid payload")}return Y}tryParse(Z){try{return JSON.parse(Z,this.reviver)}catch(J){return!1}}static isPayloadValid(Z,J){switch(Z){case w.CONNECT:return b5(J);case w.DISCONNECT:return J===void 0;case w.CONNECT_ERROR:return typeof J==="string"||b5(J);case w.EVENT:case w.BINARY_EVENT:return Array.isArray(J)&&(typeof J[0]==="number"||typeof J[0]==="string"&&aJ.indexOf(J[0])===-1);case w.ACK:case w.BINARY_ACK:return Array.isArray(J)}}destroy(){if(this.reconstructor)this.reconstructor.finishedReconstruction(),this.reconstructor=null}}class tJ{constructor(Z){this.packet=Z,this.buffers=[],this.reconPack=Z}takeBinaryData(Z){if(this.buffers.push(Z),this.buffers.length===this.reconPack.attachments){let J=oJ(this.reconPack,this.buffers);return this.finishedReconstruction(),J}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function EB(Z){return typeof Z==="string"}var SB=Number.isInteger||function(Z){return typeof Z==="number"&&isFinite(Z)&&Math.floor(Z)===Z};function xB(Z){return Z===void 0||SB(Z)}function b5(Z){return Object.prototype.toString.call(Z)==="[object Object]"}function CB(Z,J){switch(Z){case w.CONNECT:return J===void 0||b5(J);case w.DISCONNECT:return J===void 0;case w.EVENT:return Array.isArray(J)&&(typeof J[0]==="number"||typeof J[0]==="string"&&aJ.indexOf(J[0])===-1);case w.ACK:return Array.isArray(J);case w.CONNECT_ERROR:return typeof J==="string"||b5(J);default:return!1}}function fB(Z){return EB(Z.nsp)&&xB(Z.id)&&CB(Z.type,Z.data)}function Y1(Z,J,Y){return Z.on(J,Y),function(){Z.off(J,Y)}}var jB=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class u0 extends j{constructor(Z,J,Y){super();if(this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=Z,this.nsp=J,Y&&Y.auth)this.auth=Y.auth;if(this._opts=Object.assign({},Y),this.io._autoConnect)this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let Z=this.io;this.subs=[Y1(Z,"open",this.onopen.bind(this)),Y1(Z,"packet",this.onpacket.bind(this)),Y1(Z,"error",this.onerror.bind(this)),Y1(Z,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){if(this.connected)return this;if(this.subEvents(),!this.io._reconnecting)this.io.open();if(this.io._readyState==="open")this.onopen();return this}open(){return this.connect()}send(...Z){return Z.unshift("message"),this.emit.apply(this,Z),this}emit(Z,...J){var Y,Q,X;if(jB.hasOwnProperty(Z))throw Error('"'+Z.toString()+'" is a reserved event name');if(J.unshift(Z),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(J),this;let G={type:w.EVENT,data:J};if(G.options={},G.options.compress=this.flags.compress!==!1,typeof J[J.length-1]==="function"){let U=this.ids++,B=J.pop();this._registerAckCallback(U,B),G.id=U}let W=(Q=(Y=this.io.engine)===null||Y===void 0?void 0:Y.transport)===null||Q===void 0?void 0:Q.writable,H=this.connected&&!((X=this.io.engine)===null||X===void 0?void 0:X._hasPingExpired());if(this.flags.volatile&&!W);else if(H)this.notifyOutgoingListeners(G),this.packet(G);else this.sendBuffer.push(G);return this.flags={},this}_registerAckCallback(Z,J){var Y;let Q=(Y=this.flags.timeout)!==null&&Y!==void 0?Y:this._opts.ackTimeout;if(Q===void 0){this.acks[Z]=J;return}let X=this.io.setTimeoutFn(()=>{delete this.acks[Z];for(let W=0;W<this.sendBuffer.length;W++)if(this.sendBuffer[W].id===Z)this.sendBuffer.splice(W,1);J.call(this,Error("operation has timed out"))},Q),G=(...W)=>{this.io.clearTimeoutFn(X),J.apply(this,W)};G.withError=!0,this.acks[Z]=G}emitWithAck(Z,...J){return new Promise((Y,Q)=>{let X=(G,W)=>{return G?Q(G):Y(W)};X.withError=!0,J.push(X),this.emit(Z,...J)})}_addToQueue(Z){let J;if(typeof Z[Z.length-1]==="function")J=Z.pop();let Y={id:this._queueSeq++,tryCount:0,pending:!1,args:Z,flags:Object.assign({fromQueue:!0},this.flags)};Z.push((Q,...X)=>{if(Y!==this._queue[0]);if(Q!==null){if(Y.tryCount>this._opts.retries){if(this._queue.shift(),J)J(Q)}}else if(this._queue.shift(),J)J(null,...X);return Y.pending=!1,this._drainQueue()}),this._queue.push(Y),this._drainQueue()}_drainQueue(Z=!1){if(!this.connected||this._queue.length===0)return;let J=this._queue[0];if(J.pending&&!Z)return;J.pending=!0,J.tryCount++,this.flags=J.flags,this.emit.apply(this,J.args)}packet(Z){Z.nsp=this.nsp,this.io._packet(Z)}onopen(){if(typeof this.auth=="function")this.auth((Z)=>{this._sendConnectPacket(Z)});else this._sendConnectPacket(this.auth)}_sendConnectPacket(Z){this.packet({type:w.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},Z):Z})}onerror(Z){if(!this.connected)this.emitReserved("connect_error",Z)}onclose(Z,J){this.connected=!1,delete this.id,this.emitReserved("disconnect",Z,J),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach((Z)=>{if(!this.sendBuffer.some((Y)=>String(Y.id)===Z)){let Y=this.acks[Z];if(delete this.acks[Z],Y.withError)Y.call(this,Error("socket has been disconnected"))}})}onpacket(Z){if(Z.nsp!==this.nsp)return;switch(Z.type){case w.CONNECT:if(Z.data&&Z.data.sid)this.onconnect(Z.data.sid,Z.data.pid);else this.emitReserved("connect_error",Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case w.EVENT:case w.BINARY_EVENT:this.onevent(Z);break;case w.ACK:case w.BINARY_ACK:this.onack(Z);break;case w.DISCONNECT:this.ondisconnect();break;case w.CONNECT_ERROR:this.destroy();let Y=Error(Z.data.message);Y.data=Z.data.data,this.emitReserved("connect_error",Y);break}}onevent(Z){let J=Z.data||[];if(Z.id!=null)J.push(this.ack(Z.id));if(this.connected)this.emitEvent(J);else this.receiveBuffer.push(Object.freeze(J))}emitEvent(Z){if(this._anyListeners&&this._anyListeners.length){let J=this._anyListeners.slice();for(let Y of J)Y.apply(this,Z)}if(super.emit.apply(this,Z),this._pid&&Z.length&&typeof Z[Z.length-1]==="string")this._lastOffset=Z[Z.length-1]}ack(Z){let J=this,Y=!1;return function(...Q){if(Y)return;Y=!0,J.packet({type:w.ACK,id:Z,data:Q})}}onack(Z){let J=this.acks[Z.id];if(typeof J!=="function")return;if(delete this.acks[Z.id],J.withError)Z.data.unshift(null);J.apply(this,Z.data)}onconnect(Z,J){this.id=Z,this.recovered=J&&this._pid===J,this._pid=J,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach((Z)=>this.emitEvent(Z)),this.receiveBuffer=[],this.sendBuffer.forEach((Z)=>{this.notifyOutgoingListeners(Z),this.packet(Z)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){if(this.subs)this.subs.forEach((Z)=>Z()),this.subs=void 0;this.io._destroy(this)}disconnect(){if(this.connected)this.packet({type:w.DISCONNECT});if(this.destroy(),this.connected)this.onclose("io client disconnect");return this}close(){return this.disconnect()}compress(Z){return this.flags.compress=Z,this}get volatile(){return this.flags.volatile=!0,this}timeout(Z){return this.flags.timeout=Z,this}onAny(Z){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(Z),this}prependAny(Z){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(Z),this}offAny(Z){if(!this._anyListeners)return this;if(Z){let J=this._anyListeners;for(let Y=0;Y<J.length;Y++)if(Z===J[Y])return J.splice(Y,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(Z){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(Z),this}prependAnyOutgoing(Z){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(Z),this}offAnyOutgoing(Z){if(!this._anyOutgoingListeners)return this;if(Z){let J=this._anyOutgoingListeners;for(let Y=0;Y<J.length;Y++)if(Z===J[Y])return J.splice(Y,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(Z){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let J=this._anyOutgoingListeners.slice();for(let Y of J)Y.apply(this,Z.data)}}}function Z0(Z){Z=Z||{},this.ms=Z.min||100,this.max=Z.max||1e4,this.factor=Z.factor||2,this.jitter=Z.jitter>0&&Z.jitter<=1?Z.jitter:0,this.attempts=0}Z0.prototype.duration=function(){var Z=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var J=Math.random(),Y=Math.floor(J*this.jitter*Z);Z=(Math.floor(J*10)&1)==0?Z-Y:Z+Y}return Math.min(Z,this.max)|0};Z0.prototype.reset=function(){this.attempts=0};Z0.prototype.setMin=function(Z){this.ms=Z};Z0.prototype.setMax=function(Z){this.max=Z};Z0.prototype.setJitter=function(Z){this.jitter=Z};class d0 extends j{constructor(Z,J){var Y;super();if(this.nsps={},this.subs=[],Z&&typeof Z==="object")J=Z,Z=void 0;J=J||{},J.path=J.path||"/socket.io",this.opts=J,T1(this,J),this.reconnection(J.reconnection!==!1),this.reconnectionAttempts(J.reconnectionAttempts||1/0),this.reconnectionDelay(J.reconnectionDelay||1000),this.reconnectionDelayMax(J.reconnectionDelayMax||5000),this.randomizationFactor((Y=J.randomizationFactor)!==null&&Y!==void 0?Y:0.5),this.backoff=new Z0({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(J.timeout==null?20000:J.timeout),this._readyState="closed",this.uri=Z;let Q=J.parser||J9;if(this.encoder=new Q.Encoder,this.decoder=new Q.Decoder,this._autoConnect=J.autoConnect!==!1,this._autoConnect)this.open()}reconnection(Z){if(!arguments.length)return this._reconnection;if(this._reconnection=!!Z,!Z)this.skipReconnect=!0;return this}reconnectionAttempts(Z){if(Z===void 0)return this._reconnectionAttempts;return this._reconnectionAttempts=Z,this}reconnectionDelay(Z){var J;if(Z===void 0)return this._reconnectionDelay;return this._reconnectionDelay=Z,(J=this.backoff)===null||J===void 0||J.setMin(Z),this}randomizationFactor(Z){var J;if(Z===void 0)return this._randomizationFactor;return this._randomizationFactor=Z,(J=this.backoff)===null||J===void 0||J.setJitter(Z),this}reconnectionDelayMax(Z){var J;if(Z===void 0)return this._reconnectionDelayMax;return this._reconnectionDelayMax=Z,(J=this.backoff)===null||J===void 0||J.setMax(Z),this}timeout(Z){if(!arguments.length)return this._timeout;return this._timeout=Z,this}maybeReconnectOnOpen(){if(!this._reconnecting&&this._reconnection&&this.backoff.attempts===0)this.reconnect()}open(Z){if(~this._readyState.indexOf("open"))return this;this.engine=new g0(this.uri,this.opts);let J=this.engine,Y=this;this._readyState="opening",this.skipReconnect=!1;let Q=Y1(J,"open",function(){Y.onopen(),Z&&Z()}),X=(W)=>{if(this.cleanup(),this._readyState="closed",this.emitReserved("error",W),Z)Z(W);else this.maybeReconnectOnOpen()},G=Y1(J,"error",X);if(this._timeout!==!1){let W=this._timeout,H=this.setTimeoutFn(()=>{Q(),X(Error("timeout")),J.close()},W);if(this.opts.autoUnref)H.unref();this.subs.push(()=>{this.clearTimeoutFn(H)})}return this.subs.push(Q),this.subs.push(G),this}connect(Z){return this.open(Z)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let Z=this.engine;this.subs.push(Y1(Z,"ping",this.onping.bind(this)),Y1(Z,"data",this.ondata.bind(this)),Y1(Z,"error",this.onerror.bind(this)),Y1(Z,"close",this.onclose.bind(this)),Y1(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(Z){try{this.decoder.add(Z)}catch(J){this.onclose("parse error",J)}}ondecoded(Z){P1(()=>{this.emitReserved("packet",Z)},this.setTimeoutFn)}onerror(Z){this.emitReserved("error",Z)}socket(Z,J){let Y=this.nsps[Z];if(!Y)Y=new u0(this,Z,J),this.nsps[Z]=Y;else if(this._autoConnect&&!Y.active)Y.connect();return Y}_destroy(Z){let J=Object.keys(this.nsps);for(let Y of J)if(this.nsps[Y].active)return;this._close()}_packet(Z){let J=this.encoder.encode(Z);for(let Y=0;Y<J.length;Y++)this.engine.write(J[Y],Z.options)}cleanup(){this.subs.forEach((Z)=>Z()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(Z,J){var Y;if(this.cleanup(),(Y=this.engine)===null||Y===void 0||Y.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",Z,J),this._reconnection&&!this.skipReconnect)this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let Z=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let J=this.backoff.duration();this._reconnecting=!0;let Y=this.setTimeoutFn(()=>{if(Z.skipReconnect)return;if(this.emitReserved("reconnect_attempt",Z.backoff.attempts),Z.skipReconnect)return;Z.open((Q)=>{if(Q)Z._reconnecting=!1,Z.reconnect(),this.emitReserved("reconnect_error",Q);else Z.onreconnect()})},J);if(this.opts.autoUnref)Y.unref();this.subs.push(()=>{this.clearTimeoutFn(Y)})}}onreconnect(){let Z=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",Z)}}var c0={};function p0(Z,J){if(typeof Z==="object")J=Z,Z=void 0;J=J||{};let Y=lJ(Z,J.path||"/socket.io"),Q=Y.source,X=Y.id,G=Y.path,W=c0[X]&&G in c0[X].nsps,H=J.forceNew||J["force new connection"]||J.multiplex===!1||W,z;if(H)z=new d0(Q,J);else{if(!c0[X])c0[X]=new d0(Q,J);z=c0[X]}if(Y.query&&!J.query)J.query=Y.queryKey;return z.socket(Y.path,J)}Object.assign(p0,{Manager:d0,Socket:u0,io:p0,connect:p0});import{createContext as _B}from"react";var g5=(Z)=>p0(Z,{autoConnect:!1,transports:["websocket"]}),vB=_B(null),u1=vB;import{createContext as rB}from"react";function l(Z,J,Y,Q){function X(G){return G instanceof Y?G:new Y(function(W){W(G)})}return new(Y||(Y=Promise))(function(G,W){function H(B){try{U(Q.next(B))}catch(L){W(L)}}function z(B){try{U(Q.throw(B))}catch(L){W(L)}}function U(B){B.done?G(B.value):X(B.value).then(H,z)}U((Q=Q.apply(Z,J||[])).next())})}function kB(Z){return Z&&Z.__esModule&&Object.prototype.hasOwnProperty.call(Z,"default")?Z.default:Z}var G9={exports:{}},V0=typeof Reflect==="object"?Reflect:null,eJ=V0&&typeof V0.apply==="function"?V0.apply:function(J,Y,Q){return Function.prototype.apply.call(J,Y,Q)},y5;if(V0&&typeof V0.ownKeys==="function")y5=V0.ownKeys;else if(Object.getOwnPropertySymbols)y5=function(J){return Object.getOwnPropertyNames(J).concat(Object.getOwnPropertySymbols(J))};else y5=function(J){return Object.getOwnPropertyNames(J)};function hB(Z){if(console&&console.warn)console.warn(Z)}var JY=Number.isNaN||function(J){return J!==J};function f(){f.init.call(this)}G9.exports=f;G9.exports.once=mB;f.EventEmitter=f;f.prototype._events=void 0;f.prototype._eventsCount=0;f.prototype._maxListeners=void 0;var ZY=10;function p5(Z){if(typeof Z!=="function")throw TypeError('The "listener" argument must be of type Function. Received type '+typeof Z)}Object.defineProperty(f,"defaultMaxListeners",{enumerable:!0,get:function(){return ZY},set:function(Z){if(typeof Z!=="number"||Z<0||JY(Z))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+Z+".");ZY=Z}});f.init=function(){if(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)this._events=Object.create(null),this._eventsCount=0;this._maxListeners=this._maxListeners||void 0};f.prototype.setMaxListeners=function(J){if(typeof J!=="number"||J<0||JY(J))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+J+".");return this._maxListeners=J,this};function YY(Z){if(Z._maxListeners===void 0)return f.defaultMaxListeners;return Z._maxListeners}f.prototype.getMaxListeners=function(){return YY(this)};f.prototype.emit=function(J){var Y=[];for(var Q=1;Q<arguments.length;Q++)Y.push(arguments[Q]);var X=J==="error",G=this._events;if(G!==void 0)X=X&&G.error===void 0;else if(!X)return!1;if(X){var W;if(Y.length>0)W=Y[0];if(W instanceof Error)throw W;var H=Error("Unhandled error."+(W?" ("+W.message+")":""));throw H.context=W,H}var z=G[J];if(z===void 0)return!1;if(typeof z==="function")eJ(z,this,Y);else{var U=z.length,B=HY(z,U);for(var Q=0;Q<U;++Q)eJ(B[Q],this,Y)}return!0};function QY(Z,J,Y,Q){var X,G,W;if(p5(Y),G=Z._events,G===void 0)G=Z._events=Object.create(null),Z._eventsCount=0;else{if(G.newListener!==void 0)Z.emit("newListener",J,Y.listener?Y.listener:Y),G=Z._events;W=G[J]}if(W===void 0)W=G[J]=Y,++Z._eventsCount;else{if(typeof W==="function")W=G[J]=Q?[Y,W]:[W,Y];else if(Q)W.unshift(Y);else W.push(Y);if(X=YY(Z),X>0&&W.length>X&&!W.warned){W.warned=!0;var H=Error("Possible EventEmitter memory leak detected. "+W.length+" "+String(J)+" listeners added. Use emitter.setMaxListeners() to increase limit");H.name="MaxListenersExceededWarning",H.emitter=Z,H.type=J,H.count=W.length,hB(H)}}return Z}f.prototype.addListener=function(J,Y){return QY(this,J,Y,!1)};f.prototype.on=f.prototype.addListener;f.prototype.prependListener=function(J,Y){return QY(this,J,Y,!0)};function bB(){if(!this.fired){if(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0)return this.listener.call(this.target);return this.listener.apply(this.target,arguments)}}function XY(Z,J,Y){var Q={fired:!1,wrapFn:void 0,target:Z,type:J,listener:Y},X=bB.bind(Q);return X.listener=Y,Q.wrapFn=X,X}f.prototype.once=function(J,Y){return p5(Y),this.on(J,XY(this,J,Y)),this};f.prototype.prependOnceListener=function(J,Y){return p5(Y),this.prependListener(J,XY(this,J,Y)),this};f.prototype.removeListener=function(J,Y){var Q,X,G,W,H;if(p5(Y),X=this._events,X===void 0)return this;if(Q=X[J],Q===void 0)return this;if(Q===Y||Q.listener===Y){if(--this._eventsCount===0)this._events=Object.create(null);else if(delete X[J],X.removeListener)this.emit("removeListener",J,Q.listener||Y)}else if(typeof Q!=="function"){G=-1;for(W=Q.length-1;W>=0;W--)if(Q[W]===Y||Q[W].listener===Y){H=Q[W].listener,G=W;break}if(G<0)return this;if(G===0)Q.shift();else gB(Q,G);if(Q.length===1)X[J]=Q[0];if(X.removeListener!==void 0)this.emit("removeListener",J,H||Y)}return this};f.prototype.off=f.prototype.removeListener;f.prototype.removeAllListeners=function(J){var Y,Q,X;if(Q=this._events,Q===void 0)return this;if(Q.removeListener===void 0){if(arguments.length===0)this._events=Object.create(null),this._eventsCount=0;else if(Q[J]!==void 0)if(--this._eventsCount===0)this._events=Object.create(null);else delete Q[J];return this}if(arguments.length===0){var G=Object.keys(Q),W;for(X=0;X<G.length;++X){if(W=G[X],W==="removeListener")continue;this.removeAllListeners(W)}return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(Y=Q[J],typeof Y==="function")this.removeListener(J,Y);else if(Y!==void 0)for(X=Y.length-1;X>=0;X--)this.removeListener(J,Y[X]);return this};function GY(Z,J,Y){var Q=Z._events;if(Q===void 0)return[];var X=Q[J];if(X===void 0)return[];if(typeof X==="function")return Y?[X.listener||X]:[X];return Y?yB(X):HY(X,X.length)}f.prototype.listeners=function(J){return GY(this,J,!0)};f.prototype.rawListeners=function(J){return GY(this,J,!1)};f.listenerCount=function(Z,J){if(typeof Z.listenerCount==="function")return Z.listenerCount(J);else return WY.call(Z,J)};f.prototype.listenerCount=WY;function WY(Z){var J=this._events;if(J!==void 0){var Y=J[Z];if(typeof Y==="function")return 1;else if(Y!==void 0)return Y.length}return 0}f.prototype.eventNames=function(){return this._eventsCount>0?y5(this._events):[]};function HY(Z,J){var Y=Array(J);for(var Q=0;Q<J;++Q)Y[Q]=Z[Q];return Y}function gB(Z,J){for(;J+1<Z.length;J++)Z[J]=Z[J+1];Z.pop()}function yB(Z){var J=Array(Z.length);for(var Y=0;Y<J.length;++Y)J[Y]=Z[Y].listener||Z[Y];return J}function mB(Z,J){return new Promise(function(Y,Q){function X(W){Z.removeListener(J,G),Q(W)}function G(){if(typeof Z.removeListener==="function")Z.removeListener("error",X);Y([].slice.call(arguments))}if(zY(Z,J,G,{once:!0}),J!=="error")uB(Z,X,{once:!0})})}function uB(Z,J,Y){if(typeof Z.on==="function")zY(Z,"error",J,Y)}function zY(Z,J,Y,Q){if(typeof Z.on==="function")if(Q.once)Z.once(J,Y);else Z.on(J,Y);else if(typeof Z.addEventListener==="function")Z.addEventListener(J,function X(G){if(Q.once)Z.removeEventListener(J,X);Y(G)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof Z)}var dB=G9.exports,UY=kB(dB),_;(function(Z){Z[Z.timeout=1]="timeout",Z[Z.transportClosed=2]="transportClosed",Z[Z.clientDisconnected=3]="clientDisconnected",Z[Z.clientClosed=4]="clientClosed",Z[Z.clientConnectToken=5]="clientConnectToken",Z[Z.clientRefreshToken=6]="clientRefreshToken",Z[Z.subscriptionUnsubscribed=7]="subscriptionUnsubscribed",Z[Z.subscriptionSubscribeToken=8]="subscriptionSubscribeToken",Z[Z.subscriptionRefreshToken=9]="subscriptionRefreshToken",Z[Z.transportWriteError=10]="transportWriteError",Z[Z.connectionClosed=11]="connectionClosed",Z[Z.badConfiguration=12]="badConfiguration"})(_||(_={}));var d1;(function(Z){Z[Z.connectCalled=0]="connectCalled",Z[Z.transportClosed=1]="transportClosed",Z[Z.noPing=2]="noPing",Z[Z.subscribeTimeout=3]="subscribeTimeout",Z[Z.unsubscribeError=4]="unsubscribeError"})(d1||(d1={}));var l0;(function(Z){Z[Z.disconnectCalled=0]="disconnectCalled",Z[Z.unauthorized=1]="unauthorized",Z[Z.badProtocol=2]="badProtocol",Z[Z.messageSizeLimit=3]="messageSizeLimit"})(l0||(l0={}));var m5;(function(Z){Z[Z.subscribeCalled=0]="subscribeCalled",Z[Z.transportClosed=1]="transportClosed"})(m5||(m5={}));var u5;(function(Z){Z[Z.unsubscribeCalled=0]="unsubscribeCalled",Z[Z.unauthorized=1]="unauthorized",Z[Z.clientClosed=2]="clientClosed"})(u5||(u5={}));var Y9;(function(Z){Z[Z.channelCompaction=1]="channelCompaction"})(Y9||(Y9={}));var h;(function(Z){Z.Disconnected="disconnected",Z.Connecting="connecting",Z.Connected="connected"})(h||(h={}));var o;(function(Z){Z.Unsubscribed="unsubscribed",Z.Subscribing="subscribing",Z.Subscribed="subscribed"})(o||(o={}));function cB(Z,J){return Z.lastIndexOf(J,0)===0}function BY(Z){if(Z===void 0||Z===null)return!1;return typeof Z==="function"}function pB(Z,J){if(globalThis.console){let Y=globalThis.console[Z];if(BY(Y))Y.apply(globalThis.console,J)}}function lB(Z,J){return Math.floor(Math.random()*(J-Z+1)+Z)}function d5(Z,J,Y){if(Z>31)Z=31;let Q=lB(0,Math.min(Y,J*Math.pow(2,Z)));return Math.min(Y,J+Q)}function iB(Z){return"error"in Z&&Z.error!==null}function c5(Z){return Math.min(Z*1000,2147483647)}class KY extends UY{constructor(Z,J,Y){super();if(this._resubscribeTimeout=null,this._refreshTimeout=null,this.channel=J,this.state=o.Unsubscribed,this._centrifuge=Z,this._token="",this._getToken=null,this._data=null,this._getData=null,this._recover=!1,this._offset=null,this._epoch=null,this._id=0,this._recoverable=!1,this._positioned=!1,this._joinLeave=!1,this._minResubscribeDelay=500,this._maxResubscribeDelay=20000,this._resubscribeTimeout=null,this._resubscribeAttempts=0,this._promises={},this._promiseId=0,this._inflight=!1,this._refreshTimeout=null,this._delta="",this._delta_negotiated=!1,this._tagsFilter=null,this._prevValue=null,this._unsubPromise=Promise.resolve(),this._setOptions(Y),this._centrifuge._debugEnabled)this.on("state",(Q)=>{this._debug("subscription state",J,Q.oldState,"->",Q.newState)}),this.on("error",(Q)=>{this._debug("subscription error",J,Q)});else this.on("error",function(){Function.prototype()})}ready(Z){if(this.state===o.Unsubscribed)return Promise.reject({code:_.subscriptionUnsubscribed,message:this.state});if(this.state===o.Subscribed)return Promise.resolve();return new Promise((J,Y)=>{let Q={resolve:J,reject:Y};if(Z)Q.timeout=setTimeout(function(){Y({code:_.timeout,message:"timeout"})},Z);this._promises[this._nextPromiseId()]=Q})}subscribe(){if(this._isSubscribed())return;this._resubscribeAttempts=0,this._setSubscribing(m5.subscribeCalled,"subscribe called")}unsubscribe(){this._unsubPromise=this._setUnsubscribed(u5.unsubscribeCalled,"unsubscribe called",!0)}publish(Z){return l(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.publish(this.channel,Z)})}presence(){return l(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.presence(this.channel)})}presenceStats(){return l(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.presenceStats(this.channel)})}history(Z){return l(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.history(this.channel,Z)})}setTagsFilter(Z){if(Z&&this._delta)throw Error("cannot use delta and tagsFilter together");this._tagsFilter=Z}setData(Z){this._data=Z}_methodCall(){if(this._isSubscribed())return Promise.resolve();if(this._isUnsubscribed())return Promise.reject({code:_.subscriptionUnsubscribed,message:this.state});return new Promise((Z,J)=>{let Y=this._centrifuge._config.timeout,Q=setTimeout(()=>{J({code:_.timeout,message:"timeout"})},Y);this._promises[this._nextPromiseId()]={timeout:Q,resolve:Z,reject:J}})}_nextPromiseId(){return++this._promiseId}_needRecover(){return this._recover===!0}_isUnsubscribed(){return this.state===o.Unsubscribed}_isSubscribing(){return this.state===o.Subscribing}_isSubscribed(){return this.state===o.Subscribed}_setState(Z){if(this.state!==Z){let J=this.state;return this.state=Z,this.emit("state",{newState:Z,oldState:J,channel:this.channel}),!0}return!1}_usesToken(){return this._token!==""||this._getToken!==null}_clearSubscribingState(){this._resubscribeAttempts=0,this._clearResubscribeTimeout()}_clearSubscribedState(){this._clearRefreshTimeout()}_setSubscribed(Z){if(!this._isSubscribing())return;if(this._clearSubscribingState(),Z.id)this._id=Z.id;if(Z.recoverable)this._recover=!0,this._offset=Z.offset||0,this._epoch=Z.epoch||"";if(Z.delta)this._delta_negotiated=!0;else this._delta_negotiated=!1;this._setState(o.Subscribed);let J=this._centrifuge._getSubscribeContext(this.channel,Z);this.emit("subscribed",J),this._resolvePromises();let Y=Z.publications;if(Y&&Y.length>0)for(let Q in Y){if(!Y.hasOwnProperty(Q))continue;this._handlePublication(Y[Q])}if(Z.expires===!0)this._refreshTimeout=setTimeout(()=>this._refresh(),c5(Z.ttl))}_setSubscribing(Z,J){return l(this,void 0,void 0,function*(){if(this._isSubscribing())return;if(this._isSubscribed())this._clearSubscribedState();if(this._setState(o.Subscribing))this.emit("subscribing",{channel:this.channel,code:Z,reason:J});if(this._centrifuge._transport&&this._centrifuge._transport.emulation())yield this._unsubPromise;if(!this._isSubscribing())return;this._subscribe()})}_subscribe(){if(this._debug("subscribing on",this.channel),!this._isTransportOpen())return this._debug("delay subscribe on",this.channel,"till connected"),null;if(this._inflight)return null;if(this._inflight=!0,this._canSubscribeWithoutGettingToken())return this._subscribeWithoutToken();return this._getSubscriptionToken().then((Z)=>this._handleTokenResponse(Z)).catch((Z)=>this._handleTokenError(Z)),null}_isTransportOpen(){return this._centrifuge._transportIsOpen}_canSubscribeWithoutGettingToken(){return!this._usesToken()||!!this._token}_subscribeWithoutToken(){if(this._getData)return this._getDataAndSubscribe(this._token),null;else return this._sendSubscribe(this._token)}_getDataAndSubscribe(Z){if(!this._getData){this._inflight=!1;return}this._getData({channel:this.channel}).then((J)=>{if(!this._isSubscribing()){this._inflight=!1;return}this._data=J,this._sendSubscribe(Z)}).catch((J)=>this._handleGetDataError(J))}_handleGetDataError(Z){if(!this._isSubscribing()){this._inflight=!1;return}if(Z instanceof V1){this._inflight=!1,this._failUnauthorized();return}this.emit("error",{type:"subscribeData",channel:this.channel,error:{code:_.badConfiguration,message:(Z===null||Z===void 0?void 0:Z.toString())||""}}),this._inflight=!1,this._scheduleResubscribe()}_handleTokenResponse(Z){if(!this._isSubscribing()){this._inflight=!1;return}if(!Z){this._inflight=!1,this._failUnauthorized();return}if(this._token=Z,this._getData)this._getDataAndSubscribe(Z);else this._sendSubscribe(Z)}_handleTokenError(Z){if(!this._isSubscribing()){this._inflight=!1;return}if(Z instanceof V1){this._inflight=!1,this._failUnauthorized();return}this.emit("error",{type:"subscribeToken",channel:this.channel,error:{code:_.subscriptionSubscribeToken,message:(Z===null||Z===void 0?void 0:Z.toString())||""}}),this._inflight=!1,this._scheduleResubscribe()}_sendSubscribe(Z){if(!this._isTransportOpen())return this._inflight=!1,null;let J=this._buildSubscribeCommand(Z);return this._centrifuge._call(J).then((Y)=>{this._inflight=!1;let Q=Y.reply.subscribe;if(this._handleSubscribeResponse(Q),Y.next)Y.next()},(Y)=>{if(this._inflight=!1,this._handleSubscribeError(Y.error),Y.next)Y.next()}),J}_buildSubscribeCommand(Z){let J={channel:this.channel};if(Z)J.token=Z;if(this._data)J.data=this._data;if(this._positioned)J.positioned=!0;if(this._recoverable)J.recoverable=!0;if(this._joinLeave)J.join_leave=!0;if(J.flag=Y9.channelCompaction,this._needRecover()){J.recover=!0;let Y=this._getOffset();if(Y)J.offset=Y;let Q=this._getEpoch();if(Q)J.epoch=Q}if(this._delta)J.delta=this._delta;if(this._tagsFilter)J.tf=this._tagsFilter;return{subscribe:J}}_debug(...Z){this._centrifuge._debug(...Z)}_handleSubscribeError(Z){if(!this._isSubscribing())return;if(Z.code===_.timeout){this._centrifuge._disconnect(d1.subscribeTimeout,"subscribe timeout",!0);return}this._subscribeError(Z)}_handleSubscribeResponse(Z){if(!this._isSubscribing())return;this._setSubscribed(Z)}_setUnsubscribed(Z,J,Y){if(this._isUnsubscribed())return Promise.resolve();let Q=Promise.resolve();if(this._isSubscribed()){if(Y)Q=this._centrifuge._unsubscribe(this);this._clearSubscribedState()}else if(this._isSubscribing()){if(this._inflight&&Y)Q=this._centrifuge._unsubscribe(this);this._clearSubscribingState()}if(this._inflight=!1,this._setState(o.Unsubscribed))this.emit("unsubscribed",{channel:this.channel,code:Z,reason:J});return this._rejectPromises({code:_.subscriptionUnsubscribed,message:this.state}),Q}_handlePublication(Z){if(this._delta&&this._delta_negotiated){let{newData:Y,newPrevValue:Q}=this._centrifuge._codec.applyDeltaIfNeeded(Z,this._prevValue);Z.data=Y,this._prevValue=Q}let J=this._centrifuge._getPublicationContext(this.channel,Z);if(this.emit("publication",J),Z.offset)this._offset=Z.offset}_handleJoin(Z){let J=this._centrifuge._getJoinLeaveContext(Z.info);this.emit("join",{channel:this.channel,info:J})}_handleLeave(Z){let J=this._centrifuge._getJoinLeaveContext(Z.info);this.emit("leave",{channel:this.channel,info:J})}_resolvePromises(){for(let Z in this._promises){if(!this._promises.hasOwnProperty(Z))continue;if(this._promises[Z].timeout)clearTimeout(this._promises[Z].timeout);this._promises[Z].resolve(),delete this._promises[Z]}}_rejectPromises(Z){for(let J in this._promises){if(!this._promises.hasOwnProperty(J))continue;if(this._promises[J].timeout)clearTimeout(this._promises[J].timeout);this._promises[J].reject(Z),delete this._promises[J]}}_scheduleResubscribe(){if(!this._isSubscribing()){this._debug("not in subscribing state, skip resubscribe scheduling",this.channel);return}let Z=this,J=this._getResubscribeDelay();this._resubscribeTimeout=setTimeout(function(){if(Z._isSubscribing())Z._subscribe()},J),this._debug("resubscribe scheduled after "+J,this.channel)}_subscribeError(Z){if(!this._isSubscribing())return;if(Z.code<100||Z.code===109||Z.temporary===!0){if(Z.code===109)this._token="";let J={channel:this.channel,type:"subscribe",error:Z};if(this._centrifuge.state===h.Connected)this.emit("error",J);this._scheduleResubscribe()}else this._setUnsubscribed(Z.code,Z.message,!1)}_getResubscribeDelay(){let Z=d5(this._resubscribeAttempts,this._minResubscribeDelay,this._maxResubscribeDelay);return this._resubscribeAttempts++,Z}_setOptions(Z){if(!Z)return;if(Z.since)this._offset=Z.since.offset||0,this._epoch=Z.since.epoch||"",this._recover=!0;if(Z.data)this._data=Z.data;if(Z.getData)this._getData=Z.getData;if(Z.minResubscribeDelay!==void 0)this._minResubscribeDelay=Z.minResubscribeDelay;if(Z.maxResubscribeDelay!==void 0)this._maxResubscribeDelay=Z.maxResubscribeDelay;if(Z.token)this._token=Z.token;if(Z.getToken)this._getToken=Z.getToken;if(Z.positioned===!0)this._positioned=!0;if(Z.recoverable===!0)this._recoverable=!0;if(Z.joinLeave===!0)this._joinLeave=!0;if(Z.delta){if(Z.delta!=="fossil")throw Error("unsupported delta format");this._delta=Z.delta}if(Z.tagsFilter)this._tagsFilter=Z.tagsFilter;if(this._tagsFilter&&this._delta)throw Error("cannot use delta and tagsFilter together")}_getOffset(){let Z=this._offset;if(Z!==null)return Z;return 0}_getEpoch(){let Z=this._epoch;if(Z!==null)return Z;return""}_clearRefreshTimeout(){if(this._refreshTimeout!==null)clearTimeout(this._refreshTimeout),this._refreshTimeout=null}_clearResubscribeTimeout(){if(this._resubscribeTimeout!==null)clearTimeout(this._resubscribeTimeout),this._resubscribeTimeout=null}_getSubscriptionToken(){this._debug("get subscription token for channel",this.channel);let Z={channel:this.channel},J=this._getToken;if(J===null)return this.emit("error",{type:"configuration",channel:this.channel,error:{code:_.badConfiguration,message:"provide a function to get channel subscription token"}}),Promise.reject(new V1(""));return J(Z)}_refresh(){this._clearRefreshTimeout();let Z=this;this._getSubscriptionToken().then(function(J){if(!Z._isSubscribed())return;if(!J){Z._failUnauthorized();return}Z._token=J;let Q={sub_refresh:{channel:Z.channel,token:J}};Z._centrifuge._call(Q).then((X)=>{let G=X.reply.sub_refresh;if(Z._refreshResponse(G),X.next)X.next()},(X)=>{if(Z._refreshError(X.error),X.next)X.next()})}).catch(function(J){if(J instanceof V1){Z._failUnauthorized();return}Z.emit("error",{type:"refreshToken",channel:Z.channel,error:{code:_.subscriptionRefreshToken,message:J!==void 0?J.toString():""}}),Z._refreshTimeout=setTimeout(()=>Z._refresh(),Z._getRefreshRetryDelay())})}_refreshResponse(Z){if(!this._isSubscribed())return;if(this._debug("subscription token refreshed, channel",this.channel),this._clearRefreshTimeout(),Z.expires===!0)this._refreshTimeout=setTimeout(()=>this._refresh(),c5(Z.ttl))}_refreshError(Z){if(!this._isSubscribed())return;if(Z.code<100||Z.temporary===!0)this.emit("error",{type:"refresh",channel:this.channel,error:Z}),this._refreshTimeout=setTimeout(()=>this._refresh(),this._getRefreshRetryDelay());else this._setUnsubscribed(Z.code,Z.message,!0)}_getRefreshRetryDelay(){return d5(0,1e4,20000)}_failUnauthorized(){this._setUnsubscribed(u5.unauthorized,"unauthorized",!0)}}class LY{constructor(Z,J){this.endpoint=Z,this.options=J,this._transport=null}name(){return"sockjs"}subName(){return"sockjs-"+this._transport.transport}emulation(){return!1}supported(){return this.options.sockjs!==null}initialize(Z,J){this._transport=new this.options.sockjs(this.endpoint,null,this.options.sockjsOptions),this._transport.onopen=()=>{J.onOpen()},this._transport.onerror=(Y)=>{J.onError(Y)},this._transport.onclose=(Y)=>{J.onClose(Y)},this._transport.onmessage=(Y)=>{J.onMessage(Y.data)}}close(){this._transport.close()}send(Z){this._transport.send(Z)}}class Q9{constructor(Z,J){this.endpoint=Z,this.options=J,this._transport=null}name(){return"websocket"}subName(){return"websocket"}emulation(){return!1}supported(){return this.options.websocket!==void 0&&this.options.websocket!==null}initialize(Z,J){let Y="";if(Z==="protobuf")Y="centrifuge-protobuf";if(Y!=="")this._transport=new this.options.websocket(this.endpoint,Y);else this._transport=new this.options.websocket(this.endpoint);if(Z==="protobuf")this._transport.binaryType="arraybuffer";this._transport.onopen=()=>{J.onOpen()},this._transport.onerror=(Q)=>{J.onError(Q)},this._transport.onclose=(Q)=>{J.onClose(Q)},this._transport.onmessage=(Q)=>{J.onMessage(Q.data)}}close(){this._transport.close()}send(Z){this._transport.send(Z)}}class MY{constructor(Z,J){this.endpoint=Z,this.options=J,this._abortController=null,this._utf8decoder=new TextDecoder,this._protocol="json"}name(){return"http_stream"}subName(){return"http_stream"}emulation(){return!0}_handleErrors(Z){if(!Z.ok)throw Error(Z.status);return Z}_fetchEventTarget(Z,J,Y){let Q=new EventTarget,X=Z.options.fetch;return X(J,Y).then(Z._handleErrors).then((G)=>{Q.dispatchEvent(new Event("open"));let W="",H=0,z=new Uint8Array,U=G.body.getReader();return new Z.options.readableStream({start(B){function L(){return U.read().then(({done:V,value:M})=>{if(V){Q.dispatchEvent(new Event("close")),B.close();return}try{if(Z._protocol==="json"){W+=Z._utf8decoder.decode(M);while(H<W.length)if(W[H]===`
22
- `){let K=W.substring(0,H);Q.dispatchEvent(new MessageEvent("message",{data:K})),W=W.substring(H+1),H=0}else++H}else{let K=new Uint8Array(z.length+M.length);K.set(z),K.set(M,z.length),z=K;while(!0){let F=Z.options.decoder.decodeReply(z);if(F.ok){let O=z.slice(0,F.pos);Q.dispatchEvent(new MessageEvent("message",{data:O})),z=z.slice(F.pos);continue}break}}}catch(K){Q.dispatchEvent(new Event("error",{detail:K})),Q.dispatchEvent(new Event("close")),B.close();return}L()}).catch(function(V){Q.dispatchEvent(new Event("error",{detail:V})),Q.dispatchEvent(new Event("close")),B.close();return})}return L()}})}).catch((G)=>{Q.dispatchEvent(new Event("error",{detail:G})),Q.dispatchEvent(new Event("close"))}),Q}supported(){return this.options.fetch!==null&&this.options.readableStream!==null&&typeof TextDecoder<"u"&&typeof AbortController<"u"&&typeof EventTarget<"u"&&typeof Event<"u"&&typeof MessageEvent<"u"&&typeof Error<"u"}initialize(Z,J,Y){this._protocol=Z,this._abortController=new AbortController;let Q,X;if(Z==="json")Q={Accept:"application/json","Content-Type":"application/json"},X=Y;else Q={Accept:"application/octet-stream","Content-Type":"application/octet-stream"},X=Y;let G={method:"POST",headers:Q,body:X,mode:"cors",credentials:"same-origin",signal:this._abortController.signal},W=this._fetchEventTarget(this,this.endpoint,G);W.addEventListener("open",()=>{J.onOpen()}),W.addEventListener("error",(H)=>{this._abortController.abort(),J.onError(H)}),W.addEventListener("close",()=>{this._abortController.abort(),J.onClose({code:4,reason:"connection closed"})}),W.addEventListener("message",(H)=>{J.onMessage(H.data)})}close(){this._abortController.abort()}send(Z,J,Y){let Q,X,G={session:J,node:Y,data:Z};if(this._protocol==="json")Q={"Content-Type":"application/json"},X=JSON.stringify(G);else Q={"Content-Type":"application/octet-stream"},X=this.options.encoder.encodeEmulationRequest(G);let W=this.options.fetch,H={method:"POST",headers:Q,body:X,mode:"cors",credentials:"same-origin"};W(this.options.emulationEndpoint,H)}}class FY{constructor(Z,J){this.endpoint=Z,this.options=J,this._protocol="json",this._transport=null,this._onClose=null}name(){return"sse"}subName(){return"sse"}emulation(){return!0}supported(){return this.options.eventsource!==null&&this.options.fetch!==null}initialize(Z,J,Y){let Q;if(globalThis&&globalThis.document&&globalThis.document.baseURI)Q=new URL(this.endpoint,globalThis.document.baseURI);else Q=new URL(this.endpoint);Q.searchParams.append("cf_connect",Y);let X={},G=new this.options.eventsource(Q.toString(),X);this._transport=G;let W=this;G.onopen=function(){J.onOpen()},G.onerror=function(H){G.close(),J.onError(H),J.onClose({code:4,reason:"connection closed"})},G.onmessage=function(H){J.onMessage(H.data)},W._onClose=function(){J.onClose({code:4,reason:"connection closed"})}}close(){if(this._transport.close(),this._onClose!==null)this._onClose()}send(Z,J,Y){let Q={session:J,node:Y,data:Z},X={"Content-Type":"application/json"},G=JSON.stringify(Q),W=this.options.fetch,H={method:"POST",headers:X,body:G,mode:"cors",credentials:"same-origin"};W(this.options.emulationEndpoint,H)}}class $Y{constructor(Z,J){this.endpoint=Z,this.options=J,this._transport=null,this._stream=null,this._writer=null,this._utf8decoder=new TextDecoder,this._protocol="json"}name(){return"webtransport"}subName(){return"webtransport"}emulation(){return!1}supported(){return this.options.webtransport!==void 0&&this.options.webtransport!==null}initialize(Z,J){return l(this,void 0,void 0,function*(){let Y;if(globalThis&&globalThis.document&&globalThis.document.baseURI)Y=new URL(this.endpoint,globalThis.document.baseURI);else Y=new URL(this.endpoint);if(Z==="protobuf")Y.searchParams.append("cf_protocol","protobuf");this._protocol=Z;let Q=new EventTarget;this._transport=new this.options.webtransport(Y.toString()),this._transport.closed.then(()=>{J.onClose({code:4,reason:"connection closed"})}).catch(()=>{J.onClose({code:4,reason:"connection closed"})});try{yield this._transport.ready}catch(G){this.close();return}let X;try{X=yield this._transport.createBidirectionalStream()}catch(G){this.close();return}this._stream=X,this._writer=this._stream.writable.getWriter(),Q.addEventListener("close",()=>{J.onClose({code:4,reason:"connection closed"})}),Q.addEventListener("message",(G)=>{J.onMessage(G.data)}),this._startReading(Q),J.onOpen()})}_startReading(Z){return l(this,void 0,void 0,function*(){let J=this._stream.readable.getReader(),Y="",Q=0,X=new Uint8Array;try{while(!0){let{done:G,value:W}=yield J.read();if(W.length>0)if(this._protocol==="json"){Y+=this._utf8decoder.decode(W);while(Q<Y.length)if(Y[Q]===`
21
+ `;return{css:H,animationName:W}}}}function $0(Z){return M0(Z)}$0.Plugins=W1;$0.Style=OJ;$0.StyleRoot=qJ;$0.getState=D5;$0.keyframes=d8;var H1=$0;function c8(Z){return{all:Z=Z||new Map,on:function(J,Y){var Q=Z.get(J);Q?Q.push(Y):Z.set(J,[Y])},off:function(J,Y){var Q=Z.get(J);Q&&(Y?Q.splice(Q.indexOf(Y)>>>0,1):Z.set(J,[]))},emit:function(J,Y){var Q=Z.get(J);Q&&Q.slice().map(function(X){X(Y)}),(Q=Z.get("*"))&&Q.slice().map(function(X){X(J,Y)})}}}import{createContext as HB}from"react";var f0=c8(),zB=HB(f0),y1=zB;var K1=Object.create(null);K1.open="0";K1.close="1";K1.ping="2";K1.pong="3";K1.message="4";K1.upgrade="5";K1.noop="6";var j0=Object.create(null);Object.keys(K1).forEach((Z)=>{j0[K1[Z]]=Z});var _0={type:"error",data:"parser error"};var AJ=typeof Blob==="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",RJ=typeof ArrayBuffer==="function",PJ=(Z)=>{return typeof ArrayBuffer.isView==="function"?ArrayBuffer.isView(Z):Z&&Z.buffer instanceof ArrayBuffer},v0=({type:Z,data:J},Y,Q)=>{if(AJ&&J instanceof Blob)if(Y)return Q(J);else return DJ(J,Q);else if(RJ&&(J instanceof ArrayBuffer||PJ(J)))if(Y)return Q(J);else return DJ(new Blob([J]),Q);return Q(K1[Z]+(J||""))},DJ=(Z,J)=>{let Y=new FileReader;return Y.onload=function(){let Q=Y.result.split(",")[1];J("b"+(Q||""))},Y.readAsDataURL(Z)};function NJ(Z){if(Z instanceof Uint8Array)return Z;else if(Z instanceof ArrayBuffer)return new Uint8Array(Z);else return new Uint8Array(Z.buffer,Z.byteOffset,Z.byteLength)}var p8;function TJ(Z,J){if(AJ&&Z.data instanceof Blob)return Z.data.arrayBuffer().then(NJ).then(J);else if(RJ&&(Z.data instanceof ArrayBuffer||PJ(Z.data)))return J(NJ(Z.data));v0(Z,!1,(Y)=>{if(!p8)p8=new TextEncoder;J(p8.encode(Y))})}var k0=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let Z=0;Z<64;Z++)k0["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(Z)]=Z;var wJ=(Z)=>{let J=Z.length*0.75,Y=Z.length,Q,X=0,G,W,H,z;if(Z[Z.length-1]==="="){if(J--,Z[Z.length-2]==="=")J--}let U=new ArrayBuffer(J),B=new Uint8Array(U);for(Q=0;Q<Y;Q+=4)G=k0[Z.charCodeAt(Q)],W=k0[Z.charCodeAt(Q+1)],H=k0[Z.charCodeAt(Q+2)],z=k0[Z.charCodeAt(Q+3)],B[X++]=G<<2|W>>4,B[X++]=(W&15)<<4|H>>2,B[X++]=(H&3)<<6|z&63;return U};var UB=typeof ArrayBuffer==="function",h0=(Z,J)=>{if(typeof Z!=="string")return{type:"message",data:EJ(Z,J)};let Y=Z.charAt(0);if(Y==="b")return{type:"message",data:BB(Z.substring(1),J)};if(!j0[Y])return _0;return Z.length>1?{type:j0[Y],data:Z.substring(1)}:{type:j0[Y]}},BB=(Z,J)=>{if(UB){let Y=wJ(Z);return EJ(Y,J)}else return{base64:!0,data:Z}},EJ=(Z,J)=>{switch(J){case"blob":if(Z instanceof Blob)return Z;else return new Blob([Z]);case"arraybuffer":default:if(Z instanceof ArrayBuffer)return Z;else return Z.buffer}};var SJ=String.fromCharCode(30),xJ=(Z,J)=>{let Y=Z.length,Q=Array(Y),X=0;Z.forEach((G,W)=>{v0(G,!1,(H)=>{if(Q[W]=H,++X===Y)J(Q.join(SJ))})})},CJ=(Z,J)=>{let Y=Z.split(SJ),Q=[];for(let X=0;X<Y.length;X++){let G=h0(Y[X],J);if(Q.push(G),G.type==="error")break}return Q};function fJ(){return new TransformStream({transform(Z,J){TJ(Z,(Y)=>{let Q=Y.length,X;if(Q<126)X=new Uint8Array(1),new DataView(X.buffer).setUint8(0,Q);else if(Q<65536){X=new Uint8Array(3);let G=new DataView(X.buffer);G.setUint8(0,126),G.setUint16(1,Q)}else{X=new Uint8Array(9);let G=new DataView(X.buffer);G.setUint8(0,127),G.setBigUint64(1,BigInt(Q))}if(Z.data&&typeof Z.data!=="string")X[0]|=128;J.enqueue(X),J.enqueue(Y)})}})}var l8;function j5(Z){return Z.reduce((J,Y)=>J+Y.length,0)}function _5(Z,J){if(Z[0].length===J)return Z.shift();let Y=new Uint8Array(J),Q=0;for(let X=0;X<J;X++)if(Y[X]=Z[0][Q++],Q===Z[0].length)Z.shift(),Q=0;if(Z.length&&Q<Z[0].length)Z[0]=Z[0].slice(Q);return Y}function jJ(Z,J){if(!l8)l8=new TextDecoder;let Y=[],Q=0,X=-1,G=!1;return new TransformStream({transform(W,H){Y.push(W);while(!0){if(Q===0){if(j5(Y)<1)break;let z=_5(Y,1);if(G=(z[0]&128)===128,X=z[0]&127,X<126)Q=3;else if(X===126)Q=1;else Q=2}else if(Q===1){if(j5(Y)<2)break;let z=_5(Y,2);X=new DataView(z.buffer,z.byteOffset,z.length).getUint16(0),Q=3}else if(Q===2){if(j5(Y)<8)break;let z=_5(Y,8),U=new DataView(z.buffer,z.byteOffset,z.length),B=U.getUint32(0);if(B>Math.pow(2,21)-1){H.enqueue(_0);break}X=B*Math.pow(2,32)+U.getUint32(4),Q=3}else{if(j5(Y)<X)break;let z=_5(Y,X);H.enqueue(h0(G?z:l8.decode(z),J)),Q=0}if(X===0||X>Z){H.enqueue(_0);break}}}})}var i8=4;function j(Z){if(Z)return KB(Z)}function KB(Z){for(var J in j.prototype)Z[J]=j.prototype[J];return Z}j.prototype.on=j.prototype.addEventListener=function(Z,J){return this._callbacks=this._callbacks||{},(this._callbacks["$"+Z]=this._callbacks["$"+Z]||[]).push(J),this};j.prototype.once=function(Z,J){function Y(){this.off(Z,Y),J.apply(this,arguments)}return Y.fn=J,this.on(Z,Y),this};j.prototype.off=j.prototype.removeListener=j.prototype.removeAllListeners=j.prototype.removeEventListener=function(Z,J){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var Y=this._callbacks["$"+Z];if(!Y)return this;if(arguments.length==1)return delete this._callbacks["$"+Z],this;var Q;for(var X=0;X<Y.length;X++)if(Q=Y[X],Q===J||Q.fn===J){Y.splice(X,1);break}if(Y.length===0)delete this._callbacks["$"+Z];return this};j.prototype.emit=function(Z){this._callbacks=this._callbacks||{};var J=Array(arguments.length-1),Y=this._callbacks["$"+Z];for(var Q=1;Q<arguments.length;Q++)J[Q-1]=arguments[Q];if(Y){Y=Y.slice(0);for(var Q=0,X=Y.length;Q<X;++Q)Y[Q].apply(this,J)}return this};j.prototype.emitReserved=j.prototype.emit;j.prototype.listeners=function(Z){return this._callbacks=this._callbacks||{},this._callbacks["$"+Z]||[]};j.prototype.hasListeners=function(Z){return!!this.listeners(Z).length};var P1=(()=>{if(typeof Promise==="function"&&typeof Promise.resolve==="function")return(J)=>Promise.resolve().then(J);else return(J,Y)=>Y(J,0)})(),n=(()=>{if(typeof self<"u")return self;else if(typeof window<"u")return window;else return Function("return this")()})(),_J="arraybuffer";function vJ(){}function v5(Z,...J){return J.reduce((Y,Q)=>{if(Z.hasOwnProperty(Q))Y[Q]=Z[Q];return Y},{})}var LB=n.setTimeout,MB=n.clearTimeout;function T1(Z,J){if(J.useNativeTimers)Z.setTimeoutFn=LB.bind(n),Z.clearTimeoutFn=MB.bind(n);else Z.setTimeoutFn=n.setTimeout.bind(n),Z.clearTimeoutFn=n.clearTimeout.bind(n)}var FB=1.33;function kJ(Z){if(typeof Z==="string")return $B(Z);return Math.ceil((Z.byteLength||Z.size)*FB)}function $B(Z){let J=0,Y=0;for(let Q=0,X=Z.length;Q<X;Q++)if(J=Z.charCodeAt(Q),J<128)Y+=1;else if(J<2048)Y+=2;else if(J<55296||J>=57344)Y+=3;else Q++,Y+=4;return Y}function k5(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function hJ(Z){let J="";for(let Y in Z)if(Z.hasOwnProperty(Y)){if(J.length)J+="&";J+=encodeURIComponent(Y)+"="+encodeURIComponent(Z[Y])}return J}function bJ(Z){let J={},Y=Z.split("&");for(let Q=0,X=Y.length;Q<X;Q++){let G=Y[Q].split("=");J[decodeURIComponent(G[0])]=decodeURIComponent(G[1])}return J}class n8 extends Error{constructor(Z,J,Y){super(Z);this.description=J,this.context=Y,this.type="TransportError"}}class m1 extends j{constructor(Z){super();this.writable=!1,T1(this,Z),this.opts=Z,this.query=Z.query,this.socket=Z.socket,this.supportsBinary=!Z.forceBase64}onError(Z,J,Y){return super.emitReserved("error",new n8(Z,J,Y)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){if(this.readyState==="opening"||this.readyState==="open")this.doClose(),this.onClose();return this}send(Z){if(this.readyState==="open")this.write(Z)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(Z){let J=h0(Z,this.socket.binaryType);this.onPacket(J)}onPacket(Z){super.emitReserved("packet",Z)}onClose(Z){this.readyState="closed",super.emitReserved("close",Z)}pause(Z){}createUri(Z,J={}){return Z+"://"+this._hostname()+this._port()+this.opts.path+this._query(J)}_hostname(){let Z=this.opts.hostname;return Z.indexOf(":")===-1?Z:"["+Z+"]"}_port(){if(this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80))return":"+this.opts.port;else return""}_query(Z){let J=hJ(Z);return J.length?"?"+J:""}}class h5 extends m1{constructor(){super(...arguments);this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(Z){this.readyState="pausing";let J=()=>{this.readyState="paused",Z()};if(this._polling||!this.writable){let Y=0;if(this._polling)Y++,this.once("pollComplete",function(){--Y||J()});if(!this.writable)Y++,this.once("drain",function(){--Y||J()})}else J()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(Z){let J=(Y)=>{if(this.readyState==="opening"&&Y.type==="open")this.onOpen();if(Y.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(Y)};if(CJ(Z,this.socket.binaryType).forEach(J),this.readyState!=="closed"){if(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open")this._poll()}}doClose(){let Z=()=>{this.write([{type:"close"}])};if(this.readyState==="open")Z();else this.once("open",Z)}write(Z){this.writable=!1,xJ(Z,(J)=>{this.doWrite(J,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let Z=this.opts.secure?"https":"http",J=this.query||{};if(this.opts.timestampRequests!==!1)J[this.opts.timestampParam]=k5();if(!this.supportsBinary&&!J.sid)J.b64=1;return this.createUri(Z,J)}}var gJ=!1;try{gJ=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch(Z){}var yJ=gJ;function OB(){}class uJ extends h5{constructor(Z){super(Z);if(typeof location<"u"){let J=location.protocol==="https:",Y=location.port;if(!Y)Y=J?"443":"80";this.xd=typeof location<"u"&&Z.hostname!==location.hostname||Y!==Z.port}}doWrite(Z,J){let Y=this.request({method:"POST",data:Z});Y.on("success",J),Y.on("error",(Q,X)=>{this.onError("xhr post error",Q,X)})}doPoll(){let Z=this.request();Z.on("data",this.onData.bind(this)),Z.on("error",(J,Y)=>{this.onError("xhr poll error",J,Y)}),this.pollXhr=Z}}class O1 extends j{constructor(Z,J,Y){super();this.createRequest=Z,T1(this,Y),this._opts=Y,this._method=Y.method||"GET",this._uri=J,this._data=Y.data!==void 0?Y.data:null,this._create()}_create(){var Z;let J=v5(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");J.xdomain=!!this._opts.xd;let Y=this._xhr=this.createRequest(J);try{Y.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){Y.setDisableHeaderCheck&&Y.setDisableHeaderCheck(!0);for(let Q in this._opts.extraHeaders)if(this._opts.extraHeaders.hasOwnProperty(Q))Y.setRequestHeader(Q,this._opts.extraHeaders[Q])}}catch(Q){}if(this._method==="POST")try{Y.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(Q){}try{Y.setRequestHeader("Accept","*/*")}catch(Q){}if((Z=this._opts.cookieJar)===null||Z===void 0||Z.addCookies(Y),"withCredentials"in Y)Y.withCredentials=this._opts.withCredentials;if(this._opts.requestTimeout)Y.timeout=this._opts.requestTimeout;Y.onreadystatechange=()=>{var Q;if(Y.readyState===3)(Q=this._opts.cookieJar)===null||Q===void 0||Q.parseCookies(Y.getResponseHeader("set-cookie"));if(Y.readyState!==4)return;if(Y.status===200||Y.status===1223)this._onLoad();else this.setTimeoutFn(()=>{this._onError(typeof Y.status==="number"?Y.status:0)},0)},Y.send(this._data)}catch(Q){this.setTimeoutFn(()=>{this._onError(Q)},0);return}if(typeof document<"u")this._index=O1.requestsCount++,O1.requests[this._index]=this}_onError(Z){this.emitReserved("error",Z,this._xhr),this._cleanup(!0)}_cleanup(Z){if(typeof this._xhr>"u"||this._xhr===null)return;if(this._xhr.onreadystatechange=OB,Z)try{this._xhr.abort()}catch(J){}if(typeof document<"u")delete O1.requests[this._index];this._xhr=null}_onLoad(){let Z=this._xhr.responseText;if(Z!==null)this.emitReserved("data",Z),this.emitReserved("success"),this._cleanup()}abort(){this._cleanup()}}O1.requestsCount=0;O1.requests={};if(typeof document<"u"){if(typeof attachEvent==="function")attachEvent("onunload",mJ);else if(typeof addEventListener==="function"){let Z="onpagehide"in n?"pagehide":"unload";addEventListener(Z,mJ,!1)}}function mJ(){for(let Z in O1.requests)if(O1.requests.hasOwnProperty(Z))O1.requests[Z].abort()}var IB=function(){let Z=dJ({xdomain:!1});return Z&&Z.responseType!==null}();class t1 extends uJ{constructor(Z){super(Z);let J=Z&&Z.forceBase64;this.supportsBinary=IB&&!J}request(Z={}){return Object.assign(Z,{xd:this.xd},this.opts),new O1(dJ,this.uri(),Z)}}function dJ(Z){let J=Z.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!J||yJ))return new XMLHttpRequest}catch(Y){}if(!J)try{return new n[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(Y){}}var cJ=typeof navigator<"u"&&typeof navigator.product==="string"&&navigator.product.toLowerCase()==="reactnative";class pJ extends m1{get name(){return"websocket"}doOpen(){let Z=this.uri(),J=this.opts.protocols,Y=cJ?{}:v5(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");if(this.opts.extraHeaders)Y.headers=this.opts.extraHeaders;try{this.ws=this.createSocket(Z,J,Y)}catch(Q){return this.emitReserved("error",Q)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{if(this.opts.autoUnref)this.ws._socket.unref();this.onOpen()},this.ws.onclose=(Z)=>this.onClose({description:"websocket connection closed",context:Z}),this.ws.onmessage=(Z)=>this.onData(Z.data),this.ws.onerror=(Z)=>this.onError("websocket error",Z)}write(Z){this.writable=!1;for(let J=0;J<Z.length;J++){let Y=Z[J],Q=J===Z.length-1;v0(Y,this.supportsBinary,(X)=>{try{this.doWrite(Y,X)}catch(G){}if(Q)P1(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){if(typeof this.ws<"u")this.ws.onerror=()=>{},this.ws.close(),this.ws=null}uri(){let Z=this.opts.secure?"wss":"ws",J=this.query||{};if(this.opts.timestampRequests)J[this.opts.timestampParam]=k5();if(!this.supportsBinary)J.b64=1;return this.createUri(Z,J)}}var o8=n.WebSocket||n.MozWebSocket;class e1 extends pJ{createSocket(Z,J,Y){return!cJ?J?new o8(Z,J):new o8(Z):new o8(Z,J,Y)}doWrite(Z,J){this.ws.send(J)}}class b0 extends m1{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(Z){return this.emitReserved("error",Z)}this._transport.closed.then(()=>{this.onClose()}).catch((Z)=>{this.onError("webtransport error",Z)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then((Z)=>{let J=jJ(Number.MAX_SAFE_INTEGER,this.socket.binaryType),Y=Z.readable.pipeThrough(J).getReader(),Q=fJ();Q.readable.pipeTo(Z.writable),this._writer=Q.writable.getWriter();let X=()=>{Y.read().then(({done:W,value:H})=>{if(W)return;this.onPacket(H),X()}).catch((W)=>{})};X();let G={type:"open"};if(this.query.sid)G.data=`{"sid":"${this.query.sid}"}`;this._writer.write(G).then(()=>this.onOpen())})})}write(Z){this.writable=!1;for(let J=0;J<Z.length;J++){let Y=Z[J],Q=J===Z.length-1;this._writer.write(Y).then(()=>{if(Q)P1(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var Z;(Z=this._transport)===null||Z===void 0||Z.close()}}var a8={websocket:e1,webtransport:b0,polling:t1};var VB=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,qB=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function O0(Z){if(Z.length>8000)throw"URI too long";let J=Z,Y=Z.indexOf("["),Q=Z.indexOf("]");if(Y!=-1&&Q!=-1)Z=Z.substring(0,Y)+Z.substring(Y,Q).replace(/:/g,";")+Z.substring(Q,Z.length);let X=VB.exec(Z||""),G={},W=14;while(W--)G[qB[W]]=X[W]||"";if(Y!=-1&&Q!=-1)G.source=J,G.host=G.host.substring(1,G.host.length-1).replace(/;/g,":"),G.authority=G.authority.replace("[","").replace("]","").replace(/;/g,":"),G.ipv6uri=!0;return G.pathNames=DB(G,G.path),G.queryKey=NB(G,G.query),G}function DB(Z,J){let Y=/\/{2,9}/g,Q=J.replace(Y,"/").split("/");if(J.slice(0,1)=="/"||J.length===0)Q.splice(0,1);if(J.slice(-1)=="/")Q.splice(Q.length-1,1);return Q}function NB(Z,J){let Y={};return J.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(Q,X,G){if(X)Y[X]=G}),Y}var s8=typeof addEventListener==="function"&&typeof removeEventListener==="function",b5=[];if(s8)addEventListener("offline",()=>{b5.forEach((Z)=>Z())},!1);class w1 extends j{constructor(Z,J){super();if(this.binaryType=_J,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,Z&&typeof Z==="object")J=Z,Z=null;if(Z){let Y=O0(Z);if(J.hostname=Y.host,J.secure=Y.protocol==="https"||Y.protocol==="wss",J.port=Y.port,Y.query)J.query=Y.query}else if(J.host)J.hostname=O0(J.host).host;if(T1(this,J),this.secure=J.secure!=null?J.secure:typeof location<"u"&&location.protocol==="https:",J.hostname&&!J.port)J.port=this.secure?"443":"80";if(this.hostname=J.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=J.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},J.transports.forEach((Y)=>{let Q=Y.prototype.name;this.transports.push(Q),this._transportsByName[Q]=Y}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},J),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query==="string")this.opts.query=bJ(this.opts.query);if(s8){if(this.opts.closeOnBeforeunload)this._beforeunloadEventListener=()=>{if(this.transport)this.transport.removeAllListeners(),this.transport.close()},addEventListener("beforeunload",this._beforeunloadEventListener,!1);if(this.hostname!=="localhost")this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},b5.push(this._offlineEventListener)}if(this.opts.withCredentials)this._cookieJar=vJ();this._open()}createTransport(Z){let J=Object.assign({},this.opts.query);if(J.EIO=i8,J.transport=Z,this.id)J.sid=this.id;let Y=Object.assign({},this.opts,{query:J,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[Z]);return new this._transportsByName[Z](Y)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let Z=this.opts.rememberUpgrade&&w1.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let J=this.createTransport(Z);J.open(),this.setTransport(J)}setTransport(Z){if(this.transport)this.transport.removeAllListeners();this.transport=Z,Z.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",(J)=>this._onClose("transport close",J))}onOpen(){this.readyState="open",w1.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(Z){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",Z),this.emitReserved("heartbeat"),Z.type){case"open":this.onHandshake(JSON.parse(Z.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let J=Error("server error");J.code=Z.data,this._onError(J);break;case"message":this.emitReserved("data",Z.data),this.emitReserved("message",Z.data);break}}onHandshake(Z){if(this.emitReserved("handshake",Z),this.id=Z.sid,this.transport.query.sid=Z.sid,this._pingInterval=Z.pingInterval,this._pingTimeout=Z.pingTimeout,this._maxPayload=Z.maxPayload,this.onOpen(),this.readyState==="closed")return;this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let Z=this._pingInterval+this._pingTimeout;if(this._pingTimeoutTime=Date.now()+Z,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},Z),this.opts.autoUnref)this._pingTimeoutTimer.unref()}_onDrain(){if(this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0)this.emitReserved("drain");else this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let Z=this._getWritablePackets();this.transport.send(Z),this._prevBufferLen=Z.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let J=1;for(let Y=0;Y<this.writeBuffer.length;Y++){let Q=this.writeBuffer[Y].data;if(Q)J+=kJ(Q);if(Y>0&&J>this._maxPayload)return this.writeBuffer.slice(0,Y);J+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let Z=Date.now()>this._pingTimeoutTime;if(Z)this._pingTimeoutTime=0,P1(()=>{this._onClose("ping timeout")},this.setTimeoutFn);return Z}write(Z,J,Y){return this._sendPacket("message",Z,J,Y),this}send(Z,J,Y){return this._sendPacket("message",Z,J,Y),this}_sendPacket(Z,J,Y,Q){if(typeof J==="function")Q=J,J=void 0;if(typeof Y==="function")Q=Y,Y=null;if(this.readyState==="closing"||this.readyState==="closed")return;Y=Y||{},Y.compress=Y.compress!==!1;let X={type:Z,data:J,options:Y};if(this.emitReserved("packetCreate",X),this.writeBuffer.push(X),Q)this.once("flush",Q);this.flush()}close(){let Z=()=>{this._onClose("forced close"),this.transport.close()},J=()=>{this.off("upgrade",J),this.off("upgradeError",J),Z()},Y=()=>{this.once("upgrade",J),this.once("upgradeError",J)};if(this.readyState==="opening"||this.readyState==="open")if(this.readyState="closing",this.writeBuffer.length)this.once("drain",()=>{if(this.upgrading)Y();else Z()});else if(this.upgrading)Y();else Z();return this}_onError(Z){if(w1.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",Z),this._onClose("transport error",Z)}_onClose(Z,J){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),s8){if(this._beforeunloadEventListener)removeEventListener("beforeunload",this._beforeunloadEventListener,!1);if(this._offlineEventListener){let Y=b5.indexOf(this._offlineEventListener);if(Y!==-1)b5.splice(Y,1)}}this.readyState="closed",this.id=null,this.emitReserved("close",Z,J),this.writeBuffer=[],this._prevBufferLen=0}}}w1.protocol=i8;class r8 extends w1{constructor(){super(...arguments);this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let Z=0;Z<this._upgrades.length;Z++)this._probe(this._upgrades[Z])}_probe(Z){let J=this.createTransport(Z),Y=!1;w1.priorWebsocketSuccess=!1;let Q=()=>{if(Y)return;J.send([{type:"ping",data:"probe"}]),J.once("packet",(B)=>{if(Y)return;if(B.type==="pong"&&B.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",J),!J)return;w1.priorWebsocketSuccess=J.name==="websocket",this.transport.pause(()=>{if(Y)return;if(this.readyState==="closed")return;U(),this.setTransport(J),J.send([{type:"upgrade"}]),this.emitReserved("upgrade",J),J=null,this.upgrading=!1,this.flush()})}else{let L=Error("probe error");L.transport=J.name,this.emitReserved("upgradeError",L)}})};function X(){if(Y)return;Y=!0,U(),J.close(),J=null}let G=(B)=>{let L=Error("probe error: "+B);L.transport=J.name,X(),this.emitReserved("upgradeError",L)};function W(){G("transport closed")}function H(){G("socket closed")}function z(B){if(J&&B.name!==J.name)X()}let U=()=>{J.removeListener("open",Q),J.removeListener("error",G),J.removeListener("close",W),this.off("close",H),this.off("upgrading",z)};if(J.once("open",Q),J.once("error",G),J.once("close",W),this.once("close",H),this.once("upgrading",z),this._upgrades.indexOf("webtransport")!==-1&&Z!=="webtransport")this.setTimeoutFn(()=>{if(!Y)J.open()},200);else J.open()}onHandshake(Z){this._upgrades=this._filterUpgrades(Z.upgrades),super.onHandshake(Z)}_filterUpgrades(Z){let J=[];for(let Y=0;Y<Z.length;Y++)if(~this.transports.indexOf(Z[Y]))J.push(Z[Y]);return J}}class g0 extends r8{constructor(Z,J={}){let Y=typeof Z==="object"?Z:J;if(!Y.transports||Y.transports&&typeof Y.transports[0]==="string")Y.transports=(Y.transports||["polling","websocket","webtransport"]).map((Q)=>a8[Q]).filter((Q)=>!!Q);super(Z,Y)}}var RV=g0.protocol;function lJ(Z,J="",Y){let Q=Z;if(Y=Y||typeof location<"u"&&location,Z==null)Z=Y.protocol+"//"+Y.host;if(typeof Z==="string"){if(Z.charAt(0)==="/")if(Z.charAt(1)==="/")Z=Y.protocol+Z;else Z=Y.host+Z;if(!/^(https?|wss?):\/\//.test(Z))if(typeof Y<"u")Z=Y.protocol+"//"+Z;else Z="https://"+Z;Q=O0(Z)}if(!Q.port){if(/^(http|ws)$/.test(Q.protocol))Q.port="80";else if(/^(http|ws)s$/.test(Q.protocol))Q.port="443"}Q.path=Q.path||"/";let G=Q.host.indexOf(":")!==-1?"["+Q.host+"]":Q.host;return Q.id=Q.protocol+"://"+G+":"+Q.port+J,Q.href=Q.protocol+"://"+G+(Y&&Y.port===Q.port?"":":"+Q.port),Q}var J9={};H7(J9,{protocol:()=>sJ,isPacketValid:()=>fB,PacketType:()=>w,Encoder:()=>rJ,Decoder:()=>Z9});var RB=typeof ArrayBuffer==="function",PB=(Z)=>{return typeof ArrayBuffer.isView==="function"?ArrayBuffer.isView(Z):Z.buffer instanceof ArrayBuffer},iJ=Object.prototype.toString,TB=typeof Blob==="function"||typeof Blob<"u"&&iJ.call(Blob)==="[object BlobConstructor]",wB=typeof File==="function"||typeof File<"u"&&iJ.call(File)==="[object FileConstructor]";function m0(Z){return RB&&(Z instanceof ArrayBuffer||PB(Z))||TB&&Z instanceof Blob||wB&&Z instanceof File}function y0(Z,J){if(!Z||typeof Z!=="object")return!1;if(Array.isArray(Z)){for(let Y=0,Q=Z.length;Y<Q;Y++)if(y0(Z[Y]))return!0;return!1}if(m0(Z))return!0;if(Z.toJSON&&typeof Z.toJSON==="function"&&arguments.length===1)return y0(Z.toJSON(),!0);for(let Y in Z)if(Object.prototype.hasOwnProperty.call(Z,Y)&&y0(Z[Y]))return!0;return!1}function nJ(Z){let J=[],Y=Z.data,Q=Z;return Q.data=t8(Y,J),Q.attachments=J.length,{packet:Q,buffers:J}}function t8(Z,J){if(!Z)return Z;if(m0(Z)){let Y={_placeholder:!0,num:J.length};return J.push(Z),Y}else if(Array.isArray(Z)){let Y=Array(Z.length);for(let Q=0;Q<Z.length;Q++)Y[Q]=t8(Z[Q],J);return Y}else if(typeof Z==="object"&&!(Z instanceof Date)){let Y={};for(let Q in Z)if(Object.prototype.hasOwnProperty.call(Z,Q))Y[Q]=t8(Z[Q],J);return Y}return Z}function oJ(Z,J){return Z.data=e8(Z.data,J),delete Z.attachments,Z}function e8(Z,J){if(!Z)return Z;if(Z&&Z._placeholder===!0)if(typeof Z.num==="number"&&Z.num>=0&&Z.num<J.length)return J[Z.num];else throw Error("illegal attachments");else if(Array.isArray(Z))for(let Y=0;Y<Z.length;Y++)Z[Y]=e8(Z[Y],J);else if(typeof Z==="object"){for(let Y in Z)if(Object.prototype.hasOwnProperty.call(Z,Y))Z[Y]=e8(Z[Y],J)}return Z}var aJ=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],sJ=5,w;(function(Z){Z[Z.CONNECT=0]="CONNECT",Z[Z.DISCONNECT=1]="DISCONNECT",Z[Z.EVENT=2]="EVENT",Z[Z.ACK=3]="ACK",Z[Z.CONNECT_ERROR=4]="CONNECT_ERROR",Z[Z.BINARY_EVENT=5]="BINARY_EVENT",Z[Z.BINARY_ACK=6]="BINARY_ACK"})(w||(w={}));class rJ{constructor(Z){this.replacer=Z}encode(Z){if(Z.type===w.EVENT||Z.type===w.ACK){if(y0(Z))return this.encodeAsBinary({type:Z.type===w.EVENT?w.BINARY_EVENT:w.BINARY_ACK,nsp:Z.nsp,data:Z.data,id:Z.id})}return[this.encodeAsString(Z)]}encodeAsString(Z){let J=""+Z.type;if(Z.type===w.BINARY_EVENT||Z.type===w.BINARY_ACK)J+=Z.attachments+"-";if(Z.nsp&&Z.nsp!=="/")J+=Z.nsp+",";if(Z.id!=null)J+=Z.id;if(Z.data!=null)J+=JSON.stringify(Z.data,this.replacer);return J}encodeAsBinary(Z){let J=nJ(Z),Y=this.encodeAsString(J.packet),Q=J.buffers;return Q.unshift(Y),Q}}class Z9 extends j{constructor(Z){super();this.reviver=Z}add(Z){let J;if(typeof Z==="string"){if(this.reconstructor)throw Error("got plaintext data when reconstructing a packet");J=this.decodeString(Z);let Y=J.type===w.BINARY_EVENT;if(Y||J.type===w.BINARY_ACK){if(J.type=Y?w.EVENT:w.ACK,this.reconstructor=new tJ(J),J.attachments===0)super.emitReserved("decoded",J)}else super.emitReserved("decoded",J)}else if(m0(Z)||Z.base64){if(!this.reconstructor)throw Error("got binary data when not reconstructing a packet");else if(J=this.reconstructor.takeBinaryData(Z),J)this.reconstructor=null,super.emitReserved("decoded",J)}else throw Error("Unknown type: "+Z)}decodeString(Z){let J=0,Y={type:Number(Z.charAt(0))};if(w[Y.type]===void 0)throw Error("unknown packet type "+Y.type);if(Y.type===w.BINARY_EVENT||Y.type===w.BINARY_ACK){let X=J+1;while(Z.charAt(++J)!=="-"&&J!=Z.length);let G=Z.substring(X,J);if(G!=Number(G)||Z.charAt(J)!=="-")throw Error("Illegal attachments");Y.attachments=Number(G)}if(Z.charAt(J+1)==="/"){let X=J+1;while(++J){if(Z.charAt(J)===",")break;if(J===Z.length)break}Y.nsp=Z.substring(X,J)}else Y.nsp="/";let Q=Z.charAt(J+1);if(Q!==""&&Number(Q)==Q){let X=J+1;while(++J){let G=Z.charAt(J);if(G==null||Number(G)!=G){--J;break}if(J===Z.length)break}Y.id=Number(Z.substring(X,J+1))}if(Z.charAt(++J)){let X=this.tryParse(Z.substr(J));if(Z9.isPayloadValid(Y.type,X))Y.data=X;else throw Error("invalid payload")}return Y}tryParse(Z){try{return JSON.parse(Z,this.reviver)}catch(J){return!1}}static isPayloadValid(Z,J){switch(Z){case w.CONNECT:return g5(J);case w.DISCONNECT:return J===void 0;case w.CONNECT_ERROR:return typeof J==="string"||g5(J);case w.EVENT:case w.BINARY_EVENT:return Array.isArray(J)&&(typeof J[0]==="number"||typeof J[0]==="string"&&aJ.indexOf(J[0])===-1);case w.ACK:case w.BINARY_ACK:return Array.isArray(J)}}destroy(){if(this.reconstructor)this.reconstructor.finishedReconstruction(),this.reconstructor=null}}class tJ{constructor(Z){this.packet=Z,this.buffers=[],this.reconPack=Z}takeBinaryData(Z){if(this.buffers.push(Z),this.buffers.length===this.reconPack.attachments){let J=oJ(this.reconPack,this.buffers);return this.finishedReconstruction(),J}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function EB(Z){return typeof Z==="string"}var SB=Number.isInteger||function(Z){return typeof Z==="number"&&isFinite(Z)&&Math.floor(Z)===Z};function xB(Z){return Z===void 0||SB(Z)}function g5(Z){return Object.prototype.toString.call(Z)==="[object Object]"}function CB(Z,J){switch(Z){case w.CONNECT:return J===void 0||g5(J);case w.DISCONNECT:return J===void 0;case w.EVENT:return Array.isArray(J)&&(typeof J[0]==="number"||typeof J[0]==="string"&&aJ.indexOf(J[0])===-1);case w.ACK:return Array.isArray(J);case w.CONNECT_ERROR:return typeof J==="string"||g5(J);default:return!1}}function fB(Z){return EB(Z.nsp)&&xB(Z.id)&&CB(Z.type,Z.data)}function Y1(Z,J,Y){return Z.on(J,Y),function(){Z.off(J,Y)}}var jB=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class u0 extends j{constructor(Z,J,Y){super();if(this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=Z,this.nsp=J,Y&&Y.auth)this.auth=Y.auth;if(this._opts=Object.assign({},Y),this.io._autoConnect)this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let Z=this.io;this.subs=[Y1(Z,"open",this.onopen.bind(this)),Y1(Z,"packet",this.onpacket.bind(this)),Y1(Z,"error",this.onerror.bind(this)),Y1(Z,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){if(this.connected)return this;if(this.subEvents(),!this.io._reconnecting)this.io.open();if(this.io._readyState==="open")this.onopen();return this}open(){return this.connect()}send(...Z){return Z.unshift("message"),this.emit.apply(this,Z),this}emit(Z,...J){var Y,Q,X;if(jB.hasOwnProperty(Z))throw Error('"'+Z.toString()+'" is a reserved event name');if(J.unshift(Z),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(J),this;let G={type:w.EVENT,data:J};if(G.options={},G.options.compress=this.flags.compress!==!1,typeof J[J.length-1]==="function"){let U=this.ids++,B=J.pop();this._registerAckCallback(U,B),G.id=U}let W=(Q=(Y=this.io.engine)===null||Y===void 0?void 0:Y.transport)===null||Q===void 0?void 0:Q.writable,H=this.connected&&!((X=this.io.engine)===null||X===void 0?void 0:X._hasPingExpired());if(this.flags.volatile&&!W);else if(H)this.notifyOutgoingListeners(G),this.packet(G);else this.sendBuffer.push(G);return this.flags={},this}_registerAckCallback(Z,J){var Y;let Q=(Y=this.flags.timeout)!==null&&Y!==void 0?Y:this._opts.ackTimeout;if(Q===void 0){this.acks[Z]=J;return}let X=this.io.setTimeoutFn(()=>{delete this.acks[Z];for(let W=0;W<this.sendBuffer.length;W++)if(this.sendBuffer[W].id===Z)this.sendBuffer.splice(W,1);J.call(this,Error("operation has timed out"))},Q),G=(...W)=>{this.io.clearTimeoutFn(X),J.apply(this,W)};G.withError=!0,this.acks[Z]=G}emitWithAck(Z,...J){return new Promise((Y,Q)=>{let X=(G,W)=>{return G?Q(G):Y(W)};X.withError=!0,J.push(X),this.emit(Z,...J)})}_addToQueue(Z){let J;if(typeof Z[Z.length-1]==="function")J=Z.pop();let Y={id:this._queueSeq++,tryCount:0,pending:!1,args:Z,flags:Object.assign({fromQueue:!0},this.flags)};Z.push((Q,...X)=>{if(Y!==this._queue[0]);if(Q!==null){if(Y.tryCount>this._opts.retries){if(this._queue.shift(),J)J(Q)}}else if(this._queue.shift(),J)J(null,...X);return Y.pending=!1,this._drainQueue()}),this._queue.push(Y),this._drainQueue()}_drainQueue(Z=!1){if(!this.connected||this._queue.length===0)return;let J=this._queue[0];if(J.pending&&!Z)return;J.pending=!0,J.tryCount++,this.flags=J.flags,this.emit.apply(this,J.args)}packet(Z){Z.nsp=this.nsp,this.io._packet(Z)}onopen(){if(typeof this.auth=="function")this.auth((Z)=>{this._sendConnectPacket(Z)});else this._sendConnectPacket(this.auth)}_sendConnectPacket(Z){this.packet({type:w.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},Z):Z})}onerror(Z){if(!this.connected)this.emitReserved("connect_error",Z)}onclose(Z,J){this.connected=!1,delete this.id,this.emitReserved("disconnect",Z,J),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach((Z)=>{if(!this.sendBuffer.some((Y)=>String(Y.id)===Z)){let Y=this.acks[Z];if(delete this.acks[Z],Y.withError)Y.call(this,Error("socket has been disconnected"))}})}onpacket(Z){if(Z.nsp!==this.nsp)return;switch(Z.type){case w.CONNECT:if(Z.data&&Z.data.sid)this.onconnect(Z.data.sid,Z.data.pid);else this.emitReserved("connect_error",Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case w.EVENT:case w.BINARY_EVENT:this.onevent(Z);break;case w.ACK:case w.BINARY_ACK:this.onack(Z);break;case w.DISCONNECT:this.ondisconnect();break;case w.CONNECT_ERROR:this.destroy();let Y=Error(Z.data.message);Y.data=Z.data.data,this.emitReserved("connect_error",Y);break}}onevent(Z){let J=Z.data||[];if(Z.id!=null)J.push(this.ack(Z.id));if(this.connected)this.emitEvent(J);else this.receiveBuffer.push(Object.freeze(J))}emitEvent(Z){if(this._anyListeners&&this._anyListeners.length){let J=this._anyListeners.slice();for(let Y of J)Y.apply(this,Z)}if(super.emit.apply(this,Z),this._pid&&Z.length&&typeof Z[Z.length-1]==="string")this._lastOffset=Z[Z.length-1]}ack(Z){let J=this,Y=!1;return function(...Q){if(Y)return;Y=!0,J.packet({type:w.ACK,id:Z,data:Q})}}onack(Z){let J=this.acks[Z.id];if(typeof J!=="function")return;if(delete this.acks[Z.id],J.withError)Z.data.unshift(null);J.apply(this,Z.data)}onconnect(Z,J){this.id=Z,this.recovered=J&&this._pid===J,this._pid=J,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach((Z)=>this.emitEvent(Z)),this.receiveBuffer=[],this.sendBuffer.forEach((Z)=>{this.notifyOutgoingListeners(Z),this.packet(Z)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){if(this.subs)this.subs.forEach((Z)=>Z()),this.subs=void 0;this.io._destroy(this)}disconnect(){if(this.connected)this.packet({type:w.DISCONNECT});if(this.destroy(),this.connected)this.onclose("io client disconnect");return this}close(){return this.disconnect()}compress(Z){return this.flags.compress=Z,this}get volatile(){return this.flags.volatile=!0,this}timeout(Z){return this.flags.timeout=Z,this}onAny(Z){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(Z),this}prependAny(Z){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(Z),this}offAny(Z){if(!this._anyListeners)return this;if(Z){let J=this._anyListeners;for(let Y=0;Y<J.length;Y++)if(Z===J[Y])return J.splice(Y,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(Z){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(Z),this}prependAnyOutgoing(Z){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(Z),this}offAnyOutgoing(Z){if(!this._anyOutgoingListeners)return this;if(Z){let J=this._anyOutgoingListeners;for(let Y=0;Y<J.length;Y++)if(Z===J[Y])return J.splice(Y,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(Z){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let J=this._anyOutgoingListeners.slice();for(let Y of J)Y.apply(this,Z.data)}}}function Z0(Z){Z=Z||{},this.ms=Z.min||100,this.max=Z.max||1e4,this.factor=Z.factor||2,this.jitter=Z.jitter>0&&Z.jitter<=1?Z.jitter:0,this.attempts=0}Z0.prototype.duration=function(){var Z=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var J=Math.random(),Y=Math.floor(J*this.jitter*Z);Z=(Math.floor(J*10)&1)==0?Z-Y:Z+Y}return Math.min(Z,this.max)|0};Z0.prototype.reset=function(){this.attempts=0};Z0.prototype.setMin=function(Z){this.ms=Z};Z0.prototype.setMax=function(Z){this.max=Z};Z0.prototype.setJitter=function(Z){this.jitter=Z};class d0 extends j{constructor(Z,J){var Y;super();if(this.nsps={},this.subs=[],Z&&typeof Z==="object")J=Z,Z=void 0;J=J||{},J.path=J.path||"/socket.io",this.opts=J,T1(this,J),this.reconnection(J.reconnection!==!1),this.reconnectionAttempts(J.reconnectionAttempts||1/0),this.reconnectionDelay(J.reconnectionDelay||1000),this.reconnectionDelayMax(J.reconnectionDelayMax||5000),this.randomizationFactor((Y=J.randomizationFactor)!==null&&Y!==void 0?Y:0.5),this.backoff=new Z0({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(J.timeout==null?20000:J.timeout),this._readyState="closed",this.uri=Z;let Q=J.parser||J9;if(this.encoder=new Q.Encoder,this.decoder=new Q.Decoder,this._autoConnect=J.autoConnect!==!1,this._autoConnect)this.open()}reconnection(Z){if(!arguments.length)return this._reconnection;if(this._reconnection=!!Z,!Z)this.skipReconnect=!0;return this}reconnectionAttempts(Z){if(Z===void 0)return this._reconnectionAttempts;return this._reconnectionAttempts=Z,this}reconnectionDelay(Z){var J;if(Z===void 0)return this._reconnectionDelay;return this._reconnectionDelay=Z,(J=this.backoff)===null||J===void 0||J.setMin(Z),this}randomizationFactor(Z){var J;if(Z===void 0)return this._randomizationFactor;return this._randomizationFactor=Z,(J=this.backoff)===null||J===void 0||J.setJitter(Z),this}reconnectionDelayMax(Z){var J;if(Z===void 0)return this._reconnectionDelayMax;return this._reconnectionDelayMax=Z,(J=this.backoff)===null||J===void 0||J.setMax(Z),this}timeout(Z){if(!arguments.length)return this._timeout;return this._timeout=Z,this}maybeReconnectOnOpen(){if(!this._reconnecting&&this._reconnection&&this.backoff.attempts===0)this.reconnect()}open(Z){if(~this._readyState.indexOf("open"))return this;this.engine=new g0(this.uri,this.opts);let J=this.engine,Y=this;this._readyState="opening",this.skipReconnect=!1;let Q=Y1(J,"open",function(){Y.onopen(),Z&&Z()}),X=(W)=>{if(this.cleanup(),this._readyState="closed",this.emitReserved("error",W),Z)Z(W);else this.maybeReconnectOnOpen()},G=Y1(J,"error",X);if(this._timeout!==!1){let W=this._timeout,H=this.setTimeoutFn(()=>{Q(),X(Error("timeout")),J.close()},W);if(this.opts.autoUnref)H.unref();this.subs.push(()=>{this.clearTimeoutFn(H)})}return this.subs.push(Q),this.subs.push(G),this}connect(Z){return this.open(Z)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let Z=this.engine;this.subs.push(Y1(Z,"ping",this.onping.bind(this)),Y1(Z,"data",this.ondata.bind(this)),Y1(Z,"error",this.onerror.bind(this)),Y1(Z,"close",this.onclose.bind(this)),Y1(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(Z){try{this.decoder.add(Z)}catch(J){this.onclose("parse error",J)}}ondecoded(Z){P1(()=>{this.emitReserved("packet",Z)},this.setTimeoutFn)}onerror(Z){this.emitReserved("error",Z)}socket(Z,J){let Y=this.nsps[Z];if(!Y)Y=new u0(this,Z,J),this.nsps[Z]=Y;else if(this._autoConnect&&!Y.active)Y.connect();return Y}_destroy(Z){let J=Object.keys(this.nsps);for(let Y of J)if(this.nsps[Y].active)return;this._close()}_packet(Z){let J=this.encoder.encode(Z);for(let Y=0;Y<J.length;Y++)this.engine.write(J[Y],Z.options)}cleanup(){this.subs.forEach((Z)=>Z()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(Z,J){var Y;if(this.cleanup(),(Y=this.engine)===null||Y===void 0||Y.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",Z,J),this._reconnection&&!this.skipReconnect)this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let Z=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let J=this.backoff.duration();this._reconnecting=!0;let Y=this.setTimeoutFn(()=>{if(Z.skipReconnect)return;if(this.emitReserved("reconnect_attempt",Z.backoff.attempts),Z.skipReconnect)return;Z.open((Q)=>{if(Q)Z._reconnecting=!1,Z.reconnect(),this.emitReserved("reconnect_error",Q);else Z.onreconnect()})},J);if(this.opts.autoUnref)Y.unref();this.subs.push(()=>{this.clearTimeoutFn(Y)})}}onreconnect(){let Z=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",Z)}}var c0={};function p0(Z,J){if(typeof Z==="object")J=Z,Z=void 0;J=J||{};let Y=lJ(Z,J.path||"/socket.io"),Q=Y.source,X=Y.id,G=Y.path,W=c0[X]&&G in c0[X].nsps,H=J.forceNew||J["force new connection"]||J.multiplex===!1||W,z;if(H)z=new d0(Q,J);else{if(!c0[X])c0[X]=new d0(Q,J);z=c0[X]}if(Y.query&&!J.query)J.query=Y.queryKey;return z.socket(Y.path,J)}Object.assign(p0,{Manager:d0,Socket:u0,io:p0,connect:p0});import{createContext as _B}from"react";var y5=(Z)=>p0(Z,{autoConnect:!1,transports:["websocket"]}),vB=_B(null),u1=vB;import{createContext as rB}from"react";function l(Z,J,Y,Q){function X(G){return G instanceof Y?G:new Y(function(W){W(G)})}return new(Y||(Y=Promise))(function(G,W){function H(B){try{U(Q.next(B))}catch(L){W(L)}}function z(B){try{U(Q.throw(B))}catch(L){W(L)}}function U(B){B.done?G(B.value):X(B.value).then(H,z)}U((Q=Q.apply(Z,J||[])).next())})}function kB(Z){return Z&&Z.__esModule&&Object.prototype.hasOwnProperty.call(Z,"default")?Z.default:Z}var G9={exports:{}},I0=typeof Reflect==="object"?Reflect:null,eJ=I0&&typeof I0.apply==="function"?I0.apply:function(J,Y,Q){return Function.prototype.apply.call(J,Y,Q)},m5;if(I0&&typeof I0.ownKeys==="function")m5=I0.ownKeys;else if(Object.getOwnPropertySymbols)m5=function(J){return Object.getOwnPropertyNames(J).concat(Object.getOwnPropertySymbols(J))};else m5=function(J){return Object.getOwnPropertyNames(J)};function hB(Z){if(console&&console.warn)console.warn(Z)}var JY=Number.isNaN||function(J){return J!==J};function f(){f.init.call(this)}G9.exports=f;G9.exports.once=mB;f.EventEmitter=f;f.prototype._events=void 0;f.prototype._eventsCount=0;f.prototype._maxListeners=void 0;var ZY=10;function l5(Z){if(typeof Z!=="function")throw TypeError('The "listener" argument must be of type Function. Received type '+typeof Z)}Object.defineProperty(f,"defaultMaxListeners",{enumerable:!0,get:function(){return ZY},set:function(Z){if(typeof Z!=="number"||Z<0||JY(Z))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+Z+".");ZY=Z}});f.init=function(){if(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)this._events=Object.create(null),this._eventsCount=0;this._maxListeners=this._maxListeners||void 0};f.prototype.setMaxListeners=function(J){if(typeof J!=="number"||J<0||JY(J))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+J+".");return this._maxListeners=J,this};function YY(Z){if(Z._maxListeners===void 0)return f.defaultMaxListeners;return Z._maxListeners}f.prototype.getMaxListeners=function(){return YY(this)};f.prototype.emit=function(J){var Y=[];for(var Q=1;Q<arguments.length;Q++)Y.push(arguments[Q]);var X=J==="error",G=this._events;if(G!==void 0)X=X&&G.error===void 0;else if(!X)return!1;if(X){var W;if(Y.length>0)W=Y[0];if(W instanceof Error)throw W;var H=Error("Unhandled error."+(W?" ("+W.message+")":""));throw H.context=W,H}var z=G[J];if(z===void 0)return!1;if(typeof z==="function")eJ(z,this,Y);else{var U=z.length,B=HY(z,U);for(var Q=0;Q<U;++Q)eJ(B[Q],this,Y)}return!0};function QY(Z,J,Y,Q){var X,G,W;if(l5(Y),G=Z._events,G===void 0)G=Z._events=Object.create(null),Z._eventsCount=0;else{if(G.newListener!==void 0)Z.emit("newListener",J,Y.listener?Y.listener:Y),G=Z._events;W=G[J]}if(W===void 0)W=G[J]=Y,++Z._eventsCount;else{if(typeof W==="function")W=G[J]=Q?[Y,W]:[W,Y];else if(Q)W.unshift(Y);else W.push(Y);if(X=YY(Z),X>0&&W.length>X&&!W.warned){W.warned=!0;var H=Error("Possible EventEmitter memory leak detected. "+W.length+" "+String(J)+" listeners added. Use emitter.setMaxListeners() to increase limit");H.name="MaxListenersExceededWarning",H.emitter=Z,H.type=J,H.count=W.length,hB(H)}}return Z}f.prototype.addListener=function(J,Y){return QY(this,J,Y,!1)};f.prototype.on=f.prototype.addListener;f.prototype.prependListener=function(J,Y){return QY(this,J,Y,!0)};function bB(){if(!this.fired){if(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0)return this.listener.call(this.target);return this.listener.apply(this.target,arguments)}}function XY(Z,J,Y){var Q={fired:!1,wrapFn:void 0,target:Z,type:J,listener:Y},X=bB.bind(Q);return X.listener=Y,Q.wrapFn=X,X}f.prototype.once=function(J,Y){return l5(Y),this.on(J,XY(this,J,Y)),this};f.prototype.prependOnceListener=function(J,Y){return l5(Y),this.prependListener(J,XY(this,J,Y)),this};f.prototype.removeListener=function(J,Y){var Q,X,G,W,H;if(l5(Y),X=this._events,X===void 0)return this;if(Q=X[J],Q===void 0)return this;if(Q===Y||Q.listener===Y){if(--this._eventsCount===0)this._events=Object.create(null);else if(delete X[J],X.removeListener)this.emit("removeListener",J,Q.listener||Y)}else if(typeof Q!=="function"){G=-1;for(W=Q.length-1;W>=0;W--)if(Q[W]===Y||Q[W].listener===Y){H=Q[W].listener,G=W;break}if(G<0)return this;if(G===0)Q.shift();else gB(Q,G);if(Q.length===1)X[J]=Q[0];if(X.removeListener!==void 0)this.emit("removeListener",J,H||Y)}return this};f.prototype.off=f.prototype.removeListener;f.prototype.removeAllListeners=function(J){var Y,Q,X;if(Q=this._events,Q===void 0)return this;if(Q.removeListener===void 0){if(arguments.length===0)this._events=Object.create(null),this._eventsCount=0;else if(Q[J]!==void 0)if(--this._eventsCount===0)this._events=Object.create(null);else delete Q[J];return this}if(arguments.length===0){var G=Object.keys(Q),W;for(X=0;X<G.length;++X){if(W=G[X],W==="removeListener")continue;this.removeAllListeners(W)}return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(Y=Q[J],typeof Y==="function")this.removeListener(J,Y);else if(Y!==void 0)for(X=Y.length-1;X>=0;X--)this.removeListener(J,Y[X]);return this};function GY(Z,J,Y){var Q=Z._events;if(Q===void 0)return[];var X=Q[J];if(X===void 0)return[];if(typeof X==="function")return Y?[X.listener||X]:[X];return Y?yB(X):HY(X,X.length)}f.prototype.listeners=function(J){return GY(this,J,!0)};f.prototype.rawListeners=function(J){return GY(this,J,!1)};f.listenerCount=function(Z,J){if(typeof Z.listenerCount==="function")return Z.listenerCount(J);else return WY.call(Z,J)};f.prototype.listenerCount=WY;function WY(Z){var J=this._events;if(J!==void 0){var Y=J[Z];if(typeof Y==="function")return 1;else if(Y!==void 0)return Y.length}return 0}f.prototype.eventNames=function(){return this._eventsCount>0?m5(this._events):[]};function HY(Z,J){var Y=Array(J);for(var Q=0;Q<J;++Q)Y[Q]=Z[Q];return Y}function gB(Z,J){for(;J+1<Z.length;J++)Z[J]=Z[J+1];Z.pop()}function yB(Z){var J=Array(Z.length);for(var Y=0;Y<J.length;++Y)J[Y]=Z[Y].listener||Z[Y];return J}function mB(Z,J){return new Promise(function(Y,Q){function X(W){Z.removeListener(J,G),Q(W)}function G(){if(typeof Z.removeListener==="function")Z.removeListener("error",X);Y([].slice.call(arguments))}if(zY(Z,J,G,{once:!0}),J!=="error")uB(Z,X,{once:!0})})}function uB(Z,J,Y){if(typeof Z.on==="function")zY(Z,"error",J,Y)}function zY(Z,J,Y,Q){if(typeof Z.on==="function")if(Q.once)Z.once(J,Y);else Z.on(J,Y);else if(typeof Z.addEventListener==="function")Z.addEventListener(J,function X(G){if(Q.once)Z.removeEventListener(J,X);Y(G)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof Z)}var dB=G9.exports,UY=kB(dB),_;(function(Z){Z[Z.timeout=1]="timeout",Z[Z.transportClosed=2]="transportClosed",Z[Z.clientDisconnected=3]="clientDisconnected",Z[Z.clientClosed=4]="clientClosed",Z[Z.clientConnectToken=5]="clientConnectToken",Z[Z.clientRefreshToken=6]="clientRefreshToken",Z[Z.subscriptionUnsubscribed=7]="subscriptionUnsubscribed",Z[Z.subscriptionSubscribeToken=8]="subscriptionSubscribeToken",Z[Z.subscriptionRefreshToken=9]="subscriptionRefreshToken",Z[Z.transportWriteError=10]="transportWriteError",Z[Z.connectionClosed=11]="connectionClosed",Z[Z.badConfiguration=12]="badConfiguration"})(_||(_={}));var d1;(function(Z){Z[Z.connectCalled=0]="connectCalled",Z[Z.transportClosed=1]="transportClosed",Z[Z.noPing=2]="noPing",Z[Z.subscribeTimeout=3]="subscribeTimeout",Z[Z.unsubscribeError=4]="unsubscribeError"})(d1||(d1={}));var l0;(function(Z){Z[Z.disconnectCalled=0]="disconnectCalled",Z[Z.unauthorized=1]="unauthorized",Z[Z.badProtocol=2]="badProtocol",Z[Z.messageSizeLimit=3]="messageSizeLimit"})(l0||(l0={}));var u5;(function(Z){Z[Z.subscribeCalled=0]="subscribeCalled",Z[Z.transportClosed=1]="transportClosed"})(u5||(u5={}));var d5;(function(Z){Z[Z.unsubscribeCalled=0]="unsubscribeCalled",Z[Z.unauthorized=1]="unauthorized",Z[Z.clientClosed=2]="clientClosed"})(d5||(d5={}));var Y9;(function(Z){Z[Z.channelCompaction=1]="channelCompaction"})(Y9||(Y9={}));var h;(function(Z){Z.Disconnected="disconnected",Z.Connecting="connecting",Z.Connected="connected"})(h||(h={}));var o;(function(Z){Z.Unsubscribed="unsubscribed",Z.Subscribing="subscribing",Z.Subscribed="subscribed"})(o||(o={}));function cB(Z,J){return Z.lastIndexOf(J,0)===0}function BY(Z){if(Z===void 0||Z===null)return!1;return typeof Z==="function"}function pB(Z,J){if(globalThis.console){let Y=globalThis.console[Z];if(BY(Y))Y.apply(globalThis.console,J)}}function lB(Z,J){return Math.floor(Math.random()*(J-Z+1)+Z)}function c5(Z,J,Y){if(Z>31)Z=31;let Q=lB(0,Math.min(Y,J*Math.pow(2,Z)));return Math.min(Y,J+Q)}function iB(Z){return"error"in Z&&Z.error!==null}function p5(Z){return Math.min(Z*1000,2147483647)}class KY extends UY{constructor(Z,J,Y){super();if(this._resubscribeTimeout=null,this._refreshTimeout=null,this.channel=J,this.state=o.Unsubscribed,this._centrifuge=Z,this._token="",this._getToken=null,this._data=null,this._getData=null,this._recover=!1,this._offset=null,this._epoch=null,this._id=0,this._recoverable=!1,this._positioned=!1,this._joinLeave=!1,this._minResubscribeDelay=500,this._maxResubscribeDelay=20000,this._resubscribeTimeout=null,this._resubscribeAttempts=0,this._promises={},this._promiseId=0,this._inflight=!1,this._refreshTimeout=null,this._delta="",this._delta_negotiated=!1,this._tagsFilter=null,this._prevValue=null,this._unsubPromise=Promise.resolve(),this._setOptions(Y),this._centrifuge._debugEnabled)this.on("state",(Q)=>{this._debug("subscription state",J,Q.oldState,"->",Q.newState)}),this.on("error",(Q)=>{this._debug("subscription error",J,Q)});else this.on("error",function(){Function.prototype()})}ready(Z){if(this.state===o.Unsubscribed)return Promise.reject({code:_.subscriptionUnsubscribed,message:this.state});if(this.state===o.Subscribed)return Promise.resolve();return new Promise((J,Y)=>{let Q={resolve:J,reject:Y};if(Z)Q.timeout=setTimeout(function(){Y({code:_.timeout,message:"timeout"})},Z);this._promises[this._nextPromiseId()]=Q})}subscribe(){if(this._isSubscribed())return;this._resubscribeAttempts=0,this._setSubscribing(u5.subscribeCalled,"subscribe called")}unsubscribe(){this._unsubPromise=this._setUnsubscribed(d5.unsubscribeCalled,"unsubscribe called",!0)}publish(Z){return l(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.publish(this.channel,Z)})}presence(){return l(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.presence(this.channel)})}presenceStats(){return l(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.presenceStats(this.channel)})}history(Z){return l(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.history(this.channel,Z)})}setTagsFilter(Z){if(Z&&this._delta)throw Error("cannot use delta and tagsFilter together");this._tagsFilter=Z}setData(Z){this._data=Z}_methodCall(){if(this._isSubscribed())return Promise.resolve();if(this._isUnsubscribed())return Promise.reject({code:_.subscriptionUnsubscribed,message:this.state});return new Promise((Z,J)=>{let Y=this._centrifuge._config.timeout,Q=setTimeout(()=>{J({code:_.timeout,message:"timeout"})},Y);this._promises[this._nextPromiseId()]={timeout:Q,resolve:Z,reject:J}})}_nextPromiseId(){return++this._promiseId}_needRecover(){return this._recover===!0}_isUnsubscribed(){return this.state===o.Unsubscribed}_isSubscribing(){return this.state===o.Subscribing}_isSubscribed(){return this.state===o.Subscribed}_setState(Z){if(this.state!==Z){let J=this.state;return this.state=Z,this.emit("state",{newState:Z,oldState:J,channel:this.channel}),!0}return!1}_usesToken(){return this._token!==""||this._getToken!==null}_clearSubscribingState(){this._resubscribeAttempts=0,this._clearResubscribeTimeout()}_clearSubscribedState(){this._clearRefreshTimeout()}_setSubscribed(Z){if(!this._isSubscribing())return;if(this._clearSubscribingState(),Z.id)this._id=Z.id;if(Z.recoverable)this._recover=!0,this._offset=Z.offset||0,this._epoch=Z.epoch||"";if(Z.delta)this._delta_negotiated=!0;else this._delta_negotiated=!1;this._setState(o.Subscribed);let J=this._centrifuge._getSubscribeContext(this.channel,Z);this.emit("subscribed",J),this._resolvePromises();let Y=Z.publications;if(Y&&Y.length>0)for(let Q in Y){if(!Y.hasOwnProperty(Q))continue;this._handlePublication(Y[Q])}if(Z.expires===!0)this._refreshTimeout=setTimeout(()=>this._refresh(),p5(Z.ttl))}_setSubscribing(Z,J){return l(this,void 0,void 0,function*(){if(this._isSubscribing())return;if(this._isSubscribed())this._clearSubscribedState();if(this._setState(o.Subscribing))this.emit("subscribing",{channel:this.channel,code:Z,reason:J});if(this._centrifuge._transport&&this._centrifuge._transport.emulation())yield this._unsubPromise;if(!this._isSubscribing())return;this._subscribe()})}_subscribe(){if(this._debug("subscribing on",this.channel),!this._isTransportOpen())return this._debug("delay subscribe on",this.channel,"till connected"),null;if(this._inflight)return null;if(this._inflight=!0,this._canSubscribeWithoutGettingToken())return this._subscribeWithoutToken();return this._getSubscriptionToken().then((Z)=>this._handleTokenResponse(Z)).catch((Z)=>this._handleTokenError(Z)),null}_isTransportOpen(){return this._centrifuge._transportIsOpen}_canSubscribeWithoutGettingToken(){return!this._usesToken()||!!this._token}_subscribeWithoutToken(){if(this._getData)return this._getDataAndSubscribe(this._token),null;else return this._sendSubscribe(this._token)}_getDataAndSubscribe(Z){if(!this._getData){this._inflight=!1;return}this._getData({channel:this.channel}).then((J)=>{if(!this._isSubscribing()){this._inflight=!1;return}this._data=J,this._sendSubscribe(Z)}).catch((J)=>this._handleGetDataError(J))}_handleGetDataError(Z){if(!this._isSubscribing()){this._inflight=!1;return}if(Z instanceof I1){this._inflight=!1,this._failUnauthorized();return}this.emit("error",{type:"subscribeData",channel:this.channel,error:{code:_.badConfiguration,message:(Z===null||Z===void 0?void 0:Z.toString())||""}}),this._inflight=!1,this._scheduleResubscribe()}_handleTokenResponse(Z){if(!this._isSubscribing()){this._inflight=!1;return}if(!Z){this._inflight=!1,this._failUnauthorized();return}if(this._token=Z,this._getData)this._getDataAndSubscribe(Z);else this._sendSubscribe(Z)}_handleTokenError(Z){if(!this._isSubscribing()){this._inflight=!1;return}if(Z instanceof I1){this._inflight=!1,this._failUnauthorized();return}this.emit("error",{type:"subscribeToken",channel:this.channel,error:{code:_.subscriptionSubscribeToken,message:(Z===null||Z===void 0?void 0:Z.toString())||""}}),this._inflight=!1,this._scheduleResubscribe()}_sendSubscribe(Z){if(!this._isTransportOpen())return this._inflight=!1,null;let J=this._buildSubscribeCommand(Z);return this._centrifuge._call(J).then((Y)=>{this._inflight=!1;let Q=Y.reply.subscribe;if(this._handleSubscribeResponse(Q),Y.next)Y.next()},(Y)=>{if(this._inflight=!1,this._handleSubscribeError(Y.error),Y.next)Y.next()}),J}_buildSubscribeCommand(Z){let J={channel:this.channel};if(Z)J.token=Z;if(this._data)J.data=this._data;if(this._positioned)J.positioned=!0;if(this._recoverable)J.recoverable=!0;if(this._joinLeave)J.join_leave=!0;if(J.flag=Y9.channelCompaction,this._needRecover()){J.recover=!0;let Y=this._getOffset();if(Y)J.offset=Y;let Q=this._getEpoch();if(Q)J.epoch=Q}if(this._delta)J.delta=this._delta;if(this._tagsFilter)J.tf=this._tagsFilter;return{subscribe:J}}_debug(...Z){this._centrifuge._debug(...Z)}_handleSubscribeError(Z){if(!this._isSubscribing())return;if(Z.code===_.timeout){this._centrifuge._disconnect(d1.subscribeTimeout,"subscribe timeout",!0);return}this._subscribeError(Z)}_handleSubscribeResponse(Z){if(!this._isSubscribing())return;this._setSubscribed(Z)}_setUnsubscribed(Z,J,Y){if(this._isUnsubscribed())return Promise.resolve();let Q=Promise.resolve();if(this._isSubscribed()){if(Y)Q=this._centrifuge._unsubscribe(this);this._clearSubscribedState()}else if(this._isSubscribing()){if(this._inflight&&Y)Q=this._centrifuge._unsubscribe(this);this._clearSubscribingState()}if(this._inflight=!1,this._setState(o.Unsubscribed))this.emit("unsubscribed",{channel:this.channel,code:Z,reason:J});return this._rejectPromises({code:_.subscriptionUnsubscribed,message:this.state}),Q}_handlePublication(Z){if(this._delta&&this._delta_negotiated){let{newData:Y,newPrevValue:Q}=this._centrifuge._codec.applyDeltaIfNeeded(Z,this._prevValue);Z.data=Y,this._prevValue=Q}let J=this._centrifuge._getPublicationContext(this.channel,Z);if(this.emit("publication",J),Z.offset)this._offset=Z.offset}_handleJoin(Z){let J=this._centrifuge._getJoinLeaveContext(Z.info);this.emit("join",{channel:this.channel,info:J})}_handleLeave(Z){let J=this._centrifuge._getJoinLeaveContext(Z.info);this.emit("leave",{channel:this.channel,info:J})}_resolvePromises(){for(let Z in this._promises){if(!this._promises.hasOwnProperty(Z))continue;if(this._promises[Z].timeout)clearTimeout(this._promises[Z].timeout);this._promises[Z].resolve(),delete this._promises[Z]}}_rejectPromises(Z){for(let J in this._promises){if(!this._promises.hasOwnProperty(J))continue;if(this._promises[J].timeout)clearTimeout(this._promises[J].timeout);this._promises[J].reject(Z),delete this._promises[J]}}_scheduleResubscribe(){if(!this._isSubscribing()){this._debug("not in subscribing state, skip resubscribe scheduling",this.channel);return}let Z=this,J=this._getResubscribeDelay();this._resubscribeTimeout=setTimeout(function(){if(Z._isSubscribing())Z._subscribe()},J),this._debug("resubscribe scheduled after "+J,this.channel)}_subscribeError(Z){if(!this._isSubscribing())return;if(Z.code<100||Z.code===109||Z.temporary===!0){if(Z.code===109)this._token="";let J={channel:this.channel,type:"subscribe",error:Z};if(this._centrifuge.state===h.Connected)this.emit("error",J);this._scheduleResubscribe()}else this._setUnsubscribed(Z.code,Z.message,!1)}_getResubscribeDelay(){let Z=c5(this._resubscribeAttempts,this._minResubscribeDelay,this._maxResubscribeDelay);return this._resubscribeAttempts++,Z}_setOptions(Z){if(!Z)return;if(Z.since)this._offset=Z.since.offset||0,this._epoch=Z.since.epoch||"",this._recover=!0;if(Z.data)this._data=Z.data;if(Z.getData)this._getData=Z.getData;if(Z.minResubscribeDelay!==void 0)this._minResubscribeDelay=Z.minResubscribeDelay;if(Z.maxResubscribeDelay!==void 0)this._maxResubscribeDelay=Z.maxResubscribeDelay;if(Z.token)this._token=Z.token;if(Z.getToken)this._getToken=Z.getToken;if(Z.positioned===!0)this._positioned=!0;if(Z.recoverable===!0)this._recoverable=!0;if(Z.joinLeave===!0)this._joinLeave=!0;if(Z.delta){if(Z.delta!=="fossil")throw Error("unsupported delta format");this._delta=Z.delta}if(Z.tagsFilter)this._tagsFilter=Z.tagsFilter;if(this._tagsFilter&&this._delta)throw Error("cannot use delta and tagsFilter together")}_getOffset(){let Z=this._offset;if(Z!==null)return Z;return 0}_getEpoch(){let Z=this._epoch;if(Z!==null)return Z;return""}_clearRefreshTimeout(){if(this._refreshTimeout!==null)clearTimeout(this._refreshTimeout),this._refreshTimeout=null}_clearResubscribeTimeout(){if(this._resubscribeTimeout!==null)clearTimeout(this._resubscribeTimeout),this._resubscribeTimeout=null}_getSubscriptionToken(){this._debug("get subscription token for channel",this.channel);let Z={channel:this.channel},J=this._getToken;if(J===null)return this.emit("error",{type:"configuration",channel:this.channel,error:{code:_.badConfiguration,message:"provide a function to get channel subscription token"}}),Promise.reject(new I1(""));return J(Z)}_refresh(){this._clearRefreshTimeout();let Z=this;this._getSubscriptionToken().then(function(J){if(!Z._isSubscribed())return;if(!J){Z._failUnauthorized();return}Z._token=J;let Q={sub_refresh:{channel:Z.channel,token:J}};Z._centrifuge._call(Q).then((X)=>{let G=X.reply.sub_refresh;if(Z._refreshResponse(G),X.next)X.next()},(X)=>{if(Z._refreshError(X.error),X.next)X.next()})}).catch(function(J){if(J instanceof I1){Z._failUnauthorized();return}Z.emit("error",{type:"refreshToken",channel:Z.channel,error:{code:_.subscriptionRefreshToken,message:J!==void 0?J.toString():""}}),Z._refreshTimeout=setTimeout(()=>Z._refresh(),Z._getRefreshRetryDelay())})}_refreshResponse(Z){if(!this._isSubscribed())return;if(this._debug("subscription token refreshed, channel",this.channel),this._clearRefreshTimeout(),Z.expires===!0)this._refreshTimeout=setTimeout(()=>this._refresh(),p5(Z.ttl))}_refreshError(Z){if(!this._isSubscribed())return;if(Z.code<100||Z.temporary===!0)this.emit("error",{type:"refresh",channel:this.channel,error:Z}),this._refreshTimeout=setTimeout(()=>this._refresh(),this._getRefreshRetryDelay());else this._setUnsubscribed(Z.code,Z.message,!0)}_getRefreshRetryDelay(){return c5(0,1e4,20000)}_failUnauthorized(){this._setUnsubscribed(d5.unauthorized,"unauthorized",!0)}}class LY{constructor(Z,J){this.endpoint=Z,this.options=J,this._transport=null}name(){return"sockjs"}subName(){return"sockjs-"+this._transport.transport}emulation(){return!1}supported(){return this.options.sockjs!==null}initialize(Z,J){this._transport=new this.options.sockjs(this.endpoint,null,this.options.sockjsOptions),this._transport.onopen=()=>{J.onOpen()},this._transport.onerror=(Y)=>{J.onError(Y)},this._transport.onclose=(Y)=>{J.onClose(Y)},this._transport.onmessage=(Y)=>{J.onMessage(Y.data)}}close(){this._transport.close()}send(Z){this._transport.send(Z)}}class Q9{constructor(Z,J){this.endpoint=Z,this.options=J,this._transport=null}name(){return"websocket"}subName(){return"websocket"}emulation(){return!1}supported(){return this.options.websocket!==void 0&&this.options.websocket!==null}initialize(Z,J){let Y="";if(Z==="protobuf")Y="centrifuge-protobuf";if(Y!=="")this._transport=new this.options.websocket(this.endpoint,Y);else this._transport=new this.options.websocket(this.endpoint);if(Z==="protobuf")this._transport.binaryType="arraybuffer";this._transport.onopen=()=>{J.onOpen()},this._transport.onerror=(Q)=>{J.onError(Q)},this._transport.onclose=(Q)=>{J.onClose(Q)},this._transport.onmessage=(Q)=>{J.onMessage(Q.data)}}close(){this._transport.close()}send(Z){this._transport.send(Z)}}class MY{constructor(Z,J){this.endpoint=Z,this.options=J,this._abortController=null,this._utf8decoder=new TextDecoder,this._protocol="json"}name(){return"http_stream"}subName(){return"http_stream"}emulation(){return!0}_handleErrors(Z){if(!Z.ok)throw Error(Z.status);return Z}_fetchEventTarget(Z,J,Y){let Q=new EventTarget,X=Z.options.fetch;return X(J,Y).then(Z._handleErrors).then((G)=>{Q.dispatchEvent(new Event("open"));let W="",H=0,z=new Uint8Array,U=G.body.getReader();return new Z.options.readableStream({start(B){function L(){return U.read().then(({done:I,value:M})=>{if(I){Q.dispatchEvent(new Event("close")),B.close();return}try{if(Z._protocol==="json"){W+=Z._utf8decoder.decode(M);while(H<W.length)if(W[H]===`
22
+ `){let K=W.substring(0,H);Q.dispatchEvent(new MessageEvent("message",{data:K})),W=W.substring(H+1),H=0}else++H}else{let K=new Uint8Array(z.length+M.length);K.set(z),K.set(M,z.length),z=K;while(!0){let F=Z.options.decoder.decodeReply(z);if(F.ok){let O=z.slice(0,F.pos);Q.dispatchEvent(new MessageEvent("message",{data:O})),z=z.slice(F.pos);continue}break}}}catch(K){Q.dispatchEvent(new Event("error",{detail:K})),Q.dispatchEvent(new Event("close")),B.close();return}L()}).catch(function(I){Q.dispatchEvent(new Event("error",{detail:I})),Q.dispatchEvent(new Event("close")),B.close();return})}return L()}})}).catch((G)=>{Q.dispatchEvent(new Event("error",{detail:G})),Q.dispatchEvent(new Event("close"))}),Q}supported(){return this.options.fetch!==null&&this.options.readableStream!==null&&typeof TextDecoder<"u"&&typeof AbortController<"u"&&typeof EventTarget<"u"&&typeof Event<"u"&&typeof MessageEvent<"u"&&typeof Error<"u"}initialize(Z,J,Y){this._protocol=Z,this._abortController=new AbortController;let Q,X;if(Z==="json")Q={Accept:"application/json","Content-Type":"application/json"},X=Y;else Q={Accept:"application/octet-stream","Content-Type":"application/octet-stream"},X=Y;let G={method:"POST",headers:Q,body:X,mode:"cors",credentials:"same-origin",signal:this._abortController.signal},W=this._fetchEventTarget(this,this.endpoint,G);W.addEventListener("open",()=>{J.onOpen()}),W.addEventListener("error",(H)=>{this._abortController.abort(),J.onError(H)}),W.addEventListener("close",()=>{this._abortController.abort(),J.onClose({code:4,reason:"connection closed"})}),W.addEventListener("message",(H)=>{J.onMessage(H.data)})}close(){this._abortController.abort()}send(Z,J,Y){let Q,X,G={session:J,node:Y,data:Z};if(this._protocol==="json")Q={"Content-Type":"application/json"},X=JSON.stringify(G);else Q={"Content-Type":"application/octet-stream"},X=this.options.encoder.encodeEmulationRequest(G);let W=this.options.fetch,H={method:"POST",headers:Q,body:X,mode:"cors",credentials:"same-origin"};W(this.options.emulationEndpoint,H)}}class FY{constructor(Z,J){this.endpoint=Z,this.options=J,this._protocol="json",this._transport=null,this._onClose=null}name(){return"sse"}subName(){return"sse"}emulation(){return!0}supported(){return this.options.eventsource!==null&&this.options.fetch!==null}initialize(Z,J,Y){let Q;if(globalThis&&globalThis.document&&globalThis.document.baseURI)Q=new URL(this.endpoint,globalThis.document.baseURI);else Q=new URL(this.endpoint);Q.searchParams.append("cf_connect",Y);let X={},G=new this.options.eventsource(Q.toString(),X);this._transport=G;let W=this;G.onopen=function(){J.onOpen()},G.onerror=function(H){G.close(),J.onError(H),J.onClose({code:4,reason:"connection closed"})},G.onmessage=function(H){J.onMessage(H.data)},W._onClose=function(){J.onClose({code:4,reason:"connection closed"})}}close(){if(this._transport.close(),this._onClose!==null)this._onClose()}send(Z,J,Y){let Q={session:J,node:Y,data:Z},X={"Content-Type":"application/json"},G=JSON.stringify(Q),W=this.options.fetch,H={method:"POST",headers:X,body:G,mode:"cors",credentials:"same-origin"};W(this.options.emulationEndpoint,H)}}class $Y{constructor(Z,J){this.endpoint=Z,this.options=J,this._transport=null,this._stream=null,this._writer=null,this._utf8decoder=new TextDecoder,this._protocol="json"}name(){return"webtransport"}subName(){return"webtransport"}emulation(){return!1}supported(){return this.options.webtransport!==void 0&&this.options.webtransport!==null}initialize(Z,J){return l(this,void 0,void 0,function*(){let Y;if(globalThis&&globalThis.document&&globalThis.document.baseURI)Y=new URL(this.endpoint,globalThis.document.baseURI);else Y=new URL(this.endpoint);if(Z==="protobuf")Y.searchParams.append("cf_protocol","protobuf");this._protocol=Z;let Q=new EventTarget;this._transport=new this.options.webtransport(Y.toString()),this._transport.closed.then(()=>{J.onClose({code:4,reason:"connection closed"})}).catch(()=>{J.onClose({code:4,reason:"connection closed"})});try{yield this._transport.ready}catch(G){this.close();return}let X;try{X=yield this._transport.createBidirectionalStream()}catch(G){this.close();return}this._stream=X,this._writer=this._stream.writable.getWriter(),Q.addEventListener("close",()=>{J.onClose({code:4,reason:"connection closed"})}),Q.addEventListener("message",(G)=>{J.onMessage(G.data)}),this._startReading(Q),J.onOpen()})}_startReading(Z){return l(this,void 0,void 0,function*(){let J=this._stream.readable.getReader(),Y="",Q=0,X=new Uint8Array;try{while(!0){let{done:G,value:W}=yield J.read();if(W.length>0)if(this._protocol==="json"){Y+=this._utf8decoder.decode(W);while(Q<Y.length)if(Y[Q]===`
23
23
  `){let H=Y.substring(0,Q);Z.dispatchEvent(new MessageEvent("message",{data:H})),Y=Y.substring(Q+1),Q=0}else++Q}else{let H=new Uint8Array(X.length+W.length);H.set(X),H.set(W,X.length),X=H;while(!0){let z=this.options.decoder.decodeReply(X);if(z.ok){let U=X.slice(0,z.pos);Z.dispatchEvent(new MessageEvent("message",{data:U})),X=X.slice(z.pos);continue}break}}if(G)break}}catch(G){Z.dispatchEvent(new Event("close"))}})}close(){return l(this,void 0,void 0,function*(){try{if(this._writer)yield this._writer.close();this._transport.close()}catch(Z){}})}send(Z){return l(this,void 0,void 0,function*(){let J;if(this._protocol==="json")J=new TextEncoder().encode(Z+`
24
- `);else J=Z;try{yield this._writer.write(J)}catch(Y){this.close()}})}}var nB=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,-1,-1,-1,-1,36,-1,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,-1,-1,-1,63,-1];class OY{constructor(Z){this.a=Z,this.pos=0}haveBytes(){return this.pos<this.a.length}getByte(){let Z=this.a[this.pos];if(this.pos++,this.pos>this.a.length)throw RangeError("out of bounds");return Z}getChar(){return String.fromCharCode(this.getByte())}getInt(){let Z=0,J;while(this.haveBytes()&&(J=nB[127&this.getByte()])>=0)Z=(Z<<6)+J;return this.pos--,Z>>>0}}class VY{constructor(){this.a=[]}toByteArray(Z){if(Array.isArray(Z))return this.a;return new Uint8Array(this.a)}putArray(Z,J,Y){for(let Q=J;Q<Y;Q++)this.a.push(Z[Q])}}function oB(Z){let J=0,Y=0,Q=0,X=0,G=0,W=Z.length;while(W>=16)J=J+Z[G+0]|0,Y=Y+Z[G+1]|0,Q=Q+Z[G+2]|0,X=X+Z[G+3]|0,J=J+Z[G+4]|0,Y=Y+Z[G+5]|0,Q=Q+Z[G+6]|0,X=X+Z[G+7]|0,J=J+Z[G+8]|0,Y=Y+Z[G+9]|0,Q=Q+Z[G+10]|0,X=X+Z[G+11]|0,J=J+Z[G+12]|0,Y=Y+Z[G+13]|0,Q=Q+Z[G+14]|0,X=X+Z[G+15]|0,G+=16,W-=16;while(W>=4)J=J+Z[G+0]|0,Y=Y+Z[G+1]|0,Q=Q+Z[G+2]|0,X=X+Z[G+3]|0,G+=4,W-=4;switch(X=((X+(Q<<8)|0)+(Y<<16)|0)+(J<<24)|0,W){case 3:X=X+(Z[G+2]<<8)|0;case 2:X=X+(Z[G+1]<<16)|0;case 1:X=X+(Z[G+0]<<24)|0}return X>>>0}function aB(Z,J){let Y=0,Q=new OY(J),X=Z.length,G=J.length,W=Q.getInt();if(Q.getChar()!==`
25
- `)throw Error("size integer not terminated by '\\n'");let H=new VY;while(Q.haveBytes()){let z=Q.getInt(),U;switch(Q.getChar()){case"@":if(U=Q.getInt(),Q.haveBytes()&&Q.getChar()!==",")throw Error("copy command not terminated by ','");if(Y+=z,Y>W)throw Error("copy exceeds output file size");if(U+z>X)throw Error("copy extends past end of input");H.putArray(Z,U,U+z);break;case":":if(Y+=z,Y>W)throw Error("insert command gives an output larger than predicted");if(z>G)throw Error("insert count exceeds size of delta");H.putArray(Q.a,Q.pos,Q.pos+z),Q.pos+=z;break;case";":{let B=H.toByteArray(Z);if(z!==oB(B))throw Error("bad checksum");if(Y!==W)throw Error("generated size does not match predicted size");return B}default:throw Error("unknown delta operator")}}throw Error("unterminated delta")}class X9{name(){return"json"}encodeCommands(Z){return Z.map((J)=>JSON.stringify(J)).join(`
24
+ `);else J=Z;try{yield this._writer.write(J)}catch(Y){this.close()}})}}var nB=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,-1,-1,-1,-1,36,-1,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,-1,-1,-1,63,-1];class OY{constructor(Z){this.a=Z,this.pos=0}haveBytes(){return this.pos<this.a.length}getByte(){let Z=this.a[this.pos];if(this.pos++,this.pos>this.a.length)throw RangeError("out of bounds");return Z}getChar(){return String.fromCharCode(this.getByte())}getInt(){let Z=0,J;while(this.haveBytes()&&(J=nB[127&this.getByte()])>=0)Z=(Z<<6)+J;return this.pos--,Z>>>0}}class IY{constructor(){this.a=[]}toByteArray(Z){if(Array.isArray(Z))return this.a;return new Uint8Array(this.a)}putArray(Z,J,Y){for(let Q=J;Q<Y;Q++)this.a.push(Z[Q])}}function oB(Z){let J=0,Y=0,Q=0,X=0,G=0,W=Z.length;while(W>=16)J=J+Z[G+0]|0,Y=Y+Z[G+1]|0,Q=Q+Z[G+2]|0,X=X+Z[G+3]|0,J=J+Z[G+4]|0,Y=Y+Z[G+5]|0,Q=Q+Z[G+6]|0,X=X+Z[G+7]|0,J=J+Z[G+8]|0,Y=Y+Z[G+9]|0,Q=Q+Z[G+10]|0,X=X+Z[G+11]|0,J=J+Z[G+12]|0,Y=Y+Z[G+13]|0,Q=Q+Z[G+14]|0,X=X+Z[G+15]|0,G+=16,W-=16;while(W>=4)J=J+Z[G+0]|0,Y=Y+Z[G+1]|0,Q=Q+Z[G+2]|0,X=X+Z[G+3]|0,G+=4,W-=4;switch(X=((X+(Q<<8)|0)+(Y<<16)|0)+(J<<24)|0,W){case 3:X=X+(Z[G+2]<<8)|0;case 2:X=X+(Z[G+1]<<16)|0;case 1:X=X+(Z[G+0]<<24)|0}return X>>>0}function aB(Z,J){let Y=0,Q=new OY(J),X=Z.length,G=J.length,W=Q.getInt();if(Q.getChar()!==`
25
+ `)throw Error("size integer not terminated by '\\n'");let H=new IY;while(Q.haveBytes()){let z=Q.getInt(),U;switch(Q.getChar()){case"@":if(U=Q.getInt(),Q.haveBytes()&&Q.getChar()!==",")throw Error("copy command not terminated by ','");if(Y+=z,Y>W)throw Error("copy exceeds output file size");if(U+z>X)throw Error("copy extends past end of input");H.putArray(Z,U,U+z);break;case":":if(Y+=z,Y>W)throw Error("insert command gives an output larger than predicted");if(z>G)throw Error("insert count exceeds size of delta");H.putArray(Q.a,Q.pos,Q.pos+z),Q.pos+=z;break;case";":{let B=H.toByteArray(Z);if(z!==oB(B))throw Error("bad checksum");if(Y!==W)throw Error("generated size does not match predicted size");return B}default:throw Error("unknown delta operator")}}throw Error("unterminated delta")}class X9{name(){return"json"}encodeCommands(Z){return Z.map((J)=>JSON.stringify(J)).join(`
26
26
  `)}decodeReplies(Z){return Z.trim().split(`
27
- `).map((J)=>JSON.parse(J))}applyDeltaIfNeeded(Z,J){let Y,Q;if(Z.delta){let X=aB(J,new TextEncoder().encode(Z.data));Y=JSON.parse(new TextDecoder().decode(X)),Q=X}else Y=JSON.parse(Z.data),Q=new TextEncoder().encode(Z.data);return{newData:Y,newPrevValue:Q}}}var sB={headers:{},token:"",getToken:null,data:null,getData:null,debug:!1,name:"js",version:"",fetch:null,readableStream:null,websocket:null,eventsource:null,sockjs:null,sockjsOptions:{},emulationEndpoint:"/emulation",minReconnectDelay:500,maxReconnectDelay:20000,timeout:5000,maxServerPingDelay:1e4,networkEventTarget:null};class V1 extends Error{constructor(Z){super(Z);this.name=this.constructor.name}}class J0 extends UY{constructor(Z,J){super();if(this._reconnectTimeout=null,this._refreshTimeout=null,this._serverPingTimeout=null,this.state=h.Disconnected,this._transportIsOpen=!1,this._endpoint=Z,this._emulation=!1,this._transports=[],this._currentTransportIndex=0,this._triedAllTransports=!1,this._transportWasOpen=!1,this._transport=null,this._transportId=0,this._deviceWentOffline=!1,this._transportClosed=!0,this._codec=new X9,this._reconnecting=!1,this._reconnectTimeout=null,this._reconnectAttempts=0,this._client=null,this._session="",this._node="",this._subs={},this._serverSubs={},this._commandId=0,this._commands=[],this._batching=!1,this._refreshRequired=!1,this._refreshTimeout=null,this._callbacks={},this._token="",this._data=null,this._dispatchPromise=Promise.resolve(),this._serverPing=0,this._serverPingTimeout=null,this._sendPong=!1,this._promises={},this._promiseId=0,this._debugEnabled=!1,this._networkEventsSet=!1,this._config=Object.assign(Object.assign({},sB),J),this._configure(),this._debugEnabled)this.on("state",(Y)=>{this._debug("client state",Y.oldState,"->",Y.newState)}),this.on("error",(Y)=>{this._debug("client error",Y)});else this.on("error",function(){Function.prototype()})}newSubscription(Z,J){if(this.getSubscription(Z)!==null)throw Error("Subscription to the channel "+Z+" already exists");let Y=new KY(this,Z,J);return this._subs[Z]=Y,Y}getSubscription(Z){return this._getSub(Z)}removeSubscription(Z){if(!Z)return;if(Z.state!==o.Unsubscribed)Z.unsubscribe();this._removeSubscription(Z)}subscriptions(){return this._subs}ready(Z){return l(this,void 0,void 0,function*(){switch(this.state){case h.Disconnected:throw{code:_.clientDisconnected,message:"client disconnected"};case h.Connected:return;default:return new Promise((J,Y)=>{let Q={resolve:J,reject:Y};if(Z)Q.timeout=setTimeout(()=>{Y({code:_.timeout,message:"timeout"})},Z);this._promises[this._nextPromiseId()]=Q})}})}connect(){if(this._isConnected()){this._debug("connect called when already connected");return}if(this._isConnecting()){this._debug("connect called when already connecting");return}this._debug("connect called"),this._reconnectAttempts=0,this._startConnecting()}disconnect(){this._disconnect(l0.disconnectCalled,"disconnect called",!1)}setToken(Z){this._token=Z}setData(Z){this._data=Z}setHeaders(Z){this._config.headers=Z}send(Z){return l(this,void 0,void 0,function*(){let J={send:{data:Z}};if(yield this._methodCall(),!this._transportSendCommands([J]))throw this._createErrorObject(_.transportWriteError,"transport write error")})}rpc(Z,J){return l(this,void 0,void 0,function*(){let Y={rpc:{method:Z,data:J}};return yield this._methodCall(),{data:(yield this._callPromise(Y,(X)=>X.rpc)).data}})}publish(Z,J){return l(this,void 0,void 0,function*(){let Y={publish:{channel:Z,data:J}};return yield this._methodCall(),yield this._callPromise(Y,()=>({})),{}})}history(Z,J){return l(this,void 0,void 0,function*(){let Y={history:this._getHistoryRequest(Z,J)};yield this._methodCall();let Q=yield this._callPromise(Y,(G)=>G.history),X=[];if(Q.publications)for(let G=0;G<Q.publications.length;G++)X.push(this._getPublicationContext(Z,Q.publications[G]));return{publications:X,epoch:Q.epoch||"",offset:Q.offset||0}})}presence(Z){return l(this,void 0,void 0,function*(){let J={presence:{channel:Z}};yield this._methodCall();let Q=(yield this._callPromise(J,(X)=>X.presence)).presence;for(let X in Q)if(Object.prototype.hasOwnProperty.call(Q,X)){let G=Q[X],W=G.conn_info,H=G.chan_info;if(W)G.connInfo=W;if(H)G.chanInfo=H}return{clients:Q}})}presenceStats(Z){return l(this,void 0,void 0,function*(){let J={presence_stats:{channel:Z}};yield this._methodCall();let Y=yield this._callPromise(J,(Q)=>{return Q.presence_stats});return{numUsers:Y.num_users,numClients:Y.num_clients}})}startBatching(){this._batching=!0}stopBatching(){let Z=this;Promise.resolve().then(function(){Promise.resolve().then(function(){Z._batching=!1,Z._flush()})})}_debug(...Z){if(!this._debugEnabled)return;pB("debug",Z)}_codecName(){return this._codec.name()}_formatOverride(){return}_configure(){if(!("Promise"in globalThis))throw Error("Promise polyfill required");if(!this._endpoint)throw Error("endpoint configuration required");if(this._config.token!==null)this._token=this._config.token;if(this._config.data!==null)this._data=this._config.data;if(this._codec=new X9,this._formatOverride(),this._config.debug===!0||typeof localStorage<"u"&&typeof localStorage.getItem==="function"&&localStorage.getItem("centrifuge.debug"))this._debugEnabled=!0;if(this._debug("config",this._config),typeof this._endpoint==="string");else if(Array.isArray(this._endpoint)){this._transports=this._endpoint,this._emulation=!0;for(let Z in this._transports)if(this._transports.hasOwnProperty(Z)){let J=this._transports[Z];if(!J.endpoint||!J.transport)throw Error("malformed transport configuration");let Y=J.transport;if(["websocket","http_stream","sse","sockjs","webtransport"].indexOf(Y)<0)throw Error("unsupported transport name: "+Y)}}else throw Error("unsupported url configuration type: only string or array of objects are supported")}_setState(Z){if(this.state!==Z){this._reconnecting=!1;let J=this.state;return this.state=Z,this.emit("state",{newState:Z,oldState:J}),!0}return!1}_isDisconnected(){return this.state===h.Disconnected}_isConnecting(){return this.state===h.Connecting}_isConnected(){return this.state===h.Connected}_nextCommandId(){return++this._commandId}_setNetworkEvents(){if(this._networkEventsSet)return;let Z=null;if(this._config.networkEventTarget!==null)Z=this._config.networkEventTarget;else if(typeof globalThis.addEventListener<"u")Z=globalThis;if(Z)Z.addEventListener("offline",()=>{if(this._debug("offline event triggered"),this.state===h.Connected||this.state===h.Connecting)this._disconnect(d1.transportClosed,"transport closed",!0),this._deviceWentOffline=!0}),Z.addEventListener("online",()=>{if(this._debug("online event triggered"),this.state!==h.Connecting)return;if(this._deviceWentOffline&&!this._transportClosed)this._deviceWentOffline=!1,this._transportClosed=!0;this._clearReconnectTimeout(),this._startReconnecting()}),this._networkEventsSet=!0}_getReconnectDelay(){let Z=d5(this._reconnectAttempts,this._config.minReconnectDelay,this._config.maxReconnectDelay);return this._reconnectAttempts+=1,Z}_clearOutgoingRequests(){for(let Z in this._callbacks)if(this._callbacks.hasOwnProperty(Z)){let J=this._callbacks[Z];clearTimeout(J.timeout);let Y=J.errback;if(!Y)continue;Y({error:this._createErrorObject(_.connectionClosed,"connection closed")})}this._callbacks={}}_clearConnectedState(){this._client=null,this._clearServerPingTimeout(),this._clearRefreshTimeout();for(let Z in this._subs){if(!this._subs.hasOwnProperty(Z))continue;let J=this._subs[Z];if(J.state===o.Subscribed)J._setSubscribing(m5.transportClosed,"transport closed")}for(let Z in this._serverSubs)if(this._serverSubs.hasOwnProperty(Z))this.emit("subscribing",{channel:Z})}_handleWriteError(Z){for(let J of Z){let Y=J.id;if(!(Y in this._callbacks))continue;let Q=this._callbacks[Y];clearTimeout(this._callbacks[Y].timeout),delete this._callbacks[Y];let X=Q.errback;X({error:this._createErrorObject(_.transportWriteError,"transport write error")})}}_transportSendCommands(Z){if(!Z.length)return!0;if(!this._transport)return!1;try{this._transport.send(this._codec.encodeCommands(Z),this._session,this._node)}catch(J){return this._debug("error writing commands",J),this._handleWriteError(Z),!1}return!0}_initializeTransport(){let Z;if(this._config.websocket!==null)Z=this._config.websocket;else if(!(typeof globalThis.WebSocket!=="function"&&typeof globalThis.WebSocket!=="object"))Z=globalThis.WebSocket;let J=null;if(this._config.sockjs!==null)J=this._config.sockjs;else if(typeof globalThis.SockJS<"u")J=globalThis.SockJS;let Y=null;if(this._config.eventsource!==null)Y=this._config.eventsource;else if(typeof globalThis.EventSource<"u")Y=globalThis.EventSource;let Q=null;if(this._config.fetch!==null)Q=this._config.fetch;else if(typeof globalThis.fetch<"u")Q=globalThis.fetch;let X=null;if(this._config.readableStream!==null)X=this._config.readableStream;else if(typeof globalThis.ReadableStream<"u")X=globalThis.ReadableStream;if(!this._emulation){if(cB(this._endpoint,"http"))throw Error("Provide explicit transport endpoints configuration in case of using HTTP (i.e. using array of TransportEndpoint instead of a single string), or use ws(s):// scheme in an endpoint if you aimed using WebSocket transport");else if(this._debug("client will use websocket"),this._transport=new Q9(this._endpoint,{websocket:Z}),!this._transport.supported())throw Error("WebSocket constructor not found, make sure it is available globally or passed as a dependency in Centrifuge options")}else{if(this._currentTransportIndex>=this._transports.length)this._triedAllTransports=!0,this._currentTransportIndex=0;let V=0;while(!0){if(V>=this._transports.length)throw Error("no supported transport found");let M=this._transports[this._currentTransportIndex],K=M.transport,F=M.endpoint;if(K==="websocket"){if(this._debug("trying websocket transport"),this._transport=new Q9(F,{websocket:Z}),!this._transport.supported()){this._debug("websocket transport not available"),this._currentTransportIndex++,V++;continue}}else if(K==="webtransport"){if(this._debug("trying webtransport transport"),this._transport=new $Y(F,{webtransport:globalThis.WebTransport,decoder:this._codec,encoder:this._codec}),!this._transport.supported()){this._debug("webtransport transport not available"),this._currentTransportIndex++,V++;continue}}else if(K==="http_stream"){if(this._debug("trying http_stream transport"),this._transport=new MY(F,{fetch:Q,readableStream:X,emulationEndpoint:this._config.emulationEndpoint,decoder:this._codec,encoder:this._codec}),!this._transport.supported()){this._debug("http_stream transport not available"),this._currentTransportIndex++,V++;continue}}else if(K==="sse"){if(this._debug("trying sse transport"),this._transport=new FY(F,{eventsource:Y,fetch:Q,emulationEndpoint:this._config.emulationEndpoint}),!this._transport.supported()){this._debug("sse transport not available"),this._currentTransportIndex++,V++;continue}}else if(K==="sockjs"){if(this._debug("trying sockjs"),this._transport=new LY(F,{sockjs:J,sockjsOptions:this._config.sockjsOptions}),!this._transport.supported()){this._debug("sockjs transport not available"),this._currentTransportIndex++,V++;continue}}else throw Error("unknown transport "+K);break}}let G=this,W=this._transport,H=this._nextTransportId();G._debug("id of transport",H);let z=!1,U=[];if(this._transport.emulation()){let V=G._sendConnect(!0);U.push(V)}this._setNetworkEvents();let B=this._codec.encodeCommands(U);this._transportClosed=!1;let L;L=setTimeout(function(){W.close()},this._config.timeout),this._transport.initialize(this._codecName(),{onOpen:function(){if(L)clearTimeout(L),L=null;if(G._transportId!=H){G._debug("open callback from non-actual transport"),W.close();return}if(z=!0,G._debug(W.subName(),"transport open"),W.emulation())return;G._transportIsOpen=!0,G._transportWasOpen=!0,G.startBatching(),G._sendConnect(!1),G._sendSubscribeCommands(),G.stopBatching(),G.emit("__centrifuge_debug:connect_frame_sent",{})},onError:function(V){if(G._transportId!=H){G._debug("error callback from non-actual transport");return}G._debug("transport level error",V)},onClose:function(V){if(L)clearTimeout(L),L=null;if(G._transportId!=H){G._debug("close callback from non-actual transport");return}G._debug(W.subName(),"transport closed"),G._transportClosed=!0,G._transportIsOpen=!1;let M="connection closed",K=!0,F=0;if(V&&"code"in V&&V.code)F=V.code;if(V&&V.reason)try{let O=JSON.parse(V.reason);M=O.reason,K=O.reconnect}catch(O){if(M=V.reason,F>=3500&&F<4000||F>=4500&&F<5000)K=!1}if(F<3000){if(F===1009)F=l0.messageSizeLimit,M="message size limit exceeded",K=!1;else F=d1.transportClosed,M="transport closed";if(G._emulation&&!G._transportWasOpen){if(G._currentTransportIndex++,G._currentTransportIndex>=G._transports.length)G._triedAllTransports=!0,G._currentTransportIndex=0}}else G._transportWasOpen=!0;if(G._isConnecting()&&!z)G.emit("error",{type:"transport",error:{code:_.transportClosed,message:"transport closed"},transport:W.name()});G._reconnecting=!1,G._disconnect(F,M,K)},onMessage:function(V){G._dataReceived(V)}},B),G.emit("__centrifuge_debug:transport_initialized",{})}_sendConnect(Z){let J=this._constructConnectCommand(),Y=this;return this._call(J,Z).then((Q)=>{let X=Q.reply.connect;if(Y._connectResponse(X),Q.next)Q.next()},(Q)=>{if(Y._connectError(Q.error),Q.next)Q.next()}),J}_startReconnecting(){if(this._debug("start reconnecting"),!this._isConnecting()){this._debug("stop reconnecting: client not in connecting state");return}if(this._reconnecting){this._debug("reconnect already in progress, return from reconnect routine");return}if(this._transportClosed===!1){this._debug("waiting for transport close");return}this._reconnecting=!0;let Z=this._token==="";if(!(this._refreshRequired||Z&&this._config.getToken!==null)){if(this._config.getData)this._config.getData().then((Q)=>{if(!this._isConnecting())return;this._data=Q,this._initializeTransport()}).catch((Q)=>this._handleGetDataError(Q));else this._initializeTransport();return}let Y=this;this._getToken().then(function(Q){if(!Y._isConnecting())return;if(Q==null||Q==null){Y._failUnauthorized();return}if(Y._token=Q,Y._debug("connection token refreshed"),Y._config.getData)Y._config.getData().then(function(X){if(!Y._isConnecting())return;Y._data=X,Y._initializeTransport()}).catch((X)=>Y._handleGetDataError(X));else Y._initializeTransport()}).catch(function(Q){if(!Y._isConnecting())return;if(Q instanceof V1){Y._failUnauthorized();return}Y.emit("error",{type:"connectToken",error:{code:_.clientConnectToken,message:Q!==void 0?Q.toString():""}});let X=Y._getReconnectDelay();Y._debug("error on getting connection token, reconnect after "+X+" milliseconds",Q),Y._reconnecting=!1,Y._reconnectTimeout=setTimeout(()=>{Y._startReconnecting()},X)})}_handleGetDataError(Z){if(Z instanceof V1){this._failUnauthorized();return}this.emit("error",{type:"connectData",error:{code:_.badConfiguration,message:(Z===null||Z===void 0?void 0:Z.toString())||""}});let J=this._getReconnectDelay();this._debug("error on getting connect data, reconnect after "+J+" milliseconds",Z),this._reconnecting=!1,this._reconnectTimeout=setTimeout(()=>{this._startReconnecting()},J)}_connectError(Z){if(this.state!==h.Connecting)return;if(Z.code===109)this._refreshRequired=!0;if(Z.code<100||Z.temporary===!0||Z.code===109)this.emit("error",{type:"connect",error:Z}),this._debug("closing transport due to connect error"),this._disconnect(Z.code,Z.message,!0);else this._disconnect(Z.code,Z.message,!1)}_scheduleReconnect(){if(!this._isConnecting())return;let Z=!1;if(this._emulation&&!this._transportWasOpen&&!this._triedAllTransports)Z=!0;let J=this._getReconnectDelay();if(Z)J=0;this._debug("reconnect after "+J+" milliseconds"),this._clearReconnectTimeout(),this._reconnectTimeout=setTimeout(()=>{this._startReconnecting()},J)}_constructConnectCommand(){let Z={};if(this._token)Z.token=this._token;if(this._data)Z.data=this._data;if(this._config.name)Z.name=this._config.name;if(this._config.version)Z.version=this._config.version;if(Object.keys(this._config.headers).length>0)Z.headers=this._config.headers;let J={},Y=!1;for(let Q in this._serverSubs)if(this._serverSubs.hasOwnProperty(Q)&&this._serverSubs[Q].recoverable){Y=!0;let X={recover:!0};if(this._serverSubs[Q].offset)X.offset=this._serverSubs[Q].offset;if(this._serverSubs[Q].epoch)X.epoch=this._serverSubs[Q].epoch;J[Q]=X}if(Y)Z.subs=J;return{connect:Z}}_getHistoryRequest(Z,J){let Y={channel:Z};if(J!==void 0){if(J.since){if(Y.since={offset:J.since.offset},J.since.epoch)Y.since.epoch=J.since.epoch}if(J.limit!==void 0)Y.limit=J.limit;if(J.reverse===!0)Y.reverse=!0}return Y}_methodCall(){if(this._isConnected())return Promise.resolve();return new Promise((Z,J)=>{let Y=setTimeout(function(){J({code:_.timeout,message:"timeout"})},this._config.timeout);this._promises[this._nextPromiseId()]={timeout:Y,resolve:Z,reject:J}})}_callPromise(Z,J){return new Promise((Y,Q)=>{this._call(Z,!1).then((X)=>{var G;let W=J(X.reply);Y(W),(G=X.next)===null||G===void 0||G.call(X)},(X)=>{var G;Q(X.error),(G=X.next)===null||G===void 0||G.call(X)})})}_dataReceived(Z){if(this._serverPing>0)this._waitServerPing();let J=this._codec.decodeReplies(Z);this._dispatchPromise=this._dispatchPromise.then(()=>{let Y;this._dispatchPromise=new Promise((Q)=>{Y=Q}),this._dispatchSynchronized(J,Y)})}_dispatchSynchronized(Z,J){let Y=Promise.resolve();for(let Q in Z)if(Z.hasOwnProperty(Q))Y=Y.then(()=>{return this._dispatchReply(Z[Q])});Y=Y.then(()=>{J()})}_dispatchReply(Z){let J,Y=new Promise((X)=>{J=X});if(Z===void 0||Z===null)return this._debug("dispatch: got undefined or null reply"),J(),Y;let Q=Z.id;if(Q&&Q>0)this._handleReply(Z,J);else if(!Z.push)this._handleServerPing(J);else this._handlePush(Z.push,J);return Y}_call(Z,J){return new Promise((Y,Q)=>{if(Z.id=this._nextCommandId(),this._registerCall(Z.id,Y,Q),!J)this._addCommand(Z)})}_startConnecting(){if(this._debug("start connecting"),this._setState(h.Connecting))this.emit("connecting",{code:d1.connectCalled,reason:"connect called"});this._client=null,this._startReconnecting()}_disconnect(Z,J,Y){if(this._isDisconnected())return;this._transportIsOpen=!1;let Q=this.state;this._reconnecting=!1;let X={code:Z,reason:J},G=!1;if(Y)G=this._setState(h.Connecting);else G=this._setState(h.Disconnected),this._rejectPromises({code:_.clientDisconnected,message:"disconnected"});if(this._clearOutgoingRequests(),Q===h.Connecting)this._clearReconnectTimeout();if(Q===h.Connected)this._clearConnectedState();if(G)if(this._isConnecting())this.emit("connecting",X);else this.emit("disconnected",X);if(this._transport){this._debug("closing existing transport");let W=this._transport;this._transport=null,W.close(),this._transportClosed=!0,this._nextTransportId()}else this._debug("no transport to close");this._scheduleReconnect()}_failUnauthorized(){this._disconnect(l0.unauthorized,"unauthorized",!1)}_getToken(){if(this._debug("get connection token"),!this._config.getToken)return this.emit("error",{type:"configuration",error:{code:_.badConfiguration,message:"token expired but no getToken function set in the configuration"}}),Promise.reject(new V1(""));return this._config.getToken({})}_refresh(){let Z=this._client,J=this;this._getToken().then(function(Y){if(Z!==J._client)return;if(!Y){J._failUnauthorized();return}if(J._token=Y,J._debug("connection token refreshed"),!J._isConnected())return;let Q={refresh:{token:J._token}};J._call(Q,!1).then((X)=>{let G=X.reply.refresh;if(J._refreshResponse(G),X.next)X.next()},(X)=>{if(J._refreshError(X.error),X.next)X.next()})}).catch(function(Y){if(!J._isConnected())return;if(Y instanceof V1){J._failUnauthorized();return}J.emit("error",{type:"refreshToken",error:{code:_.clientRefreshToken,message:Y!==void 0?Y.toString():""}}),J._refreshTimeout=setTimeout(()=>J._refresh(),J._getRefreshRetryDelay())})}_refreshError(Z){if(Z.code<100||Z.temporary===!0)this.emit("error",{type:"refresh",error:Z}),this._refreshTimeout=setTimeout(()=>this._refresh(),this._getRefreshRetryDelay());else this._disconnect(Z.code,Z.message,!1)}_getRefreshRetryDelay(){return d5(0,5000,1e4)}_refreshResponse(Z){if(this._refreshTimeout)clearTimeout(this._refreshTimeout),this._refreshTimeout=null;if(Z.expires)this._client=Z.client,this._refreshTimeout=setTimeout(()=>this._refresh(),c5(Z.ttl))}_removeSubscription(Z){if(Z===null)return;delete this._subs[Z.channel]}_unsubscribe(Z){if(!this._transportIsOpen)return Promise.resolve();let Y={unsubscribe:{channel:Z.channel}},Q=this;return new Promise((G,W)=>{this._call(Y,!1).then((H)=>{if(G(),H.next)H.next()},(H)=>{if(G(),H.next)H.next();Q._disconnect(d1.unsubscribeError,"unsubscribe error",!0)})})}_getSub(Z,J){if(J&&J>0){for(let Q in this._subs)if(this._subs.hasOwnProperty(Q)){let X=this._subs[Q];if(X._id===J)return X}return null}let Y=this._subs[Z];if(!Y)return null;return Y}_isServerSub(Z){return this._serverSubs[Z]!==void 0}_sendSubscribeCommands(){let Z=[];for(let J in this._subs){if(!this._subs.hasOwnProperty(J))continue;let Y=this._subs[J];if(Y._inflight===!0)continue;if(Y.state===o.Subscribing){let Q=Y._subscribe();if(Q)Z.push(Q)}}return Z}_connectResponse(Z){if(this._transportIsOpen=!0,this._transportWasOpen=!0,this._reconnectAttempts=0,this._refreshRequired=!1,this._isConnected())return;if(this._client=Z.client,this._setState(h.Connected),this._refreshTimeout)clearTimeout(this._refreshTimeout);if(Z.expires)this._refreshTimeout=setTimeout(()=>this._refresh(),c5(Z.ttl));this._session=Z.session,this._node=Z.node,this.startBatching(),this._sendSubscribeCommands(),this.stopBatching();let J={client:Z.client,transport:this._transport.subName()};if(Z.data)J.data=Z.data;if(this.emit("connected",J),this._resolvePromises(),this._processServerSubs(Z.subs||{}),Z.ping&&Z.ping>0)this._serverPing=Z.ping*1000,this._sendPong=Z.pong===!0,this._waitServerPing();else this._serverPing=0}_processServerSubs(Z){for(let J in Z){if(!Z.hasOwnProperty(J))continue;let Y=Z[J];this._serverSubs[J]={offset:Y.offset,epoch:Y.epoch,recoverable:Y.recoverable||!1};let Q=this._getSubscribeContext(J,Y);this.emit("subscribed",Q)}for(let J in Z){if(!Z.hasOwnProperty(J))continue;let Y=Z[J];if(Y.recovered){let Q=Y.publications;if(Q&&Q.length>0){for(let X in Q)if(Q.hasOwnProperty(X))this._handlePublication(J,Q[X])}}}for(let J in this._serverSubs){if(!this._serverSubs.hasOwnProperty(J))continue;if(!Z[J])this.emit("unsubscribed",{channel:J}),delete this._serverSubs[J]}}_clearRefreshTimeout(){if(this._refreshTimeout!==null)clearTimeout(this._refreshTimeout),this._refreshTimeout=null}_clearReconnectTimeout(){if(this._reconnectTimeout!==null)clearTimeout(this._reconnectTimeout),this._reconnectTimeout=null}_clearServerPingTimeout(){if(this._serverPingTimeout!==null)clearTimeout(this._serverPingTimeout),this._serverPingTimeout=null}_waitServerPing(){if(this._config.maxServerPingDelay===0)return;if(!this._isConnected())return;this._clearServerPingTimeout(),this._serverPingTimeout=setTimeout(()=>{if(!this._isConnected())return;this._disconnect(d1.noPing,"no ping",!0)},this._serverPing+this._config.maxServerPingDelay)}_getSubscribeContext(Z,J){let Y={channel:Z,positioned:!1,recoverable:!1,wasRecovering:!1,recovered:!1,hasRecoveredPublications:!1};if(J.recovered)Y.recovered=!0;if(J.positioned)Y.positioned=!0;if(J.recoverable)Y.recoverable=!0;if(J.was_recovering)Y.wasRecovering=!0;let Q="";if("epoch"in J)Q=J.epoch;let X=0;if("offset"in J)X=J.offset;if(Y.positioned||Y.recoverable)Y.streamPosition={offset:X,epoch:Q};if(Array.isArray(J.publications)&&J.publications.length>0)Y.hasRecoveredPublications=!0;if(J.data)Y.data=J.data;return Y}_handleReply(Z,J){let Y=Z.id;if(!(Y in this._callbacks)){J();return}let Q=this._callbacks[Y];if(clearTimeout(this._callbacks[Y].timeout),delete this._callbacks[Y],!iB(Z)){let X=Q.callback;if(!X)return;X({reply:Z,next:J})}else{let X=Q.errback;if(!X){J();return}let G={code:Z.error.code,message:Z.error.message||"",temporary:Z.error.temporary||!1};X({error:G,next:J})}}_handleJoin(Z,J,Y){let Q=this._getSub(Z,Y);if(!Q&&Z){if(this._isServerSub(Z)){let X={channel:Z,info:this._getJoinLeaveContext(J.info)};this.emit("join",X)}return}Q._handleJoin(J)}_handleLeave(Z,J,Y){let Q=this._getSub(Z,Y);if(!Q&&Z){if(this._isServerSub(Z)){let X={channel:Z,info:this._getJoinLeaveContext(J.info)};this.emit("leave",X)}return}Q._handleLeave(J)}_handleUnsubscribe(Z,J){let Y=this._getSub(Z,0);if(!Y&&Z){if(this._isServerSub(Z))delete this._serverSubs[Z],this.emit("unsubscribed",{channel:Z});return}if(J.code<2500)Y._setUnsubscribed(J.code,J.reason,!1);else Y._setSubscribing(J.code,J.reason)}_handleSubscribe(Z,J){this._serverSubs[Z]={offset:J.offset,epoch:J.epoch,recoverable:J.recoverable||!1},this.emit("subscribed",this._getSubscribeContext(Z,J))}_handleDisconnect(Z){let J=Z.code,Y=!0;if(J>=3500&&J<4000||J>=4500&&J<5000)Y=!1;this._disconnect(J,Z.reason,Y)}_getPublicationContext(Z,J){let Y={channel:Z,data:J.data};if(J.offset)Y.offset=J.offset;if(J.info)Y.info=this._getJoinLeaveContext(J.info);if(J.tags)Y.tags=J.tags;return Y}_getJoinLeaveContext(Z){let J={client:Z.client,user:Z.user},Y=Z.conn_info;if(Y)J.connInfo=Y;let Q=Z.chan_info;if(Q)J.chanInfo=Q;return J}_handlePublication(Z,J,Y){let Q=this._getSub(Z,Y);if(!Q&&Z){if(this._isServerSub(Z)){let X=this._getPublicationContext(Z,J);if(this.emit("publication",X),J.offset!==void 0)this._serverSubs[Z].offset=J.offset}return}Q._handlePublication(J)}_handleMessage(Z){this.emit("message",{data:Z.data})}_handleServerPing(Z){if(this._sendPong){let J={};this._transportSendCommands([J])}Z()}_handlePush(Z,J){let{channel:Y,id:Q}=Z;if(Z.pub)this._handlePublication(Y,Z.pub,Q);else if(Z.message)this._handleMessage(Z.message);else if(Z.join)this._handleJoin(Y,Z.join,Q);else if(Z.leave)this._handleLeave(Y,Z.leave,Q);else if(Z.unsubscribe)this._handleUnsubscribe(Y,Z.unsubscribe);else if(Z.subscribe)this._handleSubscribe(Y,Z.subscribe);else if(Z.disconnect)this._handleDisconnect(Z.disconnect);J()}_flush(){let Z=this._commands.slice(0);this._commands=[],this._transportSendCommands(Z)}_createErrorObject(Z,J,Y){let Q={code:Z,message:J};if(Y)Q.temporary=!0;return Q}_registerCall(Z,J,Y){this._callbacks[Z]={callback:J,errback:Y,timeout:null},this._callbacks[Z].timeout=setTimeout(()=>{if(delete this._callbacks[Z],BY(Y))Y({error:this._createErrorObject(_.timeout,"timeout")})},this._config.timeout)}_addCommand(Z){if(this._batching)this._commands.push(Z);else this._transportSendCommands([Z])}_nextPromiseId(){return++this._promiseId}_nextTransportId(){return++this._transportId}_resolvePromises(){for(let Z in this._promises){if(!this._promises.hasOwnProperty(Z))continue;if(this._promises[Z].timeout)clearTimeout(this._promises[Z].timeout);this._promises[Z].resolve(),delete this._promises[Z]}}_rejectPromises(Z){for(let J in this._promises){if(!this._promises.hasOwnProperty(J))continue;if(this._promises[J].timeout)clearTimeout(this._promises[J].timeout);this._promises[J].reject(Z),delete this._promises[J]}}}J0.SubscriptionState=o;J0.State=h;J0.UnauthorizedError=V1;var l5=(Z,J)=>{async function Y(){let Q=await fetch(Z+"api/centrifuge/gen_token");if(!Q.ok){if(Q.status===403)throw new J0.UnauthorizedError("Backend is not answering");throw Error(`Unexpected status code ${Q.status}`)}return(await Q.json()).token}return J?new J0(J||"",{getToken:Y}):null},tB=rB(null),c1=tB;import{useContext as ZK,useEffect as JK}from"react";import{useEffect as eB,useState as IY}from"react";function i5(Z,J){let[Y,Q]=IY(null),[X,G]=IY(!1);return eB(()=>{if(!X)G(!0),fetch(Z+`api/support/${J}`,{method:"GET"}).then((W)=>W.json()).then((W)=>{Q(W)})},[]),Y}var YK=({children:Z})=>{let J=ZK(u1),Y=v1(),Q=i5(Y,"socketIO"),X=(G)=>{if(typeof window<"u")window.sid=G.sid,console.log(`SocketIO initialized: ${window.sid}`)};return JK(()=>{if(!J)return;let G=()=>{console.log("SocketIO connected")},W=(H)=>{console.log(`SocketIO disconnected: ${H}`),J.connect()};if(Q)J.on("pieinit",X),J.on("connect",G),J.on("disconnect",W),J.connect();return()=>{if(Q)J.off("pieinit",X),J.off("connect",G),J.off("disconnect",W),J.disconnect()}},[J,Q]),Z},n5=YK;import{useContext as QK,useEffect as XK}from"react";var GK=({children:Z})=>{let J=QK(c1),Y=v1(),Q=i5(Y,"centrifuge");return XK(()=>{if(!J)return;let X=()=>{console.log("Centrifuge connected")},G=(W)=>{console.log("Centrifuge disconnected:",W)};if(Q)J.on("connected",X),J.on("disconnected",G),J.connect();return()=>{if(Q)J.disconnect()}},[J,Q]),Z},o5=GK;var PX=S(P9(),1);import{useContext as T9,useEffect as w9}from"react";var sL=({card:Z,data:J,children:Y,useSocketioSupport:Q=!1,useCentrifugeSupport:X=!1,useMittSupport:G=!1,centrifugeChannel:W=void 0,methods:H=void 0})=>{let z=k1();if(z)console.log("[PieCard] Rendering card:",Z),console.log("[PieCard] Card data:",J),console.log("[PieCard] Component name:",J?.name),console.log("[PieCard] Real-time support:",{socketio:Q,centrifuge:X,mitt:G,centrifugeChannel:W}),console.log("[PieCard] Methods:",H?Object.keys(H):"none"),console.log("[PieCard] Has children:",!!Y);let U=T9(u1),B=T9(c1),L=T9(y1);if(w9(()=>{if(!U||!Q||!H||!J.name){if(z&&Q)console.log("[PieCard] Socket.IO setup skipped:",{hasSocket:!!U,useSocketioSupport:Q,hasMethods:!!H,hasDataName:!!J?.name});return}return Object.entries(H).forEach(([V,M])=>{let K=`pie${V}_${J.name}`;if(z)console.log(`[PieCard] Socket.IO registering event: ${K}`);U.on(K,M)}),()=>{Object.entries(H).forEach(([V,M])=>{let K=`pie${V}_${J.name}`;if(z)console.log(`[PieCard] Socket.IO unregistering event: ${K}`);U.off(K,M)})}},[U,H,J.name]),w9(()=>{if(!B||!X||!W||!H||!J.name){if(z&&X)console.log("[PieCard] Centrifuge setup skipped:",{hasCentrifuge:!!B,useCentrifugeSupport:X,hasCentrifugeChannel:!!W,hasMethods:!!H,hasDataName:!!J?.name});return}let V=Object.entries(H).map(([M,K])=>{let F=`pie${M}_${J.name}_${W}`;if(z)console.log(`[PieCard] Centrifuge subscribing to channel: ${F}`);let O=B.newSubscription(F);return O.on("publication",(D)=>{if(z)console.log(`[PieCard] Centrifuge received data on ${F}:`,D.data);K(D.data)}),O.subscribe(),O});return()=>{V.forEach((M)=>{if(z)console.log("[PieCard] Centrifuge unsubscribing from channel");M.unsubscribe(),B.removeSubscription(M)})}},[B,W,H,J.name]),w9(()=>{if(!L||!G||!H||!J.name){if(z&&G)console.log("[PieCard] Mitt setup skipped:",{hasMitt:!!L,useMittSupport:G,hasMethods:!!H,hasDataName:!!J?.name});return}return Object.entries(H).forEach(([V,M])=>{let K=`pie${V}_${J.name}`;if(z)console.log(`[PieCard] Mitt registering event: ${K}`);L.on(K,M)}),()=>{Object.entries(H).forEach(([V,M])=>{let K=`pie${V}_${J.name}`;if(z)console.log(`[PieCard] Mitt unregistering event: ${K}`);L.off(K,M)})}},[L,H,J.name]),z)console.log("[PieCard] Rendering complete, returning children");return Y},F1=sL;function U6(Z){if(!Z)return{};let J={...Z};if("animationName"in J&&typeof J.animationName==="object"){let Y="radiumAnimation_"+Math.random().toString(36).substring(2,8);J.animationName=H1.keyframes(J.animationName,Y)}return J}import{jsx as E9}from"react/jsx-runtime";var rL=({data:Z,content:J,setUiAjaxConfiguration:Y})=>{let{name:Q,sx:X}=Z;return E9(F1,{card:Q,data:Z,children:E9("div",{style:U6(X),id:Q,children:J.map((G,W)=>{return E9(Z1,{uiConfig:G,setUiAjaxConfiguration:Y},`children-${W}`)})})})},bQ=H1(rL);import{jsx as gQ}from"react/jsx-runtime";var tL=({data:Z,content:J,setUiAjaxConfiguration:Y})=>{let{name:Q}=Z;return gQ(F1,{card:Q,data:Z,children:J.map((X,G)=>{return gQ(Z1,{uiConfig:X,setUiAjaxConfiguration:Y},`children-${G}`)})})},yQ=tL;import{useContext as mQ,useEffect as eL,useRef as ZM,useState as uQ}from"react";import{jsx as dQ}from"react/jsx-runtime";var JM=({data:Z,content:J})=>{let{useLoader:Y,noReturn:Q,returnType:X,useSocketioSupport:G,useCentrifugeSupport:W,useMittSupport:H,centrifugeChannel:z}=Z,U=mQ(_1),[B,L]=uQ(!1),[V,M]=uQ(null),K=ZM(J),F=mQ(y1),O=(N)=>{if(N===null)L(!0);else if(L(!1),!Q)K.current=N;if(!Q)M(N)},D=(N)=>{K.current=N.content,M(N.content)},P=(N)=>{if(N===null)L(!0);else if(L(!1),!Q)for(let q of N)F.emit(q.name,q.data)};if(eL(()=>{M(J),L(!1)},[J]),!V&&Y)return U;return dQ(F1,{card:"AjaxGroupCard",data:Z,methods:{changeContent:D},useSocketioSupport:G,useCentrifugeSupport:W,useMittSupport:H,centrifugeChannel:z,children:dQ(Z1,{uiConfig:V??K.current,setUiAjaxConfiguration:X==="events"?P:O})})},cQ=H1(JM);function S9(Z=1000){return new Promise((J)=>{if(typeof window>"u"){J();return}let Y=()=>{if(typeof window.sid<"u")J();else setTimeout(Y,Z)};Y()})}import{useMemo as YM}from"react";var QM=(Z,J={},Y=[],Q,X)=>{let G=X?.renderingLogEnabled??!1,W=X?.apiServer??"";if(G)console.log("Registering AJAX: ",Q,J,Y);if(!Q||!Z){if(G)console.warn("Registration FAILED: pathname or setUiAjaxConfiguration is missing!");return()=>{}}return async(H={})=>{if(typeof window>"u"||typeof document>"u"){if(G)console.warn("getAjaxSubmit called on server, skipping DOM-dependent logic");return}if(Y.includes("sid"))await S9();let z=new FormData;for(let[B,L]of Object.entries({...J,...H}))z.append(B,L);for(let B of Y)if(B==="sid"){if(!window.sid)throw Error("SocketIO isn't initialized properly");z.append("sid",window.sid)}else{let L=document.getElementsByName(B);if(!L.length){if(G)console.warn(`No input found with name ${B}`);continue}let V=L[0];if(V instanceof HTMLInputElement)if(V.type==="file"&&V.files)Array.from(V.files).forEach((M)=>z.append(B,M));else z.append(B,V.value);else if(V instanceof HTMLTextAreaElement)z.append(B,V.value)}let U=W+"api/ajax_content"+Q;return Z(null),await fetch(U,{method:"POST",body:z}).then(async(B)=>{let V=(B.headers.get("content-type")||"").includes("application/json");if(!!B.body?.getReader&&!V){let K=B.body.getReader(),F=new TextDecoder,O="";while(!0){let{done:D,value:P}=await K.read();if(D)break;O+=F.decode(P,{stream:!0});let N=O.split(`
28
- `);O=N.pop()??"";for(let q of N){let T=q.trim();if(!T)continue;try{let C=JSON.parse(T);Z([C])}catch(C){if(G)console.warn("Failed to parse streamed line:",T)}}}if(O.trim())try{let D=JSON.parse(O);Z([D])}catch(D){if(G)console.warn("Failed to parse final streamed line:",O)}return{}}else{let K=await B.json();return Z(K),K}}).catch((B)=>{if(G)console.error("AJAX request failed:",B);return Z(null),B})}},B6=(Z,J={},Y=[],Q)=>{let{apiServer:X,enableRenderingLog:G}=H0();return YM(()=>QM(Z,J,Y,Q,{apiServer:X,renderingLogEnabled:G}),[Z,J,Y,Q,X,G])};var a9=S(o9(),1),G0=S(o9(),1),I6=a9.default.default||a9.default;import{jsx as s9,jsxs as e2}from"react/jsx-runtime";var t2=({data:Z,setUiAjaxConfiguration:J})=>{let{name:Y,title:Q,iconUrl:X,iconPosition:G,sx:W,pathname:H,kwargs:z,depsNames:U}=Z,B=B6(J,z,U,H);return s9(F1,{card:"AjaxButtonCard",data:Z,children:e2("button",{id:Y,className:"box-border flex min-h-12 w-full min-w-min cursor-pointer items-center justify-center rounded-[16px] border border-[#080318] bg-white text-center font-[TTForsTrial] text-[#080318] hover:bg-neutral-300",value:Y,onClick:()=>B(),style:U6(W),type:"button",children:[X&&G==="start"&&s9("img",{src:X,alt:""}),I6(Q),X&&G==="end"&&s9("img",{src:X,alt:""})]})})},s3=H1(t2);import{forwardRef as NF,useEffect as LX,useImperativeHandle as AF,useRef as RF,useState as A6}from"react";import{useRef as ZF,useState as JF}from"react";import{jsx as YF}from"react/jsx-runtime";function r9(Z){let[J,Y]=JF(!1),Q=ZF(null);return YF("textarea",{ref:Q,...Z,onKeyUp:()=>{Y(!1)},onKeyDown:(H)=>{if(H.key==="Enter"&&H.shiftKey){if(Y(!0),Q.current&&typeof window<"u"){let z=window.getComputedStyle(Q.current),U=parseFloat(z.lineHeight);Q.current.style.height=Q.current.scrollHeight+U+"px"}}if(H.key==="Backspace"){if(Y(!0),Q.current&&typeof window<"u"){let z=window.getComputedStyle(Q.current),U=parseFloat(z.lineHeight);if(Q.current.scrollHeight>U)Q.current.style.height=Q.current.scrollHeight-U+"px"}}Z.onKeyDown&&Z.onKeyDown(H)},onBlur:(H)=>{Y(!1),Z.onBlur&&Z.onBlur(H)},style:{resize:J?"vertical":"none",overflowY:"auto",...Z.style}})}import{useRef as XF,useCallback as GF}from"react";import{jsx as r3}from"react/jsx-runtime";var QF=()=>r3("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-5",children:r3("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 12L3.269 3.126A59.768 59.768 0 0121.485 12 59.77 59.77 0 013.27 20.876L5.999 12zm0 0h7.5"})}),t3=QF;import{jsx as t9}from"react/jsx-runtime";var WF=({type:Z="button",onClick:J,icons:Y})=>{let Q=XF(null),X=GF(()=>{let W=Q.current;if(W)W.style.transform="scale(0.8)",setTimeout(()=>{W.style.transform="scale(1)"},600)},[]);return t9("button",{ref:Q,type:Z,onClick:(W)=>{if(J)J(W);X()},className:"mr-1.5 rounded-md p-1 text-gray-500 ring-0 hover:bg-gray-100 disabled:opacity-40 disabled:hover:bg-transparent",style:{transition:"transform 300ms ease"},children:Y.sendIcon?t9("img",{src:Y.sendIcon,alt:""}):t9(t3,{})})},e3=WF;import{jsx as ZX}from"react/jsx-runtime";var HF=()=>ZX("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-5",children:ZX("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18.375 12.739l-7.693 7.693a4.5 4.5 0 01-6.364-6.364l10.94-10.94A3 3 0 1119.5 7.372L8.552 18.32m.009-.01l-.01.01m5.699-9.941l-7.81 7.81a1.5 1.5 0 002.112 2.13"})}),JX=HF;import{jsx as q6,jsxs as BF,Fragment as UF}from"react/jsx-runtime";var zF=({name:Z,accept:J,fileInputRef:Y,onSelectFile:Q,icons:X})=>{return BF(UF,{children:[q6("button",{className:"rounded-md p-1 text-gray-500 ring-0 hover:bg-gray-100 disabled:opacity-40 disabled:hover:bg-transparent",type:"button",onClick:()=>{if(Y.current)Y.current.click()},children:X.attachFileIcon?q6("img",{src:X.attachFileIcon,alt:""}):q6(JX,{})}),q6("input",{id:Z+"__pie__file",name:Z+"__pie__file",className:"hidden",type:"file",accept:J,ref:Y,onChange:(G)=>{if(G.target.files)Q(G.target.files[0])}})]})},YX=zF;import{jsx as QX}from"react/jsx-runtime";var KF=()=>QX("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-5 text-gray-500",children:QX("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"})}),XX=KF;import{jsx as GX}from"react/jsx-runtime";var LF=()=>GX("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-5",children:GX("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})}),D6=LF;import{jsx as W5,jsxs as FF}from"react/jsx-runtime";var MF=({name:Z,selectedFile:J,onDropFile:Y})=>{return FF("div",{className:"flex w-full cursor-default flex-row items-center gap-2",children:[W5(XX,{}),W5("span",{className:"flex-1",children:J.name}),W5("input",{type:"hidden",name:Z,value:""}),W5("button",{className:"rounded-md p-1 text-gray-500 ring-0 hover:bg-gray-100 disabled:opacity-40 disabled:hover:bg-transparent",type:"button",onClick:Y,children:W5(D6,{})})]})},WX=MF;import{jsx as HX,jsxs as OF}from"react/jsx-runtime";var $F=()=>OF("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-5",children:[HX("path",{d:"M8 5C8 2.79086 9.79086 1 12 1C14.2091 1 16 2.79086 16 5V12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12V5Z"}),HX("path",{d:"M6.25 11.8438V12C6.25 13.525 6.8558 14.9875 7.93414 16.0659C9.01247 17.1442 10.475 17.75 12 17.75C13.525 17.75 14.9875 17.1442 16.0659 16.0659C17.1442 14.9875 17.75 13.525 17.75 12V11.8438C17.75 11.2915 18.1977 10.8438 18.75 10.8438H19.25C19.8023 10.8438 20.25 11.2915 20.25 11.8437V12C20.25 14.188 19.3808 16.2865 17.8336 17.8336C16.5842 19.0831 14.9753 19.8903 13.25 20.1548V22C13.25 22.5523 12.8023 23 12.25 23H11.75C11.1977 23 10.75 22.5523 10.75 22V20.1548C9.02471 19.8903 7.41579 19.0831 6.16637 17.8336C4.61919 16.2865 3.75 14.188 3.75 12V11.8438C3.75 11.2915 4.19772 10.8438 4.75 10.8438H5.25C5.80228 10.8438 6.25 11.2915 6.25 11.8438Z"})]}),zX=$F;import{jsx as H5}from"react/jsx-runtime";var VF=({isListening:Z,toggleListening:J,icons:Y})=>{return H5("button",{className:"rounded-md p-1 text-gray-500 ring-0 hover:bg-gray-100 disabled:opacity-40 disabled:hover:bg-transparent",type:"button",onClick:J,children:Z?Y.cancelIcon?H5("img",{src:Y.cancelIcon,alt:""}):H5(D6,{}):Y.voiceRecordingIcon?H5("img",{src:Y.voiceRecordingIcon,alt:""}):H5(zX,{})})},UX=VF;import{jsx as BX,jsxs as qF}from"react/jsx-runtime";var IF=({option:Z,onClickOption:J})=>{return qF("div",{className:"flex w-fit cursor-pointer flex-row place-content-center items-center gap-1 rounded-md border border-black bg-white px-2 py-1 text-black",onClick:()=>{J(Z.title)},style:Z.sx,children:[Z.iconPosition==="start"&&BX("img",{src:Z.iconUrl,alt:""}),Z.title,Z.iconPosition==="end"&&BX("img",{src:Z.iconUrl,alt:""})]})},N6=IF;import{jsx as KX}from"react/jsx-runtime";var DF=({options:Z,handleOptionClick:J})=>{return KX("div",{className:"flex w-full flex-row flex-wrap justify-start gap-[5px]",children:Z.map((Y,Q)=>{return KX(N6,{option:Y,onClickOption:J},Q)})})},e9=DF;import{jsx as E1,jsxs as MX}from"react/jsx-runtime";var PF=NF(({name:Z,defaultValue:J,defaultOptions:Y,isArea:Q,placeholder:X,fileAccept:G,optionsPosition:W,icons:H,handleOptionClick:z,handleSendMessage:U,sx:B},L)=>{let V=RF(null),[M,K]=A6(null),[F,O]=A6(J),[D,P]=A6(Y),[N,q]=A6(!1);AF(L,()=>({clear:()=>{if(O(""),K(null),V.current)V.current.value=""},setValue:(C)=>O(C),setOptions:(C)=>P(C)})),LX(()=>{O(J)},[J]),LX(()=>{},[]);let T=()=>{};return MX("div",{className:"flex flex-col items-center gap-[0.1rem]",id:Z+"_chat_input",style:B,children:[D&&W==="top"&&E1(e9,{options:D,handleOptionClick:z}),E1("div",{className:"stretch relative flex size-full flex-1 flex-row items-stretch gap-3 last:mb-2 md:mx-4 md:flex-col md:last:mb-6 lg:mx-auto",children:MX("div",{className:"flex w-full grow flex-row items-center rounded-md bg-transparent",children:[M?E1(WX,{name:Z,selectedFile:M,onDropFile:()=>{if(K(null),V.current)V.current.value=""}}):!Q?E1("input",{name:Z,value:F,onChange:(C)=>O(C.target.value),onKeyDown:(C)=>{if(C.key==="Enter")C.preventDefault(),U()},tabIndex:0,placeholder:X,className:"m-0 w-full resize-none border-0 bg-transparent outline-none",style:{maxHeight:200,height:"100%",overflowY:"hidden"}}):E1(r9,{name:Z,value:F,onChange:(C)=>O(C.target.value),onKeyDown:(C)=>{if(C.key==="Enter"&&!C.shiftKey)C.preventDefault(),U()},tabIndex:0,rows:2,placeholder:X,className:"m-0 w-full resize-none border-0 bg-transparent p-0 pl-2 pr-7 outline-none md:pl-0",style:{maxHeight:200,height:"100%",minHeight:24}}),E1(UX,{isListening:N,toggleListening:T,icons:H}),E1(YX,{name:Z,fileInputRef:V,accept:G,onSelectFile:K,icons:H}),E1(e3,{onClick:U,icons:H})]})}),D&&W==="bottom"&&E1(e9,{options:D,handleOptionClick:z})]})}),FX=PF;import{useState as fF,useEffect as jF}from"react";import{useEffect as TF,useState as wF}from"react";import{jsx as SF}from"react/jsx-runtime";function EF({children:Z}){let[J,Y]=wF(Z);return TF(()=>{Y(Z)},[Z]),SF("div",{className:"max-w-full first:mt-0",children:J})}var $X=EF;import{jsx as OX}from"react/jsx-runtime";var xF=()=>OX("svg",{width:"30",height:"30",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",children:OX("path",{d:"m 8 1 c -1.65625 0 -3 1.34375 -3 3 s 1.34375 3 3 3 s 3 -1.34375 3 -3 s -1.34375 -3 -3 -3 z m -1.5 7 c -2.492188 0 -4.5 2.007812 -4.5 4.5 v 0.5 c 0 1.109375 0.890625 2 2 2 h 8 c 1.109375 0 2 -0.890625 2 -2 v -0.5 c 0 -2.492188 -2.007812 -4.5 -4.5 -4.5 z m 0 0",fill:"#2e3436"})}),VX=xF;import{jsx as R6}from"react/jsx-runtime";function CF({username:Z,avatar:J}){return R6("div",{className:"w-[30px]",children:R6("div",{className:"relative flex size-[30px] items-center justify-center rounded-sm p-1 text-white",children:J?R6("img",{src:J,className:"absolute inset-0 rounded",alt:Z}):R6(VX,{})})})}var Z7=CF;import{jsx as D1,jsxs as IX}from"react/jsx-runtime";var _F=({message:Z,handleOptionClick:J,setUiAjaxConfiguration:Y})=>{let[Q,X]=fF(!1);return jF(()=>{let G=setTimeout(()=>{if(Q)X(!1)},1000);return()=>clearTimeout(G)},[Q]),D1("div",{className:"group w-full border-b border-black/10",id:Z.id,children:IX("div",{className:`flex gap-4 p-4 text-base md:max-w-2xl md:gap-6 md:py-6 lg:max-w-3xl xl:max-w-5xl ${Z.align==="center"?"m-auto":""} ${Z.align==="right"?"ml-auto justify-end":""} ${Z.align==="left"?"mr-auto":""} `,children:[(Z.align==="left"||Z.align==="center")&&D1("div",{className:"relative flex shrink-0 flex-col items-end",children:D1(Z7,{username:Z.username,avatar:Z.avatar})}),IX("div",{className:"relative flex w-[calc(100%-50px)] flex-col gap-1 md:gap-3 lg:w-[calc(100%-115px)]",children:[D1("div",{className:`markdown light prose w-full break-words dark:prose-invert first:mt-0 ${Z.align==="right"?"flex justify-end self-end":""}`,children:typeof Z.content==="string"?Z.parseMode.toLowerCase()==="markdown"?D1($X,{children:Z.content},Date.now()+Math.random()):Z.parseMode.toLowerCase()==="html"?I6(Z.content):Z.content:D1(Z1,{uiConfig:Z.content,setUiAjaxConfiguration:Y})}),D1("div",{className:"flex flex-row flex-wrap justify-start gap-1",children:Z.options.map((G,W)=>D1(N6,{onClickOption:J,option:G},W))})]}),Z.align==="right"&&D1("div",{className:"relative flex shrink-0 flex-col items-end",children:D1(Z7,{username:Z.username,avatar:Z.avatar})})]})})},qX=_F;import{forwardRef as vF,useEffect as kF,useImperativeHandle as hF,useRef as bF,useState as gF}from"react";import{jsx as DX}from"react/jsx-runtime";var yF=vF(({name:Z,handleOptionClick:J,defaultMessages:Y,sx:Q,setUiAjaxConfiguration:X},G)=>{let[W,H]=gF(Y),z=bF(null),U=()=>{if(z.current)z.current.scrollTop=z.current.scrollHeight};return kF(()=>{U()},[W]),hF(G,()=>({setMessages:(B)=>H(B),addMessage:(B)=>H((L)=>[...L,B]),scrollToBottom:U})),DX("div",{id:Z+"_messages",className:"flex flex-col items-center overflow-y-scroll",style:Q,ref:z,children:W.map((B)=>DX(qX,{message:B,handleOptionClick:J,setUiAjaxConfiguration:X},B.id))})}),NX=yF;import{useEffect as mF,useRef as AX,useState as uF}from"react";import{jsx as J7,jsxs as cF}from"react/jsx-runtime";var dF=({data:Z,setUiAjaxConfiguration:J})=>{let{name:Y,defaultValue:Q,defaultMessages:X,defaultOptions:G,isArea:W,fileAccept:H,placeholder:z,icons:U,optionsPosition:B,sxMap:L={container:{},chatInput:{},messages:{}},depsNames:V,pathname:M,kwargs:K,useSocketioSupport:F,useCentrifugeSupport:O,centrifugeChannel:D}=Z,P=AX(null),N=AX(null),[q,T]=uF(!1),C=B6(J,K,V,M);mF(()=>{if(q)requestAnimationFrame(()=>{C(),T(!1)})},[q]);let m=(c)=>{if(P.current)P.current.setValue(c),T(!0)},i1=()=>{if(P.current)P.current.clear()},x1=(c)=>{if(P.current)P.current.setOptions(c.options)},C1=(c)=>{if(N.current)N.current.addMessage(c.message)},v=(c)=>{if(N.current)N.current.setMessages(c.messages)},N1=()=>{T(!0)};return J7(F1,{card:"ChatCard",data:Z,methods:{clearInput:i1,setOptions:x1,addMessage:C1,setMessages:v},useSocketioSupport:F,useCentrifugeSupport:O,centrifugeChannel:D,children:cF("div",{className:"flex size-full flex-col",style:L.container,children:[J7(NX,{ref:N,name:Y,defaultMessages:X,sx:L.messages,handleOptionClick:m,setUiAjaxConfiguration:J}),J7(FX,{ref:P,name:Y,isArea:W,defaultOptions:G,placeholder:z,defaultValue:Q,fileAccept:H,sx:L.chatInput,handleSendMessage:N1,handleOptionClick:m,optionsPosition:B,icons:U})]})})},RX=dF;var Y7=!1;function z5(){if(Y7)return;n1({name:"SequenceCard",component:bQ,metadata:{author:"PieData",description:"Simple div with styles joining few components"}}),n1({name:"UnionCard",component:yQ,metadata:{author:"PieData",description:"Renders one of many components"}}),n1({name:"AjaxGroupCard",component:cQ,metadata:{author:"PieData",description:"Group card with AJAX support"}}),n1({name:"AjaxButtonCard",component:s3,metadata:{author:"PieData",description:"Button with AJAX support"}}),n1({name:"ChatCard",component:RX,metadata:{author:"PieData"}}),Y7=!0}function S1(){return Y7}import{jsx as z1,Fragment as rF}from"react/jsx-runtime";var aF=({location:Z,fallback:J,onError:Y,initializePie:Q})=>{let X=v1(),G=B5(),W=k1();pF(()=>{if(S1())return;z5(),Q()},[]);let H=lF(()=>PX.createAxiosDateTransformer({baseURL:X||""}),[X]),{data:z,isLoading:U,error:B}=oF({queryKey:["uiConfig",Z.pathname+Z.search,S1(),X],queryFn:async()=>{if(!X||!S1())return;let L="/api/content"+Z.pathname+Z.search;if(W)console.log("[PieRoot] Fetching UI configuration from:",L);let V=await H.get(L,{headers:{"Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"GET,PUT,POST,DELETE,PATCH,OPTIONS","Content-type":"application/json"},withCredentials:!0});if(W)console.log("[PieRoot] Received UI configuration:",V.data);return V.data},staleTime:1/0,gcTime:1/0,refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1,retry:!0,retryDelay:(L)=>Math.min(1000*2**L,30000)});if(!X)return J??null;if(W)console.log("[PieRoot] Rendering with location:",Z),console.log("[PieRoot] API_SERVER:",X),console.log("[PieRoot] Fallback provided:",!!J);if(B){if(W)console.error("[PieRoot] Error fetching UI configuration:",B),console.error("[PieRoot] Error details:",{message:B.message,status:B.response?.status,data:B.response?.data});return Y?.(),J}if(U||!z){if(W)console.log("[PieRoot] Loading state:",{isLoading:U,hasUiConfiguration:!!z});return J}if(W)console.log("[PieRoot] UI configuration loaded successfully:",z),console.log("[PieRoot] Rendering UI with configuration");return z1(y1.Provider,{value:f0,children:z1(u1.Provider,{value:g5(X),children:z1(c1.Provider,{value:l5(X,G),children:z1(_1.Provider,{value:J??z1(rF,{}),children:z1(n5,{children:z1(o5,{children:z1(H1.StyleRoot,{style:{display:"contents"},children:z1(Z1,{uiConfig:z})})})})})})})})},sF=(Z)=>{let J=new iF;return z1(P0.Provider,{value:Z.config,children:z1(nF,{client:J,children:z1(aF,{...Z})})})},tF=sF;import{useEffect as J$,useMemo as Y$}from"react";import{QueryClient as Q$,QueryClientProvider as X$,useQuery as G$}from"@tanstack/react-query";var wX=S(P9(),1);import{useEffect as eF,useState as Z$}from"react";var TX=()=>{let[Z,J]=Z$(null),Y=L7();return eF(()=>{if(typeof window>"u")return;let Q=window.Telegram.WebApp;if(Q.ready(),Y==="telegram_expanded"&&(Q.platform==="ios"||Q.platform==="android"))Q.expand();J(Q)},[]),Z};import{jsx as U1,Fragment as z$}from"react/jsx-runtime";var W$=({location:Z,fallback:J,onError:Y,initializePie:Q})=>{let X=v1(),G=B5(),W=k1();J$(()=>{if(S1())return;z5(),Q()},[]);let H=Y$(()=>wX.createAxiosDateTransformer({baseURL:X}),[]);if(W)console.log("[PieRoot] Rendering with location:",Z),console.log("[PieRoot] API_SERVER:",X),console.log("[PieRoot] Fallback provided:",!!J);if(!X)throw Error("Set PIE_API_SERVER and PIE_CENTRIFUGE_SERVER");let z=TX(),{data:U,isLoading:B,error:L}=G$({queryKey:["uiConfig",Z.pathname+Z.search,z?.initData,S1()],queryFn:async()=>{if(!S1())return;let V=Z.search?"&":"?",M=z?.initData?`${V}initData=${encodeURIComponent(z.initData)}`:"",K="/api/content"+Z.pathname+Z.search+M;if(W)console.log("[PieRoot] Fetching UI configuration from:",K);let F=await H.get(K,{headers:{"Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"GET,PUT,POST,DELETE,PATCH,OPTIONS","Content-type":"application/json"},withCredentials:!0});if(W)console.log("[PieRoot] Received UI configuration:",F.data);return F.data},staleTime:1/0,gcTime:1/0,refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1,retry:!0,retryDelay:(V)=>Math.min(1000*2**V,30000)});if(L&&W)return console.error("[PieRoot] Error fetching UI configuration:",L),console.error("[PieRoot] Error details:",{message:L.message,status:L.response?.status,data:L.response?.data}),Y?.(),J;if(B||!U){if(W)console.log("[PieRoot] Loading state:",{isLoading:B,hasUiConfiguration:!!U});return J}if(W)console.log("[PieRoot] UI configuration loaded successfully:",U),console.log("[PieRoot] Rendering UI with configuration");return U1(y1.Provider,{value:f0,children:U1(u1.Provider,{value:g5(X),children:U1(c1.Provider,{value:l5(X,G),children:U1(_1.Provider,{value:J??U1(z$,{}),children:U1(n5,{children:U1(o5,{children:U1(H1.StyleRoot,{children:U1(Z1,{uiConfig:U})})})})})})})})},H$=(Z)=>{let J=new Q$;return U1(P0.Provider,{value:Z.config,children:U1(X$,{client:J,children:U1(W$,{...Z})})})},U$=H$;export{n1 as registerPieComponent,S1 as isPieComponentsInitialized,z5 as initializePieComponents,Z1 as UI,U$ as PieTelegramRoot,tF as PieRoot,F1 as PieCard};
27
+ `).map((J)=>JSON.parse(J))}applyDeltaIfNeeded(Z,J){let Y,Q;if(Z.delta){let X=aB(J,new TextEncoder().encode(Z.data));Y=JSON.parse(new TextDecoder().decode(X)),Q=X}else Y=JSON.parse(Z.data),Q=new TextEncoder().encode(Z.data);return{newData:Y,newPrevValue:Q}}}var sB={headers:{},token:"",getToken:null,data:null,getData:null,debug:!1,name:"js",version:"",fetch:null,readableStream:null,websocket:null,eventsource:null,sockjs:null,sockjsOptions:{},emulationEndpoint:"/emulation",minReconnectDelay:500,maxReconnectDelay:20000,timeout:5000,maxServerPingDelay:1e4,networkEventTarget:null};class I1 extends Error{constructor(Z){super(Z);this.name=this.constructor.name}}class J0 extends UY{constructor(Z,J){super();if(this._reconnectTimeout=null,this._refreshTimeout=null,this._serverPingTimeout=null,this.state=h.Disconnected,this._transportIsOpen=!1,this._endpoint=Z,this._emulation=!1,this._transports=[],this._currentTransportIndex=0,this._triedAllTransports=!1,this._transportWasOpen=!1,this._transport=null,this._transportId=0,this._deviceWentOffline=!1,this._transportClosed=!0,this._codec=new X9,this._reconnecting=!1,this._reconnectTimeout=null,this._reconnectAttempts=0,this._client=null,this._session="",this._node="",this._subs={},this._serverSubs={},this._commandId=0,this._commands=[],this._batching=!1,this._refreshRequired=!1,this._refreshTimeout=null,this._callbacks={},this._token="",this._data=null,this._dispatchPromise=Promise.resolve(),this._serverPing=0,this._serverPingTimeout=null,this._sendPong=!1,this._promises={},this._promiseId=0,this._debugEnabled=!1,this._networkEventsSet=!1,this._config=Object.assign(Object.assign({},sB),J),this._configure(),this._debugEnabled)this.on("state",(Y)=>{this._debug("client state",Y.oldState,"->",Y.newState)}),this.on("error",(Y)=>{this._debug("client error",Y)});else this.on("error",function(){Function.prototype()})}newSubscription(Z,J){if(this.getSubscription(Z)!==null)throw Error("Subscription to the channel "+Z+" already exists");let Y=new KY(this,Z,J);return this._subs[Z]=Y,Y}getSubscription(Z){return this._getSub(Z)}removeSubscription(Z){if(!Z)return;if(Z.state!==o.Unsubscribed)Z.unsubscribe();this._removeSubscription(Z)}subscriptions(){return this._subs}ready(Z){return l(this,void 0,void 0,function*(){switch(this.state){case h.Disconnected:throw{code:_.clientDisconnected,message:"client disconnected"};case h.Connected:return;default:return new Promise((J,Y)=>{let Q={resolve:J,reject:Y};if(Z)Q.timeout=setTimeout(()=>{Y({code:_.timeout,message:"timeout"})},Z);this._promises[this._nextPromiseId()]=Q})}})}connect(){if(this._isConnected()){this._debug("connect called when already connected");return}if(this._isConnecting()){this._debug("connect called when already connecting");return}this._debug("connect called"),this._reconnectAttempts=0,this._startConnecting()}disconnect(){this._disconnect(l0.disconnectCalled,"disconnect called",!1)}setToken(Z){this._token=Z}setData(Z){this._data=Z}setHeaders(Z){this._config.headers=Z}send(Z){return l(this,void 0,void 0,function*(){let J={send:{data:Z}};if(yield this._methodCall(),!this._transportSendCommands([J]))throw this._createErrorObject(_.transportWriteError,"transport write error")})}rpc(Z,J){return l(this,void 0,void 0,function*(){let Y={rpc:{method:Z,data:J}};return yield this._methodCall(),{data:(yield this._callPromise(Y,(X)=>X.rpc)).data}})}publish(Z,J){return l(this,void 0,void 0,function*(){let Y={publish:{channel:Z,data:J}};return yield this._methodCall(),yield this._callPromise(Y,()=>({})),{}})}history(Z,J){return l(this,void 0,void 0,function*(){let Y={history:this._getHistoryRequest(Z,J)};yield this._methodCall();let Q=yield this._callPromise(Y,(G)=>G.history),X=[];if(Q.publications)for(let G=0;G<Q.publications.length;G++)X.push(this._getPublicationContext(Z,Q.publications[G]));return{publications:X,epoch:Q.epoch||"",offset:Q.offset||0}})}presence(Z){return l(this,void 0,void 0,function*(){let J={presence:{channel:Z}};yield this._methodCall();let Q=(yield this._callPromise(J,(X)=>X.presence)).presence;for(let X in Q)if(Object.prototype.hasOwnProperty.call(Q,X)){let G=Q[X],W=G.conn_info,H=G.chan_info;if(W)G.connInfo=W;if(H)G.chanInfo=H}return{clients:Q}})}presenceStats(Z){return l(this,void 0,void 0,function*(){let J={presence_stats:{channel:Z}};yield this._methodCall();let Y=yield this._callPromise(J,(Q)=>{return Q.presence_stats});return{numUsers:Y.num_users,numClients:Y.num_clients}})}startBatching(){this._batching=!0}stopBatching(){let Z=this;Promise.resolve().then(function(){Promise.resolve().then(function(){Z._batching=!1,Z._flush()})})}_debug(...Z){if(!this._debugEnabled)return;pB("debug",Z)}_codecName(){return this._codec.name()}_formatOverride(){return}_configure(){if(!("Promise"in globalThis))throw Error("Promise polyfill required");if(!this._endpoint)throw Error("endpoint configuration required");if(this._config.token!==null)this._token=this._config.token;if(this._config.data!==null)this._data=this._config.data;if(this._codec=new X9,this._formatOverride(),this._config.debug===!0||typeof localStorage<"u"&&typeof localStorage.getItem==="function"&&localStorage.getItem("centrifuge.debug"))this._debugEnabled=!0;if(this._debug("config",this._config),typeof this._endpoint==="string");else if(Array.isArray(this._endpoint)){this._transports=this._endpoint,this._emulation=!0;for(let Z in this._transports)if(this._transports.hasOwnProperty(Z)){let J=this._transports[Z];if(!J.endpoint||!J.transport)throw Error("malformed transport configuration");let Y=J.transport;if(["websocket","http_stream","sse","sockjs","webtransport"].indexOf(Y)<0)throw Error("unsupported transport name: "+Y)}}else throw Error("unsupported url configuration type: only string or array of objects are supported")}_setState(Z){if(this.state!==Z){this._reconnecting=!1;let J=this.state;return this.state=Z,this.emit("state",{newState:Z,oldState:J}),!0}return!1}_isDisconnected(){return this.state===h.Disconnected}_isConnecting(){return this.state===h.Connecting}_isConnected(){return this.state===h.Connected}_nextCommandId(){return++this._commandId}_setNetworkEvents(){if(this._networkEventsSet)return;let Z=null;if(this._config.networkEventTarget!==null)Z=this._config.networkEventTarget;else if(typeof globalThis.addEventListener<"u")Z=globalThis;if(Z)Z.addEventListener("offline",()=>{if(this._debug("offline event triggered"),this.state===h.Connected||this.state===h.Connecting)this._disconnect(d1.transportClosed,"transport closed",!0),this._deviceWentOffline=!0}),Z.addEventListener("online",()=>{if(this._debug("online event triggered"),this.state!==h.Connecting)return;if(this._deviceWentOffline&&!this._transportClosed)this._deviceWentOffline=!1,this._transportClosed=!0;this._clearReconnectTimeout(),this._startReconnecting()}),this._networkEventsSet=!0}_getReconnectDelay(){let Z=c5(this._reconnectAttempts,this._config.minReconnectDelay,this._config.maxReconnectDelay);return this._reconnectAttempts+=1,Z}_clearOutgoingRequests(){for(let Z in this._callbacks)if(this._callbacks.hasOwnProperty(Z)){let J=this._callbacks[Z];clearTimeout(J.timeout);let Y=J.errback;if(!Y)continue;Y({error:this._createErrorObject(_.connectionClosed,"connection closed")})}this._callbacks={}}_clearConnectedState(){this._client=null,this._clearServerPingTimeout(),this._clearRefreshTimeout();for(let Z in this._subs){if(!this._subs.hasOwnProperty(Z))continue;let J=this._subs[Z];if(J.state===o.Subscribed)J._setSubscribing(u5.transportClosed,"transport closed")}for(let Z in this._serverSubs)if(this._serverSubs.hasOwnProperty(Z))this.emit("subscribing",{channel:Z})}_handleWriteError(Z){for(let J of Z){let Y=J.id;if(!(Y in this._callbacks))continue;let Q=this._callbacks[Y];clearTimeout(this._callbacks[Y].timeout),delete this._callbacks[Y];let X=Q.errback;X({error:this._createErrorObject(_.transportWriteError,"transport write error")})}}_transportSendCommands(Z){if(!Z.length)return!0;if(!this._transport)return!1;try{this._transport.send(this._codec.encodeCommands(Z),this._session,this._node)}catch(J){return this._debug("error writing commands",J),this._handleWriteError(Z),!1}return!0}_initializeTransport(){let Z;if(this._config.websocket!==null)Z=this._config.websocket;else if(!(typeof globalThis.WebSocket!=="function"&&typeof globalThis.WebSocket!=="object"))Z=globalThis.WebSocket;let J=null;if(this._config.sockjs!==null)J=this._config.sockjs;else if(typeof globalThis.SockJS<"u")J=globalThis.SockJS;let Y=null;if(this._config.eventsource!==null)Y=this._config.eventsource;else if(typeof globalThis.EventSource<"u")Y=globalThis.EventSource;let Q=null;if(this._config.fetch!==null)Q=this._config.fetch;else if(typeof globalThis.fetch<"u")Q=globalThis.fetch;let X=null;if(this._config.readableStream!==null)X=this._config.readableStream;else if(typeof globalThis.ReadableStream<"u")X=globalThis.ReadableStream;if(!this._emulation){if(cB(this._endpoint,"http"))throw Error("Provide explicit transport endpoints configuration in case of using HTTP (i.e. using array of TransportEndpoint instead of a single string), or use ws(s):// scheme in an endpoint if you aimed using WebSocket transport");else if(this._debug("client will use websocket"),this._transport=new Q9(this._endpoint,{websocket:Z}),!this._transport.supported())throw Error("WebSocket constructor not found, make sure it is available globally or passed as a dependency in Centrifuge options")}else{if(this._currentTransportIndex>=this._transports.length)this._triedAllTransports=!0,this._currentTransportIndex=0;let I=0;while(!0){if(I>=this._transports.length)throw Error("no supported transport found");let M=this._transports[this._currentTransportIndex],K=M.transport,F=M.endpoint;if(K==="websocket"){if(this._debug("trying websocket transport"),this._transport=new Q9(F,{websocket:Z}),!this._transport.supported()){this._debug("websocket transport not available"),this._currentTransportIndex++,I++;continue}}else if(K==="webtransport"){if(this._debug("trying webtransport transport"),this._transport=new $Y(F,{webtransport:globalThis.WebTransport,decoder:this._codec,encoder:this._codec}),!this._transport.supported()){this._debug("webtransport transport not available"),this._currentTransportIndex++,I++;continue}}else if(K==="http_stream"){if(this._debug("trying http_stream transport"),this._transport=new MY(F,{fetch:Q,readableStream:X,emulationEndpoint:this._config.emulationEndpoint,decoder:this._codec,encoder:this._codec}),!this._transport.supported()){this._debug("http_stream transport not available"),this._currentTransportIndex++,I++;continue}}else if(K==="sse"){if(this._debug("trying sse transport"),this._transport=new FY(F,{eventsource:Y,fetch:Q,emulationEndpoint:this._config.emulationEndpoint}),!this._transport.supported()){this._debug("sse transport not available"),this._currentTransportIndex++,I++;continue}}else if(K==="sockjs"){if(this._debug("trying sockjs"),this._transport=new LY(F,{sockjs:J,sockjsOptions:this._config.sockjsOptions}),!this._transport.supported()){this._debug("sockjs transport not available"),this._currentTransportIndex++,I++;continue}}else throw Error("unknown transport "+K);break}}let G=this,W=this._transport,H=this._nextTransportId();G._debug("id of transport",H);let z=!1,U=[];if(this._transport.emulation()){let I=G._sendConnect(!0);U.push(I)}this._setNetworkEvents();let B=this._codec.encodeCommands(U);this._transportClosed=!1;let L;L=setTimeout(function(){W.close()},this._config.timeout),this._transport.initialize(this._codecName(),{onOpen:function(){if(L)clearTimeout(L),L=null;if(G._transportId!=H){G._debug("open callback from non-actual transport"),W.close();return}if(z=!0,G._debug(W.subName(),"transport open"),W.emulation())return;G._transportIsOpen=!0,G._transportWasOpen=!0,G.startBatching(),G._sendConnect(!1),G._sendSubscribeCommands(),G.stopBatching(),G.emit("__centrifuge_debug:connect_frame_sent",{})},onError:function(I){if(G._transportId!=H){G._debug("error callback from non-actual transport");return}G._debug("transport level error",I)},onClose:function(I){if(L)clearTimeout(L),L=null;if(G._transportId!=H){G._debug("close callback from non-actual transport");return}G._debug(W.subName(),"transport closed"),G._transportClosed=!0,G._transportIsOpen=!1;let M="connection closed",K=!0,F=0;if(I&&"code"in I&&I.code)F=I.code;if(I&&I.reason)try{let O=JSON.parse(I.reason);M=O.reason,K=O.reconnect}catch(O){if(M=I.reason,F>=3500&&F<4000||F>=4500&&F<5000)K=!1}if(F<3000){if(F===1009)F=l0.messageSizeLimit,M="message size limit exceeded",K=!1;else F=d1.transportClosed,M="transport closed";if(G._emulation&&!G._transportWasOpen){if(G._currentTransportIndex++,G._currentTransportIndex>=G._transports.length)G._triedAllTransports=!0,G._currentTransportIndex=0}}else G._transportWasOpen=!0;if(G._isConnecting()&&!z)G.emit("error",{type:"transport",error:{code:_.transportClosed,message:"transport closed"},transport:W.name()});G._reconnecting=!1,G._disconnect(F,M,K)},onMessage:function(I){G._dataReceived(I)}},B),G.emit("__centrifuge_debug:transport_initialized",{})}_sendConnect(Z){let J=this._constructConnectCommand(),Y=this;return this._call(J,Z).then((Q)=>{let X=Q.reply.connect;if(Y._connectResponse(X),Q.next)Q.next()},(Q)=>{if(Y._connectError(Q.error),Q.next)Q.next()}),J}_startReconnecting(){if(this._debug("start reconnecting"),!this._isConnecting()){this._debug("stop reconnecting: client not in connecting state");return}if(this._reconnecting){this._debug("reconnect already in progress, return from reconnect routine");return}if(this._transportClosed===!1){this._debug("waiting for transport close");return}this._reconnecting=!0;let Z=this._token==="";if(!(this._refreshRequired||Z&&this._config.getToken!==null)){if(this._config.getData)this._config.getData().then((Q)=>{if(!this._isConnecting())return;this._data=Q,this._initializeTransport()}).catch((Q)=>this._handleGetDataError(Q));else this._initializeTransport();return}let Y=this;this._getToken().then(function(Q){if(!Y._isConnecting())return;if(Q==null||Q==null){Y._failUnauthorized();return}if(Y._token=Q,Y._debug("connection token refreshed"),Y._config.getData)Y._config.getData().then(function(X){if(!Y._isConnecting())return;Y._data=X,Y._initializeTransport()}).catch((X)=>Y._handleGetDataError(X));else Y._initializeTransport()}).catch(function(Q){if(!Y._isConnecting())return;if(Q instanceof I1){Y._failUnauthorized();return}Y.emit("error",{type:"connectToken",error:{code:_.clientConnectToken,message:Q!==void 0?Q.toString():""}});let X=Y._getReconnectDelay();Y._debug("error on getting connection token, reconnect after "+X+" milliseconds",Q),Y._reconnecting=!1,Y._reconnectTimeout=setTimeout(()=>{Y._startReconnecting()},X)})}_handleGetDataError(Z){if(Z instanceof I1){this._failUnauthorized();return}this.emit("error",{type:"connectData",error:{code:_.badConfiguration,message:(Z===null||Z===void 0?void 0:Z.toString())||""}});let J=this._getReconnectDelay();this._debug("error on getting connect data, reconnect after "+J+" milliseconds",Z),this._reconnecting=!1,this._reconnectTimeout=setTimeout(()=>{this._startReconnecting()},J)}_connectError(Z){if(this.state!==h.Connecting)return;if(Z.code===109)this._refreshRequired=!0;if(Z.code<100||Z.temporary===!0||Z.code===109)this.emit("error",{type:"connect",error:Z}),this._debug("closing transport due to connect error"),this._disconnect(Z.code,Z.message,!0);else this._disconnect(Z.code,Z.message,!1)}_scheduleReconnect(){if(!this._isConnecting())return;let Z=!1;if(this._emulation&&!this._transportWasOpen&&!this._triedAllTransports)Z=!0;let J=this._getReconnectDelay();if(Z)J=0;this._debug("reconnect after "+J+" milliseconds"),this._clearReconnectTimeout(),this._reconnectTimeout=setTimeout(()=>{this._startReconnecting()},J)}_constructConnectCommand(){let Z={};if(this._token)Z.token=this._token;if(this._data)Z.data=this._data;if(this._config.name)Z.name=this._config.name;if(this._config.version)Z.version=this._config.version;if(Object.keys(this._config.headers).length>0)Z.headers=this._config.headers;let J={},Y=!1;for(let Q in this._serverSubs)if(this._serverSubs.hasOwnProperty(Q)&&this._serverSubs[Q].recoverable){Y=!0;let X={recover:!0};if(this._serverSubs[Q].offset)X.offset=this._serverSubs[Q].offset;if(this._serverSubs[Q].epoch)X.epoch=this._serverSubs[Q].epoch;J[Q]=X}if(Y)Z.subs=J;return{connect:Z}}_getHistoryRequest(Z,J){let Y={channel:Z};if(J!==void 0){if(J.since){if(Y.since={offset:J.since.offset},J.since.epoch)Y.since.epoch=J.since.epoch}if(J.limit!==void 0)Y.limit=J.limit;if(J.reverse===!0)Y.reverse=!0}return Y}_methodCall(){if(this._isConnected())return Promise.resolve();return new Promise((Z,J)=>{let Y=setTimeout(function(){J({code:_.timeout,message:"timeout"})},this._config.timeout);this._promises[this._nextPromiseId()]={timeout:Y,resolve:Z,reject:J}})}_callPromise(Z,J){return new Promise((Y,Q)=>{this._call(Z,!1).then((X)=>{var G;let W=J(X.reply);Y(W),(G=X.next)===null||G===void 0||G.call(X)},(X)=>{var G;Q(X.error),(G=X.next)===null||G===void 0||G.call(X)})})}_dataReceived(Z){if(this._serverPing>0)this._waitServerPing();let J=this._codec.decodeReplies(Z);this._dispatchPromise=this._dispatchPromise.then(()=>{let Y;this._dispatchPromise=new Promise((Q)=>{Y=Q}),this._dispatchSynchronized(J,Y)})}_dispatchSynchronized(Z,J){let Y=Promise.resolve();for(let Q in Z)if(Z.hasOwnProperty(Q))Y=Y.then(()=>{return this._dispatchReply(Z[Q])});Y=Y.then(()=>{J()})}_dispatchReply(Z){let J,Y=new Promise((X)=>{J=X});if(Z===void 0||Z===null)return this._debug("dispatch: got undefined or null reply"),J(),Y;let Q=Z.id;if(Q&&Q>0)this._handleReply(Z,J);else if(!Z.push)this._handleServerPing(J);else this._handlePush(Z.push,J);return Y}_call(Z,J){return new Promise((Y,Q)=>{if(Z.id=this._nextCommandId(),this._registerCall(Z.id,Y,Q),!J)this._addCommand(Z)})}_startConnecting(){if(this._debug("start connecting"),this._setState(h.Connecting))this.emit("connecting",{code:d1.connectCalled,reason:"connect called"});this._client=null,this._startReconnecting()}_disconnect(Z,J,Y){if(this._isDisconnected())return;this._transportIsOpen=!1;let Q=this.state;this._reconnecting=!1;let X={code:Z,reason:J},G=!1;if(Y)G=this._setState(h.Connecting);else G=this._setState(h.Disconnected),this._rejectPromises({code:_.clientDisconnected,message:"disconnected"});if(this._clearOutgoingRequests(),Q===h.Connecting)this._clearReconnectTimeout();if(Q===h.Connected)this._clearConnectedState();if(G)if(this._isConnecting())this.emit("connecting",X);else this.emit("disconnected",X);if(this._transport){this._debug("closing existing transport");let W=this._transport;this._transport=null,W.close(),this._transportClosed=!0,this._nextTransportId()}else this._debug("no transport to close");this._scheduleReconnect()}_failUnauthorized(){this._disconnect(l0.unauthorized,"unauthorized",!1)}_getToken(){if(this._debug("get connection token"),!this._config.getToken)return this.emit("error",{type:"configuration",error:{code:_.badConfiguration,message:"token expired but no getToken function set in the configuration"}}),Promise.reject(new I1(""));return this._config.getToken({})}_refresh(){let Z=this._client,J=this;this._getToken().then(function(Y){if(Z!==J._client)return;if(!Y){J._failUnauthorized();return}if(J._token=Y,J._debug("connection token refreshed"),!J._isConnected())return;let Q={refresh:{token:J._token}};J._call(Q,!1).then((X)=>{let G=X.reply.refresh;if(J._refreshResponse(G),X.next)X.next()},(X)=>{if(J._refreshError(X.error),X.next)X.next()})}).catch(function(Y){if(!J._isConnected())return;if(Y instanceof I1){J._failUnauthorized();return}J.emit("error",{type:"refreshToken",error:{code:_.clientRefreshToken,message:Y!==void 0?Y.toString():""}}),J._refreshTimeout=setTimeout(()=>J._refresh(),J._getRefreshRetryDelay())})}_refreshError(Z){if(Z.code<100||Z.temporary===!0)this.emit("error",{type:"refresh",error:Z}),this._refreshTimeout=setTimeout(()=>this._refresh(),this._getRefreshRetryDelay());else this._disconnect(Z.code,Z.message,!1)}_getRefreshRetryDelay(){return c5(0,5000,1e4)}_refreshResponse(Z){if(this._refreshTimeout)clearTimeout(this._refreshTimeout),this._refreshTimeout=null;if(Z.expires)this._client=Z.client,this._refreshTimeout=setTimeout(()=>this._refresh(),p5(Z.ttl))}_removeSubscription(Z){if(Z===null)return;delete this._subs[Z.channel]}_unsubscribe(Z){if(!this._transportIsOpen)return Promise.resolve();let Y={unsubscribe:{channel:Z.channel}},Q=this;return new Promise((G,W)=>{this._call(Y,!1).then((H)=>{if(G(),H.next)H.next()},(H)=>{if(G(),H.next)H.next();Q._disconnect(d1.unsubscribeError,"unsubscribe error",!0)})})}_getSub(Z,J){if(J&&J>0){for(let Q in this._subs)if(this._subs.hasOwnProperty(Q)){let X=this._subs[Q];if(X._id===J)return X}return null}let Y=this._subs[Z];if(!Y)return null;return Y}_isServerSub(Z){return this._serverSubs[Z]!==void 0}_sendSubscribeCommands(){let Z=[];for(let J in this._subs){if(!this._subs.hasOwnProperty(J))continue;let Y=this._subs[J];if(Y._inflight===!0)continue;if(Y.state===o.Subscribing){let Q=Y._subscribe();if(Q)Z.push(Q)}}return Z}_connectResponse(Z){if(this._transportIsOpen=!0,this._transportWasOpen=!0,this._reconnectAttempts=0,this._refreshRequired=!1,this._isConnected())return;if(this._client=Z.client,this._setState(h.Connected),this._refreshTimeout)clearTimeout(this._refreshTimeout);if(Z.expires)this._refreshTimeout=setTimeout(()=>this._refresh(),p5(Z.ttl));this._session=Z.session,this._node=Z.node,this.startBatching(),this._sendSubscribeCommands(),this.stopBatching();let J={client:Z.client,transport:this._transport.subName()};if(Z.data)J.data=Z.data;if(this.emit("connected",J),this._resolvePromises(),this._processServerSubs(Z.subs||{}),Z.ping&&Z.ping>0)this._serverPing=Z.ping*1000,this._sendPong=Z.pong===!0,this._waitServerPing();else this._serverPing=0}_processServerSubs(Z){for(let J in Z){if(!Z.hasOwnProperty(J))continue;let Y=Z[J];this._serverSubs[J]={offset:Y.offset,epoch:Y.epoch,recoverable:Y.recoverable||!1};let Q=this._getSubscribeContext(J,Y);this.emit("subscribed",Q)}for(let J in Z){if(!Z.hasOwnProperty(J))continue;let Y=Z[J];if(Y.recovered){let Q=Y.publications;if(Q&&Q.length>0){for(let X in Q)if(Q.hasOwnProperty(X))this._handlePublication(J,Q[X])}}}for(let J in this._serverSubs){if(!this._serverSubs.hasOwnProperty(J))continue;if(!Z[J])this.emit("unsubscribed",{channel:J}),delete this._serverSubs[J]}}_clearRefreshTimeout(){if(this._refreshTimeout!==null)clearTimeout(this._refreshTimeout),this._refreshTimeout=null}_clearReconnectTimeout(){if(this._reconnectTimeout!==null)clearTimeout(this._reconnectTimeout),this._reconnectTimeout=null}_clearServerPingTimeout(){if(this._serverPingTimeout!==null)clearTimeout(this._serverPingTimeout),this._serverPingTimeout=null}_waitServerPing(){if(this._config.maxServerPingDelay===0)return;if(!this._isConnected())return;this._clearServerPingTimeout(),this._serverPingTimeout=setTimeout(()=>{if(!this._isConnected())return;this._disconnect(d1.noPing,"no ping",!0)},this._serverPing+this._config.maxServerPingDelay)}_getSubscribeContext(Z,J){let Y={channel:Z,positioned:!1,recoverable:!1,wasRecovering:!1,recovered:!1,hasRecoveredPublications:!1};if(J.recovered)Y.recovered=!0;if(J.positioned)Y.positioned=!0;if(J.recoverable)Y.recoverable=!0;if(J.was_recovering)Y.wasRecovering=!0;let Q="";if("epoch"in J)Q=J.epoch;let X=0;if("offset"in J)X=J.offset;if(Y.positioned||Y.recoverable)Y.streamPosition={offset:X,epoch:Q};if(Array.isArray(J.publications)&&J.publications.length>0)Y.hasRecoveredPublications=!0;if(J.data)Y.data=J.data;return Y}_handleReply(Z,J){let Y=Z.id;if(!(Y in this._callbacks)){J();return}let Q=this._callbacks[Y];if(clearTimeout(this._callbacks[Y].timeout),delete this._callbacks[Y],!iB(Z)){let X=Q.callback;if(!X)return;X({reply:Z,next:J})}else{let X=Q.errback;if(!X){J();return}let G={code:Z.error.code,message:Z.error.message||"",temporary:Z.error.temporary||!1};X({error:G,next:J})}}_handleJoin(Z,J,Y){let Q=this._getSub(Z,Y);if(!Q&&Z){if(this._isServerSub(Z)){let X={channel:Z,info:this._getJoinLeaveContext(J.info)};this.emit("join",X)}return}Q._handleJoin(J)}_handleLeave(Z,J,Y){let Q=this._getSub(Z,Y);if(!Q&&Z){if(this._isServerSub(Z)){let X={channel:Z,info:this._getJoinLeaveContext(J.info)};this.emit("leave",X)}return}Q._handleLeave(J)}_handleUnsubscribe(Z,J){let Y=this._getSub(Z,0);if(!Y&&Z){if(this._isServerSub(Z))delete this._serverSubs[Z],this.emit("unsubscribed",{channel:Z});return}if(J.code<2500)Y._setUnsubscribed(J.code,J.reason,!1);else Y._setSubscribing(J.code,J.reason)}_handleSubscribe(Z,J){this._serverSubs[Z]={offset:J.offset,epoch:J.epoch,recoverable:J.recoverable||!1},this.emit("subscribed",this._getSubscribeContext(Z,J))}_handleDisconnect(Z){let J=Z.code,Y=!0;if(J>=3500&&J<4000||J>=4500&&J<5000)Y=!1;this._disconnect(J,Z.reason,Y)}_getPublicationContext(Z,J){let Y={channel:Z,data:J.data};if(J.offset)Y.offset=J.offset;if(J.info)Y.info=this._getJoinLeaveContext(J.info);if(J.tags)Y.tags=J.tags;return Y}_getJoinLeaveContext(Z){let J={client:Z.client,user:Z.user},Y=Z.conn_info;if(Y)J.connInfo=Y;let Q=Z.chan_info;if(Q)J.chanInfo=Q;return J}_handlePublication(Z,J,Y){let Q=this._getSub(Z,Y);if(!Q&&Z){if(this._isServerSub(Z)){let X=this._getPublicationContext(Z,J);if(this.emit("publication",X),J.offset!==void 0)this._serverSubs[Z].offset=J.offset}return}Q._handlePublication(J)}_handleMessage(Z){this.emit("message",{data:Z.data})}_handleServerPing(Z){if(this._sendPong){let J={};this._transportSendCommands([J])}Z()}_handlePush(Z,J){let{channel:Y,id:Q}=Z;if(Z.pub)this._handlePublication(Y,Z.pub,Q);else if(Z.message)this._handleMessage(Z.message);else if(Z.join)this._handleJoin(Y,Z.join,Q);else if(Z.leave)this._handleLeave(Y,Z.leave,Q);else if(Z.unsubscribe)this._handleUnsubscribe(Y,Z.unsubscribe);else if(Z.subscribe)this._handleSubscribe(Y,Z.subscribe);else if(Z.disconnect)this._handleDisconnect(Z.disconnect);J()}_flush(){let Z=this._commands.slice(0);this._commands=[],this._transportSendCommands(Z)}_createErrorObject(Z,J,Y){let Q={code:Z,message:J};if(Y)Q.temporary=!0;return Q}_registerCall(Z,J,Y){this._callbacks[Z]={callback:J,errback:Y,timeout:null},this._callbacks[Z].timeout=setTimeout(()=>{if(delete this._callbacks[Z],BY(Y))Y({error:this._createErrorObject(_.timeout,"timeout")})},this._config.timeout)}_addCommand(Z){if(this._batching)this._commands.push(Z);else this._transportSendCommands([Z])}_nextPromiseId(){return++this._promiseId}_nextTransportId(){return++this._transportId}_resolvePromises(){for(let Z in this._promises){if(!this._promises.hasOwnProperty(Z))continue;if(this._promises[Z].timeout)clearTimeout(this._promises[Z].timeout);this._promises[Z].resolve(),delete this._promises[Z]}}_rejectPromises(Z){for(let J in this._promises){if(!this._promises.hasOwnProperty(J))continue;if(this._promises[J].timeout)clearTimeout(this._promises[J].timeout);this._promises[J].reject(Z),delete this._promises[J]}}}J0.SubscriptionState=o;J0.State=h;J0.UnauthorizedError=I1;var i5=(Z,J)=>{async function Y(){let Q=await fetch(Z+"api/centrifuge/gen_token");if(!Q.ok){if(Q.status===403)throw new J0.UnauthorizedError("Backend is not answering");throw Error(`Unexpected status code ${Q.status}`)}return(await Q.json()).token}return J?new J0(J||"",{getToken:Y}):null},tB=rB(null),c1=tB;import{useContext as ZK,useEffect as JK}from"react";import{useEffect as eB,useState as VY}from"react";function n5(Z,J){let[Y,Q]=VY(null),[X,G]=VY(!1);return eB(()=>{if(!X)G(!0),fetch(Z+`api/support/${J}`,{method:"GET"}).then((W)=>W.json()).then((W)=>{Q(W)})},[]),Y}var YK=({children:Z})=>{let J=ZK(u1),Y=v1(),Q=n5(Y,"socketIO"),X=(G)=>{if(typeof window<"u")window.sid=G.sid,console.log(`SocketIO initialized: ${window.sid}`)};return JK(()=>{if(!J)return;let G=()=>{console.log("SocketIO connected")},W=(H)=>{console.log(`SocketIO disconnected: ${H}`),J.connect()};if(Q)J.on("pieinit",X),J.on("connect",G),J.on("disconnect",W),J.connect();return()=>{if(Q)J.off("pieinit",X),J.off("connect",G),J.off("disconnect",W),J.disconnect()}},[J,Q]),Z},o5=YK;import{useContext as QK,useEffect as XK}from"react";var GK=({children:Z})=>{let J=QK(c1),Y=v1(),Q=n5(Y,"centrifuge");return XK(()=>{if(!J)return;let X=()=>{console.log("Centrifuge connected")},G=(W)=>{console.log("Centrifuge disconnected:",W)};if(Q)J.on("connected",X),J.on("disconnected",G),J.connect();return()=>{if(Q)J.disconnect()}},[J,Q]),Z},a5=GK;var PX=S(P9(),1);import{useContext as T9,useEffect as w9}from"react";var sL=({card:Z,data:J,children:Y,useSocketioSupport:Q=!1,useCentrifugeSupport:X=!1,useMittSupport:G=!1,centrifugeChannel:W=void 0,methods:H=void 0})=>{let z=k1();if(z)console.log("[PieCard] Rendering card:",Z),console.log("[PieCard] Card data:",J),console.log("[PieCard] Component name:",J?.name),console.log("[PieCard] Real-time support:",{socketio:Q,centrifuge:X,mitt:G,centrifugeChannel:W}),console.log("[PieCard] Methods:",H?Object.keys(H):"none"),console.log("[PieCard] Has children:",!!Y);let U=T9(u1),B=T9(c1),L=T9(y1);if(w9(()=>{if(!U||!Q||!H||!J.name){if(z&&Q)console.log("[PieCard] Socket.IO setup skipped:",{hasSocket:!!U,useSocketioSupport:Q,hasMethods:!!H,hasDataName:!!J?.name});return}return Object.entries(H).forEach(([I,M])=>{let K=`pie${I}_${J.name}`;if(z)console.log(`[PieCard] Socket.IO registering event: ${K}`);U.on(K,M)}),()=>{Object.entries(H).forEach(([I,M])=>{let K=`pie${I}_${J.name}`;if(z)console.log(`[PieCard] Socket.IO unregistering event: ${K}`);U.off(K,M)})}},[U,H,J.name]),w9(()=>{if(!B||!X||!W||!H||!J.name){if(z&&X)console.log("[PieCard] Centrifuge setup skipped:",{hasCentrifuge:!!B,useCentrifugeSupport:X,hasCentrifugeChannel:!!W,hasMethods:!!H,hasDataName:!!J?.name});return}let I=Object.entries(H).map(([M,K])=>{let F=`pie${M}_${J.name}_${W}`;if(z)console.log(`[PieCard] Centrifuge subscribing to channel: ${F}`);let O=B.newSubscription(F);return O.on("publication",(D)=>{if(z)console.log(`[PieCard] Centrifuge received data on ${F}:`,D.data);K(D.data)}),O.subscribe(),O});return()=>{I.forEach((M)=>{if(z)console.log("[PieCard] Centrifuge unsubscribing from channel");M.unsubscribe(),B.removeSubscription(M)})}},[B,W,H,J.name]),w9(()=>{if(!L||!G||!H||!J.name){if(z&&G)console.log("[PieCard] Mitt setup skipped:",{hasMitt:!!L,useMittSupport:G,hasMethods:!!H,hasDataName:!!J?.name});return}return Object.entries(H).forEach(([I,M])=>{let K=`pie${I}_${J.name}`;if(z)console.log(`[PieCard] Mitt registering event: ${K}`);L.on(K,M)}),()=>{Object.entries(H).forEach(([I,M])=>{let K=`pie${I}_${J.name}`;if(z)console.log(`[PieCard] Mitt unregistering event: ${K}`);L.off(K,M)})}},[L,H,J.name]),z)console.log("[PieCard] Rendering complete, returning children");return Y},F1=sL;function B6(Z){if(!Z)return{};let J={...Z};if("animationName"in J&&typeof J.animationName==="object"){let Y="radiumAnimation_"+Math.random().toString(36).substring(2,8);J.animationName=H1.keyframes(J.animationName,Y)}return J}import{jsx as E9}from"react/jsx-runtime";var rL=({data:Z,content:J,setUiAjaxConfiguration:Y})=>{let{name:Q,sx:X}=Z;return E9(F1,{card:Q,data:Z,children:E9("div",{style:B6(X),id:Q,children:J.map((G,W)=>{return E9(Z1,{uiConfig:G,setUiAjaxConfiguration:Y},`children-${W}`)})})})},bQ=H1(rL);import{jsx as gQ}from"react/jsx-runtime";var tL=({data:Z,content:J,setUiAjaxConfiguration:Y})=>{let{name:Q}=Z;return gQ(F1,{card:Q,data:Z,children:J.map((X,G)=>{return gQ(Z1,{uiConfig:X,setUiAjaxConfiguration:Y},`children-${G}`)})})},yQ=tL;import{useContext as mQ,useEffect as eL,useRef as ZM,useState as uQ}from"react";import{jsx as dQ}from"react/jsx-runtime";var JM=({data:Z,content:J})=>{let{useLoader:Y,noReturn:Q,returnType:X,useSocketioSupport:G,useCentrifugeSupport:W,useMittSupport:H,centrifugeChannel:z}=Z,U=mQ(_1),[B,L]=uQ(!1),[I,M]=uQ(null),K=ZM(J),F=mQ(y1),O=(N)=>{if(N===null)L(!0);else if(L(!1),!Q)K.current=N;if(!Q)M(N)},D=(N)=>{K.current=N.content,M(N.content)},P=(N)=>{if(N===null)L(!0);else if(L(!1),!Q)for(let q of N)F.emit(q.name,q.data)};if(eL(()=>{M(J),L(!1)},[J]),!I&&Y)return U;return dQ(F1,{card:"AjaxGroupCard",data:Z,methods:{changeContent:D},useSocketioSupport:G,useCentrifugeSupport:W,useMittSupport:H,centrifugeChannel:z,children:dQ(Z1,{uiConfig:I??K.current,setUiAjaxConfiguration:X==="events"?P:O})})},cQ=H1(JM);function S9(Z=1000){return new Promise((J)=>{if(typeof window>"u"){J();return}let Y=()=>{if(typeof window.sid<"u")J();else setTimeout(Y,Z)};Y()})}import{useMemo as YM}from"react";var QM=(Z,J={},Y=[],Q,X)=>{let G=X?.renderingLogEnabled??!1,W=X?.apiServer??"";if(G)console.log("Registering AJAX: ",Q,J,Y);if(!Q||!Z){if(G)console.warn("Registration FAILED: pathname or setUiAjaxConfiguration is missing!");return()=>{}}return async(H={})=>{if(typeof window>"u"||typeof document>"u"){if(G)console.warn("getAjaxSubmit called on server, skipping DOM-dependent logic");return}if(Y.includes("sid"))await S9();let z=new FormData;for(let[B,L]of Object.entries({...J,...H}))z.append(B,L);for(let B of Y)if(B==="sid"){if(!window.sid)throw Error("SocketIO isn't initialized properly");z.append("sid",window.sid)}else{let L=document.getElementsByName(B);if(!L.length){if(G)console.warn(`No input found with name ${B}`);continue}let I=L[0];if(I instanceof HTMLInputElement)if(I.type==="file"&&I.files)Array.from(I.files).forEach((M)=>z.append(B,M));else z.append(B,I.value);else if(I instanceof HTMLTextAreaElement)z.append(B,I.value)}let U=W+"api/ajax_content"+Q;return Z(null),await fetch(U,{method:"POST",body:z}).then(async(B)=>{let I=(B.headers.get("content-type")||"").includes("application/json");if(!!B.body?.getReader&&!I){let K=B.body.getReader(),F=new TextDecoder,O="";while(!0){let{done:D,value:P}=await K.read();if(D)break;O+=F.decode(P,{stream:!0});let N=O.split(`
28
+ `);O=N.pop()??"";for(let q of N){let T=q.trim();if(!T)continue;try{let C=JSON.parse(T);Z([C])}catch(C){if(G)console.warn("Failed to parse streamed line:",T)}}}if(O.trim())try{let D=JSON.parse(O);Z([D])}catch(D){if(G)console.warn("Failed to parse final streamed line:",O)}return{}}else{let K=await B.json();return Z(K),K}}).catch((B)=>{if(G)console.error("AJAX request failed:",B);return Z(null),B})}},e0=(Z,J={},Y=[],Q)=>{let{apiServer:X,enableRenderingLog:G}=H0();return YM(()=>QM(Z,J,Y,Q,{apiServer:X,renderingLogEnabled:G}),[Z,J,Y,Q,X,G])};var a9=S(o9(),1),G0=S(o9(),1),V6=a9.default.default||a9.default;import{jsx as s9,jsxs as e2}from"react/jsx-runtime";var t2=({data:Z,setUiAjaxConfiguration:J})=>{let{name:Y,title:Q,iconUrl:X,iconPosition:G,sx:W,pathname:H,kwargs:z,depsNames:U}=Z,B=e0(J,z,U,H);return s9(F1,{card:"AjaxButtonCard",data:Z,children:e2("button",{id:Y,className:"box-border flex min-h-12 w-full min-w-min cursor-pointer items-center justify-center rounded-[16px] border border-[#080318] bg-white text-center font-[TTForsTrial] text-[#080318] hover:bg-neutral-300",value:Y,onClick:()=>B(),style:B6(W),type:"button",children:[X&&G==="start"&&s9("img",{src:X,alt:""}),V6(Q),X&&G==="end"&&s9("img",{src:X,alt:""})]})})},s3=H1(t2);import{forwardRef as NF,useEffect as LX,useImperativeHandle as AF,useRef as RF,useState as A6}from"react";import{useRef as ZF,useState as JF}from"react";import{jsx as YF}from"react/jsx-runtime";function r9(Z){let[J,Y]=JF(!1),Q=ZF(null);return YF("textarea",{ref:Q,...Z,onKeyUp:()=>{Y(!1)},onKeyDown:(H)=>{if(H.key==="Enter"&&H.shiftKey){if(Y(!0),Q.current&&typeof window<"u"){let z=window.getComputedStyle(Q.current),U=parseFloat(z.lineHeight);Q.current.style.height=Q.current.scrollHeight+U+"px"}}if(H.key==="Backspace"){if(Y(!0),Q.current&&typeof window<"u"){let z=window.getComputedStyle(Q.current),U=parseFloat(z.lineHeight);if(Q.current.scrollHeight>U)Q.current.style.height=Q.current.scrollHeight-U+"px"}}Z.onKeyDown&&Z.onKeyDown(H)},onBlur:(H)=>{Y(!1),Z.onBlur&&Z.onBlur(H)},style:{resize:J?"vertical":"none",overflowY:"auto",...Z.style}})}import{useRef as XF,useCallback as GF}from"react";import{jsx as r3}from"react/jsx-runtime";var QF=()=>r3("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-5",children:r3("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 12L3.269 3.126A59.768 59.768 0 0121.485 12 59.77 59.77 0 013.27 20.876L5.999 12zm0 0h7.5"})}),t3=QF;import{jsx as t9}from"react/jsx-runtime";var WF=({type:Z="button",onClick:J,icons:Y})=>{let Q=XF(null),X=GF(()=>{let W=Q.current;if(W)W.style.transform="scale(0.8)",setTimeout(()=>{W.style.transform="scale(1)"},600)},[]);return t9("button",{ref:Q,type:Z,onClick:(W)=>{if(J)J(W);X()},className:"mr-1.5 rounded-md p-1 text-gray-500 ring-0 hover:bg-gray-100 disabled:opacity-40 disabled:hover:bg-transparent",style:{transition:"transform 300ms ease"},children:Y.sendIcon?t9("img",{src:Y.sendIcon,alt:""}):t9(t3,{})})},e3=WF;import{jsx as ZX}from"react/jsx-runtime";var HF=()=>ZX("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-5",children:ZX("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18.375 12.739l-7.693 7.693a4.5 4.5 0 01-6.364-6.364l10.94-10.94A3 3 0 1119.5 7.372L8.552 18.32m.009-.01l-.01.01m5.699-9.941l-7.81 7.81a1.5 1.5 0 002.112 2.13"})}),JX=HF;import{jsx as q6,jsxs as BF,Fragment as UF}from"react/jsx-runtime";var zF=({name:Z,accept:J,fileInputRef:Y,onSelectFile:Q,icons:X})=>{return BF(UF,{children:[q6("button",{className:"rounded-md p-1 text-gray-500 ring-0 hover:bg-gray-100 disabled:opacity-40 disabled:hover:bg-transparent",type:"button",onClick:()=>{if(Y.current)Y.current.click()},children:X.attachFileIcon?q6("img",{src:X.attachFileIcon,alt:""}):q6(JX,{})}),q6("input",{id:Z+"__pie__file",name:Z+"__pie__file",className:"hidden",type:"file",accept:J,ref:Y,onChange:(G)=>{if(G.target.files)Q(G.target.files[0])}})]})},YX=zF;import{jsx as QX}from"react/jsx-runtime";var KF=()=>QX("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-5 text-gray-500",children:QX("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"})}),XX=KF;import{jsx as GX}from"react/jsx-runtime";var LF=()=>GX("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-5",children:GX("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})}),D6=LF;import{jsx as H5,jsxs as FF}from"react/jsx-runtime";var MF=({name:Z,selectedFile:J,onDropFile:Y})=>{return FF("div",{className:"flex w-full cursor-default flex-row items-center gap-2",children:[H5(XX,{}),H5("span",{className:"flex-1",children:J.name}),H5("input",{type:"hidden",name:Z,value:""}),H5("button",{className:"rounded-md p-1 text-gray-500 ring-0 hover:bg-gray-100 disabled:opacity-40 disabled:hover:bg-transparent",type:"button",onClick:Y,children:H5(D6,{})})]})},WX=MF;import{jsx as HX,jsxs as OF}from"react/jsx-runtime";var $F=()=>OF("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-5",children:[HX("path",{d:"M8 5C8 2.79086 9.79086 1 12 1C14.2091 1 16 2.79086 16 5V12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12V5Z"}),HX("path",{d:"M6.25 11.8438V12C6.25 13.525 6.8558 14.9875 7.93414 16.0659C9.01247 17.1442 10.475 17.75 12 17.75C13.525 17.75 14.9875 17.1442 16.0659 16.0659C17.1442 14.9875 17.75 13.525 17.75 12V11.8438C17.75 11.2915 18.1977 10.8438 18.75 10.8438H19.25C19.8023 10.8438 20.25 11.2915 20.25 11.8437V12C20.25 14.188 19.3808 16.2865 17.8336 17.8336C16.5842 19.0831 14.9753 19.8903 13.25 20.1548V22C13.25 22.5523 12.8023 23 12.25 23H11.75C11.1977 23 10.75 22.5523 10.75 22V20.1548C9.02471 19.8903 7.41579 19.0831 6.16637 17.8336C4.61919 16.2865 3.75 14.188 3.75 12V11.8438C3.75 11.2915 4.19772 10.8438 4.75 10.8438H5.25C5.80228 10.8438 6.25 11.2915 6.25 11.8438Z"})]}),zX=$F;import{jsx as z5}from"react/jsx-runtime";var IF=({isListening:Z,toggleListening:J,icons:Y})=>{return z5("button",{className:"rounded-md p-1 text-gray-500 ring-0 hover:bg-gray-100 disabled:opacity-40 disabled:hover:bg-transparent",type:"button",onClick:J,children:Z?Y.cancelIcon?z5("img",{src:Y.cancelIcon,alt:""}):z5(D6,{}):Y.voiceRecordingIcon?z5("img",{src:Y.voiceRecordingIcon,alt:""}):z5(zX,{})})},UX=IF;import{jsx as BX,jsxs as qF}from"react/jsx-runtime";var VF=({option:Z,onClickOption:J})=>{return qF("div",{className:"flex w-fit cursor-pointer flex-row place-content-center items-center gap-1 rounded-md border border-black bg-white px-2 py-1 text-black",onClick:()=>{J(Z.title)},style:Z.sx,children:[Z.iconPosition==="start"&&BX("img",{src:Z.iconUrl,alt:""}),Z.title,Z.iconPosition==="end"&&BX("img",{src:Z.iconUrl,alt:""})]})},N6=VF;import{jsx as KX}from"react/jsx-runtime";var DF=({options:Z,handleOptionClick:J})=>{return KX("div",{className:"flex w-full flex-row flex-wrap justify-start gap-[5px]",children:Z.map((Y,Q)=>{return KX(N6,{option:Y,onClickOption:J},Q)})})},e9=DF;import{jsx as E1,jsxs as MX}from"react/jsx-runtime";var PF=NF(({name:Z,defaultValue:J,defaultOptions:Y,isArea:Q,placeholder:X,fileAccept:G,optionsPosition:W,icons:H,handleOptionClick:z,handleSendMessage:U,sx:B},L)=>{let I=RF(null),[M,K]=A6(null),[F,O]=A6(J),[D,P]=A6(Y),[N,q]=A6(!1);AF(L,()=>({clear:()=>{if(O(""),K(null),I.current)I.current.value=""},setValue:(C)=>O(C),setOptions:(C)=>P(C)})),LX(()=>{O(J)},[J]),LX(()=>{},[]);let T=()=>{};return MX("div",{className:"flex flex-col items-center gap-[0.1rem]",id:Z+"_chat_input",style:B,children:[D&&W==="top"&&E1(e9,{options:D,handleOptionClick:z}),E1("div",{className:"stretch relative flex size-full flex-1 flex-row items-stretch gap-3 last:mb-2 md:mx-4 md:flex-col md:last:mb-6 lg:mx-auto",children:MX("div",{className:"flex w-full grow flex-row items-center rounded-md bg-transparent",children:[M?E1(WX,{name:Z,selectedFile:M,onDropFile:()=>{if(K(null),I.current)I.current.value=""}}):!Q?E1("input",{name:Z,value:F,onChange:(C)=>O(C.target.value),onKeyDown:(C)=>{if(C.key==="Enter")C.preventDefault(),U()},tabIndex:0,placeholder:X,className:"m-0 w-full resize-none border-0 bg-transparent outline-none",style:{maxHeight:200,height:"100%",overflowY:"hidden"}}):E1(r9,{name:Z,value:F,onChange:(C)=>O(C.target.value),onKeyDown:(C)=>{if(C.key==="Enter"&&!C.shiftKey)C.preventDefault(),U()},tabIndex:0,rows:2,placeholder:X,className:"m-0 w-full resize-none border-0 bg-transparent p-0 pl-2 pr-7 outline-none md:pl-0",style:{maxHeight:200,height:"100%",minHeight:24}}),E1(UX,{isListening:N,toggleListening:T,icons:H}),E1(YX,{name:Z,fileInputRef:I,accept:G,onSelectFile:K,icons:H}),E1(e3,{onClick:U,icons:H})]})}),D&&W==="bottom"&&E1(e9,{options:D,handleOptionClick:z})]})}),FX=PF;import{useState as fF,useEffect as jF}from"react";import{useEffect as TF,useState as wF}from"react";import{jsx as SF}from"react/jsx-runtime";function EF({children:Z}){let[J,Y]=wF(Z);return TF(()=>{Y(Z)},[Z]),SF("div",{className:"max-w-full first:mt-0",children:J})}var $X=EF;import{jsx as OX}from"react/jsx-runtime";var xF=()=>OX("svg",{width:"30",height:"30",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",children:OX("path",{d:"m 8 1 c -1.65625 0 -3 1.34375 -3 3 s 1.34375 3 3 3 s 3 -1.34375 3 -3 s -1.34375 -3 -3 -3 z m -1.5 7 c -2.492188 0 -4.5 2.007812 -4.5 4.5 v 0.5 c 0 1.109375 0.890625 2 2 2 h 8 c 1.109375 0 2 -0.890625 2 -2 v -0.5 c 0 -2.492188 -2.007812 -4.5 -4.5 -4.5 z m 0 0",fill:"#2e3436"})}),IX=xF;import{jsx as R6}from"react/jsx-runtime";function CF({username:Z,avatar:J}){return R6("div",{className:"w-[30px]",children:R6("div",{className:"relative flex size-[30px] items-center justify-center rounded-sm p-1 text-white",children:J?R6("img",{src:J,className:"absolute inset-0 rounded",alt:Z}):R6(IX,{})})})}var Z7=CF;import{jsx as D1,jsxs as VX}from"react/jsx-runtime";var _F=({message:Z,handleOptionClick:J,setUiAjaxConfiguration:Y})=>{let[Q,X]=fF(!1);return jF(()=>{let G=setTimeout(()=>{if(Q)X(!1)},1000);return()=>clearTimeout(G)},[Q]),D1("div",{className:"group w-full border-b border-black/10",id:Z.id,children:VX("div",{className:`flex gap-4 p-4 text-base md:max-w-2xl md:gap-6 md:py-6 lg:max-w-3xl xl:max-w-5xl ${Z.align==="center"?"m-auto":""} ${Z.align==="right"?"ml-auto justify-end":""} ${Z.align==="left"?"mr-auto":""} `,children:[(Z.align==="left"||Z.align==="center")&&D1("div",{className:"relative flex shrink-0 flex-col items-end",children:D1(Z7,{username:Z.username,avatar:Z.avatar})}),VX("div",{className:"relative flex w-[calc(100%-50px)] flex-col gap-1 md:gap-3 lg:w-[calc(100%-115px)]",children:[D1("div",{className:`markdown light prose w-full break-words dark:prose-invert first:mt-0 ${Z.align==="right"?"flex justify-end self-end":""}`,children:typeof Z.content==="string"?Z.parseMode.toLowerCase()==="markdown"?D1($X,{children:Z.content},Date.now()+Math.random()):Z.parseMode.toLowerCase()==="html"?V6(Z.content):Z.content:D1(Z1,{uiConfig:Z.content,setUiAjaxConfiguration:Y})}),D1("div",{className:"flex flex-row flex-wrap justify-start gap-1",children:Z.options.map((G,W)=>D1(N6,{onClickOption:J,option:G},W))})]}),Z.align==="right"&&D1("div",{className:"relative flex shrink-0 flex-col items-end",children:D1(Z7,{username:Z.username,avatar:Z.avatar})})]})})},qX=_F;import{forwardRef as vF,useEffect as kF,useImperativeHandle as hF,useRef as bF,useState as gF}from"react";import{jsx as DX}from"react/jsx-runtime";var yF=vF(({name:Z,handleOptionClick:J,defaultMessages:Y,sx:Q,setUiAjaxConfiguration:X},G)=>{let[W,H]=gF(Y),z=bF(null),U=()=>{if(z.current)z.current.scrollTop=z.current.scrollHeight};return kF(()=>{U()},[W]),hF(G,()=>({setMessages:(B)=>H(B),addMessage:(B)=>H((L)=>[...L,B]),scrollToBottom:U})),DX("div",{id:Z+"_messages",className:"flex flex-col items-center overflow-y-scroll",style:Q,ref:z,children:W.map((B)=>DX(qX,{message:B,handleOptionClick:J,setUiAjaxConfiguration:X},B.id))})}),NX=yF;import{useEffect as mF,useRef as AX,useState as uF}from"react";import{jsx as J7,jsxs as cF}from"react/jsx-runtime";var dF=({data:Z,setUiAjaxConfiguration:J})=>{let{name:Y,defaultValue:Q,defaultMessages:X,defaultOptions:G,isArea:W,fileAccept:H,placeholder:z,icons:U,optionsPosition:B,sxMap:L={container:{},chatInput:{},messages:{}},depsNames:I,pathname:M,kwargs:K,useSocketioSupport:F,useCentrifugeSupport:O,centrifugeChannel:D}=Z,P=AX(null),N=AX(null),[q,T]=uF(!1),C=e0(J,K,I,M);mF(()=>{if(q)requestAnimationFrame(()=>{C(),T(!1)})},[q]);let m=(c)=>{if(P.current)P.current.setValue(c),T(!0)},i1=()=>{if(P.current)P.current.clear()},x1=(c)=>{if(P.current)P.current.setOptions(c.options)},C1=(c)=>{if(N.current)N.current.addMessage(c.message)},v=(c)=>{if(N.current)N.current.setMessages(c.messages)},N1=()=>{T(!0)};return J7(F1,{card:"ChatCard",data:Z,methods:{clearInput:i1,setOptions:x1,addMessage:C1,setMessages:v},useSocketioSupport:F,useCentrifugeSupport:O,centrifugeChannel:D,children:cF("div",{className:"flex size-full flex-col",style:L.container,children:[J7(NX,{ref:N,name:Y,defaultMessages:X,sx:L.messages,handleOptionClick:m,setUiAjaxConfiguration:J}),J7(FX,{ref:P,name:Y,isArea:W,defaultOptions:G,placeholder:z,defaultValue:Q,fileAccept:H,sx:L.chatInput,handleSendMessage:N1,handleOptionClick:m,optionsPosition:B,icons:U})]})})},RX=dF;var Y7=!1;function U5(){if(Y7)return;n1({name:"SequenceCard",component:bQ,metadata:{author:"PieData",description:"Simple div with styles joining few components"}}),n1({name:"UnionCard",component:yQ,metadata:{author:"PieData",description:"Renders one of many components"}}),n1({name:"AjaxGroupCard",component:cQ,metadata:{author:"PieData",description:"Group card with AJAX support"}}),n1({name:"AjaxButtonCard",component:s3,metadata:{author:"PieData",description:"Button with AJAX support"}}),n1({name:"ChatCard",component:RX,metadata:{author:"PieData"}}),Y7=!0}function S1(){return Y7}import{jsx as z1,Fragment as rF}from"react/jsx-runtime";var aF=({location:Z,fallback:J,onError:Y,initializePie:Q})=>{let X=v1(),G=K5(),W=k1();pF(()=>{if(S1())return;U5(),Q()},[]);let H=lF(()=>PX.createAxiosDateTransformer({baseURL:X||""}),[X]),{data:z,isLoading:U,error:B}=oF({queryKey:["uiConfig",Z.pathname+Z.search,S1(),X],queryFn:async()=>{if(!X||!S1())return;let L="/api/content"+Z.pathname+Z.search;if(W)console.log("[PieRoot] Fetching UI configuration from:",L);let I=await H.get(L,{headers:{"Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"GET,PUT,POST,DELETE,PATCH,OPTIONS","Content-type":"application/json"},withCredentials:!0});if(W)console.log("[PieRoot] Received UI configuration:",I.data);return I.data},staleTime:1/0,gcTime:1/0,refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1,retry:!0,retryDelay:(L)=>Math.min(1000*2**L,30000)});if(!X)return J??null;if(W)console.log("[PieRoot] Rendering with location:",Z),console.log("[PieRoot] API_SERVER:",X),console.log("[PieRoot] Fallback provided:",!!J);if(B){if(W)console.error("[PieRoot] Error fetching UI configuration:",B),console.error("[PieRoot] Error details:",{message:B.message,status:B.response?.status,data:B.response?.data});return Y?.(),J}if(U||!z){if(W)console.log("[PieRoot] Loading state:",{isLoading:U,hasUiConfiguration:!!z});return J}if(W)console.log("[PieRoot] UI configuration loaded successfully:",z),console.log("[PieRoot] Rendering UI with configuration");return z1(y1.Provider,{value:f0,children:z1(u1.Provider,{value:y5(X),children:z1(c1.Provider,{value:i5(X,G),children:z1(_1.Provider,{value:J??z1(rF,{}),children:z1(o5,{children:z1(a5,{children:z1(H1.StyleRoot,{style:{display:"contents"},children:z1(Z1,{uiConfig:z})})})})})})})})},sF=(Z)=>{let J=new iF;return z1(P0.Provider,{value:Z.config,children:z1(nF,{client:J,children:z1(aF,{...Z})})})},tF=sF;import{useEffect as J$,useMemo as Y$}from"react";import{QueryClient as Q$,QueryClientProvider as X$,useQuery as G$}from"@tanstack/react-query";var wX=S(P9(),1);import{useEffect as eF,useState as Z$}from"react";var TX=()=>{let[Z,J]=Z$(null),Y=L7();return eF(()=>{if(typeof window>"u")return;let Q=window.Telegram.WebApp;if(Q.ready(),Y==="telegram_expanded"&&(Q.platform==="ios"||Q.platform==="android"))Q.expand();J(Q)},[]),Z};import{jsx as U1,Fragment as z$}from"react/jsx-runtime";var W$=({location:Z,fallback:J,onError:Y,initializePie:Q})=>{let X=v1(),G=K5(),W=k1();J$(()=>{if(S1())return;U5(),Q()},[]);let H=Y$(()=>wX.createAxiosDateTransformer({baseURL:X}),[]);if(W)console.log("[PieRoot] Rendering with location:",Z),console.log("[PieRoot] API_SERVER:",X),console.log("[PieRoot] Fallback provided:",!!J);if(!X)throw Error("Set PIE_API_SERVER and PIE_CENTRIFUGE_SERVER");let z=TX(),{data:U,isLoading:B,error:L}=G$({queryKey:["uiConfig",Z.pathname+Z.search,z?.initData,S1()],queryFn:async()=>{if(!S1())return;let I=Z.search?"&":"?",M=z?.initData?`${I}initData=${encodeURIComponent(z.initData)}`:"",K="/api/content"+Z.pathname+Z.search+M;if(W)console.log("[PieRoot] Fetching UI configuration from:",K);let F=await H.get(K,{headers:{"Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"GET,PUT,POST,DELETE,PATCH,OPTIONS","Content-type":"application/json"},withCredentials:!0});if(W)console.log("[PieRoot] Received UI configuration:",F.data);return F.data},staleTime:1/0,gcTime:1/0,refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1,retry:!0,retryDelay:(I)=>Math.min(1000*2**I,30000)});if(L&&W)return console.error("[PieRoot] Error fetching UI configuration:",L),console.error("[PieRoot] Error details:",{message:L.message,status:L.response?.status,data:L.response?.data}),Y?.(),J;if(B||!U){if(W)console.log("[PieRoot] Loading state:",{isLoading:B,hasUiConfiguration:!!U});return J}if(W)console.log("[PieRoot] UI configuration loaded successfully:",U),console.log("[PieRoot] Rendering UI with configuration");return U1(y1.Provider,{value:f0,children:U1(u1.Provider,{value:y5(X),children:U1(c1.Provider,{value:i5(X,G),children:U1(_1.Provider,{value:J??U1(z$,{}),children:U1(o5,{children:U1(a5,{children:U1(H1.StyleRoot,{children:U1(Z1,{uiConfig:U})})})})})})})})},H$=(Z)=>{let J=new Q$;return U1(P0.Provider,{value:Z.config,children:U1(X$,{client:J,children:U1(W$,{...Z})})})},U$=H$;export{e0 as useAjaxSubmit,n1 as registerPieComponent,S1 as isPieComponentsInitialized,U5 as initializePieComponents,Z1 as UI,U$ as PieTelegramRoot,tF as PieRoot,F1 as PieCard};